Searched defs:velocity (Results 1 - 21 of 21) sorted by relevance

/frameworks/support/v4/ics/android/support/v4/widget/
H A DEdgeEffectCompatIcs.java56 public static boolean onAbsorb(Object edgeEffect, int velocity) { argument
57 ((EdgeEffect) edgeEffect).onAbsorb(velocity);
/frameworks/support/v4/java/android/support/v4/widget/
H A DEdgeEffectCompat.java53 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);
229 * Call when the effect absorbs an impact at the given velocity.
236 * @param velocity Velocity at impact in pixels per second.
239 public boolean onAbsorb(int velocity) { argument
240 return IMPL.onAbsorb(mEdgeEffect, velocity);
H A DViewDragHelper.java185 * 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 DSlidingPaneLayout.java112 * Minimum velocity that will be detected as a fling
1048 * @param velocity initial velocity in case of fling, or 0.
1050 boolean smoothSlideTo(float slideOffset, int velocity) { argument
/frameworks/base/core/java/android/widget/
H A DEdgeEffect.java69 // 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 DScroller.java249 * 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 DSlidingDrawer.java460 float velocity = (float) Math.hypot(xVelocity, yVelocity);
462 velocity = -velocity;
468 if (Math.abs(velocity) < mMaximumTapVelocity) {
485 performFling(vertical ? top : left, velocity, false);
489 performFling(vertical ? top : left, velocity, false);
492 performFling(vertical ? top : left, velocity, false);
512 private void performFling(int position, float velocity, boolean always) { argument
514 mAnimatedVelocity = velocity;
517 if (always || (velocity > mMaximumMajorVelocit
[all...]
H A DOverScroller.java88 * 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 DStackView.java1040 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 Dandroid_view_VelocityTracker.cpp33 // 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 DFlingAnimationUtils.java73 * @param velocity the current velocity of the motion
75 public void apply(Animator animator, float currValue, float endValue, float velocity) { argument
76 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue));
86 * @param velocity the current velocity of the motion
89 float velocity) {
90 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue));
100 * @param velocity the current velocity o
88 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity) argument
104 apply(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument
123 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument
131 getProperties(float currValue, float endValue, float velocity, float maxDistance) argument
171 applyDismissing(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument
191 applyDismissing(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument
199 getDismissingProperties(float currValue, float endValue, float velocity, float maxDistance) argument
239 calculateLinearOutFasterInY2(float velocity) argument
286 VelocityInterpolator(float durationSeconds, float velocity, float diff) argument
[all...]
H A DKeyguardAffordanceView.java209 public void finishAnimation(float velocity, final Runnable mAnimationEndRunnable) { argument
224 velocity, maxCircleSize);
242 velocity, maxCircleSize);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DSwipeHelper.java218 * @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...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java524 private void finishExpanding(boolean force, float velocity) { argument
554 mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity);
578 finishExpanding(true, 0f /* velocity */);
H A DSwipeHelper.java295 * @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...]
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java464 private void smoothScrollTo(int yOffset, float velocity) { argument
479 velocity = Math.abs(velocity);
480 if (velocity > 0) {
481 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
H A DViewPager.java519 boolean setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument
555 scrollToItem(item, smoothScroll, velocity, dispatchSelected);
561 private void scrollToItem(int position, boolean smoothScroll, int velocity, argument
566 smoothScrollTo(destX, 0, velocity);
787 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise)
789 void smoothScrollTo(int x, int y, int velocity) { argument
816 velocity = Math.abs(velocity);
817 if (velocity >
2232 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardAffordanceHelper.java327 // 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|
H A DNotificationPanelView.java944 public void flingTopOverscroll(float velocity, boolean open) { argument
947 flingSettings(!mQsExpansionEnabled && open ? 0f : velocity, open && mQsExpansionEnabled,
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java517 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument
553 scrollToItem(item, smoothScroll, velocity, dispatchSelected);
557 private void scrollToItem(int item, boolean smoothScroll, int velocity, argument
567 smoothScrollTo(destX, 0, velocity);
824 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise)
826 void smoothScrollTo(int x, int y, int velocity) { argument
853 velocity = Math.abs(velocity);
854 if (velocity >
2237 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java1416 * @param velocityY The initial velocity in the Y direction. Positive
2911 * @param velocity The velocity that the Scroller had when over flinging
2914 public void flingTopOverscroll(float velocity, boolean open); argument

Completed in 454 milliseconds