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

/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/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;
563 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId),
564 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId));
696 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId),
697 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId),
883 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/android/widget/
H A DHorizontalScrollView.java131 private int mActivePointerId = INVALID_POINTER; field in class:HorizontalScrollView
135 * Used by {@link #mActivePointerId}.
459 final int activePointerId = mActivePointerId;
497 mActivePointerId = ev.getPointerId(0);
515 mActivePointerId = INVALID_POINTER;
523 mActivePointerId = ev.getPointerId(index);
528 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId));
568 mActivePointerId = ev.getPointerId(0);
572 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
574 Log.e(TAG, "Invalid pointerId=" + mActivePointerId
[all...]
H A DScrollView.java138 private int mActivePointerId = INVALID_POINTER; field in class:ScrollView
151 * Used by {@link #mActivePointerId}.
489 final int activePointerId = mActivePointerId;
533 mActivePointerId = ev.getPointerId(0);
553 mActivePointerId = INVALID_POINTER;
604 mActivePointerId = ev.getPointerId(0);
608 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
610 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
671 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
684 mActivePointerId
[all...]
H A DStackView.java106 * Used by {@link #mActivePointerId}.
129 private int mActivePointerId; field in class:StackView
190 mActivePointerId = INVALID_POINTER;
617 if (mActivePointerId == INVALID_POINTER) {
620 mActivePointerId = ev.getPointerId(0);
625 int pointerIndex = ev.findPointerIndex(mActivePointerId);
643 mActivePointerId = INVALID_POINTER;
707 int pointerIndex = ev.findPointerIndex(mActivePointerId);
752 mActivePointerId = INVALID_POINTER;
763 if (pointerId == mActivePointerId) {
[all...]
H A DListPopupWindow.java1199 private int mActivePointerId; field in class:ListPopupWindow.ForwardingListener
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);
H A DAbsListView.java610 private int mActivePointerId = INVALID_POINTER; field in class:AbsListView
614 * Used by {@link #mActivePointerId}.
3467 mActivePointerId = id;
3486 mActivePointerId = ev.getPointerId(0);
3547 int pointerIndex = ev.findPointerIndex(mActivePointerId);
3550 mActivePointerId = ev.getPointerId(pointerIndex);
3681 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale);
3720 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
3744 mActivePointerId = INVALID_POINTER;
3788 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.java170 protected int mActivePointerId = INVALID_POINTER; field in class:PagedView
1135 if (mActivePointerId != INVALID_POINTER) {
1141 // if mActivePointerId is INVALID_POINTER, then we must have missed an ACTION_DOWN
1245 mActivePointerId = ev.getPointerId(0);
1261 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1286 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1433 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
1575 final int activePointerId = mActivePointerId;
1702 mActivePointerId = INVALID_POINTER;
1755 if (pointerId == mActivePointerId) {
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java123 private int mActivePointerId; field in class:PointerLocationView
173 mActivePointerId = 0;
229 if (mActivePointerId >= 0) {
230 final PointerState ps = mPointers.get(mActivePointerId);
558 if (mActivePointerId < 0 ||
559 !mPointers.get(mActivePointerId).mCurDown) {
560 mActivePointerId = id;
639 if (mActivePointerId == id) {
640 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0);
/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/v4/java/android/support/v4/view/
H A DViewPager.java180 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager
183 * Used by {@link #mActivePointerId}.
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);
[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/core/java/android/view/
H A DViewRootImpl.java4494 private int mActivePointerId = -1; field in class:ViewRootImpl.SyntheticTouchNavigationHandler
4591 mActivePointerId = event.getPointerId(0);
4610 if (mActivePointerId < 0) {
4613 final int index = event.findPointerIndex(mActivePointerId);
4637 final float vx = mVelocityTracker.getXVelocity(mActivePointerId);
4638 final float vy = mVelocityTracker.getYVelocity(mActivePointerId);
4671 if (mActivePointerId >= 0) {
4672 mActivePointerId = -1;

Completed in 4312 milliseconds