Lines Matching refs:dx
971 int dx = x - sx;
973 if (dx == 0 && dy == 0) {
985 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dx) / width);
995 final float pageDelta = (float) Math.abs(dx) / (pageWidth + mPageMargin);
1003 mScroller.startScroll(sx, sy, dx, dy, duration);
2010 private boolean isGutterDrag(float x, float dx) {
2011 return (x < mGutterSize && dx > 0) || (x > getWidth() - mGutterSize && dx < 0);
2073 final float dx = x - mLastMotionX;
2074 final float xDiff = Math.abs(dx);
2079 if (dx != 0 && !isGutterDrag(mLastMotionX, dx)
2080 && canScroll(this, false, (int) dx, (int) x, (int) y)) {
2092 mLastMotionX = dx > 0
2708 * Tests scrollability within child views of v given a delta of dx.
2713 * @param dx Delta scrolled in pixels
2716 * @return true if child views of v can be scrolled by delta of dx.
2718 protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {
2731 && canScroll(child, true, dx, x + scrollX - child.getLeft(),
2738 return checkV && v.canScrollHorizontally(-dx);