Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/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.java138 destinationBounds.set(getDefaultBounds(reentryState.getSnapFraction(), scaledBounds)); in getEntryDestinationBoundsIgnoringKeepClearAreas()
277 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
386 public float getSnapFraction(Rect stackBounds) { in getSnapFraction() method in PipBoundsAlgorithm
387 return getSnapFraction(stackBounds, getMovementBounds(stackBounds)); in getSnapFraction()
394 public float getSnapFraction(Rect stackBounds, Rect movementBounds) { in getSnapFraction() method in PipBoundsAlgorithm
395 return mSnapAlgorithm.getSnapFraction(stackBounds, movementBounds); in getSnapFraction()
DPhonePipKeepClearAlgorithm.java88 float snapFraction = pipBoundsAlgorithm.getSnapFraction(startingBounds); in adjust()
DPipBoundsState.java647 public float getSnapFraction() { in getSnapFraction() method in PipBoundsState.PipReentryState
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
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()
DPipBoundsStateTest.java122 assertEquals(snapFraction, state.getSnapFraction(), 0.01); in testSetReentryState()
144 assertEquals(DEFAULT_SNAP_FRACTION, state.getSnapFraction(), 0.01); in testSetLastPipComponentName_notChanged_doesNotClearReentryState()
DPipBoundsAlgorithmTest.java365 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreProportionalSize()
379 final float reentrySnapFraction = mPipBoundsAlgorithm.getSnapFraction(reentryBounds); in getEntryDestinationBounds_reentryStateExists_restoreLastPosition()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
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()
DPipControllerTest.java261 when(mMockPipBoundsAlgorithm.getSnapFraction(bounds)).thenReturn(1.0f); in saveReentryState_savesPipBoundsState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipAccessibilityInteractionConnection.java172 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToExpandedBounds()
183 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToNormalBounds()
DPipMotionHelper.java484 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
499 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
DPipController.java801 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeBounds, in onDisplayChangedUncheck()
1061 float snapFraction = mPipBoundsAlgorithm.getSnapFraction(pipBounds); in saveReentryState()
1146 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onDisplayRotationChanged()
DPipResizeGestureHandler.java434 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction(
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipResizeGestureHandler.java447 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction(
527 float snapFraction = mPipBoundsAlgorithm.getSnapFraction( in onPipTransitionStateChanged()
DPipMotionHelper.java476 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
491 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),