/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipBoundsAlgorithm.java | 122 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 D | PipBoundsState.java | 232 public float getAspectRatio() { in getAspectRatio() method in PipBoundsState
|
H A D | PipTaskOrganizer.java | 769 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 D | PipTaskOrganizerTest.java | 127 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 D | PipBoundsAlgorithmTest.java | 429 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 D | ResolutionUtil.java | 348 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 D | BluetoothDeviceLayerDrawableTest.java | 79 assertThat(batteryDrawable.getAspectRatio()).isWithin(TOLERANCE).of(0.35f); in testBatteryMeterDrawable_configCorrect()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | BluetoothDeviceLayerDrawable.java | 123 protected float getAspectRatio() { in getAspectRatio() method in BluetoothDeviceLayerDrawable.BatteryMeterDrawable
|
H A D | BatteryMeterDrawableBase.java | 320 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 D | ImageResolver.java | 80 Point adjusted = getAdjustedSize(img.getAspectRatio(), width, height); in getBitmap()
|
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
H A D | ImageResolver.java | 95 Point adjusted = getAdjustedSize(img.getAspectRatio(), width, height); in getBitmap()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | PictureInPictureParams.java | 265 public float getAspectRatio() { in getAspectRatio() method in PictureInPictureParams
|
/aosp12/packages/apps/Gallery2/src/com/android/photos/drawables/ |
H A D | AutoThumbnailDrawable.java | 189 public float getAspectRatio() { in getAspectRatio() method in AutoThumbnailDrawable
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | PinnedTaskController.java | 376 float getAspectRatio() { in getAspectRatio() method in PinnedTaskController
|
H A D | ActivityClientController.java | 748 r.pictureInPictureArgs.getAspectRatio()); in setPictureInPictureParams() 795 r.mDisplayContent, params.getAspectRatio())) { in ensureValidPictureInPictureActivityParams()
|
H A D | Task.java | 6116 if (Float.compare(aspectRatio, pinnedTaskController.getAspectRatio()) == 0) {
|
H A D | ActivityTaskManagerService.java | 3443 final float aspectRatio = r.pictureInPictureArgs.getAspectRatio(); in enterPictureInPictureMode()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipResizeGestureHandler.java | 496 mPipBoundsState.getAspectRatio(), false /* useCurrentMinEdgeSize */, in onDragCornerResize()
|
/aosp12/frameworks/base/core/api/ |
H A D | test-current.txt | 326 method public float getAspectRatio();
|
/aosp12/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 8206 Landroid/app/PictureInPictureArgs;->getAspectRatio()F
|
/aosp12/frameworks/base/services/ |
H A D | art-profile | 47159 HPLcom/android/server/wm/PinnedTaskController;->getAspectRatio()F
|