/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSnapAlgorithm.java | 37 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
|
D | PipBoundsAlgorithm.java | 136 ? 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()
|
D | PipBoundsState.java | 489 float getSnapFraction() { in getSnapFraction() method in PipBoundsState.PipReentryState
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
D | PipSnapAlgorithmTest.java | 220 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()
|
D | PipBoundsStateTest.java | 82 assertEquals(snapFraction, state.getSnapFraction(), 0.01); in testSetReentryState() 106 assertEquals(DEFAULT_SNAP_FRACTION, state.getSnapFraction(), 0.01); in testSetLastPipComponentName_notChanged_doesNotClearReentryState()
|
D | PipBoundsAlgorithmTest.java | 342 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/ |
D | PipControllerTest.java | 160 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/ |
D | PipAccessibilityInteractionConnection.java | 170 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToExpandedBounds() 181 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToNormalBounds()
|
D | PipController.java | 459 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()
|
D | PipMotionHelper.java | 483 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()), 498 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
|
D | PipResizeGestureHandler.java | 539 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction( in finishResize()
|