Searched refs:mActivePointerId (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
H A DFBOSyncView.java36 private int mActivePointerId = INVALID_POINTER_ID; field in class:FBOSyncView
92 mActivePointerId = ev.getPointerId(0);
106 mActivePointerId = INVALID_POINTER_ID;
111 mActivePointerId = INVALID_POINTER_ID;
119 if (pointerId == mActivePointerId) {
126 mActivePointerId = ev.getPointerId(newPointerIndex);
H A DFBOTestView.java36 private int mActivePointerId = INVALID_POINTER_ID; field in class:FBOTestView
92 mActivePointerId = ev.getPointerId(0);
106 mActivePointerId = INVALID_POINTER_ID;
111 mActivePointerId = INVALID_POINTER_ID;
119 if (pointerId == mActivePointerId) {
126 mActivePointerId = ev.getPointerId(newPointerIndex);
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
H A DShadersTestView.java34 private int mActivePointerId = INVALID_POINTER_ID; field in class:ShadersTestView
86 mActivePointerId = ev.getPointerId(0);
100 mActivePointerId = INVALID_POINTER_ID;
105 mActivePointerId = INVALID_POINTER_ID;
113 if (pointerId == mActivePointerId) {
120 mActivePointerId = ev.getPointerId(newPointerIndex);
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewPager.java59 private int mActivePointerId; field in class:PhotoViewPager
127 mActivePointerId = INVALID_POINTER;
133 final int activePointerId = mActivePointerId;
163 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
170 if (pointerId == mActivePointerId) {
174 mActivePointerId = MotionEventCompat.getPointerId(ev, newPointerIndex);
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSimpleModelView.java45 private int mActivePointerId = INVALID_POINTER_ID; field in class:SimpleModelView
119 mActivePointerId = ev.getPointerId(0);
133 mActivePointerId = INVALID_POINTER_ID;
138 mActivePointerId = INVALID_POINTER_ID;
146 if (pointerId == mActivePointerId) {
153 mActivePointerId = ev.getPointerId(newPointerIndex);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DTestAppView.java55 private int mActivePointerId = INVALID_POINTER_ID; field in class:TestAppView
101 mActivePointerId = ev.getPointerId(0);
115 mActivePointerId = INVALID_POINTER_ID;
120 mActivePointerId = INVALID_POINTER_ID;
128 if (pointerId == mActivePointerId) {
135 mActivePointerId = ev.getPointerId(newPointerIndex);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewTouchHandler.java45 int mActivePointerId = INACTIVE_POINTER_ID; field in class:TaskStackViewTouchHandler
138 mActivePointerId = ev.getPointerId(0);
149 if (mActivePointerId == INACTIVE_POINTER_ID) break;
155 int activePointerIndex = ev.findPointerIndex(mActivePointerId);
179 mActivePointerId = INACTIVE_POINTER_ID;
213 mActivePointerId = ev.getPointerId(0);
230 mActivePointerId = ev.getPointerId(index);
237 if (mActivePointerId == INACTIVE_POINTER_ID) break;
241 int activePointerIndex = ev.findPointerIndex(mActivePointerId);
277 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId);
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeRefreshLayout.java106 private int mActivePointerId = INVALID_POINTER; field in class:SwipeRefreshLayout
645 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
647 final float initialDownY = getMotionEventY(ev, mActivePointerId);
655 if (mActivePointerId == INVALID_POINTER) {
660 final float y = getMotionEventY(ev, mActivePointerId);
679 mActivePointerId = INVALID_POINTER;
718 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
723 final int pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
786 mActivePointerId = MotionEventCompat.getPointerId(ev, index);
796 if (mActivePointerId
[all...]
H A DViewDragHelper.java115 private int mActivePointerId = INVALID_POINTER; field in class:ViewDragHelper
466 mActivePointerId = activePointerId;
483 return mActivePointerId;
498 mActivePointerId = INVALID_POINTER;
540 mActivePointerId = INVALID_POINTER;
570 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId),
571 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId));
703 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId),
704 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId),
891 if (toCapture == mCapturedView && mActivePointerId
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp61 int32_t mActivePointerId; member in class:android::VelocityTrackerState
67 mVelocityTracker(strategy), mActivePointerId(-1) {
72 mActivePointerId = -1;
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java88 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; field in class:ResolverDrawerLayout
183 mActivePointerId = ev.getPointerId(0);
222 mActivePointerId = ev.getPointerId(0);
231 int index = ev.findPointerIndex(mActivePointerId);
233 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting");
235 mActivePointerId = ev.getPointerId(0);
260 mActivePointerId = pointerId;
288 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId);
321 if (pointerId == mActivePointerId) {
327 mActivePointerId
[all...]
H A DPointerLocationView.java125 private int mActivePointerId; field in class:PointerLocationView
175 mActivePointerId = 0;
231 if (mActivePointerId >= 0) {
232 final PointerState ps = mPointers.get(mActivePointerId);
561 if (mActivePointerId < 0 ||
562 !mPointers.get(mActivePointerId).mCurDown) {
563 mActivePointerId = id;
642 if (mActivePointerId == id) {
643 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0);
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java132 private int mActivePointerId = INVALID_POINTER; field in class:HorizontalScrollView
136 * Used by {@link #mActivePointerId}.
465 final int activePointerId = mActivePointerId;
503 mActivePointerId = ev.getPointerId(0);
521 mActivePointerId = INVALID_POINTER;
529 mActivePointerId = ev.getPointerId(index);
534 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId));
574 mActivePointerId = ev.getPointerId(0);
578 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
580 Log.e(TAG, "Invalid pointerId=" + mActivePointerId
[all...]
H A DScrollView.java138 private int mActivePointerId = INVALID_POINTER; field in class:ScrollView
158 * Used by {@link #mActivePointerId}.
500 final int activePointerId = mActivePointerId;
545 mActivePointerId = ev.getPointerId(0);
566 mActivePointerId = INVALID_POINTER;
624 mActivePointerId = ev.getPointerId(0);
629 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
631 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
704 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
713 mActivePointerId
[all...]
H A DStackView.java106 * Used by {@link #mActivePointerId}.
129 private int mActivePointerId; field in class:StackView
197 mActivePointerId = INVALID_POINTER;
624 if (mActivePointerId == INVALID_POINTER) {
627 mActivePointerId = ev.getPointerId(0);
632 int pointerIndex = ev.findPointerIndex(mActivePointerId);
650 mActivePointerId = INVALID_POINTER;
714 int pointerIndex = ev.findPointerIndex(mActivePointerId);
759 mActivePointerId = INVALID_POINTER;
770 if (pointerId == mActivePointerId) {
[all...]
H A DListPopupWindow.java1225 private int mActivePointerId; field in class:ListPopupWindow.ForwardingListener
1280 mActivePointerId = MotionEvent.INVALID_POINTER_ID;
1336 mActivePointerId = srcEvent.getPointerId(0);
1350 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId);
1436 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
H A DAbsListView.java631 private int mActivePointerId = INVALID_POINTER; field in class:AbsListView
635 * Used by {@link #mActivePointerId}.
3668 mActivePointerId = id;
3691 mActivePointerId = ev.getPointerId(0);
3754 int pointerIndex = ev.findPointerIndex(mActivePointerId);
3757 mActivePointerId = ev.getPointerId(pointerIndex);
3896 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale);
3944 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
3968 mActivePointerId = INVALID_POINTER;
4012 mActivePointerId
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DSlidingChallengeLayout.java97 private int mActivePointerId = INVALID_POINTER; field in class:SlidingChallengeLayout
581 if (!mIsBouncing && mActivePointerId == INVALID_POINTER
586 mActivePointerId = ev.getPointerId(i);
601 mActivePointerId = INVALID_POINTER;
619 mActivePointerId = INVALID_POINTER;
646 if (mActivePointerId != ev.getPointerId(ev.getActionIndex())) {
652 showChallenge((int) mVelocityTracker.getYVelocity(mActivePointerId));
666 && mActivePointerId == INVALID_POINTER
670 mActivePointerId = ev.getPointerId(i);
684 final int index = ev.findPointerIndex(mActivePointerId);
[all...]
H A DPagedView.java162 protected int mActivePointerId = INVALID_POINTER; field in class:PagedView
1111 if (mActivePointerId != INVALID_POINTER) {
1117 // if mActivePointerId is INVALID_POINTER, then we must have missed an ACTION_DOWN
1221 mActivePointerId = ev.getPointerId(0);
1233 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1256 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1279 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1426 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1573 final int activePointerId = mActivePointerId;
1701 mActivePointerId
[all...]
/frameworks/native/libs/input/
H A DVelocityTracker.cpp110 mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) {
204 mActivePointerId = -1;
213 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) {
214 mActivePointerId = !remainingIdBits.isEmpty() ? remainingIdBits.firstMarkedBit() : -1;
238 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) {
239 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit();
246 eventTime, idBits.value, mActivePointerId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java68 * Sentinel value for no current active pointer. Used by {@link #mActivePointerId}.
95 private int mActivePointerId; field in class:NotificationStackScrollLayout
803 mActivePointerId = ev.getPointerId(0);
807 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
809 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
855 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
877 mActivePointerId = INVALID_POINTER;
887 mActivePointerId = INVALID_POINTER;
895 mActivePointerId = ev.getPointerId(index);
900 mLastMotionY = (int) ev.getY(ev.findPointerIndex(mActivePointerId));
[all...]
/frameworks/native/include/input/
H A DVelocityTracker.h99 inline int32_t getActivePointerId() const { return mActivePointerId; }
109 int32_t mActivePointerId; member in class:android::VelocityTracker
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java185 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager
188 * Used by {@link #mActivePointerId}.
1800 mActivePointerId = INVALID_POINTER;
1832 final int activePointerId = mActivePointerId;
1887 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
1965 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
1970 final int pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
1997 ev, mActivePointerId);
2007 velocityTracker, mActivePointerId);
2015 MotionEventCompat.findPointerIndex(ev, mActivePointerId);
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java122 private int mActivePointerId; field in class:StaggeredGridView
287 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
297 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
300 mActivePointerId + " - did StaggeredGridView receive an inconsistent " +
328 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
333 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
336 mActivePointerId + " - did StaggeredGridView receive an inconsistent " +
366 mActivePointerId);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java1240 private int mActivePointerId; field in class:ListPopupWindow.ForwardingListener
1341 mActivePointerId = srcEvent.getPointerId(0);
1354 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId);
1435 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);

Completed in 629 milliseconds

12