Home
last modified time | relevance | path

Searched refs:minMenuSize (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPipBoundsAlgorithm.java390 @Nullable Size minMenuSize) { in adjustNormalBoundsToFitMenu() argument
391 if (minMenuSize == null) { in adjustNormalBoundsToFitMenu()
394 if (normalBounds.width() >= minMenuSize.getWidth() in adjustNormalBoundsToFitMenu()
395 && normalBounds.height() >= minMenuSize.getHeight()) { in adjustNormalBoundsToFitMenu()
400 final boolean needsWidthAdj = minMenuSize.getWidth() > normalBounds.width(); in adjustNormalBoundsToFitMenu()
401 final boolean needsHeightAdj = minMenuSize.getHeight() > normalBounds.height(); in adjustNormalBoundsToFitMenu()
409 ((float) (minMenuSize.getWidth())) / ((float) (normalBounds.width())); in adjustNormalBoundsToFitMenu()
413 adjWidth = minMenuSize.getWidth(); in adjustNormalBoundsToFitMenu()
416 adjHeight = minMenuSize.getHeight(); in adjustNormalBoundsToFitMenu()
421 adjWidth = minMenuSize.getWidth(); in adjustNormalBoundsToFitMenu()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipBoundsAlgorithmTest.java427 final Size minMenuSize = new Size(396, 292); in adjustNormalBoundsToFitMenu_alreadyFits() local
432 mPipBoundsAlgorithm.adjustNormalBoundsToFitMenu(normalBounds, minMenuSize); in adjustNormalBoundsToFitMenu_alreadyFits()
440 final Size minMenuSize = new Size(396, 292); in adjustNormalBoundsToFitMenu_widthTooSmall() local
447 assertEquals(minMenuSize.getWidth(), bounds.width()); in adjustNormalBoundsToFitMenu_widthTooSmall()
448 assertEquals(minMenuSize.getWidth() / mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_widthTooSmall()
455 final Size minMenuSize = new Size(396, 292); in adjustNormalBoundsToFitMenu_heightTooSmall() local
462 assertEquals(minMenuSize.getHeight(), bounds.height()); in adjustNormalBoundsToFitMenu_heightTooSmall()
463 assertEquals(minMenuSize.getHeight() * mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_heightTooSmall()
470 final Size minMenuSize = new Size(396, 292); in adjustNormalBoundsToFitMenu_widthAndHeightTooSmall() local
477 assertEquals(minMenuSize.getWidth(), bounds.width()); in adjustNormalBoundsToFitMenu_widthAndHeightTooSmall()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipTouchHandler.java717 final Size minMenuSize = mMenuController.getEstimatedMinMenuSize(); in animateToNormalSize() local
720 minMenuSize); in animateToNormalSize()