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

12

/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/main/java/androidx/dynamicanimation/animation/
H A DForce.java24 float getAcceleration(float position, float velocity); argument
26 boolean isAtEquilibrium(float value, float velocity); argument
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 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 DSpringForce.java77 // This multiplier is used to calculate the velocity threshold given a certain value threshold.
78 // The idea is that if it takes >= 1 frame to move the value threshold amount, then the velocity
93 // Threshold for velocity and value to determine when it's reasonable to assume that the spring
106 // Internal state to hold a value/velocity pair.
231 public boolean isAtEquilibrium(float value, float velocity) { argument
232 if (Math.abs(velocity) < mVelocityThreshold
271 * Internal only call for Spring to calculate the spring position/velocity using
326 * is allowed to end the animation when velocity is very low
/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
/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/support/compat/src/main/java/androidx/core/widget/
H A DEdgeEffectCompat.java176 * Call when the effect absorbs an impact at the given velocity.
183 * @param velocity Velocity at impact in pixels per second.
189 public boolean onAbsorb(int velocity) { argument
190 mEdgeEffect.onAbsorb(velocity);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DPagerSnapHelperTest.java134 int velocity = (int) (1.000001 * mRecyclerView.getMinFlingVelocity());
135 int velocityDir = mReverseScroll ? -velocity : velocity;
180 private void runSnapOnMaxFlingNextView(int velocity) throws Throwable { argument
185 int velocityDir = mReverseScroll ? -velocity : 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
H A DNotificationMenuRowPlugin.java105 public boolean onTouchEvent(View view, MotionEvent ev, float velocity); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSScrollLayout.java150 public boolean onDrag(float displacement, float velocity) { argument
176 public void onDragEnd(float velocity, boolean fling) { argument
/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/dynamic-animation/src/androidTest/java/androidx/dynamicanimation/tests/
H A DSpringTests.java122 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) {
184 float velocity) {
252 float velocity) {
254 if (velocity > 0 && velocity1 < 0) {
257 velocity1 = velocity;
259 velocity2 = velocity;
260 if (velocity > 0 && velocity2 < 0) {
468 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) {
658 float velocity) {
788 float velocity) {
787 onAnimationEnd(DynamicAnimation animation, boolean canceled, float value, float velocity) argument
[all...]
/frameworks/base/core/java/android/widget/
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 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.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/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/recents/
H A DRecentsImplProxy.java106 public void onDraggingInRecentsEnded(float velocity) throws RemoteException { argument
107 mHandler.sendMessage(mHandler.obtainMessage(MSG_ON_DRAGGING_IN_RECENTS_ENDED, velocity));
H A DRecents.java579 public void onDraggingInRecentsEnded(float velocity) { argument
581 mImpl.onDraggingInRecentsEnded(velocity);
589 callbacks.onDraggingInRecentsEnded(velocity);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/lowram/
H A DTaskStackLowRamLayoutAlgorithm.java148 * @param velocity speed of fling
150 public float getClosestTaskP(float scrollP, int numTasks, int velocity) { argument
160 if (Math.abs(velocity) > mFlingThreshold) {
161 useNext = velocity > 0;
/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...]
/frameworks/base/core/java/com/android/internal/policy/
H A DDividerSnapAlgorithm.java34 * Calculates the snap targets and the snap position given a position and a velocity. All positions
156 public SnapTarget calculateSnapTarget(int position, float velocity) { argument
157 return calculateSnapTarget(position, velocity, true /* hardDismiss */);
162 * @param velocity current dragging velocity
165 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) { argument
166 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) {
169 if (position > mLastSplitTarget.position && velocity > mMinDismissVelocityPxPerSecond) {
172 if (Math.abs(velocity) < mMinFlingVelocityPxPerSecond) {
175 if (velocity <
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
H A DSwipeDetector.java52 * The minimum release velocity in pixels per millisecond that triggers fling..
57 * The time constant used to calculate dampening in the low-pass filter of scroll velocity.
174 boolean onDrag(float displacement, float velocity); argument
176 void onDragEnd(float velocity, boolean fling); argument
294 Log.d(TAG, String.format("onDrag disp=%.1f, velocity=%.1f",
306 Log.d(TAG, String.format("onScrollEnd disp=%.1f, velocity=%.1f",
314 * Computes the damped velocity.
321 float velocity = (deltaTimeMillis > 0) ? (delta / deltaTimeMillis) : 0;
323 mVelocity = velocity;
326 mVelocity = interpolate(mVelocity, velocity, alph
345 calculateDuration(float velocity, float progressNeeded) argument
[all...]
/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);

Completed in 231 milliseconds

12