Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java35 float scaleWidth = 1.0f; in scaleVideoAndFillView() local
47 scaleWidth = desiredScaledWidth / viewWidth; in scaleVideoAndFillView()
54 float scaleX = scaleWidth; in scaleVideoAndFillView()
56 scaleWidth = viewHeight / viewWidth * scaleY; in scaleVideoAndFillView()
60 scaleWidth = scaleWidth * -1.0f; in scaleVideoAndFillView()
73 scaleWidth, in scaleVideoAndFillView()
79 scaleWidth, in scaleVideoAndFillView()
99 float scaleWidth = 1.0f; in scaleVideoMaintainingAspectRatio() local
107 scaleWidth = (float) desiredHeight / (float) viewHeight; in scaleVideoMaintainingAspectRatio()
111 scaleWidth = (float) desiredWidth / (float) viewWidth; in scaleVideoMaintainingAspectRatio()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DFixedAspectSurfaceView.java39 private final boolean scaleWidth; field in FixedAspectSurfaceView
49 scaleWidth = a.getBoolean(R.styleable.FixedAspectSurfaceView_scaleWidth, false); in FixedAspectSurfaceView()
50 Assert.checkArgument(scaleHeight != scaleWidth, "Must either scale width or height"); in FixedAspectSurfaceView()
73 if (scaleWidth) { in onMeasure()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java64 int scaleWidth = (int) Math.ceil(bm.getWidth() * scale); in scaleBitmap() local
72 scaledBm = Bitmap.createScaledBitmap(scaledBm, scaleWidth * 2, scaleHeight * 2, true); in scaleBitmap()
77 .createScaledBitmap(scaledBm, scaleWidth, scaleHeight, true); in scaleBitmap()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java58 float scaleWidth = ((float) maxDimension) / actualWidth; in getSafeDrawable() local
60 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java169 float scaleWidth = ((float) vwidth) / (iwidth * 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.java186 int scaleWidth = (int) (width * (scaleEndCol - scaleStartCol)); in onMeasure() local
189 scaleWidth > mMaxWidth ? mMaxWidth : scaleWidth, MeasureSpec.EXACTLY); in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java209 float scaleWidth = mBitmapBounds.width() / (float) mBitmap.getWidth(); in onDraw() local
211 float scale = Math.max(scaleWidth, scaleHeight); in onDraw()
/packages/apps/Settings/src/com/android/settings/
DUtils.java953 float scaleWidth = ((float) maxWidth) / actualWidth; in getSafeDrawable() local
955 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java958 float scaleWidth = ((float) maxWidth) / actualWidth; in getSafeDrawable() local
960 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()