Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/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.java274 public void transformBoundsToAspectRatio(Rect stackBounds, float aspectRatio, in transformBoundsToAspectRatio() argument
277 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
278 getMovementBounds(stackBounds), mPipBoundsState.getStashedState()); in transformBoundsToAspectRatio()
284 new Size(stackBounds.width(), stackBounds.height()), aspectRatio); in transformBoundsToAspectRatio()
289 final int left = (int) (stackBounds.centerX() - size.getWidth() / 2f); in transformBoundsToAspectRatio()
290 final int top = (int) (stackBounds.centerY() - size.getHeight() / 2f); in transformBoundsToAspectRatio()
291 stackBounds.set(left, top, left + size.getWidth(), top + size.getHeight()); in transformBoundsToAspectRatio()
292 mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds), snapFraction); in transformBoundsToAspectRatio()
348 public Rect getMovementBounds(Rect stackBounds) { in getMovementBounds() argument
349 return getMovementBounds(stackBounds, true /* adjustForIme */); in getMovementBounds()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/domain/interactor/
DNotificationStackAppearanceInteractorTest.kt43 fun stackBounds() = in stackBounds() method in com.android.systemui.statusbar.notification.stack.domain.interactor.NotificationStackAppearanceInteractorTest
45 val stackBounds by collectLastValue(underTest.shadeScrimBounds) in stackBounds() constant
53 assertThat(stackBounds).isEqualTo(bounds1) in stackBounds()
61 assertThat(stackBounds).isEqualTo(bounds2) in stackBounds()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPhonePipMenuController.java268 public void showMenuWithPossibleDelay(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuWithPossibleDelay() argument
275 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenuWithPossibleDelay()
282 public void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument
284 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenu()
288 private void showMenuInternal(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuInternal() argument
307 movePipMenu(null /* pipLeash */, null /* transaction */, stackBounds, in showMenuInternal()
309 updateMenuBounds(stackBounds); in showMenuInternal()
311 mPipMenuView.showMenu(menuState, stackBounds, allowMenuTimeout, willResizeMenu, withDelay, in showMenuInternal()
DPipMenuView.java262 void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument
319 updateActionViews(menuState, stackBounds); in showMenu()
411 void setActions(Rect stackBounds, @Nullable List<RemoteAction> actions, in setActions() argument
419 updateActionViews(mMenuState, stackBounds); in setActions()
423 private void updateActionViews(int menuState, Rect stackBounds) { in updateActionViews() argument
464 final boolean isLandscapePip = stackBounds != null in updateActionViews()
465 && (stackBounds.width() > stackBounds.height()); in updateActionViews()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPhonePipMenuController.java266 public void showMenuWithPossibleDelay(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuWithPossibleDelay() argument
273 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenuWithPossibleDelay()
280 public void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument
282 showMenuInternal(menuState, stackBounds, allowMenuTimeout, willResizeMenu, in showMenu()
286 private void showMenuInternal(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenuInternal() argument
305 movePipMenu(null /* pipLeash */, null /* transaction */, stackBounds, in showMenuInternal()
307 updateMenuBounds(stackBounds); in showMenuInternal()
309 mPipMenuView.showMenu(menuState, stackBounds, allowMenuTimeout, willResizeMenu, withDelay, in showMenuInternal()
DPipMenuView.java260 void showMenu(int menuState, Rect stackBounds, boolean allowMenuTimeout, in showMenu() argument
317 updateActionViews(menuState, stackBounds); in showMenu()
409 void setActions(Rect stackBounds, @Nullable List<RemoteAction> actions, in setActions() argument
417 updateActionViews(mMenuState, stackBounds); in setActions()
421 private void updateActionViews(int menuState, Rect stackBounds) { in updateActionViews() argument
462 final boolean isLandscapePip = stackBounds != null in updateActionViews()
463 && (stackBounds.width() > stackBounds.height()); in updateActionViews()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/
DNotificationsPlaceholderViewModelTest.kt43 val stackBounds by in onBoundsChanged() constant
45 assertThat(stackBounds).isEqualTo(bounds) in onBoundsChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DStackAnimationController.java349 final RectF stackBounds = mPositioner.getAllowableStackPositionRegion(getBubbleCount()); in flingStackThenSpringToEdge()
353 ? stackBounds.left : stackBounds.right; in flingStackThenSpringToEdge()
380 friction, stackBounds.top, stackBounds.bottom)); in flingStackThenSpringToEdge()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleStackView.java1765 final RectF stackBounds = mPositioner.getAllowableStackPositionRegion(getBubbleCount()); in performAccessibilityActionInternal() local
1780 mStackAnimationController.springStackAfterFling(stackBounds.left, stackBounds.top); in performAccessibilityActionInternal()
1783 mStackAnimationController.springStackAfterFling(stackBounds.right, stackBounds.top); in performAccessibilityActionInternal()
1786 mStackAnimationController.springStackAfterFling(stackBounds.left, stackBounds.bottom); in performAccessibilityActionInternal()
1789 mStackAnimationController.springStackAfterFling(stackBounds.right, stackBounds.bottom); in performAccessibilityActionInternal()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java3016 final Rect stackBounds = new Rect(0, 0, 1000, 600); in testTransitionAnimationBounds() local
3020 rootTask.getWindowConfiguration().setBounds(stackBounds); in testTransitionAnimationBounds()
3053 final Rect stackBounds = new Rect(0, 0, 1000, 600); in testTransitionAnimationBounds_returnTaskFragment() local
3059 rootTask.getWindowConfiguration().setBounds(stackBounds); in testTransitionAnimationBounds_returnTaskFragment()