Home
last modified time | relevance | path

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

12

/frameworks/base/libs/androidfw/
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/base/packages/SystemUI/src/com/android/systemui/statusbar/
DDelegateViewHelper.java93 float deltaY = sourceY - delegateY; in onInterceptTouchEvent()
94 event.offsetLocation(deltaX, deltaY); in onInterceptTouchEvent()
96 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.java563 final int deltaY = (int) (focusY - mDownFocusY); in onTouchEvent() local
564 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent()
680 int deltaY = (int) firstDown.getY() - (int) secondDown.getY(); in isConsideredDoubleTap() local
681 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.java610 int deltaY = mLastMotionY - y; in onTouchEvent() local
611 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) { in onTouchEvent()
617 if (deltaY > 0) { in onTouchEvent()
618 deltaY -= mTouchSlop; in onTouchEvent()
620 deltaY += mTouchSlop; in onTouchEvent()
634 if (overScrollBy(0, deltaY, 0, mScrollY, in onTouchEvent()
642 final int pulledToY = oldY + deltaY; in onTouchEvent()
644 mEdgeGlowTop.onPull((float) deltaY / getHeight()); in onTouchEvent()
649 mEdgeGlowBottom.onPull((float) deltaY / getHeight()); in onTouchEvent()
DAbsListView.java3040 final int deltaY = y - mMotionY; in startScrollIfNeeded() local
3041 final int distance = Math.abs(deltaY); in startScrollIfNeeded()
3050 mMotionCorrection = deltaY > 0 ? mTouchSlop : -mTouchSlop; in startScrollIfNeeded()
3080 final int deltaY = rawDeltaY - mMotionCorrection; in scrollIfNeeded() local
3081 int incrementalDeltaY = mLastY != Integer.MIN_VALUE ? y - mLastY : deltaY; in scrollIfNeeded()
3126 atEdge = trackMotionScroll(deltaY, incrementalDeltaY); in scrollIfNeeded()
4169 final int deltaY = currY - scrollY; local
4170 if (overScrollBy(0, deltaY, 0, scrollY, 0, 0,
4835 boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { in trackMotionScroll() argument
4862 if (deltaY < 0) { in trackMotionScroll()
[all …]
DNumberPicker.java2008 int deltaY = mInitialScrollOffset - mCurrentScrollOffset; in ensureScrollWheelAdjusted() local
2009 if (deltaY != 0) { in ensureScrollWheelAdjusted()
2011 if (Math.abs(deltaY) > mSelectorElementHeight / 2) { in ensureScrollWheelAdjusted()
2012 deltaY += (deltaY > 0) ? -mSelectorElementHeight : mSelectorElementHeight; in ensureScrollWheelAdjusted()
2014 mAdjustScroller.startScroll(0, 0, 0, deltaY, SELECTOR_ADJUSTMENT_DURATION_MILLIS); in ensureScrollWheelAdjusted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelView.java351 float deltaY = event.getRawY() - event.getY();
352 event.offsetLocation(deltaX, deltaY);
354 event.offsetLocation(-deltaX, -deltaY);
453 final float deltaY = Math.abs(mFinalTouchY - mInitialTouchY);
454 if (deltaY < mFlingGestureMinDistPx
465 deltaY,
/frameworks/base/include/androidfw/
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()
2428 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; in sync() local
2429 bool moved = deltaX != 0 || deltaY != 0; in sync()
2433 && (deltaX != 0.0f || deltaY != 0.0f)) { in sync()
2434 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/core/java/android/webkit/
DOverScrollGlow.java107 public void setOverScrollDeltas(int deltaX, int deltaY) { in setOverScrollDeltas() argument
109 mOverScrollDeltaY = deltaY; in setOverScrollDeltas()
DWebViewInputDispatcher.java488 int deltaY = (int) mInitialDownY - (int) event.getY(); in checkForDoubleTapOnDownLocked() local
489 if ((deltaX * deltaX + deltaY * deltaY) < mDoubleTapSlopSquared) { in checkForDoubleTapOnDownLocked()
525 int deltaY = (int) mInitialDownY - (int) event.getY(); in checkForSlopLocked() local
526 if ((deltaX * deltaX + deltaY * deltaY) > mTouchSlopSquared) { in checkForSlopLocked()
DWebViewClassic.java5870 int deltaY = mLastTouchY - y; in handleTouchEventCommon() local
5897 if (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare) { in handleTouchEventCommon()
5950 if (!mConfirmMove && (deltaX * deltaX + deltaY * deltaY) in handleTouchEventCommon()
5968 if (deltaX != 0 || deltaY != 0) { in handleTouchEventCommon()
6037 deltaY = 0; in handleTouchEventCommon()
6045 if (deltaX == 0 && deltaY == 0) { in handleTouchEventCommon()
6050 mDistanceY += Math.abs(deltaY); in handleTouchEventCommon()
6067 deltaY = 0; in handleTouchEventCommon()
6072 if (deltaX * deltaX + deltaY * deltaY > mTouchSlopSquare) { in handleTouchEventCommon()
6080 boolean allDrag = doDrag(deltaX, deltaY); in handleTouchEventCommon()
[all …]
/frameworks/base/services/java/com/android/server/accessibility/
DTouchExplorer.java486 final float deltaY = receivedTracker.getReceivedPointerDownY(pointerId) in handleMotionEventStateTouchExploring() local
488 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
529 final float deltaY = in handleMotionEventStateTouchExploring() local
532 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
566 final float deltaY = receivedTracker.getReceivedPointerDownY(pointerId) in handleMotionEventStateTouchExploring() local
568 final double moveDelta = Math.hypot(deltaX, deltaY); in handleMotionEventStateTouchExploring()
704 final float deltaY = firstPtrY - secondPtrY; in handleMotionEventStateDragging() local
705 final double distance = Math.hypot(deltaX, deltaY); in handleMotionEventStateDragging()
708 event.setLocation(deltaX / 2, deltaY / 2); in handleMotionEventStateDragging()
2121 final float deltaY = event.getY(pointerIndex) - mReceivedPointerDownY[pointerId]; in computePointerDeltaMove() local
[all …]
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java153 int deltaY = mDeltaY; in drawIfNeeded() local
171 y += deltaY; in drawIfNeeded()
/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()
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java740 int deltaY = (int) y - handle.getTop() - (handle.getHeight() / 2);
741 handle.offsetTopAndBottom(deltaY);
742 content.offsetTopAndBottom(deltaY);

12