Home
last modified time | relevance | path

Searched refs:mActivePointerId (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
DShadersTestView.java34 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/
DFBOSyncView.java36 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()
DFBOTestView.java36 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/
DPhotoViewPager.java59 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/
DTestAppView.java55 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/
DSimpleModelView.java45 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/
DViewDragHelper.java115 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/
DHorizontalScrollView.java131 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 …]
DScrollView.java138 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 …]
DStackView.java129 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 …]
DListPopupWindow.java1199 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);
DAbsListView.java610 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/
DVelocityTracker.cpp110 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/
DSlidingChallengeLayout.java97 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()
DPagedView.java170 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/
Dandroid_view_VelocityTracker.cpp61 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/
DPointerLocationView.java123 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/
DVelocityTracker.h99 inline int32_t getActivePointerId() const { return mActivePointerId; } in getActivePointerId()
109 int32_t mActivePointerId; variable
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java180 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/
Dscale.jd106 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);
Dmulti.jd93 <pre>private int mActivePointerId;
98 mActivePointerId = event.getPointerId(0);
104 int pointerIndex = event.findPointerIndex(mActivePointerId);
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java122 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/
DViewRootImpl.java4494 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()