/frameworks/base/core/tests/coretests/src/android/view/ |
D | VelocityTest.java | 38 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions() 50 VelocityTracker vt = VelocityTracker.obtain(); in testClear() 65 VelocityTracker vt = VelocityTracker.obtain(); in testDragAcceleration() 76 VelocityTracker vt = VelocityTracker.obtain(); in testDragDeceleration() 88 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearHorizontal() 101 VelocityTracker vt = VelocityTracker.obtain(); in testDragLinearVertical() 118 VelocityTracker vt = VelocityTracker.obtain(); in testDragWith2Points() 135 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInNbPoints() 157 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInTime() 179 VelocityTracker vt = VelocityTracker.obtain(); in testStabilityInSpace() [all …]
|
/frameworks/native/include/input/ |
D | VelocityTracker.h | 31 class VelocityTracker { 66 VelocityTracker(const char* strategy = NULL); 68 ~VelocityTracker(); 131 const VelocityTracker::Position* positions) = 0; 132 virtual bool getEstimator(uint32_t id, VelocityTracker::Estimator* outEstimator) const = 0; 163 const VelocityTracker::Position* positions); 164 virtual bool getEstimator(uint32_t id, VelocityTracker::Estimator* outEstimator) const; 178 VelocityTracker::Position positions[MAX_POINTERS]; 180 inline const VelocityTracker::Position& getPosition(uint32_t id) const { in getPosition() 206 const VelocityTracker::Position* positions); [all …]
|
D | VelocityControl.h | 101 VelocityTracker::Position mRawPosition; 102 VelocityTracker mVelocityTracker;
|
/frameworks/base/core/java/android/view/ |
D | VelocityTracker.java | 31 public final class VelocityTracker { class 32 private static final SynchronizedPool<VelocityTracker> sPool = 33 new SynchronizedPool<VelocityTracker>(2); 57 static public VelocityTracker obtain() { in obtain() 58 VelocityTracker instance = sPool.acquire(); in obtain() 59 return (instance != null) ? instance : new VelocityTracker(null); in obtain() 71 public static VelocityTracker obtain(String strategy) { in obtain() 75 return new VelocityTracker(strategy); in obtain() 89 private VelocityTracker(String strategy) { in VelocityTracker() method in VelocityTracker
|
D | GestureDetector.java | 267 private VelocityTracker mVelocityTracker; 498 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 648 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PlatformVelocityTracker.java | 21 import android.view.VelocityTracker; 32 private VelocityTracker mTracker; 39 tracker.setTracker(VelocityTracker.obtain()); in obtain() 43 public void setTracker(VelocityTracker tracker) { in setTracker()
|
D | NavigationBarGestureHelper.java | 29 import android.view.VelocityTracker; 75 private VelocityTracker mVelocityTracker; 183 mVelocityTracker = VelocityTracker.obtain(); in handleDragActionDownEvent()
|
/frameworks/support/compat/src/main/java/androidx/core/view/ |
D | VelocityTrackerCompat.java | 19 import android.view.VelocityTracker; 36 public static float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity() 48 public static float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity()
|
D | GestureDetectorCompat.java | 27 import android.view.VelocityTracker; 100 private VelocityTracker mVelocityTracker; 231 mVelocityTracker = VelocityTracker.obtain(); in onTouchEvent() 376 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent()
|
D | NestedScrollingChild.java | 21 import android.view.VelocityTracker;
|
D | NestedScrollingParent.java | 21 import android.view.VelocityTracker;
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 110 const char* VelocityTracker::DEFAULT_STRATEGY = "lsq2"; 112 VelocityTracker::VelocityTracker(const char* strategy) : in VelocityTracker() function in android::VelocityTracker 136 VelocityTracker::~VelocityTracker() { in ~VelocityTracker() 140 bool VelocityTracker::configureStrategy(const char* strategy) { in configureStrategy() 145 VelocityTrackerStrategy* VelocityTracker::createStrategy(const char* strategy) { in createStrategy() 210 void VelocityTracker::clear() { in clear() 217 void VelocityTracker::clearPointers(BitSet32 idBits) { in clearPointers() 228 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() 272 void VelocityTracker::addMovement(const MotionEvent* event) { in addMovement() 343 bool VelocityTracker::getVelocity(uint32_t id, float* outVx, float* outVy) const { in getVelocity() [all …]
|
D | Android.bp | 48 "VelocityTracker.cpp",
|
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 54 bool getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator); 61 VelocityTracker mVelocityTracker; 135 bool VelocityTrackerState::getEstimator(int32_t id, VelocityTracker::Estimator* outEstimator) { in getEstimator() 198 VelocityTracker::Estimator estimator; in android_view_VelocityTracker_nativeGetEstimator() 206 env->SetFloatArrayRegion(xCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1, in android_view_VelocityTracker_nativeGetEstimator() 208 env->SetFloatArrayRegion(yCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1, in android_view_VelocityTracker_nativeGetEstimator()
|
/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
D | ScrollManager.java | 20 import android.view.VelocityTracker; 74 VelocityTracker mVelocityTracker; 82 mVelocityTracker = VelocityTracker.obtain(); in setRecyclerView()
|
D | SwipeDismissLayout.java | 24 import android.view.VelocityTracker; 125 private VelocityTracker mVelocityTracker; 233 mVelocityTracker = VelocityTracker.obtain(); in onInterceptTouchEvent()
|
/frameworks/support/samples/SupportAnimationDemos/src/main/java/com/example/android/support/animation/ |
D | SpringActivity.java | 22 import android.view.VelocityTracker; 61 public VelocityTracker vt; in onCreate() 78 vt = VelocityTracker.obtain(); in onCreate()
|
D | MainActivity.java | 22 import android.view.VelocityTracker; 73 public VelocityTracker tracker; in onCreate() 94 tracker = VelocityTracker.obtain(); in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchState.java | 24 import android.view.VelocityTracker; 45 private VelocityTracker mVelocityTracker; 322 mVelocityTracker = VelocityTracker.obtain();
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 32 import android.view.VelocityTracker; 76 private VelocityTracker.Estimator mEstimator = new VelocityTracker.Estimator(); 77 private VelocityTracker.Estimator mAltEstimator = new VelocityTracker.Estimator(); 130 private final VelocityTracker mVelocity; 131 private final VelocityTracker mAltVelocity; 178 mVelocity = VelocityTracker.obtain(); in PointerLocationView() 183 mAltVelocity = VelocityTracker.obtain(altStrategy); in PointerLocationView()
|
D | NestedScrollingChild.java | 20 import android.view.VelocityTracker;
|
D | SwipeDismissLayout.java | 34 import android.view.VelocityTracker; 82 private VelocityTracker mVelocityTracker; 187 mVelocityTracker = VelocityTracker.obtain("int1"); in onInterceptTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 32 import android.view.VelocityTracker; 73 private final VelocityTracker mVelocityTracker; 104 mVelocityTracker = VelocityTracker.obtain(); in SwipeHelper() 142 private float getVelocity(VelocityTracker vt) { in getVelocity() 153 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity()
|
D | ExpandHelper.java | 30 import android.view.VelocityTracker; 109 private VelocityTracker mVelocityTracker; 352 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity() 360 mVelocityTracker = VelocityTracker.obtain(); in trackVelocity()
|
/frameworks/base/core/java/android/widget/ |
D | SlidingDrawer.java | 29 import android.view.VelocityTracker; 110 private VelocityTracker mVelocityTracker; 430 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() 560 mVelocityTracker = VelocityTracker.obtain(); in prepareTracking()
|