Lines Matching refs:dy

172          * @param dy Change in Y position from the last call
175 @Px int dy) {
321 * @param dy Proposed change in position for top
324 public int clampViewPositionVertical(@NonNull View child, int top, int dy) {
600 final int dy = finalTop - startTop;
602 if (dx == 0 && dy == 0) {
609 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel);
610 mScroller.startScroll(startLeft, startTop, dx, dy, duration);
616 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) {
620 final int absDy = Math.abs(dy);
632 int yduration = computeAxisDuration(dy, yvel, mCallback.getViewVerticalDragRange(child));
740 final int dy = y - mCapturedView.getTop();
745 if (dy != 0) {
746 ViewCompat.offsetTopAndBottom(mCapturedView, dy);
749 if (dx != 0 || dy != 0) {
750 mCallback.onViewPositionChanged(mCapturedView, x, y, dx, dy);
927 * @param dy Delta scrolled in pixels along the Y axis
932 protected boolean canScroll(@NonNull View v, boolean checkV, int dx, int dy, int x, int y) {
945 && canScroll(child, true, dx, dy, x + scrollX - child.getLeft(),
952 return checkV && (v.canScrollHorizontally(-dx) || v.canScrollVertically(-dy));
1035 final float dy = y - mInitialMotionY[pointerId];
1038 final boolean pastSlop = toCapture != null && checkTouchSlop(toCapture, dx, dy);
1050 final int targetTop = oldTop + (int) dy;
1052 (int) dy);
1060 reportNewEdgeDrags(dx, dy, pointerId);
1186 final float dy = y - mInitialMotionY[pointerId];
1188 reportNewEdgeDrags(dx, dy, pointerId);
1195 if (checkTouchSlop(toCapture, dx, dy)
1254 private void reportNewEdgeDrags(float dx, float dy, int pointerId) {
1256 if (checkNewEdgeDrag(dx, dy, pointerId, EDGE_LEFT)) {
1259 if (checkNewEdgeDrag(dy, dx, pointerId, EDGE_TOP)) {
1262 if (checkNewEdgeDrag(dx, dy, pointerId, EDGE_RIGHT)) {
1265 if (checkNewEdgeDrag(dy, dx, pointerId, EDGE_BOTTOM)) {
1299 * @param dy Motion since initial position along Y axis
1302 private boolean checkTouchSlop(View child, float dx, float dy) {
1310 return dx * dx + dy * dy > mTouchSlop * mTouchSlop;
1314 return Math.abs(dy) > mTouchSlop;
1367 final float dy = mLastMotionY[pointerId] - mInitialMotionY[pointerId];
1370 return dx * dx + dy * dy > mTouchSlop * mTouchSlop;
1374 return Math.abs(dy) > mTouchSlop;
1423 private void dragTo(int left, int top, int dx, int dy) {
1432 if (dy != 0) {
1433 clampedY = mCallback.clampViewPositionVertical(mCapturedView, top, dy);
1437 if (dx != 0 || dy != 0) {