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/Launcher3/quickstep/src/com/android/quickstep/views/
DDesktopTaskView.kt108 val scaleWidth = containerWidth / windowWidth.toFloat() in <lambda>() constant
114 "window=[$windowWidth,$windowHeight] scale=[$scaleWidth,$scaleHeight]" in <lambda>()
129 val thumbWidth = (taskSize.width() * scaleWidth).toInt() in <lambda>()
138 val taskX = (positionInParent.x * scaleWidth).toInt() in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java54 float scaleWidth = ((float) maxDimension) / actualWidth; in getSafeDrawable() local
56 float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/transition/
DChangeScaleAndPosition.kt66 val scaleWidth = in createAnimator() constant
77 PropertyValuesHolder.ofFloat("scaleX", scaleWidth, 1f), in createAnimator()
/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.java1105 final float scaleWidth = ((float) maxWidth) / actualWidth; in getSafeDrawable() local
1107 final float scale = Math.min(scaleWidth, scaleHeight); in getSafeDrawable()