/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 | 287 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local 288 bool moved = deltaX != 0 || deltaY != 0; in sync() 292 (deltaX != 0.0f || deltaY != 0.0f)) { in sync() 293 rotateDelta(mOrientation, &deltaX, &deltaY); in sync() 312 mPointerVelocityControl.move(when, &deltaX, &deltaY); in sync() 322 mPointerController->move(deltaX, deltaY); in sync() 336 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync() 340 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
|
/frameworks/base/core/java/android/widget/ |
D | EditorTouchState.java | 171 float deltaY = event.getY() - mLastDownY; in update() local 173 float distanceSquared = (deltaXSquared) + (deltaY * deltaY); in update() 179 mIsDragCloseToVertical = Math.abs(deltaX) <= Math.abs(deltaY); in update() 200 float deltaY = y2 - y1; in isDistanceWithin() local 201 float distanceSquared = (deltaX * deltaX) + (deltaY * deltaY); in isDistanceWithin()
|
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 | 641 float deltaY = newY - mInitialY; in onInterceptTouchEvent() local 643 beginGestureIfNeeded(deltaY); in onInterceptTouchEvent() 660 private void beginGestureIfNeeded(float deltaY) { in beginGestureIfNeeded() argument 661 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) { in beginGestureIfNeeded() 662 final int swipeGestureType = deltaY < 0 ? GESTURE_SLIDE_UP : GESTURE_SLIDE_DOWN; in beginGestureIfNeeded() 725 float deltaY = newY - mInitialY; 734 beginGestureIfNeeded(deltaY); 738 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 744 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f; 816 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/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 | 561 int deltaX, int deltaY) { in dragViewBy() argument 562 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy() 583 int deltaY) { in dragViewBy() argument 591 int distance = (int) Math.hypot(deltaX, deltaY); in dragViewBy() 593 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy() 642 int deltaY = fromY - toY; in dragViewTo() local 644 int distance = (int)Math.hypot(deltaX, deltaY); in dragViewTo() 737 int deltaY = fromY - toY; in dragViewToY() local 739 drag(test, fromX, fromX, fromY, toY, deltaY); in dragViewToY() 741 return deltaY; in dragViewToY()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | RelativeTouchListener.kt | 159 val deltaY = event.rawY - event.y in addMovement() constant 160 event.offsetLocation(deltaX, deltaY) in addMovement() 162 event.offsetLocation(-deltaX, -deltaY) in addMovement()
|
/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/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | MultiTap.java | 134 final float deltaY = mBaseY - rawEvent.getY(); in isInsideSlop() local 135 if (deltaX == 0 && deltaY == 0) { in isInsideSlop() 138 final double moveDelta = Math.hypot(deltaX, deltaY); in isInsideSlop()
|
D | SecondFingerMultiTap.java | 152 final float deltaY = mBaseY - rawEvent.getY(pointerIndex); in isSecondFingerInsideSlop() local 153 if (deltaX == 0 && deltaY == 0) { in isSecondFingerInsideSlop() 156 final double moveDelta = Math.hypot(deltaX, deltaY); in isSecondFingerInsideSlop()
|
/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()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | TaskResizingAlgorithm.java | 84 final int deltaY = Math.round(y - startDragY); in resizeDrag() local 99 height = Math.max(minVisibleHeight, Math.min(height - deltaY, maxVisibleSize.y)); in resizeDrag() 101 height = Math.max(minVisibleHeight, Math.min(height + deltaY, maxVisibleSize.y)); in resizeDrag()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaScrollView.kt | 103 deltaY: Int, in overScrollBy() 116 return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, in overScrollBy()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 678 final int deltaY = (int) (focusY - mDownFocusY); in onTouchEvent() local 679 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() 885 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local 889 return (deltaX * deltaX + deltaY * deltaY < slopSquare); in isConsideredDoubleTap()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
D | GestureManifoldTest.java | 131 float deltaY = end.y - start.y; in fillPath() local 132 float distance = (float) Math.hypot(deltaX, deltaY); in fillPath() 135 float stepY = (float) deltaY / numSteps; in fillPath()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchState.java | 353 float deltaY = event.getRawY() - event.getY(); 354 event.offsetLocation(deltaX, deltaY); 356 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/native/include/input/ |
D | VelocityControl.h | 91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyActivity.java | 112 float deltaY = (mTouchY - mLastDrawnY); in drawTouch() local 113 float scaleFactor = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 1.5f; in drawTouch()
|
/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()
|