/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 57 float vx, vy; member 87 float vx, vy; in computeCurrentVelocity() local 88 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity() 90 vx = vx * units / 1000; in computeCurrentVelocity() 93 if (vx > maxVelocity) { in computeCurrentVelocity() 94 vx = maxVelocity; in computeCurrentVelocity() 95 } else if (vx < -maxVelocity) { in computeCurrentVelocity() 96 vx = -maxVelocity; in computeCurrentVelocity() 105 velocity.vx = vx; in computeCurrentVelocity() 115 float vx, vy; in getVelocity() local [all …]
|
/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 71 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()
|
D | VelocityTracker.cpp | 902 float vx = (position.x - oldestPosition.x) * scale; in getEstimator() local 904 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration); in getEstimator()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewProvider.java | 235 public void flingScroll(int vx, int vy); in flingScroll() argument
|
D | WebView.java | 1889 public void flingScroll(int vx, int vy) { in flingScroll() argument 1892 mProvider.flingScroll(vx, vy); in flingScroll()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 4829 final float vx = mVelocityTracker.getXVelocity(mActivePointerId); in process() local 4831 if (!startFling(time, vx, vy)) { in process() 4941 private boolean startFling(long time, float vx, float vy) { in startFling() argument 4943 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy in startFling() 4950 if (-vx >= mConfigMinFlingVelocity in startFling() 4952 mFlingVelocity = -vx; in startFling() 4958 if (vx >= mConfigMinFlingVelocity in startFling() 4960 mFlingVelocity = vx; in startFling() 4967 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling() 4975 && Math.abs(vx) < mConfigMinFlingVelocity) { in startFling()
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
D | WebViewChromium.java | 1433 public void flingScroll(final int vx, final int vy) { 1438 flingScroll(vx, vy); 1443 mAwContents.flingScroll(vx, vy);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 3190 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument 3191 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy() 3200 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument 3204 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 4825 float vx, vy; in preparePointerGestures() local 4826 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures() 4827 float speed = hypotf(vx, vy); in preparePointerGestures()
|