/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
H A D | PipSnapAlgorithm.java | 57 public float getSnapFraction(Rect stackBounds, Rect movementBounds, in getSnapFraction() argument 91 stackBounds.offsetTo(offset, movementBounds.top); in applySnapFraction() 95 stackBounds.offsetTo(movementBounds.right, offset); in applySnapFraction() 99 stackBounds.offsetTo(offset, movementBounds.bottom); in applySnapFraction() 103 stackBounds.offsetTo(movementBounds.left, offset); in applySnapFraction() 114 applySnapFraction(stackBounds, movementBounds, snapFraction); in applySnapFraction() 117 stackBounds.offsetTo(stashType == STASH_TYPE_LEFT in applySnapFraction() 120 stackBounds.top); in applySnapFraction() 131 int leftEdge = stackBounds.left; in snapRectToClosestEdge() 140 stackBounds.top)); in snapRectToClosestEdge() [all …]
|
H A D | PipBoundsAlgorithm.java | 257 new Size(stackBounds.width(), stackBounds.height()), aspectRatio); in transformBoundsToAspectRatio() 265 mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds), snapFraction); in transformBoundsToAspectRatio() 321 public Rect getMovementBounds(Rect stackBounds) { in getMovementBounds() argument 322 return getMovementBounds(stackBounds, true /* adjustForIme */); in getMovementBounds() 334 getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds() 349 - stackBounds.width()); in getMovementBounds() 351 - stackBounds.height()); in getMovementBounds() 359 public float getSnapFraction(Rect stackBounds) { in getSnapFraction() argument 360 return getSnapFraction(stackBounds, getMovementBounds(stackBounds)); in getSnapFraction() 367 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() argument [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PhonePipMenuController.java | 298 public void showMenuWithPossibleDelay(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuWithPossibleDelay() argument 305 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenuWithPossibleDelay() 312 public void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument 314 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenu() 318 private void showMenuInternal(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuInternal() argument 337 movePipMenu(null /* pipLeash */, null /* transaction */, stackBounds, in showMenuInternal() 339 updateMenuBounds(stackBounds); in showMenuInternal() 341 mPipMenuView.showMenu(menuState, stackBounds, allowMenuTimeout, willResizeMenu, withDelay, in showMenuInternal()
|
H A D | PipMenuView.java | 294 void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument 359 updateActionViews(menuState, stackBounds); in showMenu() 455 void setActions(Rect stackBounds, @Nullable List<RemoteAction> actions, in setActions() argument 463 updateActionViews(mMenuState, stackBounds); in setActions() 467 private void updateActionViews(int menuState, Rect stackBounds) { in updateActionViews() argument 508 final boolean isLandscapePip = stackBounds != null in updateActionViews() 509 && (stackBounds.width() > stackBounds.height()); in updateActionViews()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/ |
H A D | StackAnimationController.java | 348 final RectF stackBounds = mPositioner.getAllowableStackPositionRegion(getBubbleCount()); in flingStackThenSpringToEdge() 352 ? stackBounds.left : stackBounds.right; in flingStackThenSpringToEdge() 379 friction, stackBounds.top, stackBounds.bottom)); in flingStackThenSpringToEdge()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubbleStackView.java | 1577 final RectF stackBounds = mPositioner.getAllowableStackPositionRegion(getBubbleCount()); in performAccessibilityActionInternal() local 1592 mStackAnimationController.springStackAfterFling(stackBounds.left, stackBounds.top); in performAccessibilityActionInternal() 1595 mStackAnimationController.springStackAfterFling(stackBounds.right, stackBounds.top); in performAccessibilityActionInternal() 1598 mStackAnimationController.springStackAfterFling(stackBounds.left, stackBounds.bottom); in performAccessibilityActionInternal() 1601 mStackAnimationController.springStackAfterFling(stackBounds.right, stackBounds.bottom); in performAccessibilityActionInternal()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | ActivityRecordTests.java | 3063 final Rect stackBounds = new Rect(0, 0, 1000, 600); in testTransitionAnimationBounds() local 3067 rootTask.getWindowConfiguration().setBounds(stackBounds); in testTransitionAnimationBounds() 3100 final Rect stackBounds = new Rect(0, 0, 1000, 600); in testTransitionAnimationBounds_returnTaskFragment() local 3106 rootTask.getWindowConfiguration().setBounds(stackBounds); in testTransitionAnimationBounds_returnTaskFragment()
|