HomeSort by relevance Sort by last modified time
    Searched refs:velocity (Results 26 - 50 of 192) sorted by null

12 3 4 5 6 7 8

  /frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
NotificationSwipeActionHelper.java 36 public void dismiss(View animView, float velocity);
41 public void snap(View animView, float velocity, float targetLeft);
56 public boolean swipedFastEnough(float translation, float velocity);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
LockscreenGestureLogger.java 46 public void write(int gesture, int length, int velocity) {
50 .addTaggedData(MetricsEvent.FIELD_GESTURE_VELOCITY, velocity));
52 EventLogTags.writeSysuiLockscreenGesture(safeLookup(gesture), length, velocity); local
  /frameworks/base/core/java/android/widget/
OverScroller.java 88 * 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
    [all...]
Scroller.java 249 * 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); local
446 mVelocity = velocity;
447 mDuration = getSplineFlingDuration(velocity);
452 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
    [all...]
EdgeEffect.java 68 // 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) {
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 ou
    [all...]
SlidingDrawer.java 456 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,
511 mAnimatedVelocity = velocity;
514 if (always || (velocity > mMaximumMajorVelocity |
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
OverScroller.java 86 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
103 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value
172 * Returns the absolute value of the current velocity.
174 * @return The original velocity less the deceleration, norm of the X and Y velocity vector.
407 * depend on the initial velocity of the fling.
411 * @param velocityX Initial velocity of the fling (X) measured in pixels per
413 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
549 // Initial velocity
552 // Current velocity
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
FlingScroller.java 25 // (1) The velocity does not change because of min/max limit.
32 // The fling duration (in milliseconds) when velocity is 1 pixel/second
85 double velocity = Math.hypot(velocityX, velocityY); local
86 mSinAngle = velocityY / velocity;
87 mCosAngle = velocityX / velocity;
90 // velocity formula: v(t) = d * (e - s) * (1 - t / T) ^ (d - 1) / T
97 * Math.pow(Math.abs(velocity), 1.0 / (DECELERATED_FACTOR - 1)));
101 velocity * mDuration / DECELERATED_FACTOR / 1000);
137 // velocity formula: v(t) = d * (e - s) * (1 - t / T) ^ (d - 1) / T
Paper.java 45 public void edgeReached(float velocity) {
46 velocity /= mWidth; // make it relative to width
47 if (velocity < 0) {
48 mAnimationRight.onAbsorb(-velocity);
50 mAnimationLeft.onAbsorb(velocity);
145 public void onAbsorb(float velocity) {
146 float finish = Utils.clamp(mValue + velocity * VELOCITY_FACTOR,
ScrollerHelper.java 74 public void fling(int velocity, int min, int max) {
78 velocity, 0, // velocityX, velocityY
EdgeEffect.java 79 // Minimum velocity that will be absorbed
255 * Call when the effect absorbs an impact at the given velocity.
262 * @param velocity Velocity at impact in pixels per second.
264 public void onAbsorb(int velocity) {
266 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity));
269 mDuration = 0.1f + (velocity * 0.03f);
272 // of velocity.
275 // The glow depends more on the velocity, and therefore starts ou
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/allapps/
VerticalPullDetector.java 31 * The minimum release velocity in pixels per millisecond that triggers fling..
36 * The time constant used to calculate dampening in the low-pass filter of scroll velocity.
122 boolean onDrag(float displacement, float velocity);
124 void onDragEnd(float velocity, boolean fling);
226 Log.d(TAG, String.format("onDrag disp=%.1f, velocity=%.1f",
237 Log.d(TAG, String.format("onScrollEnd disp=%.1f, velocity=%.1f",
245 * Computes the damped velocity using the two motion events and the previous velocity.
256 float velocity = (deltaTimeMillis > 0) ? (delta / deltaTimeMillis) : 0; local
258 mVelocity = velocity;
    [all...]
  /prebuilts/misc/windows/sdl2/test/
testnative.c 89 SDL_Rect *position, *velocity; local
102 velocity = &velocities[i];
103 position->x += velocity->x;
105 velocity->x = -velocity->x;
106 position->x += velocity->x;
108 position->y += velocity->y;
110 velocity->y = -velocity->y;
111 position->y += velocity->y
    [all...]
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/template/
VelocityTest.java 24 import org.apache.velocity.Template;
25 import org.apache.velocity.VelocityContext;
26 import org.apache.velocity.app.VelocityEngine;
27 import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
  /external/sonivox/arm-wt-22k/lib_src/
eas_otadata.h 74 EAS_U8 velocity; /* current volume */ member in struct:__anon30025
  /frameworks/support/dynamic-animation/src/android/support/animation/
SpringAnimation.java 25 * 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) {
257 return mSpring.getAcceleration(value, velocity);
261 boolean isAtEquilibrium(float value, float velocity) {
262 return mSpring.isAtEquilibrium(value, velocity);
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
SwipeHelper.java 263 * @param velocity The desired pixels/second speed at which the view should
266 private void dismissChild(final SwipeableItemView view, float velocity) {
269 float newPos = determinePos(animView, velocity);
270 int duration = determineDuration(animView, newPos, velocity);
293 private static int determineDuration(View animView, float newPos, float velocity) {
295 if (velocity != 0) {
299 .abs(velocity)));
306 private float determinePos(View animView, float velocity) {
308 if (velocity < 0 || (velocity == 0 && animView.getTranslationX() < 0
406 float velocity = getVelocity(mVelocityTracker); local
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
LauncherScroller.java 227 * Returns the current velocity.
229 * @return The original velocity less the deceleration. Result may be
386 * depend on the initial velocity of the fling.
390 * @param velocityX Initial velocity of the fling (X) measured in pixels per
392 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
428 float velocity = (float) Math.hypot(velocityX, velocityY); local
430 mVelocity = velocity;
431 mDuration = getSplineFlingDuration(velocity);
436 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
    [all...]
  /frameworks/support/compat/java/android/support/v4/widget/
EdgeEffectCompat.java 194 * 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) {
208 mEdgeEffect.onAbsorb(velocity);
  /external/dagger2/lib/
auto-value-1.0.jar 
  /prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.0/
auto-value-1.0.jar 
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
NotificationMenuRow.java 206 showMenu(mParent, mOnLeft ? getSpaceForMenu() : -getSpaceForMenu(), 0 /* velocity */);
225 public boolean onTouchEvent(View view, MotionEvent ev, float velocity) {
268 return handleUpEvent(ev, view, velocity);
273 private boolean handleUpEvent(MotionEvent ev, View animView, float velocity) {
279 dismiss(animView, velocity);
281 snapBack(animView, velocity);
286 final boolean gestureTowardsMenu = isTowardsMenu(velocity);
288 mSwipeHelper.getMinDismissVelocity() <= Math.abs(velocity);
299 + " velocity= " + velocity
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
SwipeHelper.java 340 * @param velocity The desired pixels/second speed at which the view should move
343 public void dismissChild(final View view, float velocity, boolean useAccelerateInterpolator) {
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,
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 != 0)
608 float velocity = getVelocity(mVelocityTracker); local
672 float velocity = getVelocity(mVelocityTracker); local
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/notification/
SwipeHelper.java 326 * @param velocity The desired pixels/second speed at which the view should move
329 public void dismissChild(final View view, float velocity, boolean useAccelerateInterpolator) {
330 dismissChild(view, velocity, null /* endAction */, 0 /* delay */,
336 * @param velocity The desired pixels/second speed at which the view should move
342 public void dismissChild(final View animView, float velocity, final Runnable endAction,
350 boolean animateUpForMenu = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll)
353 boolean animateLeftForRtl = velocity == 0 && (getTranslation(animView) == 0 || isDismissAll)
355 boolean animateLeft = velocity < 0
356 || (velocity == 0 && getTranslation(animView) < 0 && !isDismissAll);
366 if (velocity != 0)
580 float velocity = getVelocity(mVelocityTracker); field in class:SwipeHelper
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/util/
LauncherEdgeEffect.java 48 // Minimum velocity that will be absorbed
50 // Maximum velocity, clamps at this value
229 * Call when the effect absorbs an impact at the given velocity.
236 * @param velocity Velocity at impact in pixels per second.
238 public void onAbsorb(int velocity) {
240 velocity = Math.min(Math.max(MIN_VELOCITY, Math.abs(velocity)), MAX_VELOCITY);
243 mDuration = 0.15f + (velocity * 0.02f);
245 // The glow depends more on the velocity, and therefore starts ou
    [all...]

Completed in 1668 milliseconds

12 3 4 5 6 7 8