/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() 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/ |
D | TouchCursorInputMapperCommon.h | 42 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()
|
D | CursorInputMapper.cpp | 323 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/ |
D | ArcMotion.java | 202 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/ |
D | EditorTouchState.java | 185 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()
|
D | SlidingDrawer.java | 634 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()
|
D | HorizontalScrollView.java | 721 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/ |
D | Watermark.java | 161 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/ |
D | ConsecutiveTapsGestureDetector.java | 103 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/ |
D | TouchUtils.java | 561 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/ |
D | RelativeTouchListener.kt | 162 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/ |
D | TaskPositioner.java | 118 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/ |
D | MultiTap.java | 135 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()
|
D | SecondFingerMultiTap.java | 151 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/ |
D | MagnificationGestureDetector.java | 152 final int deltaX = (int) (mPointerDown.x - x); in stopSingleTapDetectionIfNeeded() local 154 final int distanceSquare = (deltaX * deltaX) + (deltaY * deltaY); in stopSingleTapDetectionIfNeeded()
|
/frameworks/rs/toolkit/test/ |
D | ReferenceConvolve.kt | 61 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/ |
D | DefaultItemAnimator.java | 262 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()
|
D | AutoScrollHelper.java | 568 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/ |
D | TouchTracker.java | 103 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/ |
D | TaskResizingAlgorithm.java | 81 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/ |
D | MediaScrollView.kt | 110 deltaX: Int, in overScrollBy() 125 deltaX, in overScrollBy()
|
/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 123 return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 671 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/ |
D | GestureManifoldTest.java | 132 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/ |
D | PipTouchState.java | 370 float deltaX = event.getRawX() - event.getX(); 372 event.offsetLocation(deltaX, deltaY); 374 event.offsetLocation(-deltaX, -deltaY);
|