Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipBoundsAlgorithmTest.java242 final Rect normalBounds = mPipBoundsAlgorithm.getNormalBounds(); in getNormalBounds_invalidAspectRatio_returnsDefaultBounds() local
244 assertEquals(defaultBounds, normalBounds); in getNormalBounds_invalidAspectRatio_returnsDefaultBounds()
255 final Rect normalBounds = mPipBoundsAlgorithm.getNormalBounds(); in getNormalBounds_validAspectRatio_returnsAdjustedDefaultBounds() local
257 assertEquals(defaultBoundsAdjustedToAspectRatio, normalBounds); in getNormalBounds_validAspectRatio_returnsAdjustedDefaultBounds()
428 final Rect normalBounds = new Rect(0, 0, 400, 711); in adjustNormalBoundsToFitMenu_alreadyFits() local
431 ((float) normalBounds.width()) / ((float) normalBounds.height())); in adjustNormalBoundsToFitMenu_alreadyFits()
434 mPipBoundsAlgorithm.adjustNormalBoundsToFitMenu(normalBounds, minMenuSize); in adjustNormalBoundsToFitMenu_alreadyFits()
436 assertEquals(normalBounds, bounds); in adjustNormalBoundsToFitMenu_alreadyFits()
441 final Rect normalBounds = new Rect(0, 0, 297, 528); in adjustNormalBoundsToFitMenu_widthTooSmall() local
444 ((float) normalBounds.width()) / ((float) normalBounds.height())); in adjustNormalBoundsToFitMenu_widthTooSmall()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsAlgorithm.java416 public Rect adjustNormalBoundsToFitMenu(@NonNull Rect normalBounds, in adjustNormalBoundsToFitMenu() argument
419 return normalBounds; in adjustNormalBoundsToFitMenu()
421 if (normalBounds.width() >= minMenuSize.getWidth() in adjustNormalBoundsToFitMenu()
422 && normalBounds.height() >= minMenuSize.getHeight()) { in adjustNormalBoundsToFitMenu()
424 return normalBounds; 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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchHandler.java383 public void onMovementBoundsChanged(Rect insetBounds, Rect normalBounds, Rect curBounds, in onMovementBoundsChanged() argument
388 mPipResizeGestureHandler.setUserResizeBounds(normalBounds); in onMovementBoundsChanged()
399 mPipBoundsAlgorithm.getMovementBounds(normalBounds, insetBounds, in onMovementBoundsChanged()
410 float aspectRatio = (float) normalBounds.width() / normalBounds.height(); in onMovementBoundsChanged()
419 updatePipSizeConstraints(normalBounds, aspectRatio); in onMovementBoundsChanged()
435 mConnection.onMovementBoundsChanged(normalBounds, mPipBoundsState.getExpandedBounds(), in onMovementBoundsChanged()
441 mMotionHelper.animateToUnexpandedState(normalBounds, mSavedSnapFraction, in onMovementBoundsChanged()
459 private void updatePipSizeConstraints(Rect normalBounds, in updatePipSizeConstraints() argument
464 mPipResizeGestureHandler.updateMinSize(normalBounds.width(), normalBounds.height()); in updatePipSizeConstraints()
723 final Rect normalBounds = mPipBoundsState.getNormalBounds(); in animateToNormalSize() local
[all …]
DPipMotionHelper.java495 void animateToUnexpandedState(Rect normalBounds, float savedSnapFraction,
503 mSnapAlgorithm.applySnapFraction(normalBounds, normalMovementBounds, savedSnapFraction,
509 movePip(normalBounds);
511 resizeAndAnimatePipUnchecked(normalBounds, SHRINK_STACK_FROM_MENU_DURATION);
DPipAccessibilityInteractionConnection.java241 void onMovementBoundsChanged(Rect normalBounds, Rect expandedBounds, Rect normalMovementBounds, in onMovementBoundsChanged() argument
243 mNormalBounds.set(normalBounds); in onMovementBoundsChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTouchHandler.java392 void onMovementBoundsChanged(Rect insetBounds, Rect normalBounds, Rect curBounds, in onMovementBoundsChanged() argument
397 mPipResizeGestureHandler.setUserResizeBounds(normalBounds); in onMovementBoundsChanged()
408 mPipBoundsAlgorithm.getMovementBounds(normalBounds, insetBounds, in onMovementBoundsChanged()
419 float aspectRatio = (float) normalBounds.width() / normalBounds.height(); in onMovementBoundsChanged()
428 updatePipSizeConstraints(normalBounds, aspectRatio); in onMovementBoundsChanged()
447 mMotionHelper.animateToUnexpandedState(normalBounds, mSavedSnapFraction, in onMovementBoundsChanged()
465 private void updatePipSizeConstraints(Rect normalBounds, in updatePipSizeConstraints() argument
470 mPipResizeGestureHandler.updateMinSize(normalBounds.width(), normalBounds.height()); in updatePipSizeConstraints()
732 final Rect normalBounds = mPipBoundsState.getNormalBounds(); in animateToNormalSize() local
733 final Rect destBounds = mPipBoundsAlgorithm.adjustNormalBoundsToFitMenu(normalBounds, in animateToNormalSize()
DPipMotionHelper.java487 void animateToUnexpandedState(Rect normalBounds, float savedSnapFraction,
495 mSnapAlgorithm.applySnapFraction(normalBounds, normalMovementBounds, savedSnapFraction,
501 movePip(normalBounds);
503 resizeAndAnimatePipUnchecked(normalBounds, SHRINK_STACK_FROM_MENU_DURATION);
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipBoundsAlgorithm.java299 final Rect normalBounds = getNormalBounds(); in getPipSize() local
300 return new Size(normalBounds.width(), normalBounds.height()); in getPipSize()