/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() 66 if (deltaY) { in move() 67 mRawPosition.y += *deltaY; in move() 104 if (deltaY) { in move() 105 *deltaY *= scale; in move()
|
/frameworks/base/core/java/android/transition/ |
D | ArcMotion.java | 210 float deltaY = endY - startY; in getPath() local 212 float h2 = deltaX * deltaX + deltaY * deltaY; in getPath() 222 boolean isQuadrant1Or3 = (deltaX * deltaY) > 0; in getPath() 224 if ((Math.abs(deltaX) < Math.abs(deltaY))) { in getPath() 230 float eDistY = h2 / (2 * deltaY); in getPath()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | OverlayListView.java | 163 public OverlayObject setTranslateYAnimation(int deltaY) { in setTranslateYAnimation() argument 164 mDeltaY = deltaY; in setTranslateYAnimation() 238 int deltaY = (int) (mDeltaY * interpolatedTime); in update() local 239 mCurrentBounds.top = mStartRect.top + deltaY; in update() 240 mCurrentBounds.bottom = mStartRect.bottom + deltaY; in update()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/ |
D | ConsecutiveTapsGestureDetector.java | 111 double deltaY = mPreviousTapEvent.getY() - currentTapEvent.getY(); in isConsecutiveTap() local 112 return (deltaX * deltaX + deltaY * deltaY <= mConsecutiveTapTouchSlopSquare); in isConsecutiveTap()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 543 int deltaX, int deltaY) { in dragViewBy() argument 544 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy() 565 int deltaY) { in dragViewBy() argument 573 int distance = (int) Math.hypot(deltaX, deltaY); in dragViewBy() 575 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy() 624 int deltaY = fromY - toY; in dragViewTo() local 626 int distance = (int)Math.hypot(deltaX, deltaY); in dragViewTo() 719 int deltaY = fromY - toY; in dragViewToY() local 721 drag(test, fromX, fromX, fromY, toY, deltaY); in dragViewToY() 723 return deltaY; in dragViewToY()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | TouchUtils.java | 226 int deltaY = fromY - toY; in dragViewTo() local 228 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewTo() 257 int deltaY = fromY - toY; in dragViewToY() local 259 drag(inst, fromX, fromX, fromY, toY, calculateStepsForDistance(deltaY)); in dragViewToY() 261 return deltaY; in dragViewToY()
|
/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 122 mLastOverscrollAmount = Math.max(0, scrollY + deltaY - getMaxScrollY()); in overScrollBy() 123 return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ListViewAutoScrollHelper.java | 36 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument 37 ListViewCompat.scrollListBy(mTarget, deltaY); in scrollTargetBy()
|
D | NestedScrollView.java | 766 int deltaY = mLastMotionY - y; in onTouchEvent() local 767 if (dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset)) { in onTouchEvent() 768 deltaY -= mScrollConsumed[1]; in onTouchEvent() 772 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent() 778 if (deltaY > 0) { in onTouchEvent() 779 deltaY -= mTouchSlop; in onTouchEvent() 781 deltaY += mTouchSlop; in onTouchEvent() 797 if (overScrollByCompat(0, deltaY, 0, getScrollY(), 0, range, 0, in onTouchEvent() 804 final int unconsumedY = deltaY - scrolledDeltaY; in onTouchEvent() 811 final int pulledToY = oldY + deltaY; in onTouchEvent() [all …]
|
D | AutoScrollHelper.java | 569 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument 710 final int deltaY = scroller.getDeltaY(); in run() local 711 scrollTargetBy(deltaX, deltaY); in run()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | GestureDetectorCompat.java | 333 final int deltaY = (int) (focusY - mDownFocusY); in onTouchEvent() local 334 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() 448 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local 449 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
|
/frameworks/base/core/java/android/widget/ |
D | SlidingDrawer.java | 597 int deltaY = position - top; in moveHandle() local 599 deltaY = mTopOffset - top; in moveHandle() 600 } else if (deltaY > mBottomOffset + mBottom - mTop - mHandleHeight - top) { in moveHandle() 601 deltaY = mBottomOffset + mBottom - mTop - mHandleHeight - top; in moveHandle() 603 handle.offsetTopAndBottom(deltaY); in moveHandle() 611 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle() 612 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle() 613 frame.bottom - deltaY + mContent.getHeight()); in moveHandle()
|
D | ScrollView.java | 652 int deltaY = mLastMotionY - y; in onTouchEvent() local 653 if (dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset)) { in onTouchEvent() 654 deltaY -= mScrollConsumed[1]; in onTouchEvent() 658 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent() 664 if (deltaY > 0) { in onTouchEvent() 665 deltaY -= mTouchSlop; in onTouchEvent() 667 deltaY += mTouchSlop; in onTouchEvent() 682 if (overScrollBy(0, deltaY, 0, mScrollY, 0, range, 0, mOverscrollDistance, true) in onTouchEvent() 689 final int unconsumedY = deltaY - scrolledDeltaY; in onTouchEvent() 695 final int pulledToY = oldY + deltaY; in onTouchEvent() [all …]
|
D | StackView.java | 638 float deltaY = newY - mInitialY; in onInterceptTouchEvent() local 640 beginGestureIfNeeded(deltaY); in onInterceptTouchEvent() 657 private void beginGestureIfNeeded(float deltaY) { in beginGestureIfNeeded() argument 658 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) { in beginGestureIfNeeded() 659 final int swipeGestureType = deltaY < 0 ? GESTURE_SLIDE_UP : GESTURE_SLIDE_DOWN; in beginGestureIfNeeded() 722 float deltaY = newY - mInitialY; 731 beginGestureIfNeeded(deltaY); 735 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 741 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 813 int deltaY = (int) (newY - mInitialY); [all …]
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 604 final int deltaY = (int) (focusY - mDownFocusY); in onTouchEvent() local 605 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() 762 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local 763 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | DefaultItemAnimator.java | 256 int deltaY = toY - fromY; in animateMove() local 257 if (deltaX == 0 && deltaY == 0) { in animateMove() 264 if (deltaY != 0) { in animateMove() 265 ViewCompat.setTranslationY(view, -deltaY); in animateMove() 274 final int deltaY = toY - fromY; in animateMoveImpl() local 278 if (deltaY != 0) { in animateMoveImpl() 296 if (deltaY != 0) { in animateMoveImpl() 323 int deltaY = (int) (toY - fromY - prevTranslationY); in animateChange() local 332 ViewCompat.setTranslationY(newHolder.itemView, -deltaY); in animateChange()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AutoScrollHelper.java | 568 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument 709 final int deltaY = scroller.getDeltaY(); in run() local 710 scrollTargetBy(deltaX, deltaY); in run() 881 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument 882 mTarget.scrollListBy(deltaY); in scrollTargetBy()
|
D | SwipeDismissLayout.java | 305 float deltaY = ev.getRawY() - mDownY; in updateSwiping() local 306 if ((deltaX * deltaX) + (deltaY * deltaY) > mSlop * mSlop) { in updateSwiping() 307 mSwiping = deltaX > mSlop * 2 && Math.abs(deltaY) < Math.abs(deltaX); in updateSwiping()
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 306 final int deltaY = (int) dy; in onInterceptTouchEvent() local 307 mTouchRemainderY = dy - deltaY; in onInterceptTouchEvent() 342 final int deltaY = (int) dy; in onTouchEvent() local 343 mTouchRemainderY = dy - deltaY; in onTouchEvent() 352 if (!trackMotionScroll(deltaY, true)) { in onTouchEvent() 387 private boolean trackMotionScroll(int deltaY, boolean allowOverScroll) { in trackMotionScroll() argument 389 final int allowOverhang = Math.abs(deltaY); in trackMotionScroll() 397 if (deltaY > 0) { in trackMotionScroll() 421 EdgeEffectCompat edge = deltaY > 0 ? mTopEdge : mBottomEdge; in trackMotionScroll() 422 edge.onPull((float) Math.abs(deltaY) / getHeight()); in trackMotionScroll() [all …]
|
/frameworks/native/include/input/ |
D | VelocityControl.h | 91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 155 int deltaY = mDeltaY; in drawIfNeeded() local 173 y += deltaY; in drawIfNeeded()
|
/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 151 *deltaX = *deltaY; in rotateDelta() 152 *deltaY = -temp; in rotateDelta() 157 *deltaY = -*deltaY; in rotateDelta() 162 *deltaX = -*deltaY; in rotateDelta() 163 *deltaY = temp; in rotateDelta() 2602 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local 2603 bool moved = deltaX != 0 || deltaY != 0; in sync() 2607 && (deltaX != 0.0f || deltaY != 0.0f)) { in sync() 2608 rotateDelta(mOrientation, &deltaX, &deltaY); in sync() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 366 int deltaY = source.getHeight() - targetHeight; in transform() local 367 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform() 379 int deltaYHalf = Math.max(0, deltaY / 2); in transform()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityGestureDetector.java | 232 final float deltaY = mBaseY - y; in onMotionEvent() local 233 final double moveDelta = Math.hypot(deltaX, deltaY); in onMotionEvent()
|