Home
last modified time | relevance | path

Searched refs:deltaX (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/native/libs/input/
DVelocityControl.cpp47 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()
59 if (deltaX) { in move()
60 mRawPositionX += *deltaX; in move()
67 scaleDeltas(deltaX, deltaY); in move()
81 void SimpleVelocityControl::scaleDeltas(float* deltaX, float* deltaY) { in scaleDeltas() argument
112 if (deltaX != nullptr) { in scaleDeltas()
113 *deltaX *= scale; in scaleDeltas()
149 void CurvedVelocityControl::scaleDeltas(float* deltaX, float* deltaY) { in scaleDeltas() argument
180 if (deltaX != nullptr) { in scaleDeltas()
[all …]
/frameworks/native/libs/input/tests/
DVelocityControl_test.cpp38 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()
46 ASSERT_NEAR(expectedRatio * deltaX, newDeltaX, EPSILON) in moveAndCheckRatio()
48 << newDeltaX / deltaX; in moveAndCheckRatio()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.cpp58 void rotateDelta(ui::Rotation orientation, float* deltaX, float* deltaY) { in rotateDelta() argument
62 temp = *deltaX; in rotateDelta()
63 *deltaX = *deltaY; in rotateDelta()
68 *deltaX = -*deltaX; in rotateDelta()
73 temp = *deltaX; in rotateDelta()
74 *deltaX = -*deltaY; in rotateDelta()
DCursorInputMapper.cpp262 float deltaX = mCursorMotionAccumulator.getRelativeX() * mXScale; 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()
294 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
298 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
300 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
/frameworks/base/core/java/android/transition/
DArcMotion.java202 float deltaX = endX - startX; in getPath() local
206 float h2 = deltaX * deltaX + deltaY * deltaY; in getPath()
221 ey = dy + (Math.abs(deltaX) * 0.5f * mMinimumHorizontalTangent); in getPath()
222 } else if (deltaX == 0) { in getPath()
225 } else if ((Math.abs(deltaX) < Math.abs(deltaY))) { in getPath()
244 float eDistX = h2 / (2 * deltaX); in getPath()
/frameworks/base/core/java/android/widget/
DEditorTouchState.java185 float deltaX = event.getX() - mLastDownX; in update() local
187 float deltaXSquared = deltaX * deltaX; in update()
193 Math.abs(deltaX / deltaY); in update()
213 float deltaX = x2 - x1; in isDistanceWithin() local
215 float distanceSquared = (deltaX * deltaX) + (deltaY * deltaY); in isDistanceWithin()
DHorizontalScrollView.java731 int deltaX = mLastMotionX - x; in onTouchEvent() local
732 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent()
738 if (deltaX > 0) { in onTouchEvent()
739 deltaX -= mTouchSlop; in onTouchEvent()
741 deltaX += mTouchSlop; in onTouchEvent()
757 if (deltaX < 0 && mEdgeGlowRight.getDistance() != 0f) { in onTouchEvent()
759 * mEdgeGlowRight.onPullDistance((float) deltaX / getWidth(), in onTouchEvent()
761 } else if (deltaX > 0 && mEdgeGlowLeft.getDistance() != 0f) { in onTouchEvent()
763 * mEdgeGlowLeft.onPullDistance((float) -deltaX / getWidth(), in onTouchEvent()
766 deltaX -= consumed; in onTouchEvent()
[all …]
DSlidingDrawer.java634 int deltaX = position - left; in moveHandle() local
636 deltaX = mTopOffset - left; in moveHandle()
637 } else if (deltaX > mBottomOffset + mRight - mLeft - mHandleWidth - left) { in moveHandle()
638 deltaX = mBottomOffset + mRight - mLeft - mHandleWidth - left; in moveHandle()
640 handle.offsetLeftAndRight(deltaX); in moveHandle()
648 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); in moveHandle()
649 region.union(frame.right - deltaX, 0, in moveHandle()
650 frame.right - deltaX + mContent.getWidth(), getHeight()); in moveHandle()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java161 int deltaX = mDeltaX; in drawIfNeeded() local
166 int div = (dw + mTextWidth) / deltaX; in drawIfNeeded()
167 int rem = (dw + mTextWidth) - (div * deltaX); in drawIfNeeded()
168 int qdelta = deltaX / 4; in drawIfNeeded()
169 if (rem < qdelta || rem > (deltaX - qdelta)) { in drawIfNeeded()
170 deltaX += deltaX / 3; in drawIfNeeded()
177 x += deltaX; in drawIfNeeded()
/frameworks/native/include/input/
DVelocityControl.h100 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/base/core/java/android/window/
DBackTouchTracker.java192 float deltaX = Math.max(0f, distance); in getProgress() local
204 boolean isLinear = deltaX <= linearDistance; in getProgress()
206 progress = deltaX / initialTarget; in getProgress()
208 float nonLinearDeltaX = deltaX - linearDistance; in getProgress()
214 progress = deltaX / currentTarget; in getProgress()
218 progress = deltaX / maxDistance; in getProgress()
/frameworks/base/core/java/com/android/internal/policy/
DWearGestureInterceptionDetector.java92 float deltaX = ev.getRawX() - mDownX; 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()
DTaskResizingAlgorithm.java81 final int deltaX = Math.round(x - startDragX); in resizeDrag() local
92 width = Math.max(minVisibleWidth, Math.min(width - deltaX, maxVisibleSize.x)); in resizeDrag()
94 width = Math.max(minVisibleWidth, Math.min(width + deltaX, maxVisibleSize.x)); in resizeDrag()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java103 double deltaX = previousTapEvent.getX() - currentTapEvent.getX(); in isConsecutiveTap() local
106 return (deltaX * deltaX + deltaY * deltaY <= consecutiveTapTouchSlopSquare) in isConsecutiveTap()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java561 int deltaX, int deltaY) { in dragViewBy() argument
562 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy()
582 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX, 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()
641 int deltaX = fromX - toX; in dragViewTo() local
644 int distance = (int)Math.hypot(deltaX, deltaY); in dragViewTo()
690 int deltaX = fromX - toX; in dragViewToX() local
692 drag(test, fromX, toX, fromY, fromY, deltaX); in dragViewToX()
694 return deltaX; in dragViewToX()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuListViewTouchHandler.java144 final float deltaX = motionEvent.getRawX() - motionEvent.getX(); in addMovement() local
146 motionEvent.offsetLocation(deltaX, deltaY); in addMovement()
148 motionEvent.offsetLocation(-deltaX, -deltaY); in addMovement()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiTap.java135 final float deltaX = mBaseX - rawEvent.getX(); in isInsideSlop() local
137 if (deltaX == 0 && deltaY == 0) { in isInsideSlop()
140 final double moveDelta = Math.hypot(deltaX, deltaY); in isInsideSlop()
DSecondFingerMultiTap.java151 final float deltaX = mBaseX - rawEvent.getX(pointerIndex); in isSecondFingerInsideSlop() local
153 if (deltaX == 0 && deltaY == 0) { in isSecondFingerInsideSlop()
156 final double moveDelta = Math.hypot(deltaX, deltaY); in isSecondFingerInsideSlop()
/frameworks/rs/toolkit/test/
DReferenceConvolve.kt61 for (deltaX in -radius..radius) { in convolveOne() variable
62 val inputVector = inputAlloc[x + deltaX, y + deltaY] in convolveOne()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DRelativeTouchListener.kt174 val deltaX = event.rawX - event.x 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/
DMagnificationGestureDetector.java153 final int deltaX = (int) (mPointerDown.x - x); in stopSingleTapDetectionIfNeeded() local
155 final int distanceSquare = (deltaX * deltaX) + (deltaY * deltaY); in stopSingleTapDetectionIfNeeded()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragPositioningCallbackUtility.java51 final float deltaX = inputX - repositionStartPoint.x; in calculateDelta() local
53 return new PointF(deltaX, deltaY); in calculateDelta()
141 final float deltaX = x - repositionStartPoint.x; in updateTaskBounds() local
144 repositionTaskBounds.offset((int) deltaX, (int) deltaY); in updateTaskBounds()
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java262 int deltaX = toX - fromX; in animateMove() local
264 if (deltaX == 0 && deltaY == 0) { in animateMove()
268 if (deltaX != 0) { in animateMove()
269 view.setTranslationX(-deltaX); in animateMove()
280 final int deltaX = toX - fromX; in animateMoveImpl() local
282 if (deltaX != 0) { in animateMoveImpl()
301 if (deltaX != 0) { in animateMoveImpl()
331 int deltaX = (int) (toX - fromX - prevTranslationX); in animateChange() local
340 newHolder.itemView.setTranslationX(-deltaX); in animateChange()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyView.java104 float deltaX = (mTouchX - mLastDrawnX); 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/statusbar/phone/
DObservableScrollView.java119 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()

123