Home
last modified time | relevance | path

Searched refs:deltaY (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/native/libs/input/
DVelocityControl.cpp56 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { in move() argument
57 if ((deltaX && *deltaX) || (deltaY && *deltaY)) { in move()
70 if (deltaY) { in move()
71 mRawPositionY += *deltaY; in move()
112 if (deltaY) { in move()
113 *deltaY *= scale; in move()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.cpp58 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()
DCursorInputMapper.cpp259 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local
260 bool moved = deltaX != 0 || deltaY != 0; in sync()
263 rotateDelta(mOrientation, &deltaX, &deltaY); in sync()
281 mPointerVelocityControl.move(when, &deltaX, &deltaY); in sync()
290 mPointerController->move(deltaX, deltaY); in sync()
300 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync()
304 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
306 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync()
/frameworks/base/core/java/android/widget/
DEditorTouchState.java186 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()
DScrollView.java803 int deltaY = mLastMotionY - y; in onTouchEvent() local
804 if (dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset)) { in onTouchEvent()
805 deltaY -= mScrollConsumed[1]; in onTouchEvent()
809 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent()
815 if (deltaY > 0) { in onTouchEvent()
816 deltaY -= mTouchSlop; in onTouchEvent()
818 deltaY += mTouchSlop; in onTouchEvent()
834 if (deltaY < 0 && mEdgeGlowBottom.getDistance() != 0f) { in onTouchEvent()
836 * mEdgeGlowBottom.onPullDistance((float) deltaY / getHeight(), in onTouchEvent()
838 } else if (deltaY > 0 && mEdgeGlowTop.getDistance() != 0f) { in onTouchEvent()
[all …]
DSlidingDrawer.java604 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/
DArcMotion.java203 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java104 double deltaY = previousTapEvent.getY() - currentTapEvent.getY(); in isConsecutiveTap() local
106 return (deltaX * deltaX + deltaY * deltaY <= consecutiveTapTouchSlopSquare) in isConsecutiveTap()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DRelativeTouchListener.kt163 val deltaY = event.rawY - event.y in addMovement() constant
164 event.offsetLocation(deltaX, deltaY) in addMovement()
166 event.offsetLocation(-deltaX, -deltaY) in addMovement()
/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
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/
DTouchUtils.java561 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/
DReferenceConvolve.kt60 for (deltaY in -radius..radius) { in convolveOne() variable
62 val inputVector = inputAlloc[x + deltaX, y + deltaY] in convolveOne()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuListViewTouchHandler.java143 final float deltaY = motionEvent.getRawY() - motionEvent.getY(); in addMovement() local
144 motionEvent.offsetLocation(deltaX, deltaY); in addMovement()
146 motionEvent.offsetLocation(-deltaX, -deltaY); in addMovement()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiTap.java136 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()
DSecondFingerMultiTap.java152 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/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragPositioningCallbackUtility.java50 final float deltaY = inputY - repositionStartPoint.y; in calculateDelta() local
51 return new PointF(deltaX, deltaY); in calculateDelta()
140 final float deltaY = y - repositionStartPoint.y; in updateTaskBounds() local
142 repositionTaskBounds.offset((int) deltaX, (int) deltaY); in updateTaskBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationGestureDetector.java154 final int deltaY = (int) (mPointerDown.y - y); in stopSingleTapDetectionIfNeeded() local
155 final int distanceSquare = (deltaX * deltaX) + (deltaY * deltaY); in stopSingleTapDetectionIfNeeded()
/frameworks/native/services/inputflinger/tests/
DFakePointerController.cpp66 void FakePointerController::move(float deltaX, float deltaY) { in move() argument
70 mY += deltaY; in move()
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java263 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()
DAutoScrollHelper.java568 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/core/java/com/android/internal/policy/
DTaskResizingAlgorithm.java82 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/native/services/inputflinger/reader/mapper/gestures/
DGestureConverter.cpp155 float deltaY = gesture.details.move.dy; in handleMove() local
156 if (std::abs(deltaX) > 0 || std::abs(deltaY) > 0) { in handleMove()
159 rotateDelta(mOrientation, &deltaX, &deltaY); in handleMove()
162 mPointerController->move(deltaX, deltaY); in handleMove()
172 coords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in handleMove()
316 float deltaY = gesture.details.scroll.dy; in handleScroll() local
317 rotateDelta(mOrientation, &deltaX, &deltaY); in handleScroll()
320 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y) + deltaY); in handleScroll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
DMediaScrollView.kt111 deltaY: Int, in overScrollBy()
126 deltaY, in overScrollBy()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyView.java105 float deltaY = (mTouchY - mLastDrawnY); in drawTouch() local
106 float scaleFactor = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 1.5f; in drawTouch()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DGestureManifoldTest.java133 float deltaY = end.y - start.y; in fillPath() local
134 float distance = (float) Math.hypot(deltaX, deltaY); in fillPath()
137 float stepY = (float) deltaY / numSteps; in fillPath()

123