OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:snapFraction
(Results
1 - 2
of
2
) sorted by null
/frameworks/base/core/java/com/android/internal/policy/
PipSnapAlgorithm.java
228
public void applySnapFraction(Rect stackBounds, Rect movementBounds, float
snapFraction
) {
229
if (
snapFraction
< 1f) {
230
int offset = movementBounds.left + (int) (
snapFraction
* movementBounds.width());
232
} else if (
snapFraction
< 2f) {
233
snapFraction
-= 1f;
234
int offset = movementBounds.top + (int) (
snapFraction
* movementBounds.height());
236
} else if (
snapFraction
< 3f) {
237
snapFraction
-= 2f;
238
int offset = movementBounds.left + (int) ((1f -
snapFraction
) * movementBounds.width());
241
snapFraction
-= 3f
[
all
...]
/frameworks/base/services/core/java/com/android/server/wm/
PinnedStackController.java
229
final float
snapFraction
= mSnapAlgorithm.getSnapFraction(stackBounds,
238
mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds),
snapFraction
);
296
final float
snapFraction
= mSnapAlgorithm.getSnapFraction(postChangeStackBounds,
305
snapFraction
);
Completed in 60 milliseconds