/cts/tests/tests/view/src/android/view/cts/ |
VelocityTrackerTest.java | 35 private VelocityTracker mVelocityTracker; 47 mVelocityTracker = VelocityTracker.obtain(); 61 mVelocityTracker.recycle(); 164 mVelocityTracker.addMovement(ev); 168 mVelocityTracker.computeCurrentVelocity(1); 169 final float estimatedVx = mVelocityTracker.getXVelocity(); 170 final float estimatedVy = mVelocityTracker.getYVelocity(); 181 mVelocityTracker.computeCurrentVelocity(1); 182 final float estimatedVx = mVelocityTracker.getXVelocity(); 183 final float estimatedVy = mVelocityTracker.getYVelocity() [all...] |
/frameworks/native/libs/input/ |
VelocityControl.cpp | 49 mVelocityTracker.clear(); 69 mVelocityTracker.addMovement(eventTime, BitSet32(BitSet32::valueForBit(0)), &mRawPosition); 73 if (mVelocityTracker.getVelocity(0, &vx, &vy)) {
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/third_party/ |
GestureDetector.java | 252 private VelocityTracker mVelocityTracker; 478 if (mVelocityTracker == null) { 479 mVelocityTracker = VelocityTracker.obtain(); 481 mVelocityTracker.addMovement(ev); 515 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); 518 final float x1 = mVelocityTracker.getXVelocity(id1); 519 final float y1 = mVelocityTracker.getYVelocity(id1); 524 final float x = x1 * mVelocityTracker.getXVelocity(id2); 525 final float y = y1 * mVelocityTracker.getYVelocity(id2); 529 mVelocityTracker.clear() [all...] |
/frameworks/base/core/java/android/view/ |
GestureDetector.java | 240 private VelocityTracker mVelocityTracker; 457 if (mVelocityTracker == null) { 458 mVelocityTracker = VelocityTracker.obtain(); 460 mVelocityTracker.addMovement(ev); 494 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); 497 final float x1 = mVelocityTracker.getXVelocity(id1); 498 final float y1 = mVelocityTracker.getYVelocity(id1); 503 final float x = x1 * mVelocityTracker.getXVelocity(id2); 504 final float y = y1 * mVelocityTracker.getYVelocity(id2); 508 mVelocityTracker.clear() [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
GestureDetectorCompat.java | 100 private VelocityTracker mVelocityTracker; 226 if (mVelocityTracker == null) { 227 mVelocityTracker = VelocityTracker.obtain(); 229 mVelocityTracker.addMovement(ev); 263 mVelocityTracker.computeCurrentVelocity(1000, mMaximumFlingVelocity); 266 final float x1 = VelocityTrackerCompat.getXVelocity(mVelocityTracker, id1); 267 final float y1 = VelocityTrackerCompat.getYVelocity(mVelocityTracker, id1); 272 final float x = x1 * VelocityTrackerCompat.getXVelocity(mVelocityTracker, id2); 273 final float y = y1 * VelocityTrackerCompat.getYVelocity(mVelocityTracker, id2); 277 mVelocityTracker.clear() [all...] |
/frameworks/base/core/jni/ |
android_view_VelocityTracker.cpp | 60 VelocityTracker mVelocityTracker; 67 mVelocityTracker(strategy), mActivePointerId(-1) { 71 mVelocityTracker.clear(); 77 mVelocityTracker.addMovement(event); 81 BitSet32 idBits(mVelocityTracker.getCurrentPointerIdBits()); 88 mVelocityTracker.getVelocity(id, &vx, &vy); 112 id = mVelocityTracker.getActivePointerId(); 135 return mVelocityTracker.getEstimator(id, outEstimator);
|
/frameworks/native/include/input/ |
VelocityControl.h | 102 VelocityTracker mVelocityTracker;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SwipeHelper.java | 64 private VelocityTracker mVelocityTracker; 83 mVelocityTracker = VelocityTracker.obtain(); 213 mVelocityTracker.clear(); 217 mVelocityTracker.addMovement(ev); 241 mVelocityTracker.addMovement(ev); 342 mVelocityTracker.addMovement(ev); 369 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); 371 float velocity = getVelocity(mVelocityTracker); 372 float perpendicularVelocity = getPerpendicularVelocity(mVelocityTracker);
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
SwipeHelper.java | 78 private final VelocityTracker mVelocityTracker; 99 mVelocityTracker = VelocityTracker.obtain(); 221 mVelocityTracker.clear(); 226 mVelocityTracker.addMovement(ev); 245 mVelocityTracker.addMovement(ev); 354 mVelocityTracker.addMovement(ev); 399 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); 401 float velocity = getVelocity(mVelocityTracker); 402 float perpendicularVelocity = getPerpendicularVelocity(mVelocityTracker);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SwipeHelper.java | 72 private final VelocityTracker mVelocityTracker; 88 mVelocityTracker = VelocityTracker.obtain(); 212 mVelocityTracker.clear(); 216 mVelocityTracker.addMovement(ev); 237 mVelocityTracker.addMovement(ev); 356 mVelocityTracker.addMovement(ev); 404 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); 406 float velocity = getVelocity(mVelocityTracker); 407 float perpendicularVelocity = getPerpendicularVelocity(mVelocityTracker);
|
/frameworks/base/core/java/com/android/internal/widget/ |
RotarySelector.java | 146 private VelocityTracker mVelocityTracker; 496 if (mVelocityTracker == null) { 497 mVelocityTracker = VelocityTracker.obtain(); 499 mVelocityTracker.addMovement(event); 539 final VelocityTracker velocityTracker = mVelocityTracker; 559 final VelocityTracker velocityTracker = mVelocityTracker; 590 if (mVelocityTracker != null) { 591 mVelocityTracker.recycle(); // wishin' we had generational GC 592 mVelocityTracker = null; 599 if (mVelocityTracker != null) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
DragController.java | 120 private VelocityTracker mVelocityTracker; 153 mVelocityTracker = VelocityTracker.obtain(); 627 mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity()); 629 if (mVelocityTracker.getYVelocity() < mFlingToDeleteThresholdVelocity) { 631 PointF vel = new PointF(mVelocityTracker.getXVelocity(), 632 mVelocityTracker.getYVelocity()); 768 if (mVelocityTracker == null) { 769 mVelocityTracker = VelocityTracker.obtain(); 771 mVelocityTracker.addMovement(ev); 775 if (mVelocityTracker != null) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DragController.java | 112 private VelocityTracker mVelocityTracker; 144 mVelocityTracker = VelocityTracker.obtain(); 624 mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity()); 626 if (mVelocityTracker.getYVelocity() < mFlingToDeleteThresholdVelocity) { 628 PointF vel = new PointF(mVelocityTracker.getXVelocity(), 629 mVelocityTracker.getYVelocity()); 756 if (mVelocityTracker == null) { 757 mVelocityTracker = VelocityTracker.obtain(); 759 mVelocityTracker.addMovement(ev); 763 if (mVelocityTracker != null) [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
ViewDragHelper.java | 125 private VelocityTracker mVelocityTracker; 501 if (mVelocityTracker != null) { 502 mVelocityTracker.recycle(); 503 mVelocityTracker = null; 563 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), 564 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId)); 696 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), 697 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId), [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
HorizontalScrollView.java | 109 private VelocityTracker mVelocityTracker; 391 if (mVelocityTracker == null) { 392 mVelocityTracker = VelocityTracker.obtain(); 394 mVelocityTracker.clear(); 399 if (mVelocityTracker == null) { 400 mVelocityTracker = VelocityTracker.obtain(); 405 if (mVelocityTracker != null) { 406 mVelocityTracker.recycle(); 407 mVelocityTracker = null; 474 mVelocityTracker.addMovement(ev) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PanelView.java | 83 private FlingTracker mVelocityTracker; 362 if (mVelocityTracker != null) mVelocityTracker.addMovement(event); 404 mVelocityTracker = FlingTracker.obtain(); 457 if (mVelocityTracker != null) { 459 mVelocityTracker.computeCurrentVelocity(1000); 461 yVel = mVelocityTracker.getYVelocity(); 464 xVel = mVelocityTracker.getXVelocity(); 477 mVelocityTracker.recycle(); 478 mVelocityTracker = null [all...] |
/packages/apps/Browser/src/com/android/browser/view/ |
ScrollerView.java | 103 private VelocityTracker mVelocityTracker; 465 if (mVelocityTracker == null) { 466 mVelocityTracker = VelocityTracker.obtain(); 468 mVelocityTracker.clear(); 473 if (mVelocityTracker == null) { 474 mVelocityTracker = VelocityTracker.obtain(); 479 if (mVelocityTracker != null) { 480 mVelocityTracker.recycle(); 481 mVelocityTracker = null; 539 mVelocityTracker.addMovement(ev) [all...] |
/frameworks/base/core/java/android/widget/ |
SlidingDrawer.java | 114 private VelocityTracker mVelocityTracker; 393 mVelocityTracker.addMovement(event); 406 mVelocityTracker.addMovement(event); 414 final VelocityTracker velocityTracker = mVelocityTracker; 543 mVelocityTracker = VelocityTracker.obtain(); 674 if (mVelocityTracker != null) { 675 mVelocityTracker.recycle(); 676 mVelocityTracker = null; [all...] |
HorizontalScrollView.java | 106 private VelocityTracker mVelocityTracker; 402 if (mVelocityTracker == null) { 403 mVelocityTracker = VelocityTracker.obtain(); 405 mVelocityTracker.clear(); 410 if (mVelocityTracker == null) { 411 mVelocityTracker = VelocityTracker.obtain(); 416 if (mVelocityTracker != null) { 417 mVelocityTracker.recycle(); 418 mVelocityTracker = null; 478 mVelocityTracker.addMovement(ev) [all...] |
ScrollView.java | 113 private VelocityTracker mVelocityTracker; 424 if (mVelocityTracker == null) { 425 mVelocityTracker = VelocityTracker.obtain(); 427 mVelocityTracker.clear(); 432 if (mVelocityTracker == null) { 433 mVelocityTracker = VelocityTracker.obtain(); 438 if (mVelocityTracker != null) { 439 mVelocityTracker.recycle(); 440 mVelocityTracker = null; 508 mVelocityTracker.addMovement(ev) [all...] |
StackView.java | 136 private VelocityTracker mVelocityTracker; 718 if (mVelocityTracker == null) { 719 mVelocityTracker = VelocityTracker.obtain(); 721 mVelocityTracker.addMovement(ev); 790 if (mVelocityTracker != null) { 791 mVelocityTracker.clear(); 810 if (mVelocityTracker != null) { 811 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 812 mYVelocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 815 if (mVelocityTracker != null) [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
GalleryThumbnailView.java | 83 private final VelocityTracker mVelocityTracker = VelocityTracker.obtain(); 281 mVelocityTracker.addMovement(ev); 285 mVelocityTracker.clear(); 322 mVelocityTracker.addMovement(ev); 326 mVelocityTracker.clear(); 355 mVelocityTracker.clear(); 365 mVelocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 366 final float velocity = VelocityTrackerCompat.getXVelocity(mVelocityTracker,
|
/packages/apps/Camera/src/com/android/camera/ui/ |
Switch.java | 73 private VelocityTracker mVelocityTracker = VelocityTracker.obtain(); 224 mVelocityTracker.addMovement(ev); 281 mVelocityTracker.clear(); 310 mVelocityTracker.computeCurrentVelocity(1000); 311 float xvel = mVelocityTracker.getXVelocity();
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
Switch.java | 67 private VelocityTracker mVelocityTracker = VelocityTracker.obtain(); 215 mVelocityTracker.addMovement(ev); 272 mVelocityTracker.clear(); 301 mVelocityTracker.computeCurrentVelocity(1000); 302 float xvel = mVelocityTracker.getXVelocity();
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
SlidingChallengeLayout.java | 105 private VelocityTracker mVelocityTracker; 558 if (mVelocityTracker == null) { 559 mVelocityTracker = VelocityTracker.obtain(); 561 mVelocityTracker.addMovement(ev); 617 mVelocityTracker.recycle(); 618 mVelocityTracker = null; 625 if (mVelocityTracker == null) { 626 mVelocityTracker = VelocityTracker.obtain(); 628 mVelocityTracker.addMovement(ev); 651 mVelocityTracker.computeCurrentVelocity(1000, mMaxVelocity) [all...] |