/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarViewTaskSwitchHelper.java | 93 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument 94 float absVelX = Math.abs(velocityX); in onFling() 101 showNext = mIsVertical ? (velocityY < 0) : (velocityX < 0); in onFling() 104 showNext = mIsVertical ? (velocityY < 0) : (velocityX > 0); in onFling()
|
/frameworks/base/core/java/android/widget/ |
D | Scroller.java | 420 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 435 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling() 437 velocityX += oldVelocityX; in fling() 445 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); in fling() 453 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
|
D | OverScroller.java | 402 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 404 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling() 434 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 440 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling() 442 velocityX += oldVelocityX; in fling() 448 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
|
D | HorizontalScrollView.java | 1554 public void fling(int velocityX) { in fling() argument 1559 mScroller.fling(mScrollX, mScrollY, velocityX, 0, 0, in fling() 1562 final boolean movingRight = velocityX > 0; in fling()
|
D | Gallery.java | 996 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument 1009 mFlingRunnable.startUsingVelocity((int) -velocityX); in onFling()
|
D | ScrollView.java | 1679 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
|
D | AbsListView.java | 4065 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 4078 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
|
/frameworks/base/core/java/android/view/ |
D | ViewParent.java | 531 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument 553 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
|
D | GestureDetector.java | 112 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument 170 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument 606 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent() local 609 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ in onTouchEvent() 610 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
|
D | View.java | 18797 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { 18799 return mNestedScrollingParent.onNestedFling(this, velocityX, velocityY, consumed); 18834 public boolean dispatchNestedPreFling(float velocityX, float velocityY) { 18836 return mNestedScrollingParent.onNestedPreFling(this, velocityX, velocityY);
|
D | ViewGroup.java | 6212 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 6220 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ScrollerCompat.java | 391 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 393 mImpl.fling(mScroller, startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); in fling() 419 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 421 mImpl.fling(mScroller, startX, startY, velocityX, velocityY, in fling()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | GestureDetectorCompat.java | 375 final float velocityX = VelocityTrackerCompat.getXVelocity( in onTouchEvent() local 379 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ in onTouchEvent() 380 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ActionBarOverlayLayout.java | 566 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument 570 if (shouldHideActionBarOnFling(velocityX, velocityY)) { in onNestedFling() 664 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) { in shouldHideActionBarOnFling() argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ActionBarOverlayLayout.java | 557 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { 561 if (shouldHideActionBarOnFling(velocityX, velocityY)) { 655 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
|
D | ResolverDrawerLayout.java | 529 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { 538 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 390 float velocityX, float velocityY) { in initGestureDetector() 392 final float absX = Math.abs(velocityX); in initGestureDetector() 402 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector() 403 if (mDisambiguateSwipe && endingVelocityX < velocityX / 4) { in initGestureDetector() 409 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector() 410 if (mDisambiguateSwipe && endingVelocityX > velocityX / 4) { in initGestureDetector()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 360 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument 362 mTranslateRunnable.start(velocityX, velocityY); in onFling() 1247 public boolean start(float velocityX, float velocityY) { in start() argument 1252 mVelocityX = velocityX; in start()
|
/frameworks/base/docs/html/training/gestures/ |
D | scroll.jd | 175 float velocityX, float velocityY) { 176 fling((int) -velocityX, (int) -velocityY); 181 private void fling(int velocityX, int velocityY) { 200 velocityX,
|
D | viewgroup.jd | 203 } if (mMinFlingVelocity <= velocityX && velocityX <= mMaxFlingVelocity 204 && velocityY < velocityX) {
|
D | detector.jd | 234 float velocityX, float velocityY) { 339 float velocityX, float velocityY) {
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 1129 public boolean fling(int velocityX, int velocityY) { in fling() argument 1130 if (Math.abs(velocityX) < mMinFlingVelocity) { in fling() 1131 velocityX = 0; in fling() 1136 velocityX = Math.max(-mMaxFlingVelocity, Math.min(velocityX, mMaxFlingVelocity)); in fling() 1138 if (velocityX != 0 || velocityY != 0) { in fling() 1139 mViewFlinger.fling(velocityX, velocityY); in fling() 1217 void absorbGlows(int velocityX, int velocityY) { in absorbGlows() argument 1218 if (velocityX < 0) { in absorbGlows() 1220 mLeftGlow.onAbsorb(-velocityX); in absorbGlows() 1221 } else if (velocityX > 0) { in absorbGlows() [all …]
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | PagedView.java | 1581 int velocityX = (int) velocityTracker.getXVelocity(activePointerId); in onTouchEvent() local 1590 Math.abs(velocityX) > mFlingThresholdVelocity; in onTouchEvent() 1597 Math.signum(velocityX) != Math.signum(deltaX) && isFling) { in onTouchEvent() 1606 (isFling && velocityX > 0)) && mCurrentPage > 0) { in onTouchEvent() 1609 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent() 1611 (isFling && velocityX < 0)) && in onTouchEvent() 1615 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PrintContentView.java | 418 public void onViewReleased(View child, float velocityX, float velocityY) { in onViewReleased() argument
|
/frameworks/base/docs/html/training/custom-views/ |
D | making-interactive.jd | 165 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { 166 … mScroller.fling(currentX, currentY, velocityX / SCALE, velocityY / SCALE, minX, minY, maxX, maxY);
|