/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FlingAnimationUtils.java | 74 * @param velocity the current velocity of the motion 76 public void apply(Animator animator, float currValue, float endValue, float velocity) { argument 77 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 87 * @param velocity the current velocity of the motion 90 float velocity) { 91 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 101 * @param velocity the current velocity o 89 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity) argument 105 apply(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument 124 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument 132 getProperties(float currValue, float endValue, float velocity, float maxDistance) argument 172 applyDismissing(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument 192 applyDismissing(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument 200 getDismissingProperties(float currValue, float endValue, float velocity, float maxDistance) argument 240 calculateLinearOutFasterInY2(float velocity) argument 287 VelocityInterpolator(float durationSeconds, float velocity, float diff) argument [all...] |
H A D | KeyguardAffordanceView.java | 216 public void finishAnimation(float velocity, final Runnable mAnimationEndRunnable) { argument 223 velocity, maxCircleSize); 238 velocity, maxCircleSize);
|
/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 624 computeAxisDuration(int delta, int velocity, int motionRange) argument [all...] |
H A D | SlidingPaneLayout.java | 111 * Minimum velocity that will be detected as a fling 1045 * @param velocity initial velocity in case of fling, or 0. 1047 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 | 89 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 106 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 179 * Returns the absolute value of the current velocity. 181 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 409 * depend on the initial velocity of the fling. 413 * @param velocityX Initial velocity of the fling (X) measured in pixels per 415 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 551 // Initial velocity 554 // Current velocity 658 getDeceleration(int velocity) argument 733 startSpringback(int start, int end, int velocity) argument 747 fling(int start, int velocity, int min, int max, int over) argument 783 getSplineDeceleration(int velocity) argument 787 getSplineFlingDistance(int velocity) argument 794 getSplineFlingDuration(int velocity) argument 800 fitOnBounceCurve(int start, int end, int velocity) argument 812 startBounceAfterEdge(int start, int end, int velocity) argument 818 startAfterEdge(int start, int min, int max, int velocity) argument [all...] |
H A D | Scroller.java | 250 * Returns the current velocity. 252 * @return The original velocity less the deceleration. Result may be 403 * depend on the initial velocity of the fling. 407 * @param velocityX Initial velocity of the fling (X) measured in pixels per 409 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 445 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 447 mVelocity = velocity; 448 mDuration = getSplineFlingDuration(velocity); 453 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; 475 getSplineDeceleration(float velocity) argument 479 getSplineFlingDuration(float velocity) argument 485 getSplineFlingDistance(float velocity) argument [all...] |
H A D | EdgeEffect.java | 69 // Minimum velocity that will be absorbed 71 // Maximum velocity, clamps at this value 258 * Call when the effect absorbs an impact at the given velocity. 265 * @param velocity Velocity at impact in pixels per second. 267 public void onAbsorb(int velocity) { argument 269 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY); 272 mDuration = 0.15f + (velocity * 0.02f); 274 // The glow depends more on the velocity, and therefore starts out 284 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocit [all...] |
H A D | SlidingDrawer.java | 461 float velocity = (float) Math.hypot(xVelocity, yVelocity); 463 velocity = -velocity; 469 if (Math.abs(velocity) < mMaximumTapVelocity) { 486 performFling(vertical ? top : left, velocity, false); 490 performFling(vertical ? top : left, velocity, false); 493 performFling(vertical ? top : left, velocity, false); 513 private void performFling(int position, float velocity, boolean always) { argument 515 mAnimatedVelocity = velocity; 518 if (always || (velocity > mMaximumMajorVelocit [all...] |
H A D | StackView.java | 1041 float getDurationForNeutralPosition(float velocity) { argument 1042 return getDuration(false, velocity); 1045 float getDurationForOffscreenPosition(float velocity) { argument 1046 return getDuration(true, velocity); 1049 private float getDuration(boolean invert, float velocity) { argument 1058 if (velocity == 0) { 1061 float duration = invert ? d / Math.abs(velocity) : 1062 (maxd - d) / Math.abs(velocity);
|
H A D | AbsListView.java | 3897 // Fling if we have enough velocity and we aren't at a boundary. 4047 * Initiate a fling with the given velocity. 4052 * @param velocityY Vertical velocity in pixels per second. Note that this is velocity of 4053 * content, not velocity of a touch that initiated the fling. 4587 int velocity = (int) scroller.getCurrVelocity(); 4588 if (crossUp) velocity = -velocity; 4592 start(velocity); 4621 * Sets a scale factor for the fling velocity [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | SwipeHelper.java | 218 * @param velocity The desired pixels/second speed at which the view should move 220 private void dismissChild(final View view, float velocity) { argument 223 if (velocity < 0 224 || (velocity == 0 && getTranslation(view) < 0) 226 || (velocity == 0 && getTranslation(view) == 0 && mSwipeDirection == Y)) { 232 if (velocity != 0) { 235 1000f / Math.abs(velocity))); 263 private void snapChild(final View view, float velocity) { argument 353 float velocity = getVelocity(velocityTracker); 360 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocit [all...] |
H A D | TaskStackViewTouchHandler.java | 143 // Initialize the velocity tracker 151 // Initialize the velocity tracker if necessary 177 // Reset the drag state and the velocity tracker 203 // Update the velocity tracker 218 // Initialize the velocity tracker 277 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 278 if (mIsScrolling && (Math.abs(velocity) > mMinimumVelocity)) { 279 float overscrollRangePct = Math.abs((float) velocity / mMaximumVelocity); 285 0, velocity,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 295 * @param velocity The desired pixels/second speed at which the view should move 297 public void dismissChild(final View view, float velocity) { argument 298 dismissChild(view, velocity, null, 0, false, 0); 303 * @param velocity The desired pixels/second speed at which the view should move 309 public void dismissChild(final View view, float velocity, final Runnable endAction, argument 316 if (velocity < 0 317 || (velocity == 0 && getTranslation(animView) < 0) 319 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y) 321 || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) { 329 if (velocity ! 369 snapChild(final View view, float velocity) argument [all...] |
H A D | ExpandHelper.java | 527 private void finishExpanding(boolean force, float velocity) { argument 557 mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity); 581 finishExpanding(true, 0f /* 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/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 | 1652 // Check the velocity and see if we are flinging-to-delete 1863 protected void snapToPageWithVelocity(int whichPage, int velocity) { argument 1878 if (Math.abs(velocity) < mMinFlingVelocity) { 1879 // If the velocity is low enough, then treat this more as an automatic page advance 1893 velocity = Math.abs(velocity); 1894 velocity = Math.max(mMinSnapVelocity, velocity); 1896 // 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 | 551 final int velocity = Math.max(mMinimumVelocity, rawVelocity); 554 Math.abs(velocity / mDimpleSpacing)); 558 velocity); 571 final int velocity = Math.min(-mMinimumVelocity, rawVelocity); 574 Math.abs(velocity / mDimpleSpacing)); 578 velocity);
|
H A D | ResolverDrawerLayout.java | 397 private void smoothScrollTo(int yOffset, float velocity) { argument 412 velocity = Math.abs(velocity); 413 if (velocity > 0) { 414 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewPager.java | 517 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument 556 scrollToItem(item, smoothScroll, velocity, dispatchSelected); 560 private void scrollToItem(int item, boolean smoothScroll, int velocity, argument 570 smoothScrollTo(destX, 0, velocity); 791 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise) 793 void smoothScrollTo(int x, int y, int velocity) { argument 820 velocity = Math.abs(velocity); 821 if (velocity > 2154 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardAffordanceHelper.java | 289 // or if the velocity is in the opposite direction. 328 private void startFinishingCircleAnimation(float velocity, Runnable mAnimationEndRunnable) { argument 330 targetView.finishAnimation(velocity, mAnimationEndRunnable);
|
H A D | NotificationPanelView.java | 831 public void flingTopOverscroll(float velocity, boolean open) { argument 834 flingSettings(!mQsExpansionEnabled && open ? 0f : velocity, open && mQsExpansionEnabled,
|
/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,
|