Home
last modified time | relevance | path

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

/packages/apps/Calendar/src/com/android/calendar/month/
DMonthListView.java132 private void doFling(float velocityY) { in doFling() argument
142 if (Math.abs(velocityY) < MULTIPLE_MONTH_VELOCITY_THRESHOLD) { in doFling()
143 if (velocityY < 0) { in doFling()
151 if (velocityY < 0) { in doFling()
152 monthsToJump = 1 - (int) ((velocityY + MULTIPLE_MONTH_VELOCITY_THRESHOLD) in doFling()
155 monthsToJump = -(int) ((velocityY - MULTIPLE_MONTH_VELOCITY_THRESHOLD) in doFling()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
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()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java404 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
420 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
422 velocityY += oldVelocityY; in fling()
429 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); in fling()
438 float coeffY = velocity == 0 ? 1.0f : velocityY / velocity; in fling()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java659 public boolean flingPage(int velocityX, int velocityY) { in flingPage() argument
676 if ((velocityY > 0 && (edges & IMAGE_AT_TOP_EDGE) != 0) || in flingPage()
677 (velocityY < 0 && (edges & IMAGE_AT_BOTTOM_EDGE) != 0)) { in flingPage()
678 velocityY = 0; in flingPage()
681 if (velocityX == 0 && velocityY == 0) return false; in flingPage()
683 mPageScroller.fling(p.mCurrentX, b.mCurrentY, velocityX, velocityY, in flingPage()
714 public int flingFilmY(int boxIndex, int velocityY) { in flingFilmY() argument
721 if (velocityY < 0 || (velocityY == 0 && b.mCurrentY <= 0)) { in flingFilmY()
729 if (velocityY != 0) { in flingFilmY()
731 / Math.abs(velocityY)); in flingFilmY()
DPhotoView.java1080 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
1094 int vy = (int) (velocityY + 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))
DFlingScroller.java76 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
85 double velocity = Math.hypot(velocityX, velocityY); in fling()
86 mSinAngle = velocityY / velocity; in fling()
DGestureRecognizer.java35 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument
96 float velocityY) { in onFling() argument
97 return mListener.onFling(e1, e2, velocityX, velocityY); in onFling()
DSlotView.java659 MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
663 float velocity = WIDE ? velocityX : velocityY; in onFling()
/packages/apps/Dialer/src/com/android/dialer/widget/
DOverlappingPaneLayout.java203 public void onPanelFlingReachesEdge(int velocityY); in onPanelFlingReachesEdge() argument
971 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
972 if (!(velocityY > 0 && mSlideOffsetPx != 0 in onNestedPreFling()
973 || velocityY < 0 && mSlideOffsetPx < mIntermediateOffset in onNestedPreFling()
974 || velocityY < 0 && mSlideOffsetPx < mSlideRange in onNestedPreFling()
982 Log.d(TAG, "onNestedPreFling: " + velocityY); in onNestedPreFling()
984 mInUpwardsPreFling = velocityY > 0; in onNestedPreFling()
987 mDragHelper.processNestedFling(mSlideableView, (int) -velocityY); in onNestedPreFling()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java405 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
444 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
446 velocityY += oldVelocityY; in fling()
452 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java326 float velocityX, float velocityY) { in onFling() argument
328 if (velocityY > MAX_FLING_VELOCITY) { in onFling()
329 velocityY = MAX_FLING_VELOCITY; in onFling()
330 } else if (velocityY < -MAX_FLING_VELOCITY) { in onFling()
331 velocityY = -MAX_FLING_VELOCITY; in onFling()
336 mScroller.fling(0, mScrollY, 0, -(int) velocityY, 0, 0, 0, in onFling()
/packages/apps/Camera2/src/com/android/camera/ui/
DFilmstripGestureRecognizer.java36 boolean onFling(float velocityX, float velocityY); in onFling() argument
82 float velocityY) { in onFling() argument
83 return mListener.onFling(velocityX, velocityY); in onFling()
DModeListView.java315 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) {
1048 mCurrentStateManager.getCurrentState().onFling(e1, e2, velocityX, velocityY);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboardView.java384 float velocityX, float velocityY) { in initGestureDetector()
387 final float absY = Math.abs(velocityY); in initGestureDetector()
410 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
411 if (mDisambiguateSwipe && endingVelocityY > velocityY / 4) { in initGestureDetector()
417 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
418 if (mDisambiguateSwipe && endingVelocityY < velocityY / 4) { in initGestureDetector()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java2164 void flingInsideZoomView(float velocityX, float velocityY) {
2190 final float velocity = Math.max(Math.abs(velocityX), Math.abs(velocityY));
2201 translationY + duration / factor * velocityY);
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()
2826 if (Math.abs(velocityX) < Math.abs(velocityY)) { in onFling()
DFilmstripLayout.java381 public boolean onFling(float velocityX, float velocityY) { in onFling() argument
383 return mFilmstripGestureListener.onFling(velocityX, velocityY); in onFling()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java814 float velocityY = velocity * curDy / hyp; in startScroll() local
816 int durationY = velocityY ==0 ? 0 : (int)((Math.abs(dy) * 1000) / velocityY); in startScroll()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java4090 private void doFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in doFling() argument
4119 Log.d(TAG, "doFling: mViewStartY" + mViewStartY + " velocityY " + velocityY); in doFling()
4125 (int) -velocityY, 0 /* minX */, 0 /* maxX */, 0 /* minY */, in doFling()
4130 if (velocityY > 0 && mViewStartY != 0) { in doFling()
4135 else if (velocityY < 0 && mViewStartY != mMaxViewStartY) { 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()
4932 velocityY = 0; in onFling()
4934 DayView.this.doFling(e1, e2, velocityX, velocityY); in onFling()
/packages/apps/Dialer/src/com/android/dialer/list/
DListsFragment.java155 public void onPanelFlingReachesEdge(int velocityY) {
157 getCurrentListView().fling(velocityY);
/packages/apps/Browser/src/com/android/browser/view/
DScrollerView.java1787 public void fling(int velocityY) { in fling() argument
1793 mScroller.fling(mScrollX, mScrollY, velocityY, 0, in fling()
1799 mScroller.fling(mScrollX, mScrollY, 0, velocityY, 0, 0, 0, in fling()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DSwapButton.java86 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiPageKeyboardView.java220 final float velocityY) { in onFling() argument
/packages/apps/Music/src/com/android/music/
DTouchInterceptor.java96 float velocityY) { in onInterceptTouchEvent()