Home
last modified time | relevance | path

Searched refs:pipBounds (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPhonePipKeepClearAlgorithmTest.java109 final Rect pipBounds = new Rect(0, 0, 100, 100); in adjust_withCollidingRestrictedKeepClearArea_moveBounds() local
127 final Rect pipBounds = new Rect(0, 0, 100, 100); in adjust_withNonCollidingRestrictedKeepClearArea_boundsUnchanged() local
145 final Rect pipBounds = new Rect(0, 0, 100, 100); in adjust_withCollidingRestrictedKeepClearArea_whileStashed_boundsUnchanged() local
159 assertEquals(pipBounds, outBounds); in adjust_withCollidingRestrictedKeepClearArea_whileStashed_boundsUnchanged()
178 assertEquals(pipBounds, outBounds); in adjust_withNonCollidingRestrictedKeepClearArea_whileStashed_boundsUnchanged()
183 final Rect pipBounds = new Rect( in adjust_aboveDisplayBounds_onLeftEdge_appliesBottomLeftGravity() local
203 final Rect pipBounds = new Rect( in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity() local
223 final Rect pipBounds = new Rect( in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity() local
245 final Rect pipBounds = new Rect( in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity() local
267 final Rect pipBounds = new Rect( in adjust_whileStashed_aboveDisplayBounds_alignsToBottomInset() local
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPhonePipKeepClearAlgorithm.java74 Rect pipBounds = new Rect(startingBounds); in adjust() local
78 if (!insets.contains(pipBounds)) { in adjust()
97 pipBounds.offsetTo(pipBounds.left, in adjust()
98 insets.bottom - pipBounds.height()); in adjust()
101 pipBounds.offsetTo(insets.right - pipBounds.width(), pipBounds.top); in adjust()
103 pipBounds.offsetTo(insets.left, pipBounds.top); in adjust()
107 return findUnoccludedPosition(pipBounds, pipBoundsState.getRestrictedKeepClearAreas(), in adjust()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
H A DTvPipMenuController.java246 private Rect calculateMenuSurfaceBounds(Rect pipBounds) { in calculateMenuSurfaceBounds() argument
247 return mPipMenuView.getPipMenuContainerBounds(pipBounds); in calculateMenuSurfaceBounds()
279 Rect pipBounds) { in resizePipMenu() argument
283 if (pipBounds.isEmpty()) { in resizePipMenu()
292 final Rect menuBounds = calculateMenuSurfaceBounds(pipBounds); in resizePipMenu()
304 updateMenuBounds(pipBounds); in resizePipMenu()
315 Rect pipBounds, float alpha) { in movePipMenu() argument
319 if (pipBounds.isEmpty()) { in movePipMenu()
349 updateMenuBounds(pipBounds); in movePipMenu()
377 public void updateMenuBounds(Rect pipBounds) { in updateMenuBounds() argument
[all …]
H A DTvPipKeepClearAlgorithm.kt136 pipBounds,
477 pipBounds: Rect,
497 pipBounds.bottom,
498 pipBounds.height()
507 pipBounds: Rect,
527 -pipBounds.top,
528 pipBounds.height()
717 val pipBounds = Rect() regex
725 pipBounds
727 return pipBounds
[all …]
H A DTvPipMenuView.java324 Rect getPipMenuContainerBounds(Rect pipBounds) { in getPipMenuContainerBounds() argument
325 final Rect menuUiBounds = new Rect(pipBounds); in getPipMenuContainerBounds()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipTransitionController.java166 final Rect pipBounds = mPipBoundsState.getBounds(); in sendOnPipTransitionStarted() local
169 callback.onPipTransitionStarted(direction, pipBounds); in sendOnPipTransitionStarted()
274 void onPipTransitionStarted(int direction, Rect pipBounds); in onPipTransitionStarted() argument
H A DPipTaskOrganizer.java260 public void onPipTransitionStarted(int direction, Rect pipBounds) {}
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipResizeGestureHandler.java268 final Rect pipBounds = mPipBoundsState.getBounds(); in onInputEvent() local
270 if (!pipBounds.contains((int) mv.getRawX(), (int) mv.getRawY()) in onInputEvent()
418 final Rect pipBounds = mPipBoundsState.getBounds(); in onPinchResize() local
421 && pipBounds.contains((int) ev.getRawX(0), (int) ev.getRawY(0)) in onPinchResize()
422 && pipBounds.contains((int) ev.getRawX(1), (int) ev.getRawY(1))) { in onPinchResize()
428 mDownBounds.set(pipBounds); in onPinchResize()
H A DPipController.java675 final Rect pipBounds = mPipBoundsState.getBounds(); in onInit()
677 if ((pipBounds.height() + 2 * edgeInsets.y) > (displayBounds.height() / 2)) { in onInit()
1021 public void onPipTransitionStarted(int direction, Rect pipBounds) { in onPipTransitionStarted() argument
1032 saveReentryState(pipBounds); in onPipTransitionStarted()
1045 public void saveReentryState(Rect pipBounds) { in saveReentryState() argument
1046 float snapFraction = mPipBoundsAlgorithm.getSnapFraction(pipBounds); in saveReentryState()
1053 Size reentrySize = new Size(pipBounds.width(), pipBounds.height()); in saveReentryState()
H A DPipTouchHandler.java738 final Rect pipBounds = mPipBoundsState.getBounds(); in animateToUnStashedState() local
739 final boolean onLeftEdge = pipBounds.left < mPipBoundsState.getDisplayBounds().left; in animateToUnStashedState()
740 final Rect unStashedBounds = new Rect(0, pipBounds.top, 0, pipBounds.bottom); in animateToUnStashedState()
742 : mInsetBounds.right - pipBounds.width(); in animateToUnStashedState()
743 unStashedBounds.right = onLeftEdge ? mInsetBounds.left + pipBounds.width() in animateToUnStashedState()
H A DPipAccessibilityInteractionConnection.java149 Rect pipBounds = new Rect(); in performAccessibilityAction() local
150 pipBounds.set(mPipBoundsState.getBounds()); in performAccessibilityAction()
H A DPipMotionHelper.java155 public void onPipTransitionStarted(int direction, Rect pipBounds) {}