Home
last modified time | relevance | path

Searched refs:velocityY (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/widget/
DScroller.java367 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
383 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
385 velocityY += oldVelocityY; in fling()
392 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); in fling()
402 float coeffY = velocity == 0 ? 1.0f : velocityY / velocity; in fling()
DOverScroller.java403 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
405 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
435 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
442 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
444 velocityY += oldVelocityY; in fling()
450 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
DNumberPicker.java1625 private void fling(int velocityY) { in fling() argument
1628 if (velocityY > 0) { in fling()
1629 mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling()
1631 mFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0, 0, Integer.MAX_VALUE); in fling()
DScrollView.java1488 public void fling(int velocityY) { in fling() argument
1493 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0, in fling()
DGallery.java976 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/frameworks/support/v4/java/android/support/v4/widget/
DScrollerCompat.java168 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
170 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); in fling()
/frameworks/base/core/java/android/view/
DGestureDetector.java113 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument
172 float velocityY) { in onFling() argument
575 final float velocityY = velocityTracker.getYVelocity(); in onTouchEvent() local
578 if ((Math.abs(velocityY) > mMinimumFlingVelocity) in onTouchEvent()
580 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java387 float velocityX, float velocityY) { in initGestureDetector()
390 final float absY = Math.abs(velocityY); in initGestureDetector()
413 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
414 if (mDisambiguateSwipe && endingVelocityY > velocityY / 4) { in initGestureDetector()
420 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
421 if (mDisambiguateSwipe && endingVelocityY < velocityY / 4) { in initGestureDetector()
/frameworks/base/docs/html/training/custom-views/
Dmaking-interactive.jd165 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
166 … mScroller.fling(currentX, currentY, velocityX / SCALE, velocityY / SCALE, minX, minY, maxX, maxY);
/frameworks/ex/chips/src/com/android/ex/chips/
DRecipientEditTextView.java2433 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument