/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/ui/ |
H A D | DraggingInRecentsEndedEvent.java | 10 public final float velocity; field in class:DraggingInRecentsEndedEvent 12 public DraggingInRecentsEndedEvent(float velocity) { argument 13 this.velocity = velocity;
|
/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/packages/SystemUI/src/com/android/systemui/ |
H A D | RecentsComponent.java | 49 * @param velocity the velocity of the finger when releasing it in pixels per second 51 void onDraggingInRecentsEnded(float velocity); argument
|
H A D | ExpandHelper.java | 529 private void finishExpanding(boolean force, float velocity) { argument 540 nowExpanded = (force || currentHeight > mOldHeight && velocity >= 0); 542 nowExpanded = !force && (currentHeight >= mOldHeight || velocity > 0); 574 velocity = nowExpanded == velocity >= 0 ? velocity : 0; 575 mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity); 600 finishExpanding(true, 0f /* velocity */);
|
H A D | SwipeHelper.java | 326 * @param velocity The desired pixels/second speed at which the view should move 329 public void dismissChild(final View view, float velocity, boolean useAccelerateInterpolator) { argument 330 dismissChild(view, velocity, null /* endAction */, 0 /* delay */, 336 * @param velocity The desired pixels/second speed at which the view should move 342 public void dismissChild(final View animView, float velocity, final Runnable endAction, argument 350 boolean animateUpForMenu = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) 353 boolean animateLeftForRtl = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll) 355 boolean animateLeft = velocity < 0 356 || (velocity == 0 && getTranslation(animView) < 0 && !isDismissAll); 366 if (velocity ! 435 snapChild(final View animView, final float targetLeft, float velocity) argument 646 handleUpEvent(MotionEvent ev, View animView, float velocity, float translation) argument [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | EdgeEffectCompat.java | 53 public boolean onAbsorb(Object edgeEffect, int velocity); argument 84 public boolean onAbsorb(Object edgeEffect, int velocity) { argument 122 public boolean onAbsorb(Object edgeEffect, int velocity) { argument 123 return EdgeEffectCompatIcs.onAbsorb(edgeEffect, velocity); 230 * Call when the effect absorbs an impact at the given velocity. 237 * @param velocity Velocity at impact in pixels per second. 240 public boolean onAbsorb(int velocity) { argument 241 return IMPL.onAbsorb(mEdgeEffect, velocity);
|
H A D | ViewDragHelper.java | 186 * The fling velocity is also supplied, if relevant. The velocity values may 199 * @param xvel X velocity of the pointer as it left the screen in pixels per second. 200 * @param yvel Y velocity of the pointer as it left the screen in pixels per second. 396 * Set the minimum velocity that will be detected as having a magnitude greater than zero 397 * in pixels per second. Callback methods accepting a velocity will be clamped appropriately. 399 * @param minVel Minimum velocity to detect 406 * Return the currently configured minimum velocity. Any flings with a magnitude less 407 * than this value in pixels per second. Callback methods accepting a velocity will receive 408 * zero as a velocity valu 625 computeAxisDuration(int delta, int velocity, int motionRange) argument [all...] |
H A D | SlidingPaneLayout.java | 115 * Minimum velocity that will be detected as a fling 1051 * @param velocity initial velocity in case of fling, or 0. 1053 boolean smoothSlideTo(float slideOffset, int velocity) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | RecentsImplProxy.java | 108 public void onDraggingInRecentsEnded(float velocity) throws RemoteException { argument 109 mHandler.sendMessage(mHandler.obtainMessage(MSG_ON_DRAGGING_IN_RECENTS_ENDED, velocity));
|
H A D | Recents.java | 511 public void onDraggingInRecentsEnded(float velocity) { argument 513 mImpl.onDraggingInRecentsEnded(velocity); 521 callbacks.onDraggingInRecentsEnded(velocity);
|
H A D | RecentsImpl.java | 391 public void onDraggingInRecentsEnded(float velocity) { argument 392 EventBus.getDefault().sendOntoMainThread(new DraggingInRecentsEndedEvent(velocity));
|
/frameworks/base/core/java/android/widget/ |
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 | Scroller.java | 249 * Returns the current velocity. 251 * @return The original velocity less the deceleration. Result may be 402 * depend on the initial velocity of the fling. 406 * @param velocityX Initial velocity of the fling (X) measured in pixels per 408 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 444 float velocity = (float) Math.hypot(velocityX, velocityY); 446 mVelocity = velocity; 447 mDuration = getSplineFlingDuration(velocity); 452 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity; 474 getSplineDeceleration(float velocity) argument 478 getSplineFlingDuration(float velocity) argument 484 getSplineFlingDistance(float velocity) argument [all...] |
H A D | SlidingDrawer.java | 458 float velocity = (float) Math.hypot(xVelocity, yVelocity); 460 velocity = -velocity; 466 if (Math.abs(velocity) < mMaximumTapVelocity) { 483 performFling(vertical ? top : left, velocity, false); 487 performFling(vertical ? top : left, velocity, false); 490 performFling(vertical ? top : left, velocity, false); 510 private void performFling(int position, float velocity, boolean always) { argument 512 mAnimatedVelocity = velocity; 515 if (always || (velocity > mMaximumMajorVelocit [all...] |
H A D | OverScroller.java | 88 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 105 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 178 * Returns the absolute value of the current velocity. 180 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 406 * depend on the initial velocity of the fling. 410 * @param velocityX Initial velocity of the fling (X) measured in pixels per 412 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 548 // Initial velocity 551 // Current velocity 655 getDeceleration(int velocity) argument 730 startSpringback(int start, int end, int velocity) argument 744 fling(int start, int velocity, int min, int max, int over) argument 780 getSplineDeceleration(int velocity) argument 784 getSplineFlingDistance(int velocity) argument 791 getSplineFlingDuration(int velocity) argument 797 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 | 1040 float getDurationForNeutralPosition(float velocity) { argument 1041 return getDuration(false, velocity); 1044 float getDurationForOffscreenPosition(float velocity) { argument 1045 return getDuration(true, velocity); 1048 private float getDuration(boolean invert, float velocity) { argument 1055 if (velocity == 0) { 1058 float duration = invert ? d / Math.abs(velocity) : 1059 (maxd - d) / Math.abs(velocity);
|
/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 33 // Special constant to request the velocity of the active pointer. 105 Velocity& velocity = mCalculatedVelocity[index]; local 106 velocity.vx = vx; 107 velocity.vy = vy; 119 const Velocity& velocity = mCalculatedVelocity[index]; local 120 vx = velocity.vx; 121 vy = velocity.vy;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FlingAnimationUtils.java | 68 * @param velocity the current velocity of the motion 70 public void apply(Animator animator, float currValue, float endValue, float velocity) { argument 71 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 81 * @param velocity the current velocity of the motion 84 float velocity) { 85 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 95 * @param velocity the current velocity o 83 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity) argument 99 apply(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument 118 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument 126 getProperties(float currValue, float endValue, float velocity, float maxDistance) argument 166 applyDismissing(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument 186 applyDismissing(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument 194 getDismissingProperties(float currValue, float endValue, float velocity, float maxDistance) argument 234 calculateLinearOutFasterInY2(float velocity) argument 281 VelocityInterpolator(float durationSeconds, float velocity, float diff) argument [all...] |
H A D | KeyguardAffordanceView.java | 202 public void finishAnimation(float velocity, final Runnable mAnimationEndRunnable) { argument 217 velocity, maxCircleSize); 235 velocity, maxCircleSize);
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DividerSnapAlgorithm.java | 31 * Calculates the snap targets and the snap position given a position and a velocity. All positions 133 public SnapTarget calculateSnapTarget(int position, float velocity) { argument 134 return calculateSnapTarget(position, velocity, true /* hardDismiss */); 139 * @param velocity current dragging velocity 142 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) { argument 143 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) { 146 if (position > mLastSplitTarget.position && velocity > mMinDismissVelocityPxPerSecond) { 149 if (Math.abs(velocity) < mMinFlingVelocityPxPerSecond) { 152 if (velocity < [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 480 private void smoothScrollTo(int yOffset, float velocity) { argument 495 velocity = Math.abs(velocity); 496 if (velocity > 0) { 497 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
|
H A D | ViewPager.java | 520 boolean setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument 556 scrollToItem(item, smoothScroll, velocity, dispatchSelected); 562 private void scrollToItem(int position, boolean smoothScroll, int velocity, argument 567 smoothScrollTo(destX, 0, velocity); 789 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise) 791 void smoothScrollTo(int x, int y, int velocity) { argument 818 velocity = Math.abs(velocity); 819 if (velocity > 2248 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
H A D | DividerView.java | 363 public void stopDragging(int position, float velocity, boolean avoidDismissStart, argument 366 fling(position, velocity, avoidDismissStart, logMetrics); 455 mStartPosition, 0 /* velocity */, false /* hardDismiss */); 508 private void fling(int position, float velocity, boolean avoidDismissStart, argument 510 SnapTarget snapTarget = mSnapAlgorithm.calculateSnapTarget(position, velocity); 518 mFlingAnimationUtils.apply(anim, position, snapTarget.position, velocity);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardAffordanceHelper.java | 327 // or if the velocity is in the opposite direction. 370 private void startFinishingCircleAnimation(float velocity, Runnable mAnimationEndRunnable, argument 373 targetView.finishAnimation(velocity, mAnimationEndRunnable); 493 // Project the velocity onto the distance vector: a * b / |b|
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | AppBarLayout.java | 897 final AppBarLayout child, final int offset, float velocity) { 901 velocity = Math.abs(velocity); 902 if (velocity > 0) { 903 duration = 3 * Math.round(1000 * (distance / velocity)); 896 animateOffsetTo(final CoordinatorLayout coordinatorLayout, final AppBarLayout child, final int offset, float velocity) argument
|