Home
last modified time | relevance | path

Searched defs:snapFraction (Results 1 – 8 of 8) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipSnapAlgorithmTest.java58 final float snapFraction = 0.25f; in testApplySnapFraction_topEdge() local
69 final float snapFraction = 1.5f; in testApplySnapFraction_rightEdge() local
80 final float snapFraction = 2.25f; in testApplySnapFraction_bottomEdge() local
91 final float snapFraction = 3.75f; in testApplySnapFraction_leftEdge() local
102 final float snapFraction = 2f; in testApplySnapFraction_notStashed_isNotOffBounds() local
115 final float snapFraction = 3f; in testApplySnapFraction_stashedLeft() local
129 final float snapFraction = 2f; in testApplySnapFraction_stashedRight() local
142 final float snapFraction = 2f; in testApplySnapFraction_stashedRight_withInset() local
222 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_leftEdge() local
233 final float snapFraction = mPipSnapAlgorithm.getSnapFraction(bounds, MOVEMENT_BOUNDS); in testGetSnapFraction_rightEdge() local
[all …]
H A DPipBoundsStateTest.java93 final float snapFraction = 0.5f; in testSetReentryState() local
105 final float snapFraction = 0.5f; in testClearReentryState() local
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPipSnapAlgorithm.java88 public void applySnapFraction(Rect stackBounds, Rect movementBounds, float snapFraction) { in applySnapFraction()
111 public void applySnapFraction(Rect stackBounds, Rect movementBounds, float snapFraction, in applySnapFraction()
H A DPipBoundsAlgorithm.java250 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio() local
272 private Rect getDefaultBounds(float snapFraction, Size size) { in getDefaultBounds()
374 public void applySnapFraction(Rect stackBounds, float snapFraction) { in applySnapFraction()
H A DPhonePipKeepClearAlgorithm.java88 float snapFraction = pipBoundsAlgorithm.getSnapFraction(startingBounds); in adjust() local
H A DPipBoundsState.java583 PipReentryState(@Nullable Size size, float snapFraction) { in PipReentryState()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipController.java796 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeBounds, in onDisplayChangedUncheck() local
842 mTouchHandler.userResizeTo(mPipBoundsState.getNormalBounds(), snapFraction); in onDisplayChangedUncheck() local
1046 float snapFraction = mPipBoundsAlgorithm.getSnapFraction(pipBounds); in saveReentryState() local
1146 final float snapFraction = pipSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onDisplayRotationChanged() local
H A DPipResizeGestureHandler.java589 final float snapFraction = mPipBoundsAlgorithm.getSnapFraction( local