Home
last modified time | relevance | path

Searched refs:scaleHeight (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java36 float scaleHeight = 1.0f; in scaleVideoAndFillView() local
42 scaleHeight = desiredScaledHeight / viewHeight; in scaleVideoAndFillView()
55 float scaleY = scaleHeight; in scaleVideoAndFillView()
57 scaleHeight = viewWidth / viewHeight * scaleX; in scaleVideoAndFillView()
63 scaleHeight = scaleHeight * -1.0f; in scaleVideoAndFillView()
74 scaleHeight, in scaleVideoAndFillView()
80 scaleHeight, in scaleVideoAndFillView()
100 float scaleHeight = 1.0f; in scaleVideoMaintainingAspectRatio() local
118 scaleHeight = (float) desiredHeight / (float) viewHeight; in scaleVideoMaintainingAspectRatio()
122 scaleHeight = (float) desiredWidth / (float) viewWidth; in scaleVideoMaintainingAspectRatio()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DFixedAspectSurfaceView.java40 private final boolean scaleHeight; field in FixedAspectSurfaceView
48 scaleHeight = a.getBoolean(R.styleable.FixedAspectSurfaceView_scaleHeight, false); in FixedAspectSurfaceView()
50 Assert.checkArgument(scaleHeight != scaleWidth, "Must either scale width or height"); in FixedAspectSurfaceView()
75 } else if (scaleHeight) { in onMeasure()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java51 int scaleHeight = (int) Math.ceil(bm.getHeight() * scale); in scaleBitmap() local
58 scaledBm = Bitmap.createScaledBitmap(scaledBm, scaleWidth * 2, scaleHeight * 2, true); in scaleBitmap()
63 .createScaledBitmap(scaledBm, scaleWidth, scaleHeight, true); in scaleBitmap()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java59 float scaleHeight = ((float) maxDimension) / actualHeight; in getSafeDrawable() local
60 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java168 float scaleHeight = ((float) vheight) / (iheight * OVERLAY_ICON_SIZE_DENOMINATOR); in updateOverlayIconBounds() local
170 if (scaleHeight >= 1f && scaleWidth >= 1f) { in updateOverlayIconBounds()
176 float scale = Math.min(scaleHeight, scaleWidth); in updateOverlayIconBounds()
/packages/apps/TV/tuner/src/com/android/tv/tuner/layout/
DScaledLayout.java210 int scaleHeight = (int) (height * (scaleEndRow - scaleStartRow)); in onMeasure() local
213 scaleHeight > mMaxHeight ? mMaxHeight : scaleHeight, in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java210 float scaleHeight = mBitmapBounds.height() / (float) mBitmap.getHeight(); in onDraw() local
211 float scale = Math.max(scaleWidth, scaleHeight); in onDraw()
/packages/apps/Settings/src/com/android/settings/
DUtils.java954 float scaleHeight = ((float) maxHeight) / actualHeight; in getSafeDrawable() local
955 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java959 float scaleHeight = ((float) maxHeight) / actualHeight; in getSafeDrawable() local
960 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()