Home
last modified time | relevance | path

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

/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipSnapAlgorithmTest.java220 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_leftEdge()
231 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_rightEdge()
242 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_topEdge()
253 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_bottomEdge()
H A DPipBoundsStateTest.java82 assertEquals(snapFraction, state.getSnapFraction(), 0.01); in testSetReentryState()
106 assertEquals(DEFAULT_SNAP_FRACTION, state.getSnapFraction(), 0.01); in testSetLastPipComponentName_notChanged_doesNotClearReentryState()
H A DPipBoundsAlgorithmTest.java342 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreLastSize()
357 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreLastPosition()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
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 DPipBoundsAlgorithm.java136 ? getDefaultBounds(reentryState.getSnapFraction(), reentryState.getSize()) in getEntryDestinationBounds()
225 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
370 public float getSnapFraction(Rect stackBounds) { in getSnapFraction() method in PipBoundsAlgorithm
371 return getSnapFraction(stackBounds, getMovementBounds(stackBounds)); in getSnapFraction()
378 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() method in PipBoundsAlgorithm
379 return mSnapAlgorithm.getSnapFraction(stackBounds, movementBounds); in getSnapFraction()
H A DPipBoundsState.java499 float getSnapFraction() { in getSnapFraction() method in PipBoundsState.PipReentryState
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPipControllerTest.java160 when(mMockPipBoundsAlgorithm.getSnapFraction(bounds)).thenReturn(1.0f); in saveReentryState_noUserResize_doesNotSaveSize()
172 when(mMockPipBoundsAlgorithm.getSnapFraction(bounds)).thenReturn(1.0f); in saveReentryState_userHasResized_savesSize()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipAccessibilityInteractionConnection.java170 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToExpandedBounds()
181 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToNormalBounds()
H A DPipController.java494 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onDisplayChanged()
644 float snapFraction = mPipBoundsAlgorithm.getSnapFraction(pipBounds); in saveReentryState()
734 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onDisplayRotationChanged()
H A DPipMotionHelper.java490 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
505 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
H A DPipResizeGestureHandler.java539 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction( in finishResize()