Searched refs:normalBounds (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
D | PipBoundsAlgorithmTest.java | 223 final Rect normalBounds = mPipBoundsAlgorithm.getNormalBounds(); in getNormalBounds_invalidAspectRatio_returnsDefaultBounds() local 225 assertEquals(defaultBounds, normalBounds); in getNormalBounds_invalidAspectRatio_returnsDefaultBounds() 236 final Rect normalBounds = mPipBoundsAlgorithm.getNormalBounds(); in getNormalBounds_validAspectRatio_returnsAdjustedDefaultBounds() local 238 assertEquals(defaultBoundsAdjustedToAspectRatio, normalBounds); in getNormalBounds_validAspectRatio_returnsAdjustedDefaultBounds() 407 final Rect normalBounds = new Rect(0, 0, 400, 711); in adjustNormalBoundsToFitMenu_alreadyFits() local 410 ((float) normalBounds.width()) / ((float) normalBounds.height())); in adjustNormalBoundsToFitMenu_alreadyFits() 413 mPipBoundsAlgorithm.adjustNormalBoundsToFitMenu(normalBounds, minMenuSize); in adjustNormalBoundsToFitMenu_alreadyFits() 415 assertEquals(normalBounds, bounds); in adjustNormalBoundsToFitMenu_alreadyFits() 420 final Rect normalBounds = new Rect(0, 0, 297, 528); in adjustNormalBoundsToFitMenu_widthTooSmall() local 423 ((float) normalBounds.width()) / ((float) normalBounds.height())); in adjustNormalBoundsToFitMenu_widthTooSmall() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipTouchHandler.java | 361 public void onMovementBoundsChanged(Rect insetBounds, Rect normalBounds, Rect curBounds, in onMovementBoundsChanged() argument 366 mPipResizeGestureHandler.setUserResizeBounds(normalBounds); in onMovementBoundsChanged() 377 mPipBoundsAlgorithm.getMovementBounds(normalBounds, insetBounds, in onMovementBoundsChanged() 388 float aspectRatio = (float) normalBounds.width() / normalBounds.height(); in onMovementBoundsChanged() 401 updatePinchResizeSizeConstraints(insetBounds, normalBounds, aspectRatio); in onMovementBoundsChanged() 403 mPipResizeGestureHandler.updateMinSize(normalBounds.width(), normalBounds.height()); in onMovementBoundsChanged() 461 mConnection.onMovementBoundsChanged(normalBounds, mPipBoundsState.getExpandedBounds(), in onMovementBoundsChanged() 467 mMotionHelper.animateToUnexpandedState(normalBounds, mSavedSnapFraction, in onMovementBoundsChanged() 475 private void updatePinchResizeSizeConstraints(Rect insetBounds, Rect normalBounds, in updatePinchResizeSizeConstraints() argument 485 minWidth = (int) Math.min(normalBounds.width(), shorterLength * mMinimumSizePercent); in updatePinchResizeSizeConstraints() [all …]
|
D | PipMotionHelper.java | 494 void animateToUnexpandedState(Rect normalBounds, float savedSnapFraction, 502 mSnapAlgorithm.applySnapFraction(normalBounds, normalMovementBounds, savedSnapFraction, 508 movePip(normalBounds); 510 resizeAndAnimatePipUnchecked(normalBounds, SHRINK_STACK_FROM_MENU_DURATION);
|
D | PipAccessibilityInteractionConnection.java | 239 void onMovementBoundsChanged(Rect normalBounds, Rect expandedBounds, Rect normalMovementBounds, in onMovementBoundsChanged() argument 241 mNormalBounds.set(normalBounds); in onMovementBoundsChanged()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipBoundsAlgorithm.java | 460 public Rect adjustNormalBoundsToFitMenu(@NonNull Rect normalBounds, in adjustNormalBoundsToFitMenu() argument 463 return normalBounds; in adjustNormalBoundsToFitMenu() 465 if (normalBounds.width() >= minMenuSize.getWidth() in adjustNormalBoundsToFitMenu() 466 && normalBounds.height() >= minMenuSize.getHeight()) { in adjustNormalBoundsToFitMenu() 468 return normalBounds; in adjustNormalBoundsToFitMenu() 471 final boolean needsWidthAdj = minMenuSize.getWidth() > normalBounds.width(); in adjustNormalBoundsToFitMenu() 472 final boolean needsHeightAdj = minMenuSize.getHeight() > normalBounds.height(); in adjustNormalBoundsToFitMenu() 480 ((float) (minMenuSize.getWidth())) / ((float) (normalBounds.width())); in adjustNormalBoundsToFitMenu() 482 ((float) (minMenuSize.getHeight())) / ((float) (normalBounds.height())); in adjustNormalBoundsToFitMenu()
|