Home
last modified time | relevance | path

Searched refs:normalBounds (Results 1 – 6 of 6) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipBoundsAlgorithmTest.java244 assertEquals(defaultBounds, normalBounds); in getNormalBounds_invalidAspectRatio_returnsDefaultBounds()
257 assertEquals(defaultBoundsAdjustedToAspectRatio, normalBounds); in getNormalBounds_validAspectRatio_returnsAdjustedDefaultBounds()
426 final Rect normalBounds = new Rect(0, 0, 400, 711); in adjustNormalBoundsToFitMenu_alreadyFits() local
429 ((float) normalBounds.width()) / ((float) normalBounds.height())); in adjustNormalBoundsToFitMenu_alreadyFits()
434 assertEquals(normalBounds, bounds); in adjustNormalBoundsToFitMenu_alreadyFits()
439 final Rect normalBounds = new Rect(0, 0, 297, 528); in adjustNormalBoundsToFitMenu_widthTooSmall() local
442 ((float) normalBounds.width()) / ((float) normalBounds.height())); in adjustNormalBoundsToFitMenu_widthTooSmall()
454 final Rect normalBounds = new Rect(0, 0, 400, 280); in adjustNormalBoundsToFitMenu_heightTooSmall() local
457 ((float) normalBounds.width()) / ((float) normalBounds.height())); in adjustNormalBoundsToFitMenu_heightTooSmall()
469 final Rect normalBounds = new Rect(0, 0, 350, 280); in adjustNormalBoundsToFitMenu_widthAndHeightTooSmall() local
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPipBoundsAlgorithm.java389 public Rect adjustNormalBoundsToFitMenu(@NonNull Rect normalBounds, in adjustNormalBoundsToFitMenu() argument
392 return normalBounds; in adjustNormalBoundsToFitMenu()
394 if (normalBounds.width() >= minMenuSize.getWidth() in adjustNormalBoundsToFitMenu()
395 && normalBounds.height() >= minMenuSize.getHeight()) { in adjustNormalBoundsToFitMenu()
397 return normalBounds; 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()
411 ((float) (minMenuSize.getHeight())) / ((float) (normalBounds.height())); in adjustNormalBoundsToFitMenu()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipTouchHandler.java380 public void onMovementBoundsChanged(Rect insetBounds, Rect normalBounds, Rect curBounds, in onMovementBoundsChanged() argument
385 mPipResizeGestureHandler.setUserResizeBounds(normalBounds); in onMovementBoundsChanged()
396 mPipBoundsAlgorithm.getMovementBounds(normalBounds, insetBounds, in onMovementBoundsChanged()
407 float aspectRatio = (float) normalBounds.width() / normalBounds.height(); in onMovementBoundsChanged()
416 updatePipSizeConstraints(normalBounds, aspectRatio); in onMovementBoundsChanged()
432 mConnection.onMovementBoundsChanged(normalBounds, mPipBoundsState.getExpandedBounds(), in onMovementBoundsChanged()
438 mMotionHelper.animateToUnexpandedState(normalBounds, mSavedSnapFraction, in onMovementBoundsChanged()
456 private void updatePipSizeConstraints(Rect normalBounds, in updatePipSizeConstraints() argument
461 mPipResizeGestureHandler.updateMinSize(normalBounds.width(), normalBounds.height()); in updatePipSizeConstraints()
718 final Rect normalBounds = mPipBoundsState.getNormalBounds(); in animateToNormalSize() local
[all …]
H A DPipMotionHelper.java478 void animateToUnexpandedState(Rect normalBounds, float savedSnapFraction,
486 mSnapAlgorithm.applySnapFraction(normalBounds, normalMovementBounds, savedSnapFraction,
492 movePip(normalBounds);
494 resizeAndAnimatePipUnchecked(normalBounds, SHRINK_STACK_FROM_MENU_DURATION);
H A DPipAccessibilityInteractionConnection.java241 void onMovementBoundsChanged(Rect normalBounds, Rect expandedBounds, Rect normalMovementBounds, in onMovementBoundsChanged() argument
243 mNormalBounds.set(normalBounds); in onMovementBoundsChanged()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
H A DTvPipBoundsAlgorithm.java269 final Rect normalBounds = getNormalBounds(); in getPipSize() local
270 return new Size(normalBounds.width(), normalBounds.height()); in getPipSize()