Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/src/com/android/documentsui/
DViewAutoScroller.java56 int pixelsPastView = 0; in run() local
62 pixelsPastView = mHost.getCurrentPosition().y - topBottomThreshold; in run()
65 pixelsPastView = mHost.getCurrentPosition().y - mHost.getViewHeight() in run()
69 if (!mHost.isActive() || pixelsPastView == 0) { in run()
75 if (pixelsPastView > topBottomThreshold) { in run()
76 pixelsPastView = topBottomThreshold; in run()
80 final int numPixels = computeScrollDistance(pixelsPastView); in run()
94 public int computeScrollDistance(int pixelsPastView) { in computeScrollDistance() argument
98 final int direction = (int) Math.signum(pixelsPastView); in computeScrollDistance()
99 final int absPastView = Math.abs(pixelsPastView); in computeScrollDistance()