/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 52 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { in move() argument 53 if ((deltaX && *deltaX) || (deltaY && *deltaY)) { in move() 63 if (deltaX) { in move() 64 mRawPosition.x += *deltaX; in move() 101 if (deltaX) { in move() 102 *deltaX *= scale; in move()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SwipeDismissLayout.java | 257 private void setProgress(float deltaX) { in setProgress() argument 258 mTranslationX = deltaX; in setProgress() 259 if (mProgressListener != null && deltaX >= 0) { in setProgress() 260 mProgressListener.onSwipeProgressChanged(this, deltaX / getWidth(), deltaX); in setProgress() 297 float deltaX = ev.getRawX() - mDownX; in updateSwiping() local 299 if ((deltaX * deltaX) + (deltaY * deltaY) > mSlop * mSlop) { in updateSwiping() 300 mSwiping = deltaX > mSlop * 2 && Math.abs(deltaY) < Math.abs(deltaX); in updateSwiping() 308 float deltaX = ev.getRawX() - mDownX; 313 if (deltaX > (getWidth() * DISMISS_MIN_DRAG_WIDTH_RATIO) && 321 if (deltaX < (getWidth() * DISMISS_MIN_DRAG_WIDTH_RATIO) ||
|
D | AutoScrollHelper.java | 568 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument 708 final int deltaX = scroller.getDeltaX(); in run() local 710 scrollTargetBy(deltaX, deltaY); in run() 881 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 152 int deltaX = mDeltaX; in drawIfNeeded() local 157 int div = (dw+mTextWidth)/deltaX; in drawIfNeeded() 158 int rem = (dw+mTextWidth) - (div*deltaX); in drawIfNeeded() 159 int qdelta = deltaX/4; in drawIfNeeded() 160 if (rem < qdelta || rem > (deltaX-qdelta)) { in drawIfNeeded() 161 deltaX += deltaX/3; in drawIfNeeded() 168 x += deltaX; in drawIfNeeded()
|
/frameworks/base/core/java/android/transition/ |
D | ArcMotion.java | 210 float deltaX = endX - startX; in getPath() local 213 float h2 = deltaX * deltaX + deltaY * deltaY; in getPath() 224 if (Math.abs(deltaX) < Math.abs(deltaY)) { in getPath() 238 float eDistX = h2 / (2 * deltaX); in getPath()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 537 int deltaX, int deltaY) { in dragViewBy() argument 538 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy() 558 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX, in dragViewBy() argument 567 int distance = (int) Math.hypot(deltaX, deltaY); in dragViewBy() 569 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy() 617 int deltaX = fromX - toX; in dragViewTo() local 620 int distance = (int)Math.hypot(deltaX, deltaY); in dragViewTo() 666 int deltaX = fromX - toX; in dragViewToX() local 668 drag(test, fromX, toX, fromY, fromY, deltaX); in dragViewToX() 670 return deltaX; in dragViewToX()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | GestureDetectorCompat.java | 332 final int deltaX = (int) (focusX - mDownFocusX); in onTouchEvent() local 334 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() 447 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); in isConsideredDoubleTap() local 449 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
|
/frameworks/base/core/java/android/widget/ |
D | SlidingDrawer.java | 629 int deltaX = position - left; in moveHandle() local 631 deltaX = mTopOffset - left; in moveHandle() 632 } else if (deltaX > mBottomOffset + mRight - mLeft - mHandleWidth - left) { in moveHandle() 633 deltaX = mBottomOffset + mRight - mLeft - mHandleWidth - left; in moveHandle() 635 handle.offsetLeftAndRight(deltaX); in moveHandle() 643 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); in moveHandle() 644 region.union(frame.right - deltaX, 0, in moveHandle() 645 frame.right - deltaX + mContent.getWidth(), getHeight()); in moveHandle()
|
D | Gallery.java | 375 void trackMotionScroll(int deltaX) { in trackMotionScroll() argument 381 boolean toLeft = deltaX < 0; in trackMotionScroll() 383 int limitedDeltaX = getLimitedMotionScrollAmount(toLeft, deltaX); in trackMotionScroll() 384 if (limitedDeltaX != deltaX) { in trackMotionScroll() 420 int getLimitedMotionScrollAmount(boolean motionToLeft, int deltaX) { 425 return deltaX; 448 ? Math.max(centerDifference, deltaX) 449 : Math.min(centerDifference, deltaX);
|
D | HorizontalScrollView.java | 588 int deltaX = mLastMotionX - x; in onTouchEvent() local 589 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent() 595 if (deltaX > 0) { in onTouchEvent() 596 deltaX -= mTouchSlop; in onTouchEvent() 598 deltaX += mTouchSlop; in onTouchEvent() 614 if (overScrollBy(deltaX, 0, mScrollX, 0, range, 0, in onTouchEvent() 621 final int pulledToX = oldX + deltaX; in onTouchEvent() 623 mEdgeGlowLeft.onPull((float) deltaX / getWidth(), in onTouchEvent() 629 mEdgeGlowRight.onPull((float) deltaX / getWidth(), in onTouchEvent()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 603 final int deltaX = (int) (focusX - mDownFocusX); in onTouchEvent() local 605 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() 761 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); in isConsideredDoubleTap() local 763 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | DefaultItemAnimator.java | 255 int deltaX = toX - fromX; in animateMove() local 257 if (deltaX == 0 && deltaY == 0) { in animateMove() 261 if (deltaX != 0) { in animateMove() 262 ViewCompat.setTranslationX(view, -deltaX); in animateMove() 273 final int deltaX = toX - fromX; in animateMoveImpl() local 275 if (deltaX != 0) { in animateMoveImpl() 293 if (deltaX != 0) { in animateMoveImpl() 317 int deltaX = (int) (toX - fromX - prevTranslationX); in animateChange() local 326 ViewCompat.setTranslationX(newHolder.itemView, -deltaX); in animateChange()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
D | ItemTouchHelperTest.java | 512 int deltaX = fromX - toX; in dragViewTo() local 515 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewTo() 541 int deltaX = fromX - toX; in dragViewToX() local 543 drag(test, fromX, toX, fromY, fromY, Math.max(10, Math.abs(deltaX) / 10)); in dragViewToX() 545 return deltaX; in dragViewToX()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ObservableScrollView.java | 119 protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, in overScrollBy() argument 123 return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
|
D | PanelView.java | 207 float deltaX = event.getRawX() - event.getX(); in trackMovement() local 209 event.offsetLocation(deltaX, deltaY); in trackMovement() 211 event.offsetLocation(-deltaX, -deltaY); in trackMovement()
|
/frameworks/native/include/input/ |
D | VelocityControl.h | 91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
|
/frameworks/native/services/inputflinger/ |
D | PointerControllerInterface.h | 47 virtual void move(float deltaX, float deltaY) = 0;
|
D | InputReader.cpp | 146 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument 150 temp = *deltaX; in rotateDelta() 151 *deltaX = *deltaY; in rotateDelta() 156 *deltaX = -*deltaX; in rotateDelta() 161 temp = *deltaX; in rotateDelta() 162 *deltaX = -*deltaY; in rotateDelta() 2553 float deltaX = mCursorMotionAccumulator.getRelativeX() * mXScale; in sync() local 2555 bool moved = deltaX != 0 || deltaY != 0; in sync() 2559 && (deltaX != 0.0f || deltaY != 0.0f)) { in sync() 2560 rotateDelta(mOrientation, &deltaX, &deltaY); in sync() [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | AutoScrollHelper.java | 569 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument 709 final int deltaX = scroller.getDeltaX(); in run() local 711 scrollTargetBy(deltaX, deltaY); in run()
|
D | ListViewAutoScrollHelper.java | 36 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument
|
/frameworks/base/libs/input/ |
D | PointerController.cpp | 130 void PointerController::move(float deltaX, float deltaY) { in move() argument 132 ALOGD("Move pointer by deltaX=%0.3f, deltaY=%0.3f", deltaX, deltaY); in move() 134 if (deltaX == 0.0f && deltaY == 0.0f) { in move() 140 setPositionLocked(mLocked.pointerX + deltaX, mLocked.pointerY + deltaY); in move()
|
D | PointerController.h | 83 virtual void move(float deltaX, float deltaY);
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 481 final float deltaX = receivedTracker.getReceivedPointerDownX(pointerId) in handleMotionEventStateTouchExploring() local 485 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring() 523 final float deltaX = in handleMotionEventStateTouchExploring() local 529 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring() 559 final float deltaX = receivedTracker.getReceivedPointerDownX( in handleMotionEventStateTouchExploring() local 563 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring() 680 final float deltaX = firstPtrX - secondPtrX; in handleMotionEventStateDragging() local 682 final double distance = Math.hypot(deltaX, deltaY); in handleMotionEventStateDragging() 685 event.setLocation(deltaX / 2, deltaY / 2); in handleMotionEventStateDragging()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 364 int deltaX = source.getWidth() - targetWidth; in transform() local 366 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform() 377 int deltaXHalf = Math.max(0, deltaX / 2); in transform()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 294 float deltaX = currentPointX - lstPointX; in temporalSampling() local 296 float distance = (float) Math.hypot(deltaX, deltaY); in temporalSampling() 299 float nx = lstPointX + ratio * deltaX; in temporalSampling()
|