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

/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);
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
617 computeAxisDuration(int delta, int velocity, int motionRange) argument
[all...]
H A DSlidingPaneLayout.java110 * Minimum velocity that will be detected as a fling
991 * @param velocity initial velocity in case of fling, or 0.
993 boolean smoothSlideTo(float slideOffset, int velocity) { argument
/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/base/core/java/android/widget/
H A DOverScroller.java85 * 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 DScroller.java255 * 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 DEdgeEffect.java69 // Minimum velocity that will be absorbed
275 * Call when the effect absorbs an impact at the given velocity.
282 * @param velocity Velocity at impact in pixels per second.
284 public void onAbsorb(int velocity) { argument
286 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity));
289 mDuration = 0.1f + (velocity * 0.03f);
292 // of velocity.
295 // The glow depends more on the velocity, and therefore starts out
300 // Factor the velocity b
[all...]
H A DSlidingDrawer.java440 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 DStackView.java1034 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 DAbsListView.java3499 // Fling if we have enough velocity and we aren't at a boundary.
4175 int velocity = (int) scroller.getCurrVelocity();
4176 if (crossUp) velocity = -velocity;
4180 start(velocity);
4652 * Sets a scale factor for the fling velocity. The initial scale
4655 * @param scale The scale factor to multiply the velocity by.
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSwipeHelper.java270 * @param velocity The desired pixels/second speed at which the view should move
272 public void dismissChild(final View view, float velocity) { argument
277 if (velocity < 0
278 || (velocity == 0 && getTranslation(animView) < 0)
280 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) {
286 if (velocity != 0) {
289 .abs(velocity)));
312 public void snapChild(final View view, float velocity) { argument
372 float velocity = getVelocity(mVelocityTracker);
378 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocit
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp32 // 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/policy/src/com/android/internal/policy/impl/keyguard/
H A DSlidingChallengeLayout.java381 * @param velocity velocity in
383 void animateChallengeTo(int y, int velocity) { argument
409 velocity = Math.abs(velocity);
410 if (velocity > 0) {
411 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
668 // Just drop it with no velocity and let things settle.
1154 private void showChallenge(int velocity) { argument
1156 if (Math.abs(velocity) > mMinVelocit
1164 showChallenge(boolean show, int velocity) argument
[all...]
H A DPagedView.java1565 // Check the velocity and see if we are flinging-to-delete
1764 protected void snapToPageWithVelocity(int whichPage, int velocity) { argument
1775 if (Math.abs(velocity) < mMinFlingVelocity) {
1776 // If the velocity is low enough, then treat this more as an automatic page advance
1790 velocity = Math.abs(velocity);
1791 velocity = Math.max(mMinSnapVelocity, velocity);
1793 // we want the page's snap velocity to approximately match the velocity a
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DRotarySelector.java544 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 Dcarousel.rs155 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 DViewPager.java512 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 >
2135 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument
[all...]
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
H A DProfileActivity.java245 mVelocitySpinner = (Spinner) findViewById(R.id.velocity);
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java353 // 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 DPhoneStatusBar.java2244 final int velocity = dir * width * 8; // 1000/8 = 125 ms duration
2249 mPile.dismissRowAnimated(_v, velocity);
/frameworks/base/core/java/android/webkit/
H A DWebViewClassic.java818 * Helper class to get velocity for fling
830 // only trigger accelerated fling if the new velocity is at least
831 // MINIMUM_VELOCITY_RATIO_FOR_ACCELERATION times of the previous velocity
3122 // to the existing velocity
5889 // fling's velocity
6834 float velocity = (float) Math.hypot(vx, vy);
6835 if (mLastVelocity > 0 && currentVelocity > 0 && velocity
6843 velocity = (float) Math.hypot(vx, vy);
6880 mLastVelocity = velocity;

Completed in 2619 milliseconds