Home
last modified time | relevance | path

Searched refs:vy (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp58 float vx, vy; member
88 float vx, vy; in computeCurrentVelocity() local
89 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity()
92 vy = vy * units / 1000; in computeCurrentVelocity()
99 if (vy > maxVelocity) { in computeCurrentVelocity()
100 vy = maxVelocity; in computeCurrentVelocity()
101 } else if (vy < -maxVelocity) { in computeCurrentVelocity()
102 vy = -maxVelocity; in computeCurrentVelocity()
107 velocity.vy = vy; in computeCurrentVelocity()
116 float vx, vy; in getVelocity() local
[all …]
/frameworks/native/libs/input/
DVelocityControl.cpp71 float vx, vy; in move() local
73 if (mVelocityTracker.getVelocity(0, &vx, &vy)) { in move()
74 float speed = hypotf(vx, vy) * scale; in move()
91 vx, vy, speed, scale / mParameters.scale); in move()
DVelocityTracker.cpp905 float vy = (position.y - oldestPosition.y) * scale; in getEstimator() local
907 accumVy = (accumVy * lastDuration + vy * duration) / (duration + lastDuration); in getEstimator()
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
DOctopusDrawable.java97 private float vx, vy; in startDrift()
105 vy = JUMP_VY; in startDrift()
119 vy = clamp(vy + dt_sec * ay, -100*MAX_VY, MAX_VY); in startDrift()
123 vy = JUMP_VY; in startDrift()
125 vy = MAX_VY; in startDrift()
129 point.y = point.y + dt_sec * vy; in startDrift()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java259 public void flingScroll(int vx, int vy); in flingScroll() argument
DWebView.java2117 public void flingScroll(int vx, int vy) { in flingScroll() argument
2119 mProvider.flingScroll(vx, vy); in flingScroll()
/frameworks/base/core/java/android/view/
DViewRootImpl.java5589 final float vy = mVelocityTracker.getYVelocity(mActivePointerId); in process() local
5590 if (!startFling(time, vx, vy)) { in process()
5700 private boolean startFling(long time, float vx, float vy) { in startFling() argument
5702 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy in startFling()
5710 && Math.abs(vy) < mConfigMinFlingVelocity) { in startFling()
5718 && Math.abs(vy) < mConfigMinFlingVelocity) { in startFling()
5725 if (-vy >= mConfigMinFlingVelocity in startFling()
5727 mFlingVelocity = -vy; in startFling()
5733 if (vy >= mConfigMinFlingVelocity in startFling()
5735 mFlingVelocity = vy; in startFling()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4794 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument
4795 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy()
4804 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument
4808 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java4991 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument
4992 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy()
5001 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument
5005 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_no_password61 { S`���� `��V�C��Ce���@�[�iN�҂/nE�+�H~�@��\4f��R�*�/F��-H�v��3a�6���JϤ��vy�7M2�w��eGb�#EY��b����…
/frameworks/native/services/inputflinger/
DInputReader.cpp5608 float vx, vy; in preparePointerGestures() local
5609 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures()
5610 float speed = hypotf(vx, vy); in preparePointerGestures()