Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java366 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
382 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
384 velocityY += oldVelocityY; in fling()
391 float velocity = (float) Math.hypot(velocityX, velocityY); in fling()
401 float coeffY = velocity == 0 ? 1.0f : velocityY / velocity; in fling()
DOverScroller.java400 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
402 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
432 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
439 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
441 velocityY += oldVelocityY; in fling()
447 mScrollerY.fling(startY, velocityY, minY, maxY, overY); in fling()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java555 public boolean fling(int velocityX, int velocityY) { in fling() argument
564 if ((currentPosition == 0 && velocityY < 0) || in fling()
565 (currentPosition == getAdapter().getItemCount() - 1 && velocityY > 0)) { in fling()
566 return super.fling(velocityX, velocityY); in fling()
569 if (Math.abs(velocityY) < mMinFlingVelocity) { in fling()
572 velocityY = Math.max(Math.min(velocityY, mMaxFlingVelocity), -mMaxFlingVelocity); in fling()
577 mScroller.fling(0, 0, 0, velocityY, Integer.MIN_VALUE, Integer.MAX_VALUE, in fling()
584 delta = velocityY > 0 ? 1 : -1; in fling()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
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()
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.java1079 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
1082 if (swipeImages(velocityX, velocityY)) { in onFling()
1085 flingImages(velocityX, velocityY, Math.abs(e2.getY() - e1.getY())); in onFling()
1091 private boolean flingImages(float velocityX, float velocityY, float dY) { in flingImages() argument
1093 int vy = (int) (velocityY + 0.5f); in flingImages()
1097 if (Math.abs(velocityX) > Math.abs(velocityY)) { in flingImages()
1551 private boolean swipeImages(float velocityX, float velocityY) {
1559 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/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DAssistantTouchConsumer.java272 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
273 if (isValidAssistantGestureAngle(velocityX, -velocityY) in onFling()
278 (float) Math.sqrt(velocityX * velocityX + velocityY * velocityY)); in onFling()
DDeviceLockedInputConsumer.java179 float velocityY = mVelocityTracker.getYVelocity(); in finishTouchTracking() local
184 if (Math.abs(velocityY) > flingThreshold) { in finishTouchTracking()
186 dismissTask = velocityY < 0; in finishTouchTracking()
DOverviewWithoutFocusInputConsumer.java129 float velocityY = mVelocityTracker.getYVelocity(); in finishTouchTracking() local
131 ? -velocityX : (mNavBarPosition.isLeftEdge() ? velocityX : -velocityY); in finishTouchTracking()
DOtherActivityInputConsumer.java376 float velocityY = mVelocityTracker.getYVelocity(mActivePointerId); in finishTouchTracking() local
379 : velocityY; in finishTouchTracking()
382 mInteractionHandler.onGestureEnded(velocity, new PointF(velocityX, velocityY), in finishTouchTracking()
DFallbackNoButtonInputConsumer.java261 float velocityY = mVelocityTracker.getYVelocity(mActivePointerId); in finishTouchTracking() local
264 : velocityY; in finishTouchTracking()
/packages/apps/Camera2/src/com/android/camera/ui/
DFilmstripGestureRecognizer.java39 boolean onFling(float velocityX, float velocityY); in onFling() argument
102 float velocityY) { in onFling() argument
103 return mListener.onFling(velocityX, velocityY); in onFling()
/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/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java200 public int[] calculateScrollDistance(int velocityX, int velocityY) { in calculateScrollDistance() argument
201 int[] outDist = super.calculateScrollDistance(velocityX, velocityY); in calculateScrollDistance()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java459 float velocityX, float velocityY) { in initGestureDetector()
462 final float absY = Math.abs(velocityY); in initGestureDetector()
485 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
486 if (mDisambiguateSwipe && endingVelocityY > velocityY / 4) { in initGestureDetector()
492 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
493 if (mDisambiguateSwipe && endingVelocityY < velocityY / 4) { in initGestureDetector()
/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/Camera2/src/com/android/camera/widget/
DFilmstripView.java2192 void flingInsideZoomView(float velocityX, float velocityY) {
2218 final float velocity = Math.max(Math.abs(velocityX), Math.abs(velocityY));
2229 translationY + duration / factor * velocityY);
2564 int velocityX, int velocityY,
2567 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY);
2857 public boolean onFling(float velocityX, float velocityY) {
2865 mController.flingInsideZoomView(velocityX, velocityY);
2868 if (Math.abs(velocityX) < Math.abs(velocityY)) {
DFilmstripLayout.java417 public boolean onFling(float velocityX, float velocityY) { in onFling() argument
419 return mFilmstripGestureListener.onFling(velocityX, velocityY); in onFling()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java404 final float velocityY = mVelocityTracker.getYVelocity(); in isTargetSwipedFastEnough() local
409 && (Math.abs(velocityX) > Math.abs(velocityY)) // Not unintentional. in isTargetSwipedFastEnough()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java422 float velocityY = mVelocityTracker.getYVelocity(); in isTargetSwipedFastEnough() local
429 boolean isIntentional = (Math.abs(velocityX) > Math.abs(velocityY)); in isTargetSwipedFastEnough()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java3281 private void doFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in doFling() argument
3310 Log.d(TAG, "doFling: mViewStartY" + mViewStartY + " velocityY " + velocityY); in doFling()
3316 (int) -velocityY, 0 /* minX */, 0 /* maxX */, 0 /* minY */, in doFling()
3321 if (velocityY > 0 && mViewStartY != 0) { in doFling()
3326 else if (velocityY < 0 && mViewStartY != mMaxViewStartY) { in doFling()
3918 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
3922 if (Math.abs(velocityX) < Math.abs(velocityY)) { in onFling()
3926 velocityY = 0; in onFling()
3928 DayView.this.doFling(e1, e2, velocityX, velocityY); in onFling()
/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.java224 final float velocityY) { in onFling() argument

12