Searched refs:minMenuSize (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipBoundsAlgorithm.java | 417 @Nullable Size minMenuSize) { in adjustNormalBoundsToFitMenu() argument 418 if (minMenuSize == null) { in adjustNormalBoundsToFitMenu() 421 if (normalBounds.width() >= minMenuSize.getWidth() in adjustNormalBoundsToFitMenu() 422 && normalBounds.height() >= minMenuSize.getHeight()) { in adjustNormalBoundsToFitMenu() 427 final boolean needsWidthAdj = minMenuSize.getWidth() > normalBounds.width(); in adjustNormalBoundsToFitMenu() 428 final boolean needsHeightAdj = minMenuSize.getHeight() > normalBounds.height(); in adjustNormalBoundsToFitMenu() 436 ((float) (minMenuSize.getWidth())) / ((float) (normalBounds.width())); in adjustNormalBoundsToFitMenu() 438 ((float) (minMenuSize.getHeight())) / ((float) (normalBounds.height())); in adjustNormalBoundsToFitMenu() 440 adjWidth = minMenuSize.getWidth(); in adjustNormalBoundsToFitMenu() 443 adjHeight = minMenuSize.getHeight(); in adjustNormalBoundsToFitMenu() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
D | PipBoundsAlgorithmTest.java | 429 final Size minMenuSize = new Size(396, 292); in adjustNormalBoundsToFitMenu_alreadyFits() local 434 mPipBoundsAlgorithm.adjustNormalBoundsToFitMenu(normalBounds, minMenuSize); in adjustNormalBoundsToFitMenu_alreadyFits() 442 final Size minMenuSize = new Size(396, 292); in adjustNormalBoundsToFitMenu_widthTooSmall() local 447 mPipBoundsAlgorithm.adjustNormalBoundsToFitMenu(normalBounds, minMenuSize); in adjustNormalBoundsToFitMenu_widthTooSmall() 449 assertEquals(minMenuSize.getWidth(), bounds.width()); in adjustNormalBoundsToFitMenu_widthTooSmall() 450 assertEquals(minMenuSize.getWidth() / mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_widthTooSmall() 457 final Size minMenuSize = new Size(396, 292); in adjustNormalBoundsToFitMenu_heightTooSmall() local 462 mPipBoundsAlgorithm.adjustNormalBoundsToFitMenu(normalBounds, minMenuSize); in adjustNormalBoundsToFitMenu_heightTooSmall() 464 assertEquals(minMenuSize.getHeight(), bounds.height()); in adjustNormalBoundsToFitMenu_heightTooSmall() 465 assertEquals(minMenuSize.getHeight() * mPipBoundsState.getAspectRatio(), in adjustNormalBoundsToFitMenu_heightTooSmall() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipTouchHandler.java | 722 final Size minMenuSize = mMenuController.getEstimatedMinMenuSize(); in animateToNormalSize() local 725 minMenuSize); in animateToNormalSize()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipTouchHandler.java | 731 final Size minMenuSize = mMenuController.getEstimatedMinMenuSize(); in animateToNormalSize() local 734 minMenuSize); in animateToNormalSize()
|