/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/native/services/inputflinger/reader/mapper/ |
D | TouchCursorInputMapperCommon.h | 30 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument 35 *deltaX = *deltaY; in rotateDelta() 36 *deltaY = -temp; in rotateDelta() 41 *deltaY = -*deltaY; in rotateDelta() 46 *deltaX = -*deltaY; in rotateDelta() 47 *deltaY = temp; in rotateDelta()
|
D | CursorInputMapper.cpp | 309 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local 310 bool moved = deltaX != 0 || deltaY != 0; in sync() 314 (deltaX != 0.0f || deltaY != 0.0f)) { in sync() 315 rotateDelta(mOrientation, &deltaX, &deltaY); in sync() 334 mPointerVelocityControl.move(when, &deltaX, &deltaY); in sync() 342 mPointerController->move(deltaX, deltaY); in sync() 357 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync() 361 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
|
/frameworks/base/core/java/android/transition/ |
D | ArcMotion.java | 203 float deltaY = endY - startY; in getPath() local 206 float h2 = deltaX * deltaX + deltaY * deltaY; in getPath() 219 if (deltaY == 0) { in getPath() 223 ex = dx + (Math.abs(deltaY) * 0.5f * mMinimumVerticalTangent); in getPath() 225 } else if ((Math.abs(deltaX) < Math.abs(deltaY))) { in getPath() 231 float eDistY = Math.abs(h2 / (2 * deltaY)); in getPath()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/ |
D | ConsecutiveTapsGestureDetector.java | 104 double deltaY = previousTapEvent.getY() - currentTapEvent.getY(); in isConsecutiveTap() local 106 return (deltaX * deltaX + deltaY * deltaY <= consecutiveTapTouchSlopSquare) 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/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/base/core/java/android/widget/ |
D | SlidingDrawer.java | 604 int deltaY = position - top; in moveHandle() local 606 deltaY = mTopOffset - top; in moveHandle() 607 } else if (deltaY > mBottomOffset + mBottom - mTop - mHandleHeight - top) { in moveHandle() 608 deltaY = mBottomOffset + mBottom - mTop - mHandleHeight - top; in moveHandle() 610 handle.offsetTopAndBottom(deltaY); in moveHandle() 618 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle() 619 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle() 620 frame.bottom - deltaY + mContent.getHeight()); in moveHandle()
|
D | StackView.java | 639 float deltaY = newY - mInitialY; in onInterceptTouchEvent() local 641 beginGestureIfNeeded(deltaY); in onInterceptTouchEvent() 658 private void beginGestureIfNeeded(float deltaY) { in beginGestureIfNeeded() argument 659 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) { in beginGestureIfNeeded() 660 final int swipeGestureType = deltaY < 0 ? GESTURE_SLIDE_UP : GESTURE_SLIDE_DOWN; in beginGestureIfNeeded() 723 float deltaY = newY - mInitialY; 732 beginGestureIfNeeded(deltaY); 736 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 742 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 814 int deltaY = (int) (newY - mInitialY); [all …]
|
D | ScrollView.java | 768 int deltaY = mLastMotionY - y; in onTouchEvent() local 769 if (dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset)) { in onTouchEvent() 770 deltaY -= mScrollConsumed[1]; in onTouchEvent() 774 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent() 780 if (deltaY > 0) { in onTouchEvent() 781 deltaY -= mTouchSlop; in onTouchEvent() 783 deltaY += mTouchSlop; in onTouchEvent() 798 if (overScrollBy(0, deltaY, 0, mScrollY, 0, range, 0, mOverscrollDistance, true) in onTouchEvent() 805 final int unconsumedY = deltaY - scrolledDeltaY; in onTouchEvent() 811 final int pulledToY = oldY + deltaY; in onTouchEvent() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DefaultItemAnimator.java | 263 int deltaY = toY - fromY; in animateMove() local 264 if (deltaX == 0 && deltaY == 0) { in animateMove() 271 if (deltaY != 0) { in animateMove() 272 view.setTranslationY(-deltaY); in animateMove() 281 final int deltaY = toY - fromY; in animateMoveImpl() local 285 if (deltaY != 0) { in animateMoveImpl() 304 if (deltaY != 0) { in animateMoveImpl() 332 int deltaY = (int) (toY - fromY - prevTranslationY); in animateChange() local 341 newHolder.itemView.setTranslationY(-deltaY); in animateChange()
|
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 | 327 float deltaY = ev.getRawY() - mDownY; in updateSwiping() local 328 if ((deltaX * deltaX) + (deltaY * deltaY) > mSlop * mSlop) { in updateSwiping() 329 mSwiping = deltaX > mSlop * 2 && Math.abs(deltaY) < Math.abs(deltaX); in updateSwiping()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 650 final int deltaY = (int) (focusY - mDownFocusY); in onTouchEvent() local 651 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() 857 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local 861 return (deltaX * deltaX + deltaY * deltaY < slopSquare); in isConsideredDoubleTap()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleTouchHandler.java | 137 final float deltaY = rawY - mTouchDown.y; in onTouch() local 139 if ((deltaX * deltaX) + (deltaY * deltaY) > mTouchSlopSquared && !mMovedEnough) { in onTouch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityGestureDetectorTest.java | 134 float deltaY = end.y - start.y; in fillPath() local 135 float distance = (float) Math.hypot(deltaX, deltaY); in fillPath() 138 float stepY = (float) deltaY / numSteps; in fillPath()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchState.java | 340 float deltaY = event.getRawY() - event.getY(); 341 event.offsetLocation(deltaX, deltaY); 343 event.offsetLocation(-deltaX, -deltaY);
|
/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/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyActivity.java | 108 float deltaY = (mTouchY - mLastDrawnY); in drawTouch() local 109 float scaleFactor = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 1.5f; in drawTouch()
|
/frameworks/native/include/input/ |
D | VelocityControl.h | 91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 129 long deltaY = Math.round(j * stepY); in createInterpolatedEventList() local 131 MotionEvent.ACTION_MOVE, startX + deltaX, startY + deltaY, 0); in createInterpolatedEventList()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 157 int deltaY = mDeltaY; in drawIfNeeded() local 175 y += deltaY; in drawIfNeeded()
|
/frameworks/native/services/inputflinger/include/ |
D | PointerControllerInterface.h | 48 virtual void move(float deltaX, float deltaY) = 0;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayout.java | 1790 private float overScrollUp(int deltaY, int range) { 1791 deltaY = Math.max(deltaY, 0); 1793 float newTopAmount = currentTopAmount - deltaY; 1843 private float overScrollDown(int deltaY) { 1844 deltaY = Math.min(deltaY, 0); 1846 float newBottomAmount = currentBottomAmount + deltaY; 1921 int deltaY = y - oldY; 1922 if (deltaY != 0) { 1925 if ((maxNegativeScrollAmount < 0 && deltaY < maxNegativeScrollAmount) 1926 || (maxPositiveScrollAmount > 0 && deltaY > maxPositiveScrollAmount)) { [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AutoclickController.java | 390 float deltaY = mAnchorCoords.y - event.getY(pointerIndex); in detectMovement() local 391 double delta = Math.hypot(deltaX, deltaY); in detectMovement()
|