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

12

/frameworks/base/libs/androidfw/
H A DVelocityControl.cpp52 void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) { argument
53 if ((deltaX && *deltaX) || (deltaY && *deltaY)) {
66 if (deltaY) {
67 mRawPosition.y += *deltaY;
104 if (deltaY) {
105 *deltaY *= scale;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDelegateViewHelper.java93 float deltaY = sourceY - delegateY;
94 event.offsetLocation(deltaX, deltaY);
96 event.offsetLocation(-deltaX, -deltaY);
/frameworks/base/include/androidfw/
H A DVelocityControl.h91 void move(nsecs_t eventTime, float* deltaX, float* deltaY);
/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java539 * @param deltaY Amount to drag vertically in pixels
549 int deltaX, int deltaY) {
550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY);
561 * @param deltaY Amount to drag vertically in pixels
571 int deltaY) {
579 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY);
581 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance);
630 int deltaY = fromY - toY;
632 int distance = (int)Math.sqrt(deltaX * deltaX + deltaY * delta
548 dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity, int deltaX, int deltaY) argument
570 dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX, int deltaY) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java579 int deltaY = position - top;
581 deltaY = mTopOffset - top;
582 } else if (deltaY > mBottomOffset + mBottom - mTop - mHandleHeight - top) {
583 deltaY = mBottomOffset + mBottom - mTop - mHandleHeight - top;
585 handle.offsetTopAndBottom(deltaY);
593 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY);
594 region.union(0, frame.bottom - deltaY, getWidth(),
595 frame.bottom - deltaY + mContent.getHeight());
H A DStackView.java632 float deltaY = newY - mInitialY;
634 beginGestureIfNeeded(deltaY);
651 private void beginGestureIfNeeded(float deltaY) { argument
652 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) {
653 final int swipeGestureType = deltaY < 0 ? GESTURE_SLIDE_UP : GESTURE_SLIDE_DOWN;
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
[all...]
H A DScrollView.java610 int deltaY = mLastMotionY - y;
611 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
617 if (deltaY > 0) {
618 deltaY -= mTouchSlop;
620 deltaY += mTouchSlop;
634 if (overScrollBy(0, deltaY, 0, mScrollY,
642 final int pulledToY = oldY + deltaY;
644 mEdgeGlowTop.onPull((float) deltaY / getHeight());
649 mEdgeGlowBottom.onPull((float) deltaY / getHeight());
H A DAbsListView.java3001 final int deltaY = y - mMotionY;
3002 final int distance = Math.abs(deltaY);
3011 mMotionCorrection = deltaY > 0 ? mTouchSlop : -mTouchSlop;
3041 final int deltaY = rawDeltaY - mMotionCorrection;
3042 int incrementalDeltaY = mLastY != Integer.MIN_VALUE ? y - mLastY : deltaY;
3087 atEdge = trackMotionScroll(deltaY, incrementalDeltaY);
4129 final int deltaY = currY - scrollY;
4130 if (overScrollBy(0, deltaY, 0, scrollY, 0, 0,
4790 * @param deltaY Amount to offset mMotionView. This is the accumulated delta since the motion
4792 * @param incrementalDeltaY Change in deltaY fro
4795 trackMotionScroll(int deltaY, int incrementalDeltaY) argument
[all...]
H A DNumberPicker.java1976 int deltaY = mInitialScrollOffset - mCurrentScrollOffset;
1977 if (deltaY != 0) {
1979 if (Math.abs(deltaY) > mSelectorElementHeight / 2) {
1980 deltaY += (deltaY > 0) ? -mSelectorElementHeight : mSelectorElementHeight;
1982 mAdjustScroller.startScroll(0, 0, 0, deltaY, SELECTOR_ADJUSTMENT_DURATION_MILLIS);
/frameworks/base/core/java/android/view/
H A DGestureDetector.java557 final int deltaY = (int) (focusY - mDownFocusY);
558 int distance = (deltaX * deltaX) + (deltaY * deltaY);
668 int deltaY = (int) firstDown.getY() - (int) secondDown.getY();
669 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare);
H A DMotionEvent.java1342 private static native void nativeOffsetLocation(int nativePtr, float deltaX, float deltaY); argument
2685 * @param deltaY Amount to add to the current Y coordinate of the event.
2687 public final void offsetLocation(float deltaX, float deltaY) { argument
2688 if (deltaX != 0.0f || deltaY != 0.0f) {
2689 nativeOffsetLocation(mNativePtr, deltaX, deltaY);
/frameworks/support/v4/java/android/support/v4/view/
H A DGestureDetectorCompat.java327 final int deltaY = (int) (focusY - mDownFocusY);
328 int distance = (deltaX * deltaX) + (deltaY * deltaY);
437 int deltaY = (int) firstDown.getY() - (int) secondDown.getY();
438 return (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare);
/frameworks/base/services/input/
H A DPointerController.h54 virtual void move(float deltaX, float deltaY) = 0;
160 virtual void move(float deltaX, float deltaY);
H A DPointerController.cpp127 void PointerController::move(float deltaX, float deltaY) { argument
129 ALOGD("Move pointer by deltaX=%0.3f, deltaY=%0.3f", deltaX, deltaY);
131 if (deltaX == 0.0f && deltaY == 0.0f) {
137 setPositionLocked(mLocked.pointerX + deltaX, mLocked.pointerY + deltaY);
H A DInputReader.cpp131 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { argument
136 *deltaX = *deltaY;
137 *deltaY = -temp;
142 *deltaY = -*deltaY;
147 *deltaX = -*deltaY;
148 *deltaY = temp;
2427 float deltaY = mCursorMotionAccumulator.getRelativeY() * mYScale; local
2428 bool moved = deltaX != 0 || deltaY != 0;
2432 && (deltaX != 0.0f || deltaY !
4811 float deltaY = (currentPointer.y - lastPointer.y) local
5181 float deltaY = (pointer.y - mPointerGesture.referenceTouchY) local
5293 float deltaY = (mCurrentRawPointerData.pointers[currentIndex].y local
5620 int64_t deltaY = currentPointer.y - lastPointer.y; local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPanelView.java324 float deltaY = event.getRawY() - event.getY();
325 event.offsetLocation(deltaX, deltaY);
327 event.offsetLocation(-deltaX, -deltaY);
426 final float deltaY = Math.abs(mFinalTouchY - mInitialTouchY);
427 if (deltaY < mFlingGestureMinDistPx
438 deltaY,
/frameworks/base/services/java/com/android/server/accessibility/
H A DTouchExplorer.java486 final float deltaY = receivedTracker.getReceivedPointerDownY(pointerId)
488 final double moveDelta = Math.hypot(deltaX, deltaY);
529 final float deltaY =
532 final double moveDelta = Math.hypot(deltaX, deltaY);
566 final float deltaY = receivedTracker.getReceivedPointerDownY(pointerId)
568 final double moveDelta = Math.hypot(deltaX, deltaY);
704 final float deltaY = firstPtrY - secondPtrY;
705 final double distance = Math.hypot(deltaX, deltaY);
708 event.setLocation(deltaX / 2, deltaY / 2);
2121 final float deltaY
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java306 final int deltaY = (int) dy;
307 mTouchRemainderY = dy - deltaY;
342 final int deltaY = (int) dy;
343 mTouchRemainderY = dy - deltaY;
352 if (!trackMotionScroll(deltaY, true)) {
384 * @param deltaY Pixels that content should move by
387 private boolean trackMotionScroll(int deltaY, boolean allowOverScroll) { argument
389 final int allowOverhang = Math.abs(deltaY);
397 if (deltaY > 0) {
421 EdgeEffectCompat edge = deltaY >
[all...]
/frameworks/base/core/java/android/webkit/
H A DOverScrollGlow.java105 * @param deltaY
107 public void setOverScrollDeltas(int deltaX, int deltaY) { argument
109 mOverScrollDeltaY = deltaY;
H A DWebViewInputDispatcher.java488 int deltaY = (int) mInitialDownY - (int) event.getY();
489 if ((deltaX * deltaX + deltaY * deltaY) < mDoubleTapSlopSquared) {
525 int deltaY = (int) mInitialDownY - (int) event.getY();
526 if ((deltaX * deltaX + deltaY * deltaY) > mTouchSlopSquared) {
H A DWebViewClassic.java5857 int deltaY = mLastTouchY - y;
5878 if (deltaX * deltaX + deltaY * deltaY < mDoubleTapSlopSquare) {
5931 if (!mConfirmMove && (deltaX * deltaX + deltaY * deltaY)
5949 if (deltaX != 0 || deltaY != 0) {
6004 mAverageAngle = calculateDragAngle(deltaX, deltaY);
6013 mSnapPositive = deltaY > 0;
6022 deltaY = 0;
6030 if (deltaX == 0 && deltaY
6325 doDrag(int deltaX, int deltaY) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DWatermark.java152 int deltaY = mDeltaY;
170 y += deltaY;
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java371 int deltaY = source.getHeight() - targetHeight;
372 if (!scaleUp && (deltaX < 0 || deltaY < 0)) {
384 int deltaYHalf = Math.max(0, deltaY / 2);
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java295 float deltaY = currentPointY - lstPointY;
296 float distance = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY);
300 float ny = lstPointY + ratio * deltaY;
/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java740 int deltaY = (int) y - handle.getTop() - (handle.getHeight() / 2);
741 handle.offsetTopAndBottom(deltaY);
742 content.offsetTopAndBottom(deltaY);

Completed in 6880 milliseconds

12