Searched refs:mActivePointerId (Results 1 - 25 of 28) 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.java49 int mActivePointerId = INACTIVE_POINTER_ID; field in class:TaskStackViewTouchHandler
155 mActivePointerId = ev.getPointerId(0);
166 if (mActivePointerId == INACTIVE_POINTER_ID) break;
172 int activePointerIndex = ev.findPointerIndex(mActivePointerId);
196 mActivePointerId = INACTIVE_POINTER_ID;
239 mActivePointerId = ev.getPointerId(0);
256 mActivePointerId = ev.getPointerId(index);
263 if (mActivePointerId == INACTIVE_POINTER_ID) break;
267 int activePointerIndex = ev.findPointerIndex(mActivePointerId);
303 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId);
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
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...]
H A DSwipeRefreshLayout.java121 private int mActivePointerId = INVALID_POINTER; field in class:SwipeRefreshLayout
665 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
667 final float initialDownY = getMotionEventY(ev, mActivePointerId);
675 if (mActivePointerId == INVALID_POINTER) {
680 final float y = getMotionEventY(ev, mActivePointerId);
699 mActivePointerId = INVALID_POINTER;
958 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
963 final int pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
982 mActivePointerId = MotionEventCompat.getPointerId(ev, index);
992 if (mActivePointerId
[all...]
H A DNestedScrollView.java128 private int mActivePointerId = INVALID_POINTER; field in class:NestedScrollView
139 * Used by {@link #mActivePointerId}.
597 final int activePointerId = mActivePointerId;
640 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
658 mActivePointerId = INVALID_POINTER;
709 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
715 mActivePointerId);
717 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
794 mActivePointerId);
800 mActivePointerId
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp62 int32_t mActivePointerId; member in class:android::VelocityTrackerState
68 mVelocityTracker(strategy), mActivePointerId(-1) {
73 mActivePointerId = -1;
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java89 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; field in class:ResolverDrawerLayout
194 mActivePointerId = ev.getPointerId(0);
233 mActivePointerId = ev.getPointerId(0);
242 int index = ev.findPointerIndex(mActivePointerId);
244 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting");
246 mActivePointerId = ev.getPointerId(0);
271 mActivePointerId = pointerId;
299 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId);
332 if (pointerId == mActivePointerId) {
338 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);
H A DViewPager.java192 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager
195 * Used by {@link #mActivePointerId}.
1824 mActivePointerId = INVALID_POINTER;
1856 final int activePointerId = mActivePointerId;
1911 mActivePointerId = ev.getPointerId(0);
1982 mActivePointerId = ev.getPointerId(0);
1987 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
2013 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2022 final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
2037 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
[all...]
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java135 private int mActivePointerId = INVALID_POINTER; field in class:HorizontalScrollView
139 * Used by {@link #mActivePointerId}.
468 final int activePointerId = mActivePointerId;
506 mActivePointerId = ev.getPointerId(0);
524 mActivePointerId = INVALID_POINTER;
532 mActivePointerId = ev.getPointerId(index);
537 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId));
577 mActivePointerId = ev.getPointerId(0);
581 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
583 Log.e(TAG, "Invalid pointerId=" + mActivePointerId
[all...]
H A DScrollView.java141 private int mActivePointerId = INVALID_POINTER; field in class:ScrollView
161 * Used by {@link #mActivePointerId}.
510 final int activePointerId = mActivePointerId;
555 mActivePointerId = ev.getPointerId(0);
576 mActivePointerId = INVALID_POINTER;
634 mActivePointerId = ev.getPointerId(0);
639 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
641 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
714 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
723 mActivePointerId
[all...]
H A DStackView.java105 * Used by {@link #mActivePointerId}.
128 private int mActivePointerId; field in class:StackView
196 mActivePointerId = INVALID_POINTER;
623 if (mActivePointerId == INVALID_POINTER) {
626 mActivePointerId = ev.getPointerId(0);
631 int pointerIndex = ev.findPointerIndex(mActivePointerId);
649 mActivePointerId = INVALID_POINTER;
713 int pointerIndex = ev.findPointerIndex(mActivePointerId);
758 mActivePointerId = INVALID_POINTER;
769 if (pointerId == mActivePointerId) {
[all...]
H A DListPopupWindow.java1253 private int mActivePointerId; field in class:ListPopupWindow.ForwardingListener
1308 mActivePointerId = MotionEvent.INVALID_POINTER_ID;
1364 mActivePointerId = srcEvent.getPointerId(0);
1378 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId);
1464 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
H A DItemTouchHelper.java202 int mActivePointerId = ACTIVE_POINTER_ID_NONE; field in class:ItemTouchHelper
296 mActivePointerId = MotionEventCompat.getPointerId(event, 0);
314 mActivePointerId = ACTIVE_POINTER_ID_NONE;
316 } else if (mActivePointerId != ACTIVE_POINTER_ID_NONE) {
319 final int index = MotionEventCompat.findPointerIndex(event, mActivePointerId);
343 if (mActivePointerId == ACTIVE_POINTER_ID_NONE) {
348 .findPointerIndex(event, mActivePointerId);
375 mActivePointerId = ACTIVE_POINTER_ID_NONE;
380 if (pointerId == mActivePointerId) {
389 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/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/design/src/android/support/design/widget/
H A DAppBarLayout.java646 private int mActivePointerId = INVALID_POINTER; field in class:AppBarLayout.Behavior
738 final int activePointerId = mActivePointerId;
763 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
771 mActivePointerId = INVALID_POINTER;
791 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
798 mActivePointerId);
824 mActivePointerId = INVALID_POINTER;
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java186 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager
189 * Used by {@link #mActivePointerId}.
1883 mActivePointerId = INVALID_POINTER;
1915 final int activePointerId = mActivePointerId;
1970 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
2048 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
2053 final int pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
2080 ev, mActivePointerId);
2090 velocityTracker, mActivePointerId);
2098 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/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java73 * Sentinel value for no current active pointer. Used by {@link #mActivePointerId}.
100 private int mActivePointerId; field in class:NotificationStackScrollLayout
880 mActivePointerId = ev.getPointerId(0);
884 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
886 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
932 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
954 mActivePointerId = INVALID_POINTER;
964 mActivePointerId = INVALID_POINTER;
972 mActivePointerId = ev.getPointerId(index);
977 mLastMotionY = (int) ev.getY(ev.findPointerIndex(mActivePointerId));
[all...]

Completed in 1938 milliseconds

12