Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java108 public Rect findClosestSnapBounds(Rect movementBounds, Rect stackBounds, float velocityX, in findClosestSnapBounds() argument
110 final Rect intersectStackBounds = new Rect(stackBounds); in findClosestSnapBounds()
111 final Point intersect = getEdgeIntersect(stackBounds, movementBounds, velocityX, velocityY, in findClosestSnapBounds()
122 public Point getEdgeIntersect(Rect stackBounds, Rect movementBounds, float velX, float velY, in getEdgeIntersect() argument
125 final int x = stackBounds.left; in getEdgeIntersect()
126 final int y = stackBounds.top; in getEdgeIntersect()
152 ? movementBounds.right - stackBounds.left in getEdgeIntersect()
153 : stackBounds.left - movementBounds.left; in getEdgeIntersect()
156 ? movementBounds.bottom - stackBounds.top in getEdgeIntersect()
157 : stackBounds.top - movementBounds.top; in getEdgeIntersect()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedStackController.java244 Rect transformBoundsToAspectRatio(Rect stackBounds, float aspectRatio, in transformBoundsToAspectRatio() argument
247 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
248 getMovementBounds(stackBounds)); in transformBoundsToAspectRatio()
253 final int left = (int) (stackBounds.centerX() - size.getWidth() / 2f); in transformBoundsToAspectRatio()
254 final int top = (int) (stackBounds.centerY() - size.getHeight() / 2f); in transformBoundsToAspectRatio()
255 stackBounds.set(left, top, left + size.getWidth(), top + size.getHeight()); in transformBoundsToAspectRatio()
256 mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds), snapFraction); in transformBoundsToAspectRatio()
258 applyMinimizedOffset(stackBounds, getMovementBounds(stackBounds)); in transformBoundsToAspectRatio()
260 return stackBounds; in transformBoundsToAspectRatio()
266 void saveReentrySnapFraction(final AppWindowToken token, final Rect stackBounds) { in saveReentrySnapFraction() argument
[all …]
DWindowAnimationSpec.java62 public WindowAnimationSpec(Animation animation, Point position, Rect stackBounds, in WindowAnimationSpec() argument
73 if (stackBounds != null) { in WindowAnimationSpec()
74 mStackBounds.set(stackBounds); in WindowAnimationSpec()
DTaskStack.java238 final Rect stackBounds = getBounds(); in updateAnimationBackgroundBounds() local
241 .setPosition(mAnimationBackgroundSurface, mTmpRect.left - stackBounds.left, in updateAnimationBackgroundBounds()
242 mTmpRect.top - stackBounds.top); in updateAnimationBackgroundBounds()
794 final Rect stackBounds = getDisplayedBounds(); in updateSurfaceSize() local
795 int width = stackBounds.width(); in updateSurfaceSize()
796 int height = stackBounds.height(); in updateSurfaceSize()
1560 public boolean setPinnedStackSize(Rect stackBounds, Rect tempTaskBounds) { in setPinnedStackSize() argument
1569 mWmService.mActivityTaskManager.resizePinnedStack(stackBounds, tempTaskBounds); in setPinnedStackSize()
1669 Rect getPictureInPictureBounds(float aspectRatio, Rect stackBounds) { in getPictureInPictureBounds() argument
1685 if (stackBounds == null) { in getPictureInPictureBounds()
[all …]
DBoundsAnimationTarget.java55 boolean setPinnedStackSize(Rect stackBounds, Rect taskBounds); in setPinnedStackSize() argument
DRemoteAnimationController.java86 Point position, Rect stackBounds, Rect startBounds) { in createRemoteAnimationRecord() argument
90 new RemoteAnimationRecord(appWindowToken, position, stackBounds, startBounds); in createRemoteAnimationRecord()
381 Rect stackBounds) { in RemoteAnimationAdapterWrapper() argument
384 mStackBounds.set(stackBounds); in RemoteAnimationAdapterWrapper()
DTaskPositioner.java636 private void updateWindowDragBounds(int x, int y, Rect stackBounds) { in updateWindowDragBounds() argument
641 final int maxLeft = stackBounds.right - mMinVisibleWidth; in updateWindowDragBounds()
642 final int minLeft = stackBounds.left + mMinVisibleWidth - mWindowOriginalBounds.width(); in updateWindowDragBounds()
646 final int minTop = stackBounds.top; in updateWindowDragBounds()
647 final int maxTop = stackBounds.bottom - mMinVisibleHeight; in updateWindowDragBounds()
DTaskRecord.java1940 private static void fitWithinBounds(Rect bounds, Rect stackBounds, int overlapPxX, in fitWithinBounds() argument
1942 if (stackBounds == null || stackBounds.isEmpty() || stackBounds.contains(bounds)) { in fitWithinBounds()
1951 if (bounds.right < (stackBounds.left + overlapLR)) { in fitWithinBounds()
1952 horizontalDiff = overlapLR - (bounds.right - stackBounds.left); in fitWithinBounds()
1953 } else if (bounds.left > (stackBounds.right - overlapLR)) { in fitWithinBounds()
1954 horizontalDiff = -(overlapLR - (stackBounds.right - bounds.left)); in fitWithinBounds()
1958 if (bounds.bottom < (stackBounds.top + overlapTB)) { in fitWithinBounds()
1959 verticalDiff = overlapTB - (bounds.bottom - stackBounds.top); in fitWithinBounds()
1960 } else if (bounds.top > (stackBounds.bottom - overlapTB)) { in fitWithinBounds()
1961 verticalDiff = -(overlapTB - (stackBounds.bottom - bounds.top)); in fitWithinBounds()
DAppWindowToken.java1707 final Rect stackBounds; in onConfigurationChanged() local
1711 stackBounds = pinnedStack.mPreAnimationBounds; in onConfigurationChanged()
1716 stackBounds = mTmpRect; in onConfigurationChanged()
1717 pinnedStack.getBounds(stackBounds); in onConfigurationChanged()
1720 stackBounds); in onConfigurationChanged()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackTests.java187 final Rect stackBounds = new Rect(200, 200, 800, 1000); in testStackOutset() local
189 stack.setBounds(stackBounds); in testStackOutset()
191 assertEquals(stackBounds.width() + 2 * stackOutset, stack.getLastSurfaceSize().x); in testStackOutset()
192 assertEquals(stackBounds.height() + 2 * stackOutset, stack.getLastSurfaceSize().y); in testStackOutset()
193 assertEquals(stackBounds.left - stackOutset, stack.getLastSurfacePosition().x); in testStackOutset()
194 assertEquals(stackBounds.top - stackOutset, stack.getLastSurfacePosition().y); in testStackOutset()
DBoundsAnimationControllerTests.java170 public boolean setPinnedStackSize(Rect stackBounds, Rect taskBounds) { in setPinnedStackSize() argument
178 mStackBounds = stackBounds; in setPinnedStackSize()
620 private static boolean assertEqualSizeAtOffset(Rect stackBounds, Rect taskBounds) { in assertEqualSizeAtOffset() argument
622 sTmpRect.offsetTo(stackBounds.left, stackBounds.top); in assertEqualSizeAtOffset()
623 return stackBounds.equals(sTmpRect); in assertEqualSizeAtOffset()
DAppWindowTokenTests.java488 final Rect stackBounds = new Rect(0, 0, 1000, 600); in testTransitionAnimationBounds() local
490 mStack.setBounds(stackBounds); in testTransitionAnimationBounds()
504 assertEquals(stackBounds, mToken.getAnimationBounds(STACK_CLIP_BEFORE_ANIM)); in testTransitionAnimationBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMenuActivityController.java270 public void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument
281 data.putParcelable(EXTRA_STACK_BOUNDS, stackBounds); in showMenu()
296 startMenuActivity(menuState, stackBounds, movementBounds, allowMenuTimeout, in showMenu()
399 private void startMenuActivity(int menuState, Rect stackBounds, Rect movementBounds, in startMenuActivity() argument
409 if (stackBounds != null) { in startMenuActivity()
410 intent.putExtra(EXTRA_STACK_BOUNDS, stackBounds); in startMenuActivity()
439 Rect stackBounds = null; in updateMenuActions() local
444 stackBounds = pinnedStackInfo.bounds; in updateMenuActions()
451 data.putParcelable(EXTRA_STACK_BOUNDS, stackBounds); in updateMenuActions()
DPipMenuActivity.java299 private void showMenu(int menuState, Rect stackBounds, Rect movementBounds, in showMenu() argument
309 updateActionViews(stackBounds); in showMenu()
411 Rect stackBounds = intent.getParcelableExtra(EXTRA_STACK_BOUNDS); in updateFromIntent() local
415 showMenu(menuState, stackBounds, movementBounds, allowMenuTimeout, willResizeMenu); in updateFromIntent()
419 private void setActions(Rect stackBounds, List<RemoteAction> actions) { in setActions() argument
422 updateActionViews(stackBounds); in setActions()
425 private void updateActionViews(Rect stackBounds) { in updateActionViews() argument
454 final boolean isLandscapePip = stackBounds != null && in updateActionViews()
455 (stackBounds.width() > stackBounds.height()); in updateActionViews()
DPipMotionHelper.java203 Rect getClosestMinimizedBounds(Rect stackBounds, Rect movementBounds) { in getClosestMinimizedBounds() argument
206 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleStackView.java591 final RectF stackBounds = mStackAnimationController.getAllowableStackPositionRegion(); in performAccessibilityActionInternal() local
604 mStackAnimationController.springStack(stackBounds.left, stackBounds.top); in performAccessibilityActionInternal()
607 mStackAnimationController.springStack(stackBounds.right, stackBounds.top); in performAccessibilityActionInternal()
610 mStackAnimationController.springStack(stackBounds.left, stackBounds.bottom); in performAccessibilityActionInternal()
613 mStackAnimationController.springStack(stackBounds.right, stackBounds.bottom); in performAccessibilityActionInternal()
/frameworks/base/core/java/android/app/
DActivityTaskManager.java394 public void resizeDockedStack(Rect stackBounds, Rect taskBounds) { in resizeDockedStack() argument
396 getService().resizeDockedStack(stackBounds, taskBounds, null, null, null); in resizeDockedStack()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DStackAnimationController.java236 final RectF stackBounds = getAllowableStackPositionRegion(); in flingStackThenSpringToEdge()
240 ? stackBounds.left : stackBounds.right; in flingStackThenSpringToEdge()