Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
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
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()
DPipBoundsState.java489 float getSnapFraction() { in getSnapFraction() method in PipBoundsState.PipReentryState
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
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()
DPipBoundsStateTest.java82 assertEquals(snapFraction, state.getSnapFraction(), 0.01); in testSetReentryState()
106 assertEquals(DEFAULT_SNAP_FRACTION, state.getSnapFraction(), 0.01); in testSetLastPipComponentName_notChanged_doesNotClearReentryState()
DPipBoundsAlgorithmTest.java342 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreLastSize()
357 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreLastPosition()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipAccessibilityInteractionConnection.java170 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToExpandedBounds()
181 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToNormalBounds()
DPipController.java459 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onDisplayChanged()
586 float snapFraction = mPipBoundsAlgorithm.getSnapFraction(pipBounds); in saveReentryState()
673 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onDisplayRotationChanged()
DPipMotionHelper.java483 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
498 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
DPipResizeGestureHandler.java539 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction( in finishResize()