Searched defs:velocity (Results 1 - 9 of 9) 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.java51 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/java/android/widget/
H A DEdgeEffect.java70 // Minimum velocity that will be absorbed
247 * Call when the effect absorbs an impact at the given velocity.
254 * @param velocity Velocity at impact in pixels per second.
256 public void onAbsorb(int velocity) { argument
258 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity));
261 mDuration = 0.1f + (velocity * 0.03f);
264 // of velocity.
267 // The glow depends more on the velocity, and therefore starts out
272 // Factor the velocity b
[all...]
H A DSlidingDrawer.java434 float velocity = (float) Math.hypot(xVelocity, yVelocity);
436 velocity = -velocity;
442 if (Math.abs(velocity) < mMaximumTapVelocity) {
459 performFling(vertical ? top : left, velocity, false);
463 performFling(vertical ? top : left, velocity, false);
466 performFling(vertical ? top : left, velocity, false);
486 private void performFling(int position, float velocity, boolean always) { argument
488 mAnimatedVelocity = velocity;
491 if (always || (velocity > mMaximumMajorVelocit
[all...]
H A DOverScroller.java87 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
104 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
169 * Returns the absolute value of the current velocity.
171 * @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
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 DStackView.java1031 float getDurationForNeutralPosition(float velocity) { argument
1032 return getDuration(false, velocity);
1035 float getDurationForOffscreenPosition(float velocity) { argument
1036 return getDuration(true, velocity);
1039 private float getDuration(boolean invert, float velocity) { argument
1048 if (velocity == 0) {
1051 float duration = invert ? d / Math.abs(velocity) :
1052 (maxd - d) / Math.abs(velocity);
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp29 // Special constant to request the velocity of the active pointer.
101 Velocity& velocity = mCalculatedVelocity[index]; local
102 velocity.vx = vx;
103 velocity.vy = vy;
115 const Velocity& velocity = mCalculatedVelocity[index]; local
116 vx = velocity.vx;
117 vy = velocity.vy;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSwipeHelper.java207 * @param velocity The desired pixels/second speed at which the view should move
209 public void dismissChild(final View view, float velocity) { argument
214 if (velocity < 0
215 || (velocity == 0 && getTranslation(animView) < 0)
217 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) {
223 if (velocity != 0) {
226 .abs(velocity)));
252 public void snapChild(final View view, float velocity) { argument
305 float velocity = getVelocity(mVelocityTracker);
311 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocit
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java408 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument
436 smoothScrollTo(destX, 0, velocity);
604 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise)
606 void smoothScrollTo(int x, int y, int velocity) { argument
633 velocity = Math.abs(velocity);
634 if (velocity > 0) {
635 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
1403 // Track the velocity a
1561 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument
[all...]

Completed in 194 milliseconds