/frameworks/support/v4/ics/android/support/v4/widget/ |
H A D | EdgeEffectCompatIcs.java | 56 public static boolean onAbsorb(Object edgeEffect, int velocity) { argument 57 ((EdgeEffect) edgeEffect).onAbsorb(velocity);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | EdgeEffectCompat.java | 51 public boolean onAbsorb(Object edgeEffect, int velocity); argument 81 public boolean onAbsorb(Object edgeEffect, int velocity) { argument 115 public boolean onAbsorb(Object edgeEffect, int velocity) { argument 116 return EdgeEffectCompatIcs.onAbsorb(edgeEffect, velocity); 193 * Call when the effect absorbs an impact at the given velocity. 200 * @param velocity Velocity at impact in pixels per second. 203 public boolean onAbsorb(int velocity) { argument 204 return IMPL.onAbsorb(mEdgeEffect, velocity);
|
/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 32 // Special constant to request the velocity of the active pointer. 104 Velocity& velocity = mCalculatedVelocity[index]; local 105 velocity.vx = vx; 106 velocity.vy = vy; 118 const Velocity& velocity = mCalculatedVelocity[index]; local 119 vx = velocity.vx; 120 vy = velocity.vy;
|
/frameworks/base/core/java/android/widget/ |
H A D | EdgeEffect.java | 69 // Minimum velocity that will be absorbed 275 * Call when the effect absorbs an impact at the given velocity. 282 * @param velocity Velocity at impact in pixels per second. 284 public void onAbsorb(int velocity) { argument 286 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity)); 289 mDuration = 0.1f + (velocity * 0.03f); 292 // of velocity. 295 // The glow depends more on the velocity, and therefore starts out 300 // Factor the velocity b [all...] |
H A D | Scroller.java | 227 * Returns the current velocity. 229 * @return The original velocity less the deceleration. Result may be 386 * depend on the initial velocity of the fling. 390 * @param velocityX Initial velocity of the fling (X) measured in pixels per 392 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 428 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 430 mVelocity = velocity; 431 mDuration = getSplineFlingDuration(velocity); 436 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; 458 getSplineDeceleration(float velocity) argument 462 getSplineFlingDuration(float velocity) argument 468 getSplineFlingDistance(float velocity) argument [all...] |
H A D | SlidingDrawer.java | 440 float velocity = (float) Math.hypot(xVelocity, yVelocity); 442 velocity = -velocity; 448 if (Math.abs(velocity) < mMaximumTapVelocity) { 465 performFling(vertical ? top : left, velocity, false); 469 performFling(vertical ? top : left, velocity, false); 472 performFling(vertical ? top : left, velocity, false); 492 private void performFling(int position, float velocity, boolean always) { argument 494 mAnimatedVelocity = velocity; 497 if (always || (velocity > mMaximumMajorVelocit [all...] |
H A D | OverScroller.java | 85 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 102 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 171 * Returns the absolute value of the current velocity. 173 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 408 * depend on the initial velocity of the fling. 412 * @param velocityX Initial velocity of the fling (X) measured in pixels per 414 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 550 // Initial velocity 553 // Current velocity 657 getDeceleration(int velocity) argument 732 startSpringback(int start, int end, int velocity) argument 746 fling(int start, int velocity, int min, int max, int over) argument 782 getSplineDeceleration(int velocity) argument 786 getSplineFlingDistance(int velocity) argument 793 getSplineFlingDuration(int velocity) argument 799 fitOnBounceCurve(int start, int end, int velocity) argument 811 startBounceAfterEdge(int start, int end, int velocity) argument 817 startAfterEdge(int start, int min, int max, int velocity) argument [all...] |
H A D | StackView.java | 1034 float getDurationForNeutralPosition(float velocity) { argument 1035 return getDuration(false, velocity); 1038 float getDurationForOffscreenPosition(float velocity) { argument 1039 return getDuration(true, velocity); 1042 private float getDuration(boolean invert, float velocity) { argument 1051 if (velocity == 0) { 1054 float duration = invert ? d / Math.abs(velocity) : 1055 (maxd - d) / Math.abs(velocity);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 257 * @param velocity The desired pixels/second speed at which the view should move 259 public void dismissChild(final View view, float velocity) { argument 264 if (velocity < 0 265 || (velocity == 0 && getTranslation(animView) < 0) 267 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) { 273 if (velocity != 0) { 276 .abs(velocity))); 302 public void snapChild(final View view, float velocity) { argument 362 float velocity = getVelocity(mVelocityTracker); 368 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocit [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | SlidingChallengeLayout.java | 381 * @param velocity velocity in 383 void animateChallengeTo(int y, int velocity) { argument 409 velocity = Math.abs(velocity); 410 if (velocity > 0) { 411 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); 668 // Just drop it with no velocity and let things settle. 1154 private void showChallenge(int velocity) { argument 1156 if (Math.abs(velocity) > mMinVelocit 1164 showChallenge(boolean show, int velocity) argument [all...] |
H A D | PagedView.java | 1553 // Check the velocity and see if we are flinging-to-delete 1751 protected void snapToPageWithVelocity(int whichPage, int velocity) { argument 1762 if (Math.abs(velocity) < mMinFlingVelocity) { 1763 // If the velocity is low enough, then treat this more as an automatic page advance 1777 velocity = Math.abs(velocity); 1778 velocity = Math.max(mMinSnapVelocity, velocity); 1780 // we want the page's snap velocity to approximately match the velocity a [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewPager.java | 498 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument 524 scrollToItem(item, smoothScroll, velocity, dispatchSelected); 527 private void scrollToItem(int item, boolean smoothScroll, int velocity, argument 537 smoothScrollTo(destX, 0, velocity); 755 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise) 757 void smoothScrollTo(int x, int y, int velocity) { argument 784 velocity = Math.abs(velocity); 785 if (velocity > 2068 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument [all...] |