HomeSort by relevance Sort by last modified time
    Searched defs:velocity (Results 1 - 25 of 96) sorted by null

1 2 3 4

  /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
  /external/chromium_org/content/child/
touch_fling_gesture_curve.cc 40 inline double velocity(double t) { function in namespace:__anon12142
56 // curve, which starts at a large velocity and smoothly decreases to
57 // zero. For a given input velocity, we find where on the curve this
58 // velocity occurs, and start the animation at this point---denoted by
62 // that scales with input velocity, as faster initial velocities start
66 // Since the starting velocity is implicitly determined by our starting
71 // velocities that lie outside the max velocity are constrained to start
76 // position/velocity estimates outside this range are undefined.
91 // Curve ends when velocity reaches zero.
100 // velocity, or else bisection search may fail
    [all...]
  /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/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;
  /external/chromium_org/third_party/WebKit/Source/modules/webaudio/
AudioListener.h 66 // Velocity
68 const FloatPoint3D& velocity() const { return m_velocity; } function in class:blink::AudioListener
PannerNode.cpp 371 FloatPoint3D velocity = FloatPoint3D(x, y, z); local
373 if (m_velocity == velocity)
378 m_velocity = velocity;
447 const FloatPoint3D &listenerVelocity = listener()->velocity();
449 // Don't bother if both source and listener have no velocity
  /external/sonivox/arm-fm-22k/lib_src/
eas_otadata.h 74 EAS_U8 velocity; /* current volume */ member in struct:__anon14558
eas_imelody.c 876 EAS_U8 velocity; local
889 velocity = (EAS_U8) (pData->volume ? pData->volume * IMELODY_VEL_MUL + IMELODY_VEL_OFS : 0);
893 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity);
    [all...]
  /external/sonivox/arm-hybrid-22k/lib_src/
eas_otadata.h 74 EAS_U8 velocity; /* current volume */ member in struct:__anon14608
eas_imelody.c 876 EAS_U8 velocity; local
889 velocity = (EAS_U8) (pData->volume ? pData->volume * IMELODY_VEL_MUL + IMELODY_VEL_OFS : 0);
893 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity);
    [all...]
  /external/sonivox/arm-wt-22k/lib_src/
eas_otadata.h 74 EAS_U8 velocity; /* current volume */ member in struct:__anon14660
eas_imelody.c 885 EAS_U8 velocity; local
898 velocity = (EAS_U8) (pData->volume ? pData->volume * IMELODY_VEL_MUL + IMELODY_VEL_OFS : 0);
902 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity);
    [all...]
  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
ContentViewScrollingTest.java 155 // Scaling the initial velocity by the device scale factor ensures that
159 int velocity = (int) (1000 * deviceScaleFactor); local
162 fling(0, -velocity);
166 fling(-velocity, 0);
170 fling(0, velocity);
174 fling(velocity, 0);
178 fling(-velocity, -velocity);
  /external/qemu/distrib/sdl-1.2.15/test/
testsprite.c 65 SDL_Rect area, *position, *velocity; local
76 velocity = &velocities[i];
77 position->x += velocity->x;
79 velocity->x = -velocity->x;
80 position->x += velocity->x;
82 position->y += velocity->y;
84 velocity->y = -velocity->y;
85 position->y += velocity->y
    [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
  /external/chromium_org/third_party/WebKit/Source/web/tests/
ScrollAnimatorNoneTest.cpp 283 // If we're getting near the finish, the desired velocity can decrease since the time left gets increased.
364 double velocity = delta / step; local
365 double velocityDelta = velocity - oldVelocity;
369 oldVelocity = velocity;
386 double velocity = delta / step; local
387 double velocityDelta = velocity - oldVelocity;
391 oldVelocity = velocity;
    [all...]
  /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...]
  /frameworks/base/core/jni/
android_view_VelocityTracker.cpp 32 // Special constant to request the velocity of the active pointer.
56 struct Velocity {
63 Velocity mCalculatedVelocity[MAX_POINTERS];
104 Velocity& velocity = mCalculatedVelocity[index]; local
105 velocity.vx = vx;
106 velocity.vy = vy;
118 const Velocity& velocity = mCalculatedVelocity[index]; local
119 vx = velocity.vx
    [all...]
  /external/chromium_org/ui/chromeos/
touch_exploration_controller.cc 276 float velocity = distance / delta_time; local
279 << "\n Velocity of click: " << velocity
280 << "\n Minimum swipe velocity: "
292 if (velocity > gesture_detector_config_.minimum_swipe_velocity) {
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
TaskStackViewTouchHandler.java 74 /** Velocity tracker helpers */
143 // Initialize the velocity tracker
151 // Initialize the velocity tracker if necessary
177 // Reset the drag state and the velocity tracker
203 // Update the velocity tracker
218 // Initialize the velocity tracker
277 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); local
278 if (mIsScrolling && (Math.abs(velocity) > mMinimumVelocity)) {
279 float overscrollRangePct = Math.abs((float) velocity / mMaximumVelocity);
285 0, velocity,
    [all...]
SwipeHelper.java 218 * @param velocity The desired pixels/second speed at which the view should move
220 private void dismissChild(final View view, float velocity) {
223 if (velocity < 0
224 || (velocity == 0 && getTranslation(view) < 0)
226 || (velocity == 0 && getTranslation(view) == 0 && mSwipeDirection == Y)) {
232 if (velocity != 0) {
235 1000f / Math.abs(velocity)));
263 private void snapChild(final View view, float velocity) {
353 float velocity = getVelocity(velocityTracker); local
360 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) &
    [all...]
  /external/chromium_org/ui/gfx/android/
scroller.cc 245 float velocity = std::sqrt(velocity_x * velocity_x + velocity_y * velocity_y); local
247 velocity_ = velocity;
248 duration_ = GetSplineFlingDuration(velocity);
255 float coeff_x = velocity == 0 ? 1.0f : velocity_x / velocity;
256 float coeff_y = velocity == 0 ? 1.0f : velocity_y / velocity;
258 double total_distance = GetSplineFlingDistance(velocity);
259 distance_ = total_distance * Signum(velocity);
419 double Scroller::GetSplineDeceleration(float velocity) const
    [all...]
  /frameworks/base/core/java/android/widget/
Scroller.java 250 * Returns the current velocity.
252 * @return The original velocity less the deceleration. Result may be
403 * depend on the initial velocity of the fling.
407 * @param velocityX Initial velocity of the fling (X) measured in pixels per
409 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
445 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); local
447 mVelocity = velocity;
448 mDuration = getSplineFlingDuration(velocity);
453 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
SwipeHelper.java 295 * @param velocity The desired pixels/second speed at which the view should move
297 public void dismissChild(final View view, float velocity) {
298 dismissChild(view, velocity, null, 0, false, 0);
303 * @param velocity The desired pixels/second speed at which the view should move
309 public void dismissChild(final View view, float velocity, final Runnable endAction,
316 if (velocity < 0
317 || (velocity == 0 && getTranslation(animView) < 0)
319 || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)
321 || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) {
329 if (velocity != 0)
443 float velocity = getVelocity(mVelocityTracker); local
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Scroller.java 199 * Returns the current velocity.
201 * @return The original velocity less the deceleration. Result may be
350 * depend on the initial velocity of the fling.
354 * @param velocityX Initial velocity of the fling (X) measured in pixels per
356 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
392 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); local
394 mVelocity = velocity;
395 final double l = Math.log(START_TENSION * velocity / ALPHA);
401 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
    [all...]

Completed in 1490 milliseconds

1 2 3 4