Home
last modified time | relevance | path

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

12

/packages/apps/Car/SystemUI/src/com/android/systemui/car/window/
DOverlayPanelViewController.java568 float velocityX, float velocityY) { in onFling() argument
569 if (mAnimateDirection * velocityY > SWIPE_THRESHOLD_VELOCITY) { in onFling()
570 mOpeningVelocity = velocityY; in onFling()
643 float velocityX, float velocityY) { in onFling() argument
649 || Math.abs(velocityY) < SWIPE_THRESHOLD_VELOCITY) { in onFling()
653 boolean isInClosingDirection = mAnimateDirection * velocityY < 0; in onFling()
659 animatePanel(velocityY, false); in onFling()
/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/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))
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableListView.java556 public boolean fling(int velocityX, int velocityY) { in fling() argument
565 if ((currentPosition == 0 && velocityY < 0) || in fling()
566 (currentPosition == getAdapter().getItemCount() - 1 && velocityY > 0)) { in fling()
567 return super.fling(velocityX, velocityY); in fling()
570 if (Math.abs(velocityY) < mMinFlingVelocity) { in fling()
573 velocityY = Math.max(Math.min(velocityY, mMaxFlingVelocity), -mMaxFlingVelocity); in fling()
578 mScroller.fling(0, 0, 0, velocityY, Integer.MIN_VALUE, Integer.MAX_VALUE, in fling()
585 delta = velocityY > 0 ? 1 : -1; in fling()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTriggerSwipeUpTouchTracker.java137 float velocityY = mVelocityTracker.getYVelocity(); in onGestureEnd() local
142 : -velocityY; in onGestureEnd()
156 mOnSwipeUp.onSwipeUp(wasFling, new PointF(velocityX, velocityY)); in onGestureEnd()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DAssistantInputConsumer.java268 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
269 if (isValidAssistantGestureAngle(velocityX, -velocityY) in onFling()
275 (float) Math.sqrt(velocityX * velocityX + velocityY * velocityY)); in onFling()
DDeviceLockedInputConsumer.java186 float velocityY = mVelocityTracker.getYVelocity(); in finishTouchTracking() local
191 if (Math.abs(velocityY) > flingThreshold) { in finishTouchTracking()
193 dismissTask = velocityY < 0; in finishTouchTracking()
DOtherActivityInputConsumer.java421 float velocityY = mVelocityTracker.getYVelocity(mActivePointerId);
426 : velocityY;
428 mInteractionHandler.onGestureEnded(velocity, new PointF(velocityX, velocityY),
/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/Launcher3/quickstep/src/com/android/quickstep/interaction/
DNavBarGestureHandler.java332 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
334 PointF velocity = new PointF(velocityX, velocityY); in onFling()
335 if (!isValidAssistantGestureAngle(velocityX, -velocityY)) { 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.java462 float velocityX, float velocityY) { in initGestureDetector()
465 final float absY = Math.abs(velocityY); in initGestureDetector()
488 } else if (velocityY < -mSwipeThreshold && absX < absY && deltaY < -travelY) { in initGestureDetector()
489 if (mDisambiguateSwipe && endingVelocityY > velocityY / 4) { in initGestureDetector()
495 } else if (velocityY > mSwipeThreshold && absX < absY / 2 && deltaY > travelY) { in initGestureDetector()
496 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/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java272 public int[] calculateScrollDistance(int velocityX, int velocityY) { in calculateScrollDistance() argument
273 int[] outDist = super.calculateScrollDistance(velocityX, velocityY); in calculateScrollDistance()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java398 float velocityY = mVelocityTracker.getYVelocity(); in isTargetSwipedFastEnough() local
405 boolean isIntentional = (Math.abs(velocityX) > Math.abs(velocityY)); in isTargetSwipedFastEnough()
/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/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/Gallery2/src/com/android/gallery3d/filtershow/editors/
DSwapButton.java86 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
/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()

12