Home
last modified time | relevance | path

Searched refs:horizontalDiff (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DActivityStack.java4822 int horizontalDiff = stackBounds.left - bounds.left; in fitWithinBounds() local
4823 if ((horizontalDiff < 0 && bounds.left >= maxRight) in fitWithinBounds()
4824 || (bounds.left + horizontalDiff >= maxRight)) { in fitWithinBounds()
4825 horizontalDiff = maxRight - bounds.left; in fitWithinBounds()
4827 bounds.left += horizontalDiff; in fitWithinBounds()
4828 bounds.right += horizontalDiff; in fitWithinBounds()
/frameworks/base/core/java/android/widget/
DEditor.java2481 float horizontalDiff = horizontal - scrollX; in clampHorizontalPosition() local
2486 if (horizontalDiff >= (viewClippedWidth - 1f)) { in clampHorizontalPosition()
2489 } else if (Math.abs(horizontalDiff) <= 1f in clampHorizontalPosition()