Home
last modified time | relevance | path

Searched refs:vx (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp56 float vx, vy; member
85 float vx, vy; in computeCurrentVelocity() local
86 mVelocityTracker.getVelocity(id, &vx, &vy); in computeCurrentVelocity()
88 vx = vx * units / 1000; in computeCurrentVelocity()
91 if (vx > maxVelocity) { in computeCurrentVelocity()
92 vx = maxVelocity; in computeCurrentVelocity()
93 } else if (vx < -maxVelocity) { in computeCurrentVelocity()
94 vx = -maxVelocity; in computeCurrentVelocity()
103 velocity.vx = vx; in computeCurrentVelocity()
113 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.cpp969 float vx = (position.x - oldestPosition.x) * scale; in getEstimator() local
971 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration); in getEstimator()
/frameworks/native/services/sensorservice/
DAidlSensorHalWrapper.cpp246 dst->head_tracker.vx = ht.vx; in convertToSensorEvent()
443 headTracker.vx = src.head_tracker.vx; in convertFromSensorEvent()
/frameworks/native/include_sensor/android/
Dsensor.h524 float vx; member
/frameworks/native/include/android/
Dsensor.h524 float vx; member
/frameworks/av/media/libheadtracking/
DSensorPoseProvider.cpp407 Eigen::Vector3f twist = {event.head_tracker.vx, event.head_tracker.vy, in parseEvent()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java281 public void flingScroll(int vx, int vy); in flingScroll() argument
DWebView.java2144 public void flingScroll(int vx, int vy) { in flingScroll() argument
2146 mProvider.flingScroll(vx, vy); in flingScroll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsController.java366 final float vx = tracker.getXVelocity(pointerId); in computePointerSpeed() local
368 return (float) Math.sqrt(Math.pow(vx, 2.0) + Math.pow(vy, 2.0)); in computePointerSpeed()
/frameworks/base/core/java/android/view/
DViewRootImpl.java7669 final float vx = mVelocityTracker.getXVelocity(mActivePointerId);
7671 if (!startFling(time, vx, vy)) {
7781 private boolean startFling(long time, float vx, float vy) {
7783 Log.d(LOCAL_TAG, "Considering fling: vx=" + vx + ", vy=" + vy
7790 if (-vx >= mConfigMinFlingVelocity
7792 mFlingVelocity = -vx;
7798 if (vx >= mConfigMinFlingVelocity
7800 mFlingVelocity = vx;
7807 && Math.abs(vx) < mConfigMinFlingVelocity) {
7815 && Math.abs(vx) < mConfigMinFlingVelocity) {
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4916 public void smoothScrollBy(int dx, int dy, int vx, int vy) { in smoothScrollBy() argument
4917 smoothScrollBy(dx, dy, computeScrollDuration(dx, dy, vx, vy)); in smoothScrollBy()
4926 private int computeScrollDuration(int dx, int dy, int vx, int vy) { in computeScrollDuration() argument
4930 final int velocity = (int) Math.sqrt(vx * vx + vy * vy); in computeScrollDuration()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp2831 float vx, vy; in preparePointerGestures() local
2832 if (mPointerGesture.velocityTracker.getVelocity(id, &vx, &vy)) { in preparePointerGestures()
2833 float speed = hypotf(vx, vy); in preparePointerGestures()