Home
last modified time | relevance | path

Searched refs:getSnapFraction (Results 1 – 13 of 13) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPipBoundsAlgorithm.java129 ? getDefaultBounds(reentryState.getSnapFraction(), reentryState.getSize()) in getEntryDestinationBoundsIgnoringKeepClearAreas()
250 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
359 public float getSnapFraction(Rect stackBounds) { in getSnapFraction() method in PipBoundsAlgorithm
360 return getSnapFraction(stackBounds, getMovementBounds(stackBounds)); in getSnapFraction()
367 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() method in PipBoundsAlgorithm
368 return mSnapAlgorithm.getSnapFraction(stackBounds, movementBounds); in getSnapFraction()
H A DPipSnapAlgorithm.java37 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() method in PipSnapAlgorithm
38 return getSnapFraction(stackBounds, movementBounds, STASH_TYPE_NONE); in getSnapFraction()
57 public float getSnapFraction(Rect stackBounds, Rect movementBounds, in getSnapFraction() method in PipSnapAlgorithm
H A DPhonePipKeepClearAlgorithm.java88 float snapFraction = pipBoundsAlgorithm.getSnapFraction(startingBounds); in adjust()
H A DPipBoundsState.java593 public float getSnapFraction() { in getSnapFraction() method in PipBoundsState.PipReentryState
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipSnapAlgorithmTest.java222 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_leftEdge()
233 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_rightEdge()
244 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_topEdge()
255 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_bottomEdge()
H A DPipBoundsStateTest.java99 assertEquals(snapFraction, state.getSnapFraction(), 0.01); in testSetReentryState()
123 assertEquals(DEFAULT_SNAP_FRACTION, state.getSnapFraction(), 0.01); in testSetLastPipComponentName_notChanged_doesNotClearReentryState()
H A DPipBoundsAlgorithmTest.java361 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreLastSize()
376 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreLastPosition()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPhonePipKeepClearAlgorithmTest.java193 when(mMockPipBoundsAlgorithm.getSnapFraction(any(Rect.class))).thenReturn(0f); in adjust_aboveDisplayBounds_onLeftEdge_appliesBottomLeftGravity()
213 when(mMockPipBoundsAlgorithm.getSnapFraction(any(Rect.class))).thenReturn(3f); in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity()
235 when(mMockPipBoundsAlgorithm.getSnapFraction(any(Rect.class))).thenReturn(1f); in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity()
257 when(mMockPipBoundsAlgorithm.getSnapFraction(any(Rect.class))).thenReturn(2f); in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity()
H A DPipControllerTest.java261 when(mMockPipBoundsAlgorithm.getSnapFraction(bounds)).thenReturn(1.0f); in saveReentryState_noUserResize_doesNotSaveSize()
273 when(mMockPipBoundsAlgorithm.getSnapFraction(bounds)).thenReturn(1.0f); in saveReentryState_nonEmptyUserResizeBounds_savesSize()
286 when(mMockPipBoundsAlgorithm.getSnapFraction(bounds)).thenReturn(1.0f); in saveReentryState_emptyUserResizeBounds_savesSize()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipAccessibilityInteractionConnection.java172 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToExpandedBounds()
183 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToNormalBounds()
H A DPipMotionHelper.java467 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
482 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
H A DPipController.java796 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeBounds, in onDisplayChangedUncheck()
1046 float snapFraction = mPipBoundsAlgorithm.getSnapFraction(pipBounds); in saveReentryState()
1146 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onDisplayRotationChanged()
H A DPipResizeGestureHandler.java589 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction(