/frameworks/base/libs/androidfw/ |
H A D | VelocityControl.cpp | 52 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/core/java/android/webkit/ |
H A D | OverScrollGlow.java | 105 * @param deltaY 107 public void setOverScrollDeltas(int deltaX, int deltaY) { argument 109 mOverScrollDeltaY = deltaY;
|
H A D | WebView.java | 1802 public void overScrollBy(int deltaX, int deltaY, argument 1807 WebView.this.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY,
|
H A D | WebViewClassic.java | 5857 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/test-runner/src/android/test/ |
H A D | TouchUtils.java | 539 * @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/services/input/ |
H A D | PointerController.cpp | 127 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 D | InputReader.cpp | 131 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/core/jni/ |
H A D | android_view_MotionEvent.cpp | 506 jint nativePtr, jfloat deltaX, jfloat deltaY) { 508 return event->offsetLocation(deltaX, deltaY); 505 android_view_MotionEvent_nativeOffsetLocation(JNIEnv* env, jclass clazz, jint nativePtr, jfloat deltaX, jfloat deltaY) argument
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 306 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/widget/ |
H A D | StackView.java | 632 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 D | AbsListView.java | 3001 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...] |
/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.java | 1342 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);
|
H A D | View.java | 16477 * @param deltaY Change in Y in pixels 16479 * @param scrollY Current Y scroll value in pixels before applying deltaY 16491 protected boolean overScrollBy(int deltaX, int deltaY, argument 16511 int newScrollY = scrollY + deltaY;
|
/frameworks/base/services/input/tests/ |
H A D | InputReader_test.cpp | 98 virtual void move(float deltaX, float deltaY) { argument 102 mY += deltaY;
|