Home
last modified time | relevance | path

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

12

/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/base/core/java/android/view/
DGestureDetector.java537 final int deltaY = (int) (y - mCurrentDownEvent.getY()); in onTouchEvent() local
538 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent()
631 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local
632 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare); in isConsideredDoubleTap()
DMotionEvent.java1345 private static native void nativeOffsetLocation(int nativePtr, float deltaX, float deltaY); in nativeOffsetLocation() argument
2648 public final void offsetLocation(float deltaX, float deltaY) { in offsetLocation() argument
2649 nativeOffsetLocation(mNativePtr, deltaX, deltaY); in offsetLocation()
DView.java13459 protected boolean overScrollBy(int deltaX, int deltaY,
13479 int newScrollY = scrollY + deltaY;
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java573 int deltaY = position - top; in moveHandle() local
575 deltaY = mTopOffset - top; in moveHandle()
576 } else if (deltaY > mBottomOffset + mBottom - mTop - mHandleHeight - top) { in moveHandle()
577 deltaY = mBottomOffset + mBottom - mTop - mHandleHeight - top; in moveHandle()
579 handle.offsetTopAndBottom(deltaY); in moveHandle()
587 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle()
588 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle()
589 frame.bottom - deltaY + mContent.getHeight()); in moveHandle()
DStackView.java629 float deltaY = newY - mInitialY; in onInterceptTouchEvent() local
631 beginGestureIfNeeded(deltaY); in onInterceptTouchEvent()
648 private void beginGestureIfNeeded(float deltaY) { in beginGestureIfNeeded() argument
649 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) { in beginGestureIfNeeded()
650 final int swipeGestureType = deltaY < 0 ? GESTURE_SLIDE_UP : GESTURE_SLIDE_DOWN; in beginGestureIfNeeded()
713 float deltaY = newY - mInitialY;
722 beginGestureIfNeeded(deltaY);
726 float r = (deltaY - mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
732 float r = -(deltaY + mTouchSlop * 1.0f) / mSlideAmount * 1.0f;
804 int deltaY = (int) (newY - mInitialY);
[all …]
DAbsListView.java2766 final int deltaY = y - mMotionY; in startScrollIfNeeded() local
2767 final int distance = Math.abs(deltaY); in startScrollIfNeeded()
2776 mMotionCorrection = deltaY > 0 ? mTouchSlop : -mTouchSlop; in startScrollIfNeeded()
2806 final int deltaY = rawDeltaY - mMotionCorrection; in scrollIfNeeded() local
2807 int incrementalDeltaY = mLastY != Integer.MIN_VALUE ? y - mLastY : deltaY; in scrollIfNeeded()
2852 atEdge = trackMotionScroll(deltaY, incrementalDeltaY); in scrollIfNeeded()
3854 final int deltaY = currY - scrollY; local
3855 if (overScrollBy(0, deltaY, 0, scrollY, 0, 0,
4405 boolean trackMotionScroll(int deltaY, int incrementalDeltaY) {
4432 if (deltaY < 0) {
[all …]
DScrollView.java576 final int deltaY = (int) (mLastMotionY - y); in onTouchEvent() local
586 if (overScrollBy(0, deltaY, 0, mScrollY, in onTouchEvent()
594 final int pulledToY = oldY + deltaY; in onTouchEvent()
596 mEdgeGlowTop.onPull((float) deltaY / getHeight()); in onTouchEvent()
601 mEdgeGlowBottom.onPull((float) deltaY / getHeight()); in onTouchEvent()
DNumberPicker.java1796 int deltaY = mInitialScrollOffset - mCurrentScrollOffset; in run() local
1797 if (Math.abs(deltaY) > mSelectorElementHeight / 2) { in run()
1798 deltaY += (deltaY > 0) ? -mSelectorElementHeight : mSelectorElementHeight; in run()
1800 mAdjustScroller.startScroll(0, 0, 0, deltaY, SELECTOR_ADJUSTMENT_DURATION_MILLIS); in run()
DTextView.java10744 final float deltaY = mDownPositionY - ev.getRawY(); in onTouchEvent() local
10745 final float distanceSquared = deltaX * deltaX + deltaY * deltaY; in onTouchEvent()
11027 final float deltaY = y - mPreviousTapPositionY; in onTouchEvent() local
11028 final float distanceSquared = deltaX * deltaX + deltaY * deltaY; in onTouchEvent()
/frameworks/base/services/java/com/android/server/accessibility/
DTouchExplorer.java263 final float deltaY = pointerTracker.getReceivedPointerDownY(pointerId) in handleMotionEventStateTouchExploring() local
265 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
296 final float deltaY = mLastTouchExploreEvent.getY(pointerIndex) in handleMotionEventStateTouchExploring() local
298 final float moveDelta = (float) Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
398 final float deltaY = mLastTouchExploreEvent.getY(pointerIndex) in handleMotionEventStateTouchExploring() local
400 final float deltaMove = (float) Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
1316 final float deltaY = event.getY(pointerIndex) - mReceivedPointerDownY[pointerId]; in computePointerDeltaMove() local
1317 return (float) Math.hypot(deltaX, deltaY); in computePointerDeltaMove()
/frameworks/base/services/input/
DPointerController.h53 virtual void move(float deltaX, float deltaY) = 0;
159 virtual void move(float deltaX, float deltaY);
DPointerController.cpp127 void PointerController::move(float deltaX, float deltaY) { in move() argument
129 LOGD("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.cpp128 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument
133 *deltaX = *deltaY; in rotateDelta()
134 *deltaY = -temp; in rotateDelta()
139 *deltaY = -*deltaY; in rotateDelta()
144 *deltaX = -*deltaY; in rotateDelta()
145 *deltaY = temp; in rotateDelta()
2195 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local
2196 bool moved = deltaX != 0 || deltaY != 0; in sync()
2200 && (deltaX != 0.0f || deltaY != 0.0f)) { in sync()
2201 rotateDelta(mOrientation, &deltaX, &deltaY); in sync()
[all …]
/frameworks/base/core/java/android/webkit/
DOverScrollGlow.java107 public void setOverScrollDeltas(int deltaX, int deltaY) { in setOverScrollDeltas() argument
109 mOverScrollDeltaY = deltaY; in setOverScrollDeltas()
DWebView.java5992 int deltaY = mLastTouchY - y; in handleTouchEventCommon() local
6014 if (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare) { in handleTouchEventCommon()
6125 if (!mConfirmMove && (deltaX * deltaX + deltaY * deltaY) in handleTouchEventCommon()
6198 if (deltaX != 0 || deltaY != 0) { in handleTouchEventCommon()
6225 mAverageAngle = calculateDragAngle(deltaX, deltaY); in handleTouchEventCommon()
6234 mSnapPositive = deltaY > 0; in handleTouchEventCommon()
6243 deltaY = 0; in handleTouchEventCommon()
6252 if (deltaX == 0 && deltaY == 0) { in handleTouchEventCommon()
6256 (calculateDragAngle(deltaX, deltaY) - mAverageAngle) in handleTouchEventCommon()
6278 mSnapPositive = deltaY > 0; in handleTouchEventCommon()
[all …]
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java149 int deltaY = mDeltaY; in drawIfNeeded() local
167 y += deltaY; in drawIfNeeded()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java360 int deltaY = source.getHeight() - targetHeight; in transform() local
361 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform()
373 int deltaYHalf = Math.max(0, deltaY / 2); in transform()
/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/libs/ui/
DInput.cpp1115 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { in move() argument
1116 if ((deltaX && *deltaX) || (deltaY && *deltaY)) { in move()
1129 if (deltaY) { in move()
1130 mRawPosition.y += *deltaY; in move()
1167 if (deltaY) { in move()
1168 *deltaY *= scale; in move()
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java738 int deltaY = (int) y - handle.getTop() - (handle.getHeight() / 2);
739 handle.offsetTopAndBottom(deltaY);
740 content.offsetTopAndBottom(deltaY);
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java391 float deltaY = me2.getY() - me1.getY(); in initGestureDetector()
412 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
419 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp505 jint nativePtr, jfloat deltaX, jfloat deltaY) { in android_view_MotionEvent_nativeOffsetLocation() argument
507 return event->offsetLocation(deltaX, deltaY); in android_view_MotionEvent_nativeOffsetLocation()
/frameworks/base/include/ui/
DInput.h780 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java1510 float deltaY = event.getRawY() - event.getY();
1511 event.offsetLocation(deltaX, deltaY);
1513 event.offsetLocation(-deltaX, -deltaY);

12