/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);
|
H A D | ViewDragHelper.java | 185 * The fling velocity is also supplied, if relevant. The velocity values may 198 * @param xvel X velocity of the pointer as it left the screen in pixels per second. 199 * @param yvel Y velocity of the pointer as it left the screen in pixels per second. 395 * Set the minimum velocity that will be detected as having a magnitude greater than zero 396 * in pixels per second. Callback methods accepting a velocity will be clamped appropriately. 398 * @param minVel Minimum velocity to detect 405 * Return the currently configured minimum velocity. Any flings with a magnitude less 406 * than this value in pixels per second. Callback methods accepting a velocity will receive 407 * zero as a velocity valu 617 computeAxisDuration(int delta, int velocity, int motionRange) argument [all...] |
H A D | SlidingPaneLayout.java | 110 * Minimum velocity that will be detected as a fling 998 * @param velocity initial velocity in case of fling, or 0. 1000 boolean smoothSlideTo(float slideOffset, int velocity) { argument
|
/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/base/core/java/android/widget/ |
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 | Scroller.java | 255 * Returns the current velocity. 257 * @return The original velocity less the deceleration. Result may be 414 * depend on the initial velocity of the fling. 418 * @param velocityX Initial velocity of the fling (X) measured in pixels per 420 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 456 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 458 mVelocity = velocity; 459 mDuration = getSplineFlingDuration(velocity); 464 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; 486 getSplineDeceleration(float velocity) argument 490 getSplineFlingDuration(float velocity) argument 496 getSplineFlingDistance(float velocity) argument [all...] |
H A D | EdgeEffect.java | 69 // Minimum velocity that will be absorbed 71 // Maximum velocity, clamps at this value 277 * Call when the effect absorbs an impact at the given velocity. 284 * @param velocity Velocity at impact in pixels per second. 286 public void onAbsorb(int velocity) { argument 288 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY); 291 mDuration = 0.15f + (velocity * 0.02f); 294 // of velocity. 297 // The glow depends more on the velocity, an [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 | 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);
|
H A D | AbsListView.java | 3675 // Fling if we have enough velocity and we aren't at a boundary. 4295 int velocity = (int) scroller.getCurrVelocity(); 4296 if (crossUp) velocity = -velocity; 4300 start(velocity); 4770 * Sets a scale factor for the fling velocity. The initial scale 4773 * @param scale The scale factor to multiply the velocity by.
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 269 * @param velocity The desired pixels/second speed at which the view should move 271 public void dismissChild(final View view, float velocity) { argument 276 if (velocity < 0 277 || (velocity == 0 && getTranslation(animView) < 0) 279 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) { 285 if (velocity != 0) { 288 .abs(velocity))); 311 public void snapChild(final View view, float velocity) { argument 371 float velocity = getVelocity(mVelocityTracker); 377 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocit [all...] |
/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/packages/Keyguard/src/com/android/keyguard/ |
H A D | SlidingChallengeLayout.java | 392 * @param velocity velocity in 394 void animateChallengeTo(int y, int velocity) { argument 420 velocity = Math.abs(velocity); 421 if (velocity > 0) { 422 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); 687 // Just drop it with no velocity and let things settle. 1200 private void showChallenge(int velocity) { argument 1202 if (Math.abs(velocity) > mMinVelocit 1210 showChallenge(boolean show, int velocity) argument [all...] |
H A D | PagedView.java | 1653 // Check the velocity and see if we are flinging-to-delete 1864 protected void snapToPageWithVelocity(int whichPage, int velocity) { argument 1879 if (Math.abs(velocity) < mMinFlingVelocity) { 1880 // If the velocity is low enough, then treat this more as an automatic page advance 1894 velocity = Math.abs(velocity); 1895 velocity = Math.max(mMinSnapVelocity, velocity); 1897 // we want the page's snap velocity to approximately match the velocity a [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | RotarySelector.java | 544 final int velocity = Math.max(mMinimumVelocity, rawVelocity); 547 Math.abs(velocity / mDimpleSpacing)); 551 velocity); 564 final int velocity = Math.min(-mMinimumVelocity, rawVelocity); 567 Math.abs(velocity / mDimpleSpacing)); 571 velocity);
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
H A D | carousel.rs | 155 static const int VELOCITY_HISTORY_MAX = 10; // # recent velocity samples used to calculate average 188 float swaySensitivity; // how much to rotate cards in relation to the rotation velocity 236 static float velocity = 0.0f; // angular velocity in radians/s 673 float swayAngle = getSwayAngleForVelocity(velocity, enableSway); 1142 enableSelection = fabs(velocity) < selectionVelocity; 1143 velocity = 0.0f; 1198 velocity = computeAverageVelocityFromHistory(); 1199 if (fabs(velocity) > stopVelocity) { 1251 velocity [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewPager.java | 512 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument 551 scrollToItem(item, smoothScroll, velocity, dispatchSelected); 555 private void scrollToItem(int item, boolean smoothScroll, int velocity, argument 565 smoothScrollTo(destX, 0, velocity); 786 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise) 788 void smoothScrollTo(int x, int y, int velocity) { argument 815 velocity = Math.abs(velocity); 816 if (velocity > 2149 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument [all...] |
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 353 // Break fling velocity if we impacted an edge. 365 final float velocity = VelocityTrackerCompat.getYVelocity(mVelocityTracker, 367 if (Math.abs(velocity) > mFlingVelocity) { // TODO 369 mScroller.fling(0, 0, 0, (int) velocity, 0, 0,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | PhoneStatusBar.java | 2382 final int velocity = dir * width * 8; // 1000/8 = 125 ms duration 2387 mPile.dismissRowAnimated(_v, velocity);
|