/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Scroller.java | 367 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 382 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling() 384 velocityX += oldVelocityX; in fling() 392 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); in fling() 401 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
|
D | OverScroller.java | 403 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 441 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling() 443 velocityX += oldVelocityX; in fling() 449 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherScroller.java | 404 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 419 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling() 421 velocityX += oldVelocityX; in fling() 429 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); in fling() 437 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
|
D | PagedView.java | 1900 int velocityX = (int) velocityTracker.getXVelocity(activePointerId); in onTouchEvent() local 1909 Math.abs(velocityX) > mFlingThresholdVelocity; in onTouchEvent() 1917 Math.signum(velocityX) != Math.signum(deltaX) && isFling) { in onTouchEvent() 1927 boolean isVelocityXLeft = isRtl ? velocityX > 0 : velocityX < 0; in onTouchEvent() 1931 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent() 1936 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent() 1946 int vX = (int) (-velocityX * scaleX); in onTouchEvent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoView.java | 1080 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument 1083 if (swipeImages(velocityX, velocityY)) { in onFling() 1086 flingImages(velocityX, velocityY, Math.abs(e2.getY() - e1.getY())); in onFling() 1092 private boolean flingImages(float velocityX, float velocityY, float dY) { in flingImages() argument 1093 int vx = (int) (velocityX + 0.5f); in flingImages() 1098 if (Math.abs(velocityX) > Math.abs(velocityY)) { in flingImages() 1552 private boolean swipeImages(float velocityX, float velocityY) { 1560 if (!isMinimal && Math.abs(velocityY) > Math.abs(velocityX)) 1567 if (velocityX < -SWIPE_THRESHOLD && (isMinimal 1570 } else if (velocityX > SWIPE_THRESHOLD && (isMinimal
|
D | PositionController.java | 659 public boolean flingPage(int velocityX, int velocityY) { in flingPage() argument 672 if ((velocityX > 0 && (edges & IMAGE_AT_LEFT_EDGE) != 0) || in flingPage() 673 (velocityX < 0 && (edges & IMAGE_AT_RIGHT_EDGE) != 0)) { in flingPage() 674 velocityX = 0; in flingPage() 681 if (velocityX == 0 && velocityY == 0) return false; in flingPage() 683 mPageScroller.fling(p.mCurrentX, b.mCurrentY, velocityX, velocityY, in flingPage() 691 public boolean flingFilmX(int velocityX) { in flingFilmX() argument 692 if (velocityX == 0) return false; in flingFilmX() 704 mFilmScroller.fling(p.mCurrentX, 0, velocityX, 0, in flingFilmX()
|
D | FlingScroller.java | 76 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 85 double velocity = Math.hypot(velocityX, velocityY); in fling() 87 mCosAngle = velocityX / velocity; in fling()
|
D | GestureRecognizer.java | 35 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument 95 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument 97 return mListener.onFling(e1, e2, velocityX, velocityY); in onFling()
|
D | SlotView.java | 659 MotionEvent e2, float velocityX, float velocityY) { in onFling() argument 663 float velocity = WIDE ? velocityX : velocityY; in onFling()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 2138 public void fling(float velocityX) { 2147 float scaledVelocityX = velocityX / mScale; 2161 mScroller.fling(mCenterX, 0, (int) -velocityX, 0, minX, maxX, 0, 0); 2164 void flingInsideZoomView(float velocityX, float velocityY) { 2190 final float velocity = Math.max(Math.abs(velocityX), Math.abs(velocityY)); 2199 translationX + duration / factor * velocityX); 2528 int velocityX, int velocityY, 2531 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); 2813 public boolean onFling(float velocityX, float velocityY) { in onFling() argument 2823 mController.flingInsideZoomView(velocityX, velocityY); in onFling() [all …]
|
D | FilmstripLayout.java | 381 public boolean onFling(float velocityX, float velocityY) { in onFling() argument 383 return mFilmstripGestureListener.onFling(velocityX, velocityY); in onFling()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
D | OverScrollerSGV.java | 405 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 407 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling() 437 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument 443 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling() 445 velocityX += oldVelocityX; in fling() 451 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | PagedView.java | 1289 int velocityX = (int) velocityTracker.getXVelocity(activePointerId); in onTouchEvent() local 1298 Math.abs(velocityX) > mFlingThresholdVelocity; in onTouchEvent() 1305 Math.signum(velocityX) != Math.signum(deltaX) && isFling) { in onTouchEvent() 1315 boolean isVelocityXLeft = isRtl ? velocityX > 0 : velocityX < 0; in onTouchEvent() 1319 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent() 1324 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | FilmstripGestureRecognizer.java | 36 boolean onFling(float velocityX, float velocityY); in onFling() argument 81 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument 83 return mListener.onFling(velocityX, velocityY); in onFling()
|
D | ModeListView.java | 315 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument 1045 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { 1047 mVelocityX = velocityX / 1000f * SCROLL_FACTOR; 1048 mCurrentStateManager.getCurrentState().onFling(e1, e2, velocityX, velocityY);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | KeyboardView.java | 384 float velocityX, float velocityY) { in initGestureDetector() 386 final float absX = Math.abs(velocityX); in initGestureDetector() 396 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector() 397 if (mDisambiguateSwipe && endingVelocityX < velocityX / 4) { in initGestureDetector() 403 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector() 404 if (mDisambiguateSwipe && endingVelocityX > velocityX / 4) { in initGestureDetector()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | TwoPaneLayout.java | 515 public void onDragEnded(float deltaX, float velocityX, boolean isFling) { in onDragEnded() argument 519 mController.onDrawerDragEnded(velocityX >= 0); in onDragEnded() 521 mController.onDrawerDragEnded(velocityX < 0); in onDragEnded()
|
D | GmailDragHelper.java | 77 public void onDragEnded(float deltaX, float velocityX, boolean isFling); in onDragEnded() argument
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollController.java | 813 float velocityX = velocity * curDx / hyp; in startScroll() local 815 int durationX = velocityX ==0 ? 0 : (int)((Math.abs(dx) * 1000) / velocityX); in startScroll()
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 95 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onInterceptTouchEvent() 98 if (velocityX > 1000) { in onInterceptTouchEvent()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 4090 private void doFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in doFling() argument 4102 if (DEBUG) Log.d(TAG, "doFling: velocityX " + velocityX); in doFling() 4104 switchViews(deltaX < 0, mViewStartX, mViewWidth, velocityX); in doFling() 4924 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument 4928 if (Math.abs(velocityX) < Math.abs(velocityY)) { in onFling() 4934 DayView.this.doFling(e1, e2, velocityX, velocityY); in onFling()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | SwapButton.java | 86 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiPageKeyboardView.java | 219 public boolean onFling(final MotionEvent e1, final MotionEvent e2, final float velocityX, in onFling() argument
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 326 float velocityX, float velocityY) { in onFling() argument
|
/packages/apps/Dialer/src/com/android/dialer/widget/ |
D | OverlappingPaneLayout.java | 971 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
|