Home
last modified time | relevance | path

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

12

/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()
66 if (deltaY) { in move()
67 mRawPosition.y += *deltaY; in move()
104 if (deltaY) { in move()
105 *deltaY *= scale; in move()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java549 int deltaX, int deltaY) { in dragViewBy() argument
550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy()
571 int deltaY) { in dragViewBy() argument
579 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewBy()
581 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy()
630 int deltaY = fromY - toY; in dragViewTo() local
632 int distance = (int)Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewTo()
725 int deltaY = fromY - toY; in dragViewToY() local
727 drag(test, fromX, fromX, fromY, toY, deltaY); in dragViewToY()
729 return deltaY; in dragViewToY()
/frameworks/support/v4/java/android/support/v4/widget/
DListViewAutoScrollHelper.java36 public void scrollTargetBy(int deltaX, int deltaY) { in scrollTargetBy() argument
48 final int newTop = firstView.getTop() - deltaY; in scrollTargetBy()
DAutoScrollHelper.java569 public abstract void scrollTargetBy(int deltaX, int deltaY); in scrollTargetBy() argument
710 final int deltaY = scroller.getDeltaY(); in run() local
711 scrollTargetBy(deltaX, deltaY); in run()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DDelegateViewHelper.java100 float deltaY = sourceY - delegateY; in onInterceptTouchEvent()
101 event.offsetLocation(deltaX, deltaY); in onInterceptTouchEvent()
103 event.offsetLocation(-deltaX, -deltaY); in onInterceptTouchEvent()
/frameworks/support/v4/java/android/support/v4/view/
DGestureDetectorCompat.java333 final int deltaY = (int) (focusY - mDownFocusY); in onTouchEvent() local
334 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent()
448 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local
449 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
/frameworks/base/core/java/android/view/
DGestureDetector.java564 final int deltaY = (int) (focusY - mDownFocusY); in onTouchEvent() local
565 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent()
682 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local
683 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
DMotionEvent.java1342 private static native void nativeOffsetLocation(int nativePtr, float deltaX, float deltaY); in nativeOffsetLocation() argument
2685 public final void offsetLocation(float deltaX, float deltaY) { in offsetLocation() argument
2686 if (deltaX != 0.0f || deltaY != 0.0f) { in offsetLocation()
2687 nativeOffsetLocation(mNativePtr, deltaX, deltaY); in offsetLocation()
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java579 int deltaY = position - top; in moveHandle() local
581 deltaY = mTopOffset - top; in moveHandle()
582 } else if (deltaY > mBottomOffset + mBottom - mTop - mHandleHeight - top) { in moveHandle()
583 deltaY = mBottomOffset + mBottom - mTop - mHandleHeight - top; in moveHandle()
585 handle.offsetTopAndBottom(deltaY); in moveHandle()
593 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle()
594 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle()
595 frame.bottom - deltaY + mContent.getHeight()); in moveHandle()
DStackView.java632 float deltaY = newY - mInitialY; in onInterceptTouchEvent() local
634 beginGestureIfNeeded(deltaY); in onInterceptTouchEvent()
651 private void beginGestureIfNeeded(float deltaY) { in beginGestureIfNeeded() argument
652 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) { in beginGestureIfNeeded()
653 final int swipeGestureType = deltaY < 0 ? GESTURE_SLIDE_UP : GESTURE_SLIDE_DOWN; in beginGestureIfNeeded()
716 float deltaY = newY - mInitialY;
725 beginGestureIfNeeded(deltaY);
729 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
735 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
807 int deltaY = (int) (newY - mInitialY);
[all …]
DScrollView.java615 int deltaY = mLastMotionY - y; in onTouchEvent() local
616 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent()
622 if (deltaY > 0) { in onTouchEvent()
623 deltaY -= mTouchSlop; in onTouchEvent()
625 deltaY += mTouchSlop; in onTouchEvent()
641 if (overScrollBy(0, deltaY, 0, mScrollY, in onTouchEvent()
648 final int pulledToY = oldY + deltaY; in onTouchEvent()
650 mEdgeGlowTop.onPull((float) deltaY / getHeight()); in onTouchEvent()
655 mEdgeGlowBottom.onPull((float) deltaY / getHeight()); in onTouchEvent()
DAbsListView.java3163 final int deltaY = y - mMotionY; in startScrollIfNeeded() local
3164 final int distance = Math.abs(deltaY); in startScrollIfNeeded()
3173 mMotionCorrection = deltaY > 0 ? mTouchSlop : -mTouchSlop; in startScrollIfNeeded()
3197 final int deltaY = rawDeltaY - mMotionCorrection; in scrollIfNeeded() local
3198 int incrementalDeltaY = mLastY != Integer.MIN_VALUE ? y - mLastY : deltaY; in scrollIfNeeded()
3243 atEdge = trackMotionScroll(deltaY, incrementalDeltaY); in scrollIfNeeded()
4296 final int deltaY = currY - scrollY; local
4297 if (overScrollBy(0, deltaY, 0, scrollY, 0, 0,
4998 boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { in trackMotionScroll() argument
5025 if (deltaY < 0) { in trackMotionScroll()
[all …]
DNumberPicker.java2024 int deltaY = mInitialScrollOffset - mCurrentScrollOffset; in ensureScrollWheelAdjusted() local
2025 if (deltaY != 0) { in ensureScrollWheelAdjusted()
2027 if (Math.abs(deltaY) > mSelectorElementHeight / 2) { in ensureScrollWheelAdjusted()
2028 deltaY += (deltaY > 0) ? -mSelectorElementHeight : mSelectorElementHeight; in ensureScrollWheelAdjusted()
2030 mAdjustScroller.startScroll(0, 0, 0, deltaY, SELECTOR_ADJUSTMENT_DURATION_MILLIS); in ensureScrollWheelAdjusted()
/frameworks/base/core/java/com/android/internal/widget/
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()
DSlidingTab.java740 int deltaY = (int) y - handle.getTop() - (handle.getHeight() / 2);
741 handle.offsetTopAndBottom(deltaY);
742 content.offsetTopAndBottom(deltaY);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelView.java360 float deltaY = event.getRawY() - event.getY();
361 event.offsetLocation(deltaX, deltaY);
363 event.offsetLocation(-deltaX, -deltaY);
483 final float deltaY = Math.abs(mFinalTouchY - mInitialTouchY);
484 if (deltaY < mFlingGestureMinDistPx
495 deltaY,
/frameworks/native/include/input/
DVelocityControl.h91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
/frameworks/base/services/input/
DPointerController.h54 virtual void move(float deltaX, float deltaY) = 0;
160 virtual void move(float deltaX, float deltaY);
DPointerController.cpp127 void PointerController::move(float deltaX, float deltaY) { in move() argument
129 ALOGD("Move pointer by deltaX=%0.3f, deltaY=%0.3f", deltaX, deltaY); in move()
131 if (deltaX == 0.0f && deltaY == 0.0f) { in move()
137 setPositionLocked(mLocked.pointerX + deltaX, mLocked.pointerY + deltaY); in move()
DInputReader.cpp131 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument
136 *deltaX = *deltaY; in rotateDelta()
137 *deltaY = -temp; in rotateDelta()
142 *deltaY = -*deltaY; in rotateDelta()
147 *deltaX = -*deltaY; in rotateDelta()
148 *deltaY = temp; in rotateDelta()
2429 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local
2430 bool moved = deltaX != 0 || deltaY != 0; in sync()
2434 && (deltaX != 0.0f || deltaY != 0.0f)) { in sync()
2435 rotateDelta(mOrientation, &deltaX, &deltaY); in sync()
[all …]
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java306 final int deltaY = (int) dy; in onInterceptTouchEvent() local
307 mTouchRemainderY = dy - deltaY; in onInterceptTouchEvent()
342 final int deltaY = (int) dy; in onTouchEvent() local
343 mTouchRemainderY = dy - deltaY; in onTouchEvent()
352 if (!trackMotionScroll(deltaY, true)) { in onTouchEvent()
387 private boolean trackMotionScroll(int deltaY, boolean allowOverScroll) { in trackMotionScroll() argument
389 final int allowOverhang = Math.abs(deltaY); in trackMotionScroll()
397 if (deltaY > 0) { in trackMotionScroll()
421 EdgeEffectCompat edge = deltaY > 0 ? mTopEdge : mBottomEdge; in trackMotionScroll()
422 edge.onPull((float) Math.abs(deltaY) / getHeight()); in trackMotionScroll()
[all …]
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java153 int deltaY = mDeltaY; in drawIfNeeded() local
171 y += deltaY; in drawIfNeeded()
/frameworks/base/services/java/com/android/server/accessibility/
DTouchExplorer.java475 final float deltaY = receivedTracker.getReceivedPointerDownY(pointerId) in handleMotionEventStateTouchExploring() local
477 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
518 final float deltaY = in handleMotionEventStateTouchExploring() local
521 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
553 final float deltaY = receivedTracker.getReceivedPointerDownY( in handleMotionEventStateTouchExploring() local
555 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
673 final float deltaY = firstPtrY - secondPtrY; in handleMotionEventStateDragging() local
674 final double distance = Math.hypot(deltaX, deltaY); in handleMotionEventStateDragging()
677 event.setLocation(deltaX / 2, deltaY / 2); in handleMotionEventStateDragging()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java295 float deltaY = currentPointY - lstPointY; in temporalSampling() local
296 float distance = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in temporalSampling()
300 float ny = lstPointY + ratio * deltaY; in temporalSampling()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java371 int deltaY = source.getHeight() - targetHeight; in transform() local
372 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform()
384 int deltaYHalf = Math.max(0, deltaY / 2); in transform()

12