/development/samples/CrossCompatibility/src/com/example/android/touchexample/ |
VersionedGestureDetector.java | 97 private int mActivePointerId = INVALID_POINTER_ID; 115 mActivePointerId = ev.getPointerId(0); 119 mActivePointerId = INVALID_POINTER_ID; 125 if (pointerId == mActivePointerId) { 129 mActivePointerId = ev.getPointerId(newPointerIndex); 136 mActivePointerIndex = ev.findPointerIndex(mActivePointerId);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
PhotoViewPager.java | 59 private int mActivePointerId; 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/core/java/android/widget/ |
ForwardingListener.java | 57 private int mActivePointerId; 113 mActivePointerId = MotionEvent.INVALID_POINTER_ID; 169 mActivePointerId = srcEvent.getPointerId(0); 182 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); 267 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
|
HorizontalScrollView.java | 138 private int mActivePointerId = INVALID_POINTER; 142 * Used by {@link #mActivePointerId}. 488 final int activePointerId = mActivePointerId; 526 mActivePointerId = ev.getPointerId(0); 544 mActivePointerId = INVALID_POINTER; 552 mActivePointerId = ev.getPointerId(index); 557 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); 597 mActivePointerId = ev.getPointerId(0); 601 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 603 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent") [all...] |
StackView.java | 104 * Used by {@link #mActivePointerId}. 127 private int mActivePointerId; 195 mActivePointerId = INVALID_POINTER; 622 if (mActivePointerId == INVALID_POINTER) { 625 mActivePointerId = ev.getPointerId(0); 630 int pointerIndex = ev.findPointerIndex(mActivePointerId); 648 mActivePointerId = INVALID_POINTER; 712 int pointerIndex = ev.findPointerIndex(mActivePointerId); 757 mActivePointerId = INVALID_POINTER; 768 if (pointerId == mActivePointerId) { [all...] |
ScrollView.java | 146 private int mActivePointerId = INVALID_POINTER; 166 * Used by {@link #mActivePointerId}. 524 final int activePointerId = mActivePointerId; 569 mActivePointerId = ev.getPointerId(0); 592 mActivePointerId = INVALID_POINTER; 650 mActivePointerId = ev.getPointerId(0); 655 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 657 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); 730 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); 739 mActivePointerId = INVALID_POINTER [all...] |
/frameworks/base/core/jni/ |
android_view_VelocityTracker.cpp | 62 int32_t mActivePointerId; 68 mVelocityTracker(strategy), mActivePointerId(-1) { 73 mActivePointerId = -1;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
PipTouchState.java | 65 private int mActivePointerId; 97 mActivePointerId = ev.getPointerId(0); 99 Log.e(TAG, "Setting active pointer id on DOWN: " + mActivePointerId); 123 int pointerIndex = ev.findPointerIndex(mActivePointerId); 125 Log.e(TAG, "Invalid active pointer id on MOVE: " + mActivePointerId); 157 if (pointerId == mActivePointerId) { 160 mActivePointerId = ev.getPointerId(newPointerIndex); 163 mActivePointerId); 181 int pointerIndex = ev.findPointerIndex(mActivePointerId); 183 Log.e(TAG, "Invalid active pointer id on UP: " + mActivePointerId); [all...] |
/frameworks/native/include/input/ |
VelocityTracker.h | 99 inline int32_t getActivePointerId() const { return mActivePointerId; } 109 int32_t mActivePointerId;
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
ForwardingListener.java | 61 private int mActivePointerId; 122 mActivePointerId = MotionEvent.INVALID_POINTER_ID; 178 mActivePointerId = srcEvent.getPointerId(0); 191 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); 276 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
|
/frameworks/base/core/java/com/android/internal/widget/ |
ResolverDrawerLayout.java | 105 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; 286 mActivePointerId = ev.getPointerId(0); 325 mActivePointerId = ev.getPointerId(0); 334 int index = ev.findPointerIndex(mActivePointerId); 336 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting"); 338 mActivePointerId = ev.getPointerId(0); 363 mActivePointerId = pointerId; 391 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); 433 if (pointerId == mActivePointerId) { 439 mActivePointerId = ev.getPointerId(newPointerIndex) [all...] |
PointerLocationView.java | 126 private int mActivePointerId; 176 mActivePointerId = 0; 232 if (mActivePointerId >= 0) { 233 final PointerState ps = mPointers.get(mActivePointerId); 562 if (mActivePointerId < 0 || 563 !mPointers.get(mActivePointerId).mCurDown) { 564 mActivePointerId = id; 649 if (mActivePointerId == id) { 650 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0); [all...] |
ViewPager.java | 167 private int mActivePointerId = INVALID_POINTER; 170 * Used by {@link #mActivePointerId}. [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/ |
SwipeDetector.java | 49 protected int mActivePointerId = INVALID_POINTER_ID; 213 mActivePointerId = ev.getPointerId(0); 228 if (ptrId == mActivePointerId) { 234 mActivePointerId = ev.getPointerId(newPointerIdx); 238 int pointerIndex = ev.findPointerIndex(mActivePointerId);
|
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
DynamicListView.java | 93 private int mActivePointerId = INVALID_POINTER_ID; 253 mActivePointerId = event.getPointerId(0); 256 if (mActivePointerId == INVALID_POINTER_ID) { 260 int pointerIndex = event.findPointerIndex(mActivePointerId); 293 if (pointerId == mActivePointerId) { 390 mActivePointerId = INVALID_POINTER_ID; 448 mActivePointerId = INVALID_POINTER_ID;
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
OtherActivityTouchConsumer.java | 85 private int mActivePointerId = INVALID_POINTER_ID; 129 mActivePointerId = ev.getPointerId(0); 149 if (ptrId == mActivePointerId) { 155 mActivePointerId = ev.getPointerId(newPointerIdx); 160 int pointerIndex = ev.findPointerIndex(mActivePointerId); 278 float velocity = isNavBarOnRight() ? mVelocityTracker.getXVelocity(mActivePointerId) 279 : isNavBarOnLeft() ? -mVelocityTracker.getXVelocity(mActivePointerId) 280 : mVelocityTracker.getYVelocity(mActivePointerId);
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
SwipeDetector.java | 47 protected int mActivePointerId = INVALID_POINTER_ID; 219 mActivePointerId = ev.getPointerId(0); 234 if (ptrId == mActivePointerId) { 240 mActivePointerId = ev.getPointerId(newPointerIdx); 244 int pointerIndex = ev.findPointerIndex(mActivePointerId);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
MoreKeysKeyboardView.java | 51 private int mActivePointerId; 160 mActivePointerId = pointerId; 166 if (mActivePointerId != pointerId) { 179 if (mActivePointerId != pointerId) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskStackViewTouchHandler.java | 85 int mActivePointerId = INACTIVE_POINTER_ID; 238 mActivePointerId = ev.getPointerId(0); 248 mActivePointerId = ev.getPointerId(index); 258 int activePointerIndex = ev.findPointerIndex(mActivePointerId); 320 if (pointerId == mActivePointerId) { 323 mActivePointerId = ev.getPointerId(newPointerIndex); 335 int activePointerIndex = ev.findPointerIndex(mActivePointerId); 337 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 366 mActivePointerId = INACTIVE_POINTER_ID; 372 mActivePointerId = INACTIVE_POINTER_ID [all...] |
/frameworks/support/customview/src/main/java/androidx/customview/widget/ |
ViewDragHelper.java | 119 private int mActivePointerId = INVALID_POINTER; 477 mActivePointerId = activePointerId; 495 return mActivePointerId; 511 mActivePointerId = INVALID_POINTER; 553 mActivePointerId = INVALID_POINTER; 583 (int) mVelocityTracker.getXVelocity(mActivePointerId), 584 (int) mVelocityTracker.getYVelocity(mActivePointerId)); 716 (int) mVelocityTracker.getXVelocity(mActivePointerId), 717 (int) mVelocityTracker.getYVelocity(mActivePointerId), [all...] |
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/ |
SwipeRefreshLayout.java | 132 private int mActivePointerId = INVALID_POINTER; 710 mActivePointerId = ev.getPointerId(0); 713 pointerIndex = ev.findPointerIndex(mActivePointerId); 721 if (mActivePointerId == INVALID_POINTER) { 726 pointerIndex = ev.findPointerIndex(mActivePointerId); 741 mActivePointerId = INVALID_POINTER; [all...] |
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/ |
ViewPager.java | 207 private int mActivePointerId = INVALID_POINTER; 210 * Used by {@link #mActivePointerId}. [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
GalleryThumbnailView.java | 76 private int mActivePointerId; 288 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); 298 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); 301 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + 329 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); 334 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); 337 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + 367 mActivePointerId);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationContainer.java | 127 private int mActivePointerId; 398 mActivePointerId = ev.getPointerId(0); 402 final int pointerIndex = ev.findPointerIndex(mActivePointerId); [all...] |
/frameworks/base/core/java/com/android/internal/widget/helper/ |
ItemTouchHelper.java | 213 int mActivePointerId = ACTIVE_POINTER_ID_NONE; 306 mActivePointerId = event.getPointerId(0); 324 mActivePointerId = ACTIVE_POINTER_ID_NONE; 326 } else if (mActivePointerId != ACTIVE_POINTER_ID_NONE) { 329 final int index = event.findPointerIndex(mActivePointerId); 353 if (mActivePointerId == ACTIVE_POINTER_ID_NONE) { 357 final int activePointerIndex = event.findPointerIndex(mActivePointerId); 384 mActivePointerId = ACTIVE_POINTER_ID_NONE; 389 if (pointerId == mActivePointerId) { 393 mActivePointerId = event.getPointerId(newPointerIndex) [all...] |