/external/chromium_org/third_party/WebKit/public/platform/ |
WebGestureCurveTarget.h | 35 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocity) = 0;
|
WebFlingAnimator.h | 39 virtual void startFling(const WebFloatPoint& velocity, const WebRect& range) = 0;
|
/external/chromium_org/content/test/ |
web_gesture_curve_mock.cc | 11 WebGestureCurveMock::WebGestureCurveMock(const blink::WebFloatPoint& velocity, 13 : velocity_(velocity), 26 blink::WebFloatSize velocity(velocity_.x, velocity_.y); 29 target->scrollBy(increment, velocity);
|
web_gesture_curve_mock.h | 13 // A simple class for mocking a WebGestureCurve. The curve flings at velocity 17 WebGestureCurveMock(const blink::WebFloatPoint& velocity,
|
/external/chromium_org/content/child/ |
fling_animator_impl_android.cc | 38 void FlingAnimatorImpl::StartFling(const gfx::PointF& velocity) { 43 DCHECK(velocity.x() || velocity.y()); 50 velocity.x(), 51 velocity.y(), 94 const blink::WebFloatPoint& velocity, 97 gesture_curve->StartFling(velocity);
|
fling_animator_impl_android.h | 27 const blink::WebFloatPoint& velocity, 33 void StartFling(const gfx::PointF& velocity);
|
/external/replicaisland/src/com/replica/replicaisland/ |
NPCAnimationComponent.java | 125 final Vector2 velocity = parentObject.getVelocity(); local 126 if (velocity.y < FALL_SPEED_THRESHOLD) { 137 final Vector2 velocity = parentObject.getVelocity(); local 138 if (velocity.y > JUMP_SPEED_THRESHOLD) { 148 final Vector2 velocity = parentObject.getVelocity(); local 149 if (Math.abs(velocity.x) >= RUN_SPEED_THRESHOLD) { 158 final Vector2 velocity = parentObject.getVelocity(); local 161 if ((velocity.x < 0.0f && parentObject.touchingLeftWall()) 162 || (velocity.x > 0.0f && parentObject.touchingRightWall())) { 193 final Vector2 velocity = parentObject.getVelocity() local 219 final Vector2 velocity = parentObject.getVelocity(); local 256 final Vector2 velocity = parentObject.getVelocity(); local 292 final Vector2 velocity = parentObject.getVelocity(); local 303 final Vector2 velocity = parentObject.getVelocity(); local 321 final Vector2 velocity = parentObject.getVelocity(); local [all...] |
Interpolator.java | 20 * Helper class for interpolating velocity over time given a target velocity and acceleration. 21 * The current velocity will be accelerated towards the target until the target is reached. 23 * the target velocity. 35 // Rather than simply interpolating acceleration and velocity for each time step 36 // (as in, position += (velocity * time); velocity += (acceleration * time);), 37 // we actually perform the work needed to calculate the integral of velocity with respect to 40 // The integral of velocity is: 49 // change in position = velocity * time + (0.5 * acceleration * (time^2) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
FlingAnimationUtils.java | 74 * @param velocity the current velocity of the motion 76 public void apply(Animator animator, float currValue, float endValue, float velocity) { 77 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 87 * @param velocity the current velocity of the motion 90 float velocity) { 91 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 101 * @param velocity the current velocity of the motio [all...] |
/external/chromium_org/ui/events/gesture_detection/ |
velocity_tracker_state.cc | 12 // Special constant to request the velocity of the active pointer. 61 Velocity& velocity = calculated_velocity_[index]; local 62 velocity.vx = vx; 63 velocity.vy = vy; 90 const Velocity& velocity = calculated_velocity_[index]; local 91 vx = velocity.vx; 92 vy = velocity.vy;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
SmoothPagedView.java | 119 protected void snapToPageWithVelocity(int whichPage, int velocity) { 121 super.snapToPageWithVelocity(whichPage, velocity); 127 private void snapToPageWithVelocity(int whichPage, int velocity, boolean settle) { 147 velocity = Math.abs(velocity); 148 if (velocity > 0) { 149 duration += (duration / (velocity / mBaseLineFlingVelocity)) * mFlingVelocityInfluence;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
SmoothPagedView.java | 116 protected void snapToPageWithVelocity(int whichPage, int velocity) { 118 super.snapToPageWithVelocity(whichPage, velocity); 124 private void snapToPageWithVelocity(int whichPage, int velocity, boolean settle) { 144 velocity = Math.abs(velocity); 145 if (velocity > 0) { 146 duration += (duration / (velocity / mBaseLineFlingVelocity)) * mFlingVelocityInfluence;
|
/external/chromium_org/ui/events/gestures/ |
fling_curve.cc | 37 FlingCurve::FlingCurve(const gfx::Vector2dF& velocity, 43 float max_start_velocity = std::max(fabs(velocity.x()), fabs(velocity.y())); 48 displacement_ratio_ = gfx::Vector2dF(velocity.x() / max_start_velocity, 49 velocity.y() / max_start_velocity);
|
fling_curve_unittest.cc | 13 const gfx::Vector2dF velocity(0, 5000); 15 FlingCurve curve(velocity, now);
|
fling_curve.h | 19 FlingCurve(const gfx::Vector2dF& velocity, base::TimeTicks start_timestamp);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
EdgeEffectCompat.java | 51 public boolean onAbsorb(Object edgeEffect, int velocity); 81 public boolean onAbsorb(Object edgeEffect, int velocity) { 115 public boolean onAbsorb(Object edgeEffect, int velocity) { 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) { 204 return IMPL.onAbsorb(mEdgeEffect, velocity);
|
/external/chromium_org/native_client_sdk/src/examples/demo/flock/ |
goose.h | 13 // A Goose. Each goose has a location and a velocity. Implements the 19 // Initialize a Goose at location (0, 0) no velocity. 22 // Initialize a Goose at the given location with the specified velocity. 23 Goose(const Vector2& location, const Vector2& velocity); 27 // by integrating acceleration and velocity. 66 Vector2 velocity() const { function in class:Goose 90 // is the average velocity of the neighbours. Only consider geese that are
|
/frameworks/support/v4/ics/android/support/v4/widget/ |
EdgeEffectCompatIcs.java | 56 public static boolean onAbsorb(Object edgeEffect, int velocity) { 57 ((EdgeEffect) edgeEffect).onAbsorb(velocity);
|
/external/chromium_org/content/renderer/input/ |
input_handler_proxy_client.h | 31 // with |velocity| and already scrolled |cumulative_scroll| pixels. 34 const blink::WebFloatPoint& velocity,
|
/external/chromium_org/ui/app_list/ |
pagination_controller.cc | 75 float velocity = scroll_axis_ == SCROLL_AXIS_HORIZONTAL local 79 if (fabs(velocity) > kMinHorizVelocityToSwitchPage) 80 pagination_model_->SelectPageRelative(velocity < 0 ? 1 : -1, true);
|
/external/chromium_org/ui/gfx/android/ |
scroller.h | 49 // depend on the initial velocity of the fling. 108 double GetSplineDeceleration(float velocity) const; 109 base::TimeDelta GetSplineFlingDuration(float velocity) const; 110 double GetSplineFlingDistance(float velocity) const;
|
/frameworks/base/core/java/android/widget/ |
OverScroller.java | 89 * 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 179 * Returns the absolute value of the current velocity. 181 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 409 * depend on the initial velocity of the fling. 413 * @param velocityX Initial velocity of the fling (X) measured in pixels per 415 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 551 // Initial velocity 554 // Current velocity [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
OverScrollerSGV.java | 89 * 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 175 * Returns the absolute value of the current velocity. 177 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 412 * depend on the initial velocity of the fling. 416 * @param velocityX Initial velocity of the fling (X) measured in pixels per 418 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 554 // Initial velocity 557 // Current velocity [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
OverScroller.java | 87 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 104 * velocity which is preserved in the bounce when the horizontal edge is reached. A null value 173 * Returns the absolute value of the current velocity. 175 * @return The original velocity less the deceleration, norm of the X and Y velocity vector. 410 * depend on the initial velocity of the fling. 414 * @param velocityX Initial velocity of the fling (X) measured in pixels per 416 * @param velocityY Initial velocity of the fling (Y) measured in pixels per 552 // Initial velocity 555 // 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
|