HomeSort by relevance Sort by last modified time
    Searched defs:aspectRatio (Results 1 - 25 of 27) sorted by null

1 2

  /external/chromium_org/third_party/skia/src/core/
SkBBHFactory.cpp 19 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(width),
24 aspectRatio, sortDraws);
  /external/skia/src/core/
SkBBHFactory.cpp 25 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(width),
30 aspectRatio, sortDraws);
  /cts/tests/tests/dpi/src/android/dpi/cts/
AspectRatioTest.java 49 double aspectRatio = getRealAspectRatio(getActivity());
50 if (aspectRatio >= 1.333 && aspectRatio <= 1.86) {
55 if (aspectRatio >= 1.0 && aspectRatio <= 1.86) {
59 fail("Aspect ratio was not between 1.333 and 1.86: " + aspectRatio);
  /external/chromium_org/third_party/WebKit/Source/platform/geometry/
IntSize.h 57 float aspectRatio() const { return static_cast<float>(m_width) / static_cast<float>(m_height); }
FloatSize.h 66 float aspectRatio() const { return m_width / m_height; }
LayoutSize.h 62 float aspectRatio() const { return m_width.toFloat() / m_height.toFloat(); }
118 LayoutSize fitToAspectRatio(const LayoutSize& aspectRatio, AspectRatioFit fit) const
120 float heightScale = height().toFloat() / aspectRatio.height().toFloat();
121 float widthScale = width().toFloat() / aspectRatio.width().toFloat();
123 return LayoutSize(height() * aspectRatio.width() / aspectRatio.height(), height());
124 return LayoutSize(width(), width() * aspectRatio.height() / aspectRatio.width());
  /packages/apps/Camera2/src/com/android/camera/settings/
ResolutionUtil.java 64 public Float aspectRatio;
118 sortedDesiredAspectRatios.add(buckets.get(0).aspectRatio.floatValue());
123 Float aspectRatio = bucket.aspectRatio;
124 if (Arrays.asList(sDesiredAspectRatios).contains(aspectRatio)
125 && !sortedDesiredAspectRatios.contains(aspectRatio)) {
126 sortedDesiredAspectRatios.add(aspectRatio);
133 Number aspectRatio = bucket.aspectRatio;
134 if (Math.abs(aspectRatio.floatValue() - targetRatio) <= RATIO_TOLERANCE)
    [all...]
SettingsUtil.java 255 float aspectRatio = size.width() / (float) size.height();
257 if (Math.abs(aspectRatio - targetAspectRatio) < 0.01) {
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/
Gradient.h 52 static PassRefPtr<Gradient> create(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio = 1)
54 return adoptRef(new Gradient(p0, r0, p1, r1, aspectRatio));
111 float aspectRatio() const { return m_aspectRatio; }
124 Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);
  /packages/apps/Camera2/src/com/android/camera/
VideoUI.java 119 float aspectRatio;
121 aspectRatio = (float) width / height;
123 aspectRatio = (float) height / width;
125 setAspectRatio(aspectRatio);
175 float aspectRatio = ratio > 1 ? ratio : 1 / ratio;
176 if (aspectRatio != mAspectRatio) {
177 mAspectRatio = aspectRatio;
PhotoModule.java 302 public AspectRatioSelector.AspectRatio getCurrentAspectRatio();
312 public void onAspectRatioSelected(AspectRatioSelector.AspectRatio newAspectRatio,
537 float aspectRatio = (float) currentSize.width() / (float) currentSize.height();
538 if (aspectRatio < 1f) {
539 aspectRatio = 1 / aspectRatio;
541 final AspectRatioSelector.AspectRatio currentAspectRatio;
542 if (Math.abs(aspectRatio - 4f / 3f) <= 0.1f) {
543 currentAspectRatio = AspectRatioSelector.AspectRatio.ASPECT_RATIO_4x3;
544 } else if (Math.abs(aspectRatio - 16f / 9f) <= 0.1f)
    [all...]
  /packages/apps/InCallUI/src/com/android/incallui/
VideoCallPresenter.java 504 float aspectRatio = 1.0f;
506 aspectRatio = (float) width / (float) height;
508 setPreviewSize(mDeviceOrientation, aspectRatio);
570 * @param aspectRatio The aspect ratio of the camera (width / height).
572 private void setPreviewSize(int orientation, float aspectRatio) {
582 width = (int) (mMinimumVideoDimension * aspectRatio);
586 height = (int) (mMinimumVideoDimension * aspectRatio);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ResizeGesture.java 160 double aspectRatio = w / (double) h;
164 if (newH == 0 || newAspectRatio > aspectRatio) {
165 deltaY = (int) (deltaX / aspectRatio);
167 deltaX = (int) (deltaY * aspectRatio);
  /developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/
TiltWatchFaceService.java 227 final float aspectRatio = (float) width / height;
230 -aspectRatio /* left */,
231 aspectRatio /* right */,
  /developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/
TiltWatchFaceService.java 227 final float aspectRatio = (float) width / height;
230 -aspectRatio /* left */,
231 aspectRatio /* right */,
  /development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
TiltWatchFaceService.java 227 final float aspectRatio = (float) width / height;
230 -aspectRatio /* left */,
231 aspectRatio /* right */,
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSGradientValue.cpp     [all...]
  /frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
WallpaperCropActivity.java 211 float aspectRatio = width / (float) height;
232 return x * aspectRatio + y;
    [all...]
  /packages/apps/Camera/src/com/android/camera/
CameraScreenNail.java 193 float aspectRatio;
195 aspectRatio = (float) getTextureWidth() / (float) getTextureHeight();
197 aspectRatio = (float) getTextureHeight() / (float) getTextureWidth();
202 (int) (mRenderHeight * aspectRatio));
204 (int)(mRenderWidth / aspectRatio));
207 (int) (mRenderHeight / aspectRatio));
209 (int) (mRenderWidth * aspectRatio));
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
WallpaperCropActivity.java 211 float aspectRatio = width / (float) height;
232 return x * aspectRatio + y;
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
Workspace.java 810 float aspectRatio = width / (float) height;
    [all...]
  /external/chromium_org/third_party/WebKit/Source/web/tests/
WebFrameTest.cpp     [all...]
  /hardware/qcom/media/mm-core/inc/
OMX_QCOMExtns.h     [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/style/
RenderStyle.h     [all...]
  /external/chromium_org/third_party/android_platform/webview/
frameworks.jar 

Completed in 460 milliseconds

1 2