Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSnapAlgorithm.java37 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() argument
38 return getSnapFraction(stackBounds, movementBounds, STASH_TYPE_NONE); in getSnapFraction()
57 public float getSnapFraction(Rect stackBounds, Rect movementBounds, in getSnapFraction() argument
60 snapRectToClosestEdge(stackBounds, movementBounds, tmpBounds, stashType); in getSnapFraction()
88 public void applySnapFraction(Rect stackBounds, Rect movementBounds, float snapFraction) { in applySnapFraction() 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()
111 public void applySnapFraction(Rect stackBounds, Rect movementBounds, float snapFraction, in applySnapFraction() argument
[all …]
DPipBoundsAlgorithm.java222 public void transformBoundsToAspectRatio(Rect stackBounds, float aspectRatio, in transformBoundsToAspectRatio() argument
225 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
226 getMovementBounds(stackBounds), mPipBoundsState.getStashedState()); in transformBoundsToAspectRatio()
238 new Size(stackBounds.width(), stackBounds.height()), aspectRatio, minEdgeSize); in transformBoundsToAspectRatio()
252 final int left = (int) (stackBounds.centerX() - size.getWidth() / 2f); in transformBoundsToAspectRatio()
253 final int top = (int) (stackBounds.centerY() - size.getHeight() / 2f); in transformBoundsToAspectRatio()
254 stackBounds.set(left, top, left + size.getWidth(), top + size.getHeight()); in transformBoundsToAspectRatio()
255 mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds), snapFraction); in transformBoundsToAspectRatio()
332 public Rect getMovementBounds(Rect stackBounds) { in getMovementBounds() argument
333 return getMovementBounds(stackBounds, true /* adjustForIme */); in getMovementBounds()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPhonePipMenuController.java245 public void showMenuWithPossibleDelay(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuWithPossibleDelay() argument
252 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenuWithPossibleDelay()
259 public void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument
261 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenu()
265 private void showMenuInternal(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuInternal() argument
282 movePipMenu(null /* pipLeash */, null /* transaction */, stackBounds); in showMenuInternal()
283 updateMenuBounds(stackBounds); in showMenuInternal()
285 mPipMenuView.showMenu(menuState, stackBounds, allowMenuTimeout, willResizeMenu, withDelay, in showMenuInternal()
DPipMenuView.java250 void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument
314 updateActionViews(menuState, stackBounds); in showMenu()
409 void setActions(Rect stackBounds, List<RemoteAction> actions) { in setActions() argument
413 updateActionViews(mMenuState, stackBounds); in setActions()
417 private void updateActionViews(int menuState, Rect stackBounds) { in updateActionViews() argument
458 final boolean isLandscapePip = stackBounds != null in updateActionViews()
459 && (stackBounds.width() > stackBounds.height()); in updateActionViews()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DStackAnimationController.java359 final RectF stackBounds = getAllowableStackPositionRegion(); in flingStackThenSpringToEdge()
363 ? stackBounds.left : stackBounds.right; in flingStackThenSpringToEdge()
390 friction, stackBounds.top, stackBounds.bottom)); in flingStackThenSpringToEdge()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleStackView.java1379 final RectF stackBounds = mStackAnimationController.getAllowableStackPositionRegion(); in performAccessibilityActionInternal() local
1394 mStackAnimationController.springStackAfterFling(stackBounds.left, stackBounds.top); in performAccessibilityActionInternal()
1397 mStackAnimationController.springStackAfterFling(stackBounds.right, stackBounds.top); in performAccessibilityActionInternal()
1400 mStackAnimationController.springStackAfterFling(stackBounds.left, stackBounds.bottom); in performAccessibilityActionInternal()
1403 mStackAnimationController.springStackAfterFling(stackBounds.right, stackBounds.bottom); in performAccessibilityActionInternal()
/frameworks/base/services/core/java/com/android/server/wm/
DRemoteAnimationController.java95 Point position, Rect localBounds, Rect stackBounds, Rect startBounds) { in createRemoteAnimationRecord() argument
99 localBounds, stackBounds, startBounds); in createRemoteAnimationRecord()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java2690 final Rect stackBounds = new Rect(0, 0, 1000, 600); in testTransitionAnimationBounds() local
2694 rootTask.getWindowConfiguration().setBounds(stackBounds); in testTransitionAnimationBounds()