Home
last modified time | relevance | path

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

/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipBoundsAlgorithm.java122 mPipBoundsState.getAspectRatio(), false /* useCurrentMinEdgeSize */, in getNormalBounds()
141 mPipBoundsState.getAspectRatio(), false /* useCurrentMinEdgeSize */, in getEntryDestinationBounds()
196 ? params.getAspectRatio() in getAspectRatioOrDefault()
485 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
488 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
493 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
497 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
502 mPipBoundsState.getAspectRatio(), true /* useCurrentMinEdgeSize */, in adjustNormalBoundsToFitMenu()
H A DPipBoundsState.java232 public float getAspectRatio() { in getAspectRatio() method in PipBoundsState
H A DPipTaskOrganizer.java769 mPipBoundsState.getBounds(), mPipBoundsState.getAspectRatio()); in onTaskInfoChanged()
971 mPipBoundsState.setAspectRatio(params.getAspectRatio()); in applyPictureInPictureParams()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipTaskOrganizerTest.java127 assertEquals(aspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in startSwipePipToHome_updatesAspectRatio()
154 assertEquals(aspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskAppeared_updatesAspectRatio()
186 assertEquals(startAspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio()
190 assertEquals(newAspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio()
204 assertEquals(newAspectRatio.floatValue(), mPipBoundsState.getAspectRatio(), 0.01f); in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged()
H A DPipBoundsAlgorithmTest.java429 assertEquals(minMenuSize.getWidth() / mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_widthTooSmall()
444 assertEquals(minMenuSize.getHeight() * mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_heightTooSmall()
459 assertEquals(minMenuSize.getWidth() / mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_widthAndHeightTooSmall()
/aosp12/packages/apps/Camera2/src/com/android/camera/settings/
H A DResolutionUtil.java348 public static Rational getAspectRatio(Size size) { in getAspectRatio() method in ResolutionUtil
395 Rational aspectRatio = getAspectRatio(size); in getLargestPictureSize()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawableTest.java79 assertThat(batteryDrawable.getAspectRatio()).isWithin(TOLERANCE).of(0.35f); in testBatteryMeterDrawable_configCorrect()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawable.java123 protected float getAspectRatio() { in getAspectRatio() method in BluetoothDeviceLayerDrawable.BatteryMeterDrawable
H A DBatteryMeterDrawableBase.java320 final int width = (int) (getAspectRatio() * mHeight); in draw()
500 protected float getAspectRatio() { in getAspectRatio() method in BatteryMeterDrawableBase
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
H A DImageResolver.java80 Point adjusted = getAdjustedSize(img.getAspectRatio(), width, height); in getBitmap()
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
H A DImageResolver.java95 Point adjusted = getAdjustedSize(img.getAspectRatio(), width, height); in getBitmap()
/aosp12/frameworks/base/core/java/android/app/
H A DPictureInPictureParams.java265 public float getAspectRatio() { in getAspectRatio() method in PictureInPictureParams
/aosp12/packages/apps/Gallery2/src/com/android/photos/drawables/
H A DAutoThumbnailDrawable.java189 public float getAspectRatio() { in getAspectRatio() method in AutoThumbnailDrawable
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DPinnedTaskController.java376 float getAspectRatio() { in getAspectRatio() method in PinnedTaskController
H A DActivityClientController.java748 r.pictureInPictureArgs.getAspectRatio()); in setPictureInPictureParams()
795 r.mDisplayContent, params.getAspectRatio())) { in ensureValidPictureInPictureActivityParams()
H A DTask.java6116 if (Float.compare(aspectRatio, pinnedTaskController.getAspectRatio()) == 0) {
H A DActivityTaskManagerService.java3443 final float aspectRatio = r.pictureInPictureArgs.getAspectRatio(); in enterPictureInPictureMode()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipResizeGestureHandler.java496 mPipBoundsState.getAspectRatio(), false /* useCurrentMinEdgeSize */, in onDragCornerResize()
/aosp12/frameworks/base/core/api/
H A Dtest-current.txt326 method public float getAspectRatio();
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt8206 Landroid/app/PictureInPictureArgs;->getAspectRatio()F
/aosp12/frameworks/base/services/
H A Dart-profile47159 HPLcom/android/server/wm/PinnedTaskController;->getAspectRatio()F