/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() 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/ |
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() 46 ASSERT_NEAR(expectedRatio * deltaX, newDeltaX, EPSILON) in moveAndCheckRatio() 48 << newDeltaX / deltaX; in moveAndCheckRatio()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | TouchCursorInputMapperCommon.cpp | 58 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()
|
D | CursorInputMapper.cpp | 262 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/ |
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 | HorizontalScrollView.java | 731 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 …]
|
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()
|
/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/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/base/core/java/android/window/ |
D | BackTouchTracker.java | 192 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/ |
D | WearGestureInterceptionDetector.java | 92 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()
|
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/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/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuListViewTouchHandler.java | 144 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/ |
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/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/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | RelativeTouchListener.kt | 174 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/ |
D | MagnificationGestureDetector.java | 153 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/ |
D | DragPositioningCallbackUtility.java | 51 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/ |
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()
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyView.java | 104 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/ |
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()
|