/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | ShadersTestView.java | 34 private int mActivePointerId = INVALID_POINTER_ID; field in ShadersTestView 86 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 100 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 105 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 113 if (pointerId == mActivePointerId) { in onTouchEvent() 120 mActivePointerId = ev.getPointerId(newPointerIndex); in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOSyncView.java | 36 private int mActivePointerId = INVALID_POINTER_ID; field in FBOSyncView 92 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 106 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 111 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 119 if (pointerId == mActivePointerId) { in onTouchEvent() 126 mActivePointerId = ev.getPointerId(newPointerIndex); in onTouchEvent()
|
D | FBOTestView.java | 36 private int mActivePointerId = INVALID_POINTER_ID; field in FBOTestView 92 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 106 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 111 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 119 if (pointerId == mActivePointerId) { in onTouchEvent() 126 mActivePointerId = ev.getPointerId(newPointerIndex); in onTouchEvent()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewPager.java | 59 private int mActivePointerId; field in PhotoViewPager 127 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 133 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 163 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); in onInterceptTouchEvent() 170 if (pointerId == mActivePointerId) { in onInterceptTouchEvent() 174 mActivePointerId = MotionEventCompat.getPointerId(ev, newPointerIndex); in onInterceptTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | TestAppView.java | 55 private int mActivePointerId = INVALID_POINTER_ID; field in TestAppView 101 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 115 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 120 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 128 if (pointerId == mActivePointerId) { in onTouchEvent() 135 mActivePointerId = ev.getPointerId(newPointerIndex); in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelView.java | 45 private int mActivePointerId = INVALID_POINTER_ID; field in SimpleModelView 119 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 133 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 138 mActivePointerId = INVALID_POINTER_ID; in onTouchEvent() 146 if (pointerId == mActivePointerId) { in onTouchEvent() 153 mActivePointerId = ev.getPointerId(newPointerIndex); in onTouchEvent()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 115 private int mActivePointerId = INVALID_POINTER; field in ViewDragHelper 466 mActivePointerId = activePointerId; in captureChildView() 483 return mActivePointerId; in getActivePointerId() 498 mActivePointerId = INVALID_POINTER; in cancel() 540 mActivePointerId = INVALID_POINTER; in smoothSlideViewTo() 563 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), in settleCapturedViewAt() 564 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId)); in settleCapturedViewAt() 696 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId), in flingCapturedView() 697 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId), in flingCapturedView() 883 if (toCapture == mCapturedView && mActivePointerId == pointerId) { in tryCaptureViewForDrag() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 131 private int mActivePointerId = INVALID_POINTER; field in HorizontalScrollView 459 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 497 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 515 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 523 mActivePointerId = ev.getPointerId(index); in onInterceptTouchEvent() 528 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent() 568 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 572 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 574 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent() 635 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent() [all …]
|
D | ScrollView.java | 138 private int mActivePointerId = INVALID_POINTER; field in ScrollView 489 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 533 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 553 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 604 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 608 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 610 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent() 671 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() 684 mActivePointerId = INVALID_POINTER; in onTouchEvent() 693 mActivePointerId = INVALID_POINTER; in onTouchEvent() [all …]
|
D | StackView.java | 129 private int mActivePointerId; field in StackView 190 mActivePointerId = INVALID_POINTER; in initStackView() 617 if (mActivePointerId == INVALID_POINTER) { in onInterceptTouchEvent() 620 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 625 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent() 643 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 707 int pointerIndex = ev.findPointerIndex(mActivePointerId); 752 mActivePointerId = INVALID_POINTER; 763 if (pointerId == mActivePointerId) { 789 mActivePointerId = ev.getPointerId(index); [all …]
|
D | ListPopupWindow.java | 1199 private int mActivePointerId; 1242 mActivePointerId = MotionEvent.INVALID_POINTER_ID; 1298 mActivePointerId = srcEvent.getPointerId(0); 1305 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); 1355 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
|
D | AbsListView.java | 610 private int mActivePointerId = INVALID_POINTER; field in AbsListView 3467 mActivePointerId = id; in onTouchEvent() 3486 mActivePointerId = ev.getPointerId(0); in onTouchDown() 3547 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchMove() 3550 mActivePointerId = ev.getPointerId(pointerIndex); in onTouchMove() 3681 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale); in onTouchUp() 3720 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchUp() 3744 mActivePointerId = INVALID_POINTER; in onTouchUp() 3788 mActivePointerId = INVALID_POINTER; in onTouchCancel() 3941 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() [all …]
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 110 mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) { in VelocityTracker() 204 mActivePointerId = -1; in clear() 213 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { in clearPointers() 214 mActivePointerId = !remainingIdBits.isEmpty() ? remainingIdBits.firstMarkedBit() : -1; in clearPointers() 238 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) { in addMovement() 239 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit(); in addMovement() 246 eventTime, idBits.value, mActivePointerId); in addMovement()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | SlidingChallengeLayout.java | 97 private int mActivePointerId = INVALID_POINTER; field in SlidingChallengeLayout 581 if (!mIsBouncing && mActivePointerId == INVALID_POINTER in onInterceptTouchEvent() 586 mActivePointerId = ev.getPointerId(i); in onInterceptTouchEvent() 601 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 619 mActivePointerId = INVALID_POINTER; in resetTouch() 646 if (mActivePointerId != ev.getPointerId(ev.getActionIndex())) { in onTouchEvent() 652 showChallenge((int) mVelocityTracker.getYVelocity(mActivePointerId)); in onTouchEvent() 666 && mActivePointerId == INVALID_POINTER in onTouchEvent() 670 mActivePointerId = ev.getPointerId(i); in onTouchEvent() 684 final int index = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
|
D | PagedView.java | 170 protected int mActivePointerId = INVALID_POINTER; field in PagedView 1135 if (mActivePointerId != INVALID_POINTER) { in onInterceptTouchEvent() 1245 mActivePointerId = ev.getPointerId(0); in saveDownState() 1261 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in determineScrollingStart() 1286 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in startScrolling() 1433 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 1575 final int activePointerId = mActivePointerId; in onTouchEvent() 1702 mActivePointerId = INVALID_POINTER; in resetTouchState() 1755 if (pointerId == mActivePointerId) { in onSecondaryPointerUp() 1763 mActivePointerId = ev.getPointerId(newPointerIndex); in onSecondaryPointerUp()
|
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 61 int32_t mActivePointerId; member in android::VelocityTrackerState 67 mVelocityTracker(strategy), mActivePointerId(-1) { in VelocityTrackerState() 72 mActivePointerId = -1; in clear()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 123 private int mActivePointerId; field in PointerLocationView 173 mActivePointerId = 0; in PointerLocationView() 229 if (mActivePointerId >= 0) { in onDraw() 230 final PointerState ps = mPointers.get(mActivePointerId); in onDraw() 558 if (mActivePointerId < 0 || in addPointerEvent() 559 !mPointers.get(mActivePointerId).mCurDown) { in addPointerEvent() 560 mActivePointerId = id; in addPointerEvent() 639 if (mActivePointerId == id) { in addPointerEvent() 640 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0); in addPointerEvent()
|
/frameworks/native/include/input/ |
D | VelocityTracker.h | 99 inline int32_t getActivePointerId() const { return mActivePointerId; } in getActivePointerId() 109 int32_t mActivePointerId; variable
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | ViewPager.java | 180 private int mActivePointerId = INVALID_POINTER; field in ViewPager 1795 mActivePointerId = INVALID_POINTER; 1827 final int activePointerId = mActivePointerId; 1882 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); 1960 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); 1965 … final int pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId); 1992 ev, mActivePointerId); 2002 velocityTracker, mActivePointerId); 2010 MotionEventCompat.findPointerIndex(ev, mActivePointerId); 2017 mActivePointerId = INVALID_POINTER; [all …]
|
/frameworks/base/docs/html/training/gestures/ |
D | scale.jd | 106 private int mActivePointerId = INVALID_POINTER_ID; 125 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); 132 MotionEventCompat.findPointerIndex(ev, mActivePointerId); 154 mActivePointerId = INVALID_POINTER_ID; 159 mActivePointerId = INVALID_POINTER_ID; 168 if (pointerId == mActivePointerId) { 174 mActivePointerId = MotionEventCompat.getPointerId(ev, newPointerIndex);
|
D | multi.jd | 93 <pre>private int mActivePointerId; 98 mActivePointerId = event.getPointerId(0); 104 int pointerIndex = event.findPointerIndex(mActivePointerId);
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 122 private int mActivePointerId; field in StaggeredGridView 287 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); in onInterceptTouchEvent() 297 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); in onInterceptTouchEvent() 300 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + in onInterceptTouchEvent() 328 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); in onTouchEvent() 333 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); in onTouchEvent() 336 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + in onTouchEvent() 366 mActivePointerId); in onTouchEvent()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 4494 private int mActivePointerId = -1; field in ViewRootImpl.SyntheticTouchNavigationHandler 4591 mActivePointerId = event.getPointerId(0); in process() 4610 if (mActivePointerId < 0) { in process() 4613 final int index = event.findPointerIndex(mActivePointerId); in process() 4637 final float vx = mVelocityTracker.getXVelocity(mActivePointerId); in process() 4638 final float vy = mVelocityTracker.getYVelocity(mActivePointerId); in process() 4671 if (mActivePointerId >= 0) { in finishTracking() 4672 mActivePointerId = -1; in finishTracking()
|