Home
last modified time | relevance | path

Searched refs:unconsumed (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java1507 private int consumeFlingInStretch(int unconsumed) { in consumeFlingInStretch() argument
1511 return unconsumed; in consumeFlingInStretch()
1513 if (unconsumed > 0 && mEdgeGlowLeft != null && mEdgeGlowLeft.getDistance() != 0f) { in consumeFlingInStretch()
1515 float deltaDistance = -unconsumed * FLING_DESTRETCH_FACTOR / size; in consumeFlingInStretch()
1518 if (consumed != unconsumed) { in consumeFlingInStretch()
1521 return unconsumed - consumed; in consumeFlingInStretch()
1523 if (unconsumed < 0 && mEdgeGlowRight != null && mEdgeGlowRight.getDistance() != 0f) { in consumeFlingInStretch()
1525 float deltaDistance = unconsumed * FLING_DESTRETCH_FACTOR / size; in consumeFlingInStretch()
1528 if (consumed != unconsumed) { in consumeFlingInStretch()
1531 return unconsumed - consumed; in consumeFlingInStretch()
[all …]
DScrollView.java1603 private int consumeFlingInStretch(int unconsumed) { in consumeFlingInStretch() argument
1607 return unconsumed; in consumeFlingInStretch()
1609 if (unconsumed > 0 && mEdgeGlowTop != null && mEdgeGlowTop.getDistance() != 0f) { in consumeFlingInStretch()
1611 float deltaDistance = -unconsumed * FLING_DESTRETCH_FACTOR / size; in consumeFlingInStretch()
1615 if (consumed != unconsumed) { in consumeFlingInStretch()
1618 return unconsumed - consumed; in consumeFlingInStretch()
1620 if (unconsumed < 0 && mEdgeGlowBottom != null && mEdgeGlowBottom.getDistance() != 0f) { in consumeFlingInStretch()
1622 float deltaDistance = unconsumed * FLING_DESTRETCH_FACTOR / size; in consumeFlingInStretch()
1626 if (consumed != unconsumed) { in consumeFlingInStretch()
1629 return unconsumed - consumed; in consumeFlingInStretch()
[all …]
DAbsListView.java4424 private int consumeFlingInStretch(int unconsumed) { in consumeFlingInStretch() argument
4425 if (unconsumed < 0 && mEdgeGlowTop != null && mEdgeGlowTop.getDistance() != 0f) { in consumeFlingInStretch()
4427 float deltaDistance = unconsumed * FLING_DESTRETCH_FACTOR / size; in consumeFlingInStretch()
4430 if (consumed != unconsumed) { in consumeFlingInStretch()
4433 return unconsumed - consumed; in consumeFlingInStretch()
4435 if (unconsumed > 0 && mEdgeGlowBottom != null && mEdgeGlowBottom.getDistance() != 0f) { in consumeFlingInStretch()
4437 float deltaDistance = -unconsumed * FLING_DESTRETCH_FACTOR / size; in consumeFlingInStretch()
4440 if (consumed != unconsumed) { in consumeFlingInStretch()
4443 return unconsumed - consumed; in consumeFlingInStretch()
4445 return unconsumed; in consumeFlingInStretch()