Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarViewTaskSwitchHelper.java93 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
94 float absVelX = Math.abs(velocityX); in onFling()
101 showNext = mIsVertical ? (velocityY < 0) : (velocityX < 0); in onFling()
104 showNext = mIsVertical ? (velocityY < 0) : (velocityX > 0); in onFling()
/frameworks/base/core/java/android/widget/
DScroller.java420 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
435 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
437 velocityX += oldVelocityX; in fling()
445 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); in fling()
453 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; in fling()
DOverScroller.java402 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
404 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); in fling()
434 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
440 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
442 velocityX += oldVelocityX; in fling()
448 mScrollerX.fling(startX, velocityX, minX, maxX, overX); in fling()
DHorizontalScrollView.java1554 public void fling(int velocityX) { in fling() argument
1559 mScroller.fling(mScrollX, mScrollY, velocityX, 0, 0, in fling()
1562 final boolean movingRight = velocityX > 0; in fling()
DGallery.java996 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
1009 mFlingRunnable.startUsingVelocity((int) -velocityX); in onFling()
DScrollView.java1679 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
DAbsListView.java4065 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
4078 return dispatchNestedFling(velocityX, velocityY, consumed); in onNestedFling()
/frameworks/base/core/java/android/view/
DViewParent.java531 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); in onNestedFling() argument
553 public boolean onNestedPreFling(View target, float velocityX, float velocityY); in onNestedPreFling() argument
DGestureDetector.java112 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); in onFling() argument
170 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, in onFling() argument
606 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent() local
609 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ in onTouchEvent()
610 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
DView.java18797 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) {
18799 return mNestedScrollingParent.onNestedFling(this, velocityX, velocityY, consumed);
18834 public boolean dispatchNestedPreFling(float velocityX, float velocityY) {
18836 return mNestedScrollingParent.onNestedPreFling(this, velocityX, velocityY);
DViewGroup.java6212 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
6220 public boolean onNestedPreFling(View target, float velocityX, float velocityY) { in onNestedPreFling() argument
/frameworks/support/v4/java/android/support/v4/widget/
DScrollerCompat.java391 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
393 mImpl.fling(mScroller, startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); in fling()
419 public void fling(int startX, int startY, int velocityX, int velocityY, in fling() argument
421 mImpl.fling(mScroller, startX, startY, velocityX, velocityY, in fling()
/frameworks/support/v4/java/android/support/v4/view/
DGestureDetectorCompat.java375 final float velocityX = VelocityTrackerCompat.getXVelocity( in onTouchEvent() local
379 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ in onTouchEvent()
380 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY); in onTouchEvent()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActionBarOverlayLayout.java566 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { in onNestedFling() argument
570 if (shouldHideActionBarOnFling(velocityX, velocityY)) { in onNestedFling()
664 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) { in shouldHideActionBarOnFling() argument
/frameworks/base/core/java/com/android/internal/widget/
DActionBarOverlayLayout.java557 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
561 if (shouldHideActionBarOnFling(velocityX, velocityY)) {
655 private boolean shouldHideActionBarOnFling(float velocityX, float velocityY) {
DResolverDrawerLayout.java529 public boolean onNestedPreFling(View target, float velocityX, float velocityY) {
538 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) {
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java390 float velocityX, float velocityY) { in initGestureDetector()
392 final float absX = Math.abs(velocityX); in initGestureDetector()
402 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { in initGestureDetector()
403 if (mDisambiguateSwipe && endingVelocityX < velocityX / 4) { in initGestureDetector()
409 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { in initGestureDetector()
410 if (mDisambiguateSwipe && endingVelocityX > velocityX / 4) { in initGestureDetector()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java360 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { in onFling() argument
362 mTranslateRunnable.start(velocityX, velocityY); in onFling()
1247 public boolean start(float velocityX, float velocityY) { in start() argument
1252 mVelocityX = velocityX; in start()
/frameworks/base/docs/html/training/gestures/
Dscroll.jd175 float velocityX, float velocityY) {
176 fling((int) -velocityX, (int) -velocityY);
181 private void fling(int velocityX, int velocityY) {
200 velocityX,
Dviewgroup.jd203 } if (mMinFlingVelocity <= velocityX && velocityX <= mMaxFlingVelocity
204 && velocityY < velocityX) {
Ddetector.jd234 float velocityX, float velocityY) {
339 float velocityX, float velocityY) {
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java1129 public boolean fling(int velocityX, int velocityY) { in fling() argument
1130 if (Math.abs(velocityX) < mMinFlingVelocity) { in fling()
1131 velocityX = 0; in fling()
1136 velocityX = Math.max(-mMaxFlingVelocity, Math.min(velocityX, mMaxFlingVelocity)); in fling()
1138 if (velocityX != 0 || velocityY != 0) { in fling()
1139 mViewFlinger.fling(velocityX, velocityY); in fling()
1217 void absorbGlows(int velocityX, int velocityY) { in absorbGlows() argument
1218 if (velocityX < 0) { in absorbGlows()
1220 mLeftGlow.onAbsorb(-velocityX); in absorbGlows()
1221 } else if (velocityX > 0) { in absorbGlows()
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DPagedView.java1581 int velocityX = (int) velocityTracker.getXVelocity(activePointerId); in onTouchEvent() local
1590 Math.abs(velocityX) > mFlingThresholdVelocity; in onTouchEvent()
1597 Math.signum(velocityX) != Math.signum(deltaX) && isFling) { in onTouchEvent()
1606 (isFling && velocityX > 0)) && mCurrentPage > 0) { in onTouchEvent()
1609 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent()
1611 (isFling && velocityX < 0)) && in onTouchEvent()
1615 snapToPageWithVelocity(finalPage, velocityX); in onTouchEvent()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java418 public void onViewReleased(View child, float velocityX, float velocityY) { in onViewReleased() argument
/frameworks/base/docs/html/training/custom-views/
Dmaking-interactive.jd165 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
166 … mScroller.fling(currentX, currentY, velocityX / SCALE, velocityY / SCALE, minX, minY, maxX, maxY);

12