Home
last modified time | relevance | path

Searched refs:getAspectRatio (Results 1 – 20 of 20) sorted by relevance

/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/extensions/
DSizeExt.kt30 fun Size.getAspectRatio(): Float { in getAspectRatio() method
46 fun SizeF.getAspectRatio(): Float { in getAspectRatio() method
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsAlgorithm.java107 mPipBoundsState.getAspectRatio(), false /* useCurrentMinEdgeSize */, in getNormalBounds()
143 mPipBoundsState.getAspectRatio(), false /* useCurrentMinEdgeSize */, in getEntryDestinationBoundsIgnoringKeepClearAreas()
441 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
444 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
449 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
453 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
458 mPipBoundsState.getAspectRatio(), true /* useCurrentMinEdgeSize */, in adjustNormalBoundsToFitMenu()
DPipBoundsState.java310 public float getAspectRatio() { in getAspectRatio() method in PipBoundsState
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/utils/
DGraphicsUtils.kt96 fun getAspectRatio(size: SizeF): Float { in <lambda>() method
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipBoundsAlgorithmTest.java450 assertEquals(minMenuSize.getWidth() / mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_widthTooSmall()
465 assertEquals(minMenuSize.getHeight() * mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_heightTooSmall()
480 assertEquals(minMenuSize.getWidth() / mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_widthAndHeightTooSmall()
DPipTaskOrganizerTest.java146 assertEquals(aspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in startSwipePipToHome_updatesAspectRatio()
173 assertEquals(aspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskAppeared_updatesAspectRatio()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java79 assertThat(batteryDrawable.getAspectRatio()).isWithin(TOLERANCE).of(0.35f); in testBatteryMeterDrawable_configCorrect()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java124 protected float getAspectRatio() { in getAspectRatio() method in BluetoothDeviceLayerDrawable.BatteryMeterDrawable
DBatteryMeterDrawableBase.java321 final int width = (int) (getAspectRatio() * mHeight); in draw()
501 protected float getAspectRatio() { in getAspectRatio() method in BatteryMeterDrawableBase
/frameworks/base/core/java/android/app/
DPictureInPictureParams.java463 public Rational getAspectRatio() { in getAspectRatio() method in PictureInPictureParams
757 + " aspectRatio=" + getAspectRatio() in toString()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/snow/
DSnowEffect.kt141 GraphicsUtils.getAspectRatio(surfaceSize) in <lambda>()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/
DFogEffect.kt133 GraphicsUtils.getAspectRatio(surfaceSize) in adjustCropping()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/
DRainEffect.kt148 val screenAspectRatio = GraphicsUtils.getAspectRatio(surfaceSize) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipController.java610 mPipBoundsState.getAspectRatio()); in onInit()
1152 mTouchHandler.updateMinMaxSize(mPipBoundsState.getAspectRatio()); in onDisplayRotationChanged()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityClientController.java1069 && !r.pictureInPictureArgs.getAspectRatio().equals( in ensureValidPictureInPictureActivityParams()
1070 params.getAspectRatio()) in ensureValidPictureInPictureActivityParams()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipTransition.java1114 mPipBoundsState.updateMinMaxSize(mPipBoundsState.getAspectRatio()); in computeEnterPipRotatedBounds()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowOrganizerTests.java1253 final Rational ratio = o.mChangedInfo.pictureInPictureParams.getAspectRatio(); in testChangePipParams()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt7205 method @Nullable public android.util.Rational getAspectRatio();
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt8206 Landroid/app/PictureInPictureArgs;->getAspectRatio()F