Searched refs:velocity (Results 1 - 25 of 59) 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);
/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.java209 0 /* velocity */);
229 public boolean onTouchEvent(View view, MotionEvent ev, float velocity) { argument
274 return handleUpEvent(ev, view, velocity);
283 private boolean handleUpEvent(MotionEvent ev, View animView, float velocity) { argument
289 dismiss(animView, velocity);
291 snapBack(animView, velocity);
296 final boolean gestureTowardsMenu = isTowardsMenu(velocity);
298 mSwipeHelper.getMinDismissVelocity() <= Math.abs(velocity);
309 + " velocity= " + velocity
359 showMenu(View animView, float targetLeft, float velocity) argument
366 snapBack(View animView, float velocity) argument
373 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.java355 * @param velocity The desired pixels/second speed at which the view should move
358 public void dismissChild(final View view, float velocity, boolean useAccelerateInterpolator) { argument
359 dismissChild(view, velocity, null /* endAction */, 0 /* delay */,
365 * @param velocity The desired pixels/second speed at which the view should move
371 public void dismissChild(final View animView, float velocity, final Runnable endAction, argument
379 boolean animateUpForMenu = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll)
382 boolean animateLeftForRtl = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll)
384 boolean animateLeft = (Math.abs(velocity) > getEscapeVelocity() && velocity < 0) ||
394 if (velocity !
471 snapChild(final View animView, final float targetLeft, float velocity) argument
699 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);
/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.java37 public void dismiss(View animView, float velocity); argument
42 public void snap(View animView, float velocity, float targetLeft); argument
57 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.java69 // Minimum velocity that will be absorbed
71 // Maximum velocity, clamps at this value
259 * Call when the effect absorbs an impact at the given velocity.
266 * @param velocity Velocity at impact in pixels per second.
268 public void onAbsorb(int velocity) { argument
270 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY);
273 mDuration = 0.15f + (velocity * 0.02f);
275 // The glow depends more on the velocity, and therefore starts out
285 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/native/libs/vr/libdvr/include/dvr/
H A Ddvr_pose.h33 // Start-space angular velocity x,y,z,pad in radians per second.
35 // Start-space positional velocity x,y,z,pad in meters per second.
36 float32x4_t velocity; member in struct:DvrPoseAsync
74 // The angular velocity where the x,y,z is the rotation axis and the
83 float32x4_t velocity; member in struct:DvrPose
/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/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewScroller.java203 * @param velocity of scroll
205 void scrollToClosestTask(int velocity) { argument
216 if (Math.abs(velocity) > flingThreshold) {
224 -velocity, minY, maxY, 0 /* overscroll */);
228 velocity);
231 algorithm.percentageToScroll(newScrollP), velocity);
236 mLayoutAlgorithm.mNumStackTasks, 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 768 milliseconds

123