/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 47 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { in move() argument 48 if ((deltaX == nullptr || *deltaX == 0) && (deltaY == nullptr || *deltaY == 0)) { in move() 62 if (deltaY) { in move() 63 mRawPositionY += *deltaY; in move() 67 scaleDeltas(deltaX, deltaY); in move() 81 void SimpleVelocityControl::scaleDeltas(float* deltaX, float* deltaY) { in scaleDeltas() argument 115 if (deltaY != nullptr) { in scaleDeltas() 116 *deltaY *= scale; in scaleDeltas() 149 void CurvedVelocityControl::scaleDeltas(float* deltaX, float* deltaY) { in scaleDeltas() argument 183 if (deltaY != nullptr) { in scaleDeltas() [all …]
|
/frameworks/native/libs/input/tests/ |
D | VelocityControl_test.cpp | 38 void moveWithoutCheckingResult(nsecs_t eventTime, float deltaX, float deltaY) { in moveWithoutCheckingResult() argument 39 mCtrl.move(eventTime, &deltaX, &deltaY); in moveWithoutCheckingResult() 42 void moveAndCheckRatio(nsecs_t eventTime, const float deltaX, const float deltaY, in moveAndCheckRatio() argument 44 float newDeltaX = deltaX, newDeltaY = deltaY; in moveAndCheckRatio() 49 ASSERT_NEAR(expectedRatio * deltaY, newDeltaY, EPSILON) in moveAndCheckRatio() 51 << newDeltaY / deltaY; in moveAndCheckRatio()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | TouchCursorInputMapperCommon.cpp | 58 void rotateDelta(ui::Rotation orientation, float* deltaX, float* deltaY) { in rotateDelta() argument 63 *deltaX = *deltaY; in rotateDelta() 64 *deltaY = -temp; in rotateDelta() 69 *deltaY = -*deltaY; in rotateDelta() 74 *deltaX = -*deltaY; in rotateDelta() 75 *deltaY = temp; in rotateDelta()
|
D | CursorInputMapper.cpp | 263 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local 264 bool moved = deltaX != 0 || deltaY != 0; in sync() 267 rotateDelta(mOrientation, &deltaX, &deltaY); in sync() 286 mNewPointerVelocityControl.move(when, &deltaX, &deltaY); in sync() 288 mOldPointerVelocityControl.move(when, &deltaX, &deltaY); in sync() 295 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync() 299 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync() 301 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync()
|
/frameworks/base/core/java/android/widget/ |
D | EditorTouchState.java | 186 float deltaY = event.getY() - mLastDownY; in update() local 188 float distanceSquared = (deltaXSquared) + (deltaY * deltaY); in update() 192 mInitialDragDirectionXYRatio = (deltaY == 0) ? Float.MAX_VALUE : in update() 193 Math.abs(deltaX / deltaY); in update() 214 float deltaY = y2 - y1; in isDistanceWithin() local 215 float distanceSquared = (deltaX * deltaX) + (deltaY * deltaY); in isDistanceWithin()
|
D | ScrollView.java | 831 int deltaY = mLastMotionY - y; in onTouchEvent() local 832 if (dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset)) { in onTouchEvent() 833 deltaY -= mScrollConsumed[1]; in onTouchEvent() 837 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent() 843 if (deltaY > 0) { in onTouchEvent() 844 deltaY -= mTouchSlop; in onTouchEvent() 846 deltaY += mTouchSlop; in onTouchEvent() 862 if (deltaY < 0 && mEdgeGlowBottom.getDistance() != 0f) { in onTouchEvent() 864 * mEdgeGlowBottom.onPullDistance((float) deltaY / getHeight(), in onTouchEvent() 866 } else if (deltaY > 0 && mEdgeGlowTop.getDistance() != 0f) { in onTouchEvent() [all …]
|
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()
|
/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/native/include/input/ |
D | VelocityControl.h | 100 void move(nsecs_t eventTime, float* deltaX, float* deltaY); 103 virtual void scaleDeltas(float* deltaX, float* deltaY) = 0; 127 virtual void scaleDeltas(float* deltaX, float* deltaY) override; 144 virtual void scaleDeltas(float* deltaX, float* deltaY) override;
|
/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/core/java/com/android/internal/policy/ |
D | WearGestureInterceptionDetector.java | 93 float deltaY = ev.getRawY() - mDownY; in updateSwiping() local 95 if ((deltaX * deltaX) + (deltaY * deltaY) > (mTouchSlop * mTouchSlop)) { in updateSwiping() 96 mSwiping = deltaX > mSwipingStartThreshold && Math.abs(deltaY) < Math.abs(deltaX); in updateSwiping()
|
D | TaskResizingAlgorithm.java | 82 final int deltaY = Math.round(y - startDragY); in resizeDrag() local 97 height = Math.max(minVisibleHeight, Math.min(height - deltaY, maxVisibleSize.y)); in resizeDrag() 99 height = Math.max(minVisibleHeight, Math.min(height + deltaY, maxVisibleSize.y)); in resizeDrag()
|
/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/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/rs/toolkit/test/ |
D | ReferenceConvolve.kt | 60 for (deltaY in -radius..radius) { in convolveOne() variable 62 val inputVector = inputAlloc[x + deltaX, y + deltaY] in convolveOne()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | MultiTap.java | 136 final float deltaY = mBaseY - rawEvent.getY(); in isInsideSlop() local 137 if (deltaX == 0 && deltaY == 0) { in isInsideSlop() 140 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/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuListViewTouchHandler.java | 145 final float deltaY = motionEvent.getRawY() - motionEvent.getY(); in addMovement() local 146 motionEvent.offsetLocation(deltaX, deltaY); in addMovement() 148 motionEvent.offsetLocation(-deltaX, -deltaY); in addMovement()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | RelativeTouchListener.kt | 175 val deltaY = event.rawY - event.y in addMovement() constant 176 event.offsetLocation(deltaX, deltaY) in addMovement() 178 event.offsetLocation(-deltaX, -deltaY) in addMovement()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | MagnificationGestureDetector.java | 154 final int deltaY = (int) (mPointerDown.y - y); in stopSingleTapDetectionIfNeeded() local 155 final int distanceSquare = (deltaX * deltaX) + (deltaY * deltaY); in stopSingleTapDetectionIfNeeded()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragPositioningCallbackUtility.java | 52 final float deltaY = inputY - repositionStartPoint.y; in calculateDelta() local 53 return new PointF(deltaX, deltaY); in calculateDelta() 142 final float deltaY = y - repositionStartPoint.y; in updateTaskBounds() local 144 repositionTaskBounds.offset((int) deltaX, (int) deltaY); in updateTaskBounds()
|
/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/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyView.java | 105 float deltaY = (mTouchY - mLastDrawnY); in drawTouch() local 106 float scaleFactor = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 1.5f; in drawTouch()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/ |
D | MediaScrollView.kt | 119 deltaY: Int, in overScrollBy() 134 deltaY, in overScrollBy()
|