Home
last modified time | relevance | path

Searched refs:velocityY (Results 1 – 14 of 14) 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/src/com/android/gallery3d/ui/
DFlingScroller.java75 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
84 double velocity = Math.hypot(velocityX, velocityY); in fling()
85 mSinAngle = velocityY / velocity; in fling()
DGestureRecognizer.java34 boolean onFling(float velocityX, float velocityY); in onFling() argument
95 float velocityY) { in onFling() argument
96 return mListener.onFling(velocityX, velocityY); in onFling()
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.java1023 public boolean onFling(float velocityX, float velocityY) { in onFling() argument
1026 if (swipeImages(velocityX, velocityY)) { in onFling()
1029 flingImages(velocityX, velocityY); in onFling()
1034 private boolean flingImages(float velocityX, float velocityY) { in flingImages() argument
1036 int vy = (int) (velocityY + 0.5f); in flingImages()
1040 if (Math.abs(velocityX) > Math.abs(velocityY)) { in flingImages()
1470 private boolean swipeImages(float velocityX, float velocityY) {
1478 if (!isMinimal && Math.abs(velocityY) > Math.abs(velocityX))
DSlotView.java659 MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
663 float velocity = WIDE ? velocityX : velocityY; in onFling()
/packages/apps/Calculator/src/com/android/calculator2/
DPanelSwitcher.java61 float velocityY) { in PanelSwitcher()
66 if (Math.abs(dx) > MAJOR_MOVE && Math.abs(velocityX) > Math.abs(velocityY)) { in PanelSwitcher()
/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/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/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/Music/src/com/android/music/
DTouchInterceptor.java96 float velocityY) { in onInterceptTouchEvent()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java4052 private void doFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in doFling() argument
4081 Log.d(TAG, "doFling: mViewStartY" + mViewStartY + " velocityY " + velocityY); in doFling()
4087 (int) -velocityY, 0 /* minX */, 0 /* maxX */, 0 /* minY */, in doFling()
4092 if (velocityY > 0 && mViewStartY != 0) { in doFling()
4097 else if (velocityY < 0 && mViewStartY != mMaxViewStartY) { in doFling()
4878 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
4882 if (Math.abs(velocityX) < Math.abs(velocityY)) { in onFling()
4886 velocityY = 0; in onFling()
4888 DayView.this.doFling(e1, e2, velocityX, velocityY); in onFling()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DPinyinIME.java1463 float velocityX, float velocityY) { in onFling() argument
/packages/apps/VideoEditor/src/com/android/videoeditor/
DVideoEditorActivity.java407 float velocityY) { in onCreate()