/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/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 | 138 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()
|
D | PhonePipKeepClearAlgorithm.java | 88 float snapFraction = pipBoundsAlgorithm.getSnapFraction(startingBounds); in adjust()
|
D | PipBoundsState.java | 647 public float getSnapFraction() { in getSnapFraction() method in PipBoundsState.PipReentryState
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
D | PipSnapAlgorithmTest.java | 222 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()
|
D | PipBoundsStateTest.java | 122 assertEquals(snapFraction, state.getSnapFraction(), 0.01); in testSetReentryState() 144 assertEquals(DEFAULT_SNAP_FRACTION, state.getSnapFraction(), 0.01); in testSetLastPipComponentName_notChanged_doesNotClearReentryState()
|
D | PipBoundsAlgorithmTest.java | 365 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/ |
D | PhonePipKeepClearAlgorithmTest.java | 193 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()
|
D | PipControllerTest.java | 261 when(mMockPipBoundsAlgorithm.getSnapFraction(bounds)).thenReturn(1.0f); in saveReentryState_savesPipBoundsState()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipAccessibilityInteractionConnection.java | 172 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToExpandedBounds() 183 float savedSnapFraction = mSnapAlgorithm.getSnapFraction( in setToNormalBounds()
|
D | PipMotionHelper.java | 484 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()), 499 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
|
D | PipController.java | 801 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()
|
D | PipResizeGestureHandler.java | 434 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction(
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipResizeGestureHandler.java | 447 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction( 527 float snapFraction = mPipBoundsAlgorithm.getSnapFraction( in onPipTransitionStateChanged()
|
D | PipMotionHelper.java | 476 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()), 491 savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(getBounds()),
|