Home
last modified time | relevance | path

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

123

/frameworks/native/libs/input/
DVelocityControl.cpp52 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { in move() argument
53 if ((deltaX && *deltaX) || (deltaY && *deltaY)) { in move()
63 if (deltaX) { in move()
64 mRawPosition.x += *deltaX; in move()
102 if (deltaX) { in move()
103 *deltaX *= scale; in move()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.h42 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument
46 temp = *deltaX; in rotateDelta()
47 *deltaX = *deltaY; in rotateDelta()
52 *deltaX = -*deltaX; in rotateDelta()
57 temp = *deltaX; in rotateDelta()
58 *deltaX = -*deltaY; in rotateDelta()
DCursorInputMapper.cpp323 float deltaX = mCursorMotionAccumulator.getRelativeX() * mXScale; in sync() local
325 bool moved = deltaX != 0 || deltaY != 0; in sync()
328 rotateDelta(mOrientation, &deltaX, &deltaY); in sync()
346 mPointerVelocityControl.move(when, &deltaX, &deltaY); in sync()
355 mPointerController->move(deltaX, deltaY); in sync()
369 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
373 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
375 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()
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()
DHorizontalScrollView.java721 int deltaX = mLastMotionX - x; in onTouchEvent() local
722 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent()
728 if (deltaX > 0) { in onTouchEvent()
729 deltaX -= mTouchSlop; in onTouchEvent()
731 deltaX += mTouchSlop; in onTouchEvent()
747 if (deltaX < 0 && mEdgeGlowRight.getDistance() != 0f) { in onTouchEvent()
749 * mEdgeGlowRight.onPullDistance((float) deltaX / getWidth(), in onTouchEvent()
751 } else if (deltaX > 0 && mEdgeGlowLeft.getDistance() != 0f) { in onTouchEvent()
753 * mEdgeGlowLeft.onPullDistance((float) -deltaX / getWidth(), in onTouchEvent()
756 deltaX -= consumed; in onTouchEvent()
[all …]
/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/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/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DRelativeTouchListener.kt162 val deltaX = event.rawX - event.x in addMovement() constant
164 event.offsetLocation(deltaX, deltaY) in addMovement()
166 event.offsetLocation(-deltaX, -deltaY) in addMovement()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DTaskPositioner.java118 final float deltaX = x - mRepositionStartPoint.x; in changeBounds() local
129 final int candidateLeft = mRepositionTaskBounds.left + (int) deltaX; in changeBounds()
134 final int candidateRight = mRepositionTaskBounds.right + (int) deltaX; in changeBounds()
149 mRepositionTaskBounds.offset((int) deltaX, (int) deltaY); in changeBounds()
/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/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationGestureDetector.java152 final int deltaX = (int) (mPointerDown.x - x); in stopSingleTapDetectionIfNeeded() local
154 final int distanceSquare = (deltaX * deltaX) + (deltaY * deltaY); in stopSingleTapDetectionIfNeeded()
/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/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()
DAutoScrollHelper.java568 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument
708 final int deltaX = scroller.getDeltaX(); in run() local
710 scrollTargetBy(deltaX, deltaY); in run()
881 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DTouchTracker.java103 float deltaX = Math.max( in createProgressEvent() local
108 progress = Math.min(Math.max(deltaX / progressThreshold, 0), 1); in createProgressEvent()
/frameworks/base/core/java/com/android/internal/policy/
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/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
DMediaScrollView.kt110 deltaX: Int, in overScrollBy()
125 deltaX, in overScrollBy()
/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()
/frameworks/base/core/java/android/view/
DGestureDetector.java671 final int deltaX = (int) (focusX - mDownFocusX); in onTouchEvent() local
673 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent()
878 int deltaX = (int) firstDown.getX() - (int) secondDown.getX(); in isConsideredDoubleTap() local
883 return (deltaX * deltaX + deltaY * deltaY < slopSquare); in isConsideredDoubleTap()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DGestureManifoldTest.java132 float deltaX = end.x - start.x; in fillPath() local
134 float distance = (float) Math.hypot(deltaX, deltaY); in fillPath()
136 float stepX = (float) deltaX / numSteps; in fillPath()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchState.java370 float deltaX = event.getRawX() - event.getX();
372 event.offsetLocation(deltaX, deltaY);
374 event.offsetLocation(-deltaX, -deltaY);

123