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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/ui/
H A DDraggingInRecentsEndedEvent.java10 public final float velocity; field in class:DraggingInRecentsEndedEvent
12 public DraggingInRecentsEndedEvent(float velocity) { argument
13 this.velocity = velocity;
/frameworks/support/dynamic-animation/src/android/support/animation/
H A DForce.java24 float getAcceleration(float position, float velocity); argument
26 boolean isAtEquilibrium(float value, float velocity); argument
H A DFlingAnimation.java23 * velocity) and gradually slows down. The fling animation will come to a stop when the velocity of
33 * // Sets the start velocity to -2000 (pixel/s)
128 * Start velocity of the animation. Default velocity is 0. Unit: pixel/second
130 * <p>A <b>non-zero</b> start velocity is required for a FlingAnimation. If no start velocity is
131 * set through {@link #setStartVelocity(float)}, the start velocity defaults to 0. In that
134 * <p>Note when using a fixed value as the start velocity (as opposed to getting the velocity
178 getAcceleration(float value, float velocity) argument
183 isAtEquilibrium(float value, float velocity) argument
216 updateValueAndVelocity(float value, float velocity, long deltaT) argument
227 getAcceleration(float position, float velocity) argument
232 isAtEquilibrium(float value, float velocity) argument
[all...]
H A DSpringAnimation.java25 * started, on each frame the spring force will update the animation's value and velocity.
37 * // default spring to 0, and start the animation with a starting velocity of 5000 (pixel/s).
213 // If user had requested end, then update the value and velocity to end state and consider
256 float getAcceleration(float value, float velocity) { argument
257 return mSpring.getAcceleration(value, velocity);
261 boolean isAtEquilibrium(float value, float velocity) { argument
262 return mSpring.isAtEquilibrium(value, velocity);
H A DSpringForce.java76 // This multiplier is used to calculate the velocity threshold given a certain value threshold.
77 // The idea is that if it takes >= 1 frame to move the value threshold amount, then the velocity
92 // Threshold for velocity and value to determine when it's reasonable to assume that the spring
105 // Internal state to hold a value/velocity pair.
228 public boolean isAtEquilibrium(float value, float velocity) { argument
229 if (Math.abs(velocity) < mVelocityThreshold
268 * Internal only call for Spring to calculate the spring position/velocity using
323 * is allowed to end the animation when velocity is very low
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DFlingAnimationUtils.java104 * @param velocity the current velocity of the motion
106 public void apply(Animator animator, float currValue, float endValue, float velocity) { argument
107 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue));
117 * @param velocity the current velocity of the motion
120 float velocity) {
121 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue));
131 * @param velocity the current velocity o
119 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity) argument
135 apply(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument
154 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument
162 getProperties(float currValue, float endValue, float velocity, float maxDistance) argument
220 applyDismissing(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument
240 applyDismissing(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument
248 getDismissingProperties(float currValue, float endValue, float velocity, float maxDistance) argument
288 calculateLinearOutFasterInY2(float velocity) argument
335 VelocityInterpolator(float durationSeconds, float velocity, float diff) argument
[all...]
H A DNotificationMenuRow.java206 showMenu(mParent, mOnLeft ? getSpaceForMenu() : -getSpaceForMenu(), 0 /* velocity */);
225 public boolean onTouchEvent(View view, MotionEvent ev, float velocity) { argument
268 return handleUpEvent(ev, view, velocity);
273 private boolean handleUpEvent(MotionEvent ev, View animView, float velocity) { argument
279 dismiss(animView, velocity);
281 snapBack(animView, velocity);
286 final boolean gestureTowardsMenu = isTowardsMenu(velocity);
288 mSwipeHelper.getMinDismissVelocity() <= Math.abs(velocity);
299 + " velocity= " + velocity
349 showMenu(View animView, float targetLeft, float velocity) argument
356 snapBack(View animView, float velocity) argument
366 dismiss(View animView, float velocity) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DRecentsComponent.java45 * @param velocity the velocity of the finger when releasing it in pixels per second
47 void onDraggingInRecentsEnded(float velocity); argument
H A DSwipeHelper.java340 * @param velocity The desired pixels/second speed at which the view should move
343 public void dismissChild(final View view, float velocity, boolean useAccelerateInterpolator) { argument
344 dismissChild(view, velocity, null /* endAction */, 0 /* delay */,
350 * @param velocity The desired pixels/second speed at which the view should move
356 public void dismissChild(final View animView, float velocity, final Runnable endAction, argument
364 boolean animateUpForMenu = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll)
367 boolean animateLeftForRtl = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll)
369 boolean animateLeft = (Math.abs(velocity) > getEscapeVelocity() && velocity < 0) ||
379 if (velocity !
451 snapChild(final View animView, final float targetLeft, float velocity) argument
679 handleUpEvent(MotionEvent ev, View animView, float velocity, float translation) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DIRecentsNonSystemUserCallbacks.aidl37 void onDraggingInRecentsEnded(float velocity);
H A DRecentsImplProxy.java109 public void onDraggingInRecentsEnded(float velocity) throws RemoteException { argument
110 mHandler.sendMessage(mHandler.obtainMessage(MSG_ON_DRAGGING_IN_RECENTS_ENDED, velocity));
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/recents/
H A DIRecentsNonSystemUserCallbacks.aidl37 void onDraggingInRecentsEnded(float velocity);
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
H A DNotificationSwipeActionHelper.java36 public void dismiss(View animView, float velocity); argument
41 public void snap(View animView, float velocity, float targetLeft); argument
56 public boolean swipedFastEnough(float translation, float velocity); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenGestureLogger.java46 public void write(int gesture, int length, int velocity) { argument
50 .addTaggedData(MetricsEvent.FIELD_GESTURE_VELOCITY, velocity));
52 EventLogTags.writeSysuiLockscreenGesture(safeLookup(gesture), length, velocity);
/frameworks/base/core/java/android/widget/
H A DOverScroller.java88 * 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
180 * Returns the absolute value of the current velocity.
182 * @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
813 startBounceAfterEdge(int start, int end, int velocity) argument
819 startAfterEdge(int start, int min, int max, int velocity) argument
[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 DEdgeEffect.java68 // Minimum velocity that will be absorbed
70 // Maximum velocity, clamps at this value
257 * Call when the effect absorbs an impact at the given velocity.
264 * @param velocity Velocity at impact in pixels per second.
266 public void onAbsorb(int velocity) { argument
268 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY);
271 mDuration = 0.15f + (velocity * 0.02f);
273 // The glow depends more on the velocity, and therefore starts out
283 mGlowScaleYFinish = Math.min(0.025f + (velocity * (velocit
[all...]
H A DSlidingDrawer.java456 float velocity = (float) Math.hypot(xVelocity, yVelocity);
458 velocity = -velocity;
464 if (Math.abs(velocity) < mMaximumTapVelocity) {
481 performFling(vertical ? top : left, velocity, false, true);
485 performFling(vertical ? top : left, velocity, false, true);
488 performFling(vertical ? top : left, velocity, false, true);
508 private void performFling(int position, float velocity, boolean always, argument
511 mAnimatedVelocity = velocity;
514 if (always || (velocity > mMaximumMajorVelocit
[all...]
/frameworks/support/compat/java/android/support/v4/widget/
H A DEdgeEffectCompat.java194 * Call when the effect absorbs an impact at the given velocity.
201 * @param velocity Velocity at impact in pixels per second.
207 public boolean onAbsorb(int velocity) { argument
208 mEdgeEffect.onAbsorb(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/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerSnappingTest.java118 int velocity = (int) (1.000001 * mRecyclerView.getMinFlingVelocity());
119 int velocityDir = mReverseScroll ? -velocity : velocity;
144 int velocity = (int) (0.25 * mRecyclerView.getMaxFlingVelocity());
145 int velocityDir = mReverseScroll ? -velocity : velocity;
H A DLinearLayoutManagerSnappingTest.java140 int velocity = (int) (1.000001 * mRecyclerView.getMinFlingVelocity());
141 int velocityDir = mReverseScroll ? -velocity : velocity;
165 int velocity = (int) (0.2 * mRecyclerView.getMaxFlingVelocity());
166 int velocityDir = mReverseScroll ? -velocity : velocity;
H A DStaggeredGridLayoutManagerSnappingTest.java158 int velocity = (int) (1.000001 * mRecyclerView.getMinFlingVelocity());
159 int velocityDir = mReverseScroll ? -velocity : velocity;
184 int velocity = (int) (0.2 * mRecyclerView.getMaxFlingVelocity());
185 int velocityDir = mReverseScroll ? -velocity : velocity;
H A DPagerSnapHelperTest.java133 int velocity = (int) (1.000001 * mRecyclerView.getMinFlingVelocity());
134 int velocityDir = mReverseScroll ? -velocity : velocity;
179 private void runSnapOnMaxFlingNextView(int velocity) throws Throwable { argument
184 int velocityDir = mReverseScroll ? -velocity : velocity;
/frameworks/base/core/java/com/android/internal/policy/
H A DDividerSnapAlgorithm.java31 * Calculates the snap targets and the snap position given a position and a velocity. All positions
146 public SnapTarget calculateSnapTarget(int position, float velocity) { argument
147 return calculateSnapTarget(position, velocity, true /* hardDismiss */);
152 * @param velocity current dragging velocity
155 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) { argument
156 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) {
159 if (position > mLastSplitTarget.position && velocity > mMinDismissVelocityPxPerSecond) {
162 if (Math.abs(velocity) < mMinFlingVelocityPxPerSecond) {
165 if (velocity <
[all...]

Completed in 494 milliseconds

123