/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSnapAlgorithm.java | 37 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 …]
|
D | PipBoundsAlgorithm.java | 222 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/ |
D | PhonePipMenuController.java | 245 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()
|
D | PipMenuView.java | 250 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/ |
D | StackAnimationController.java | 359 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/ |
D | BubbleStackView.java | 1379 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/ |
D | RemoteAnimationController.java | 95 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/ |
D | ActivityRecordTests.java | 2690 final Rect stackBounds = new Rect(0, 0, 1000, 600); in testTransitionAnimationBounds() local 2694 rootTask.getWindowConfiguration().setBounds(stackBounds); in testTransitionAnimationBounds()
|