/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewPager.java | 59 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/packages/SystemUI/src/com/android/systemui/pip/phone/ |
H A D | PipTouchState.java | 65 private int mActivePointerId; field in class:PipTouchState 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/base/core/java/android/widget/ |
H A D | ForwardingListener.java | 57 private int mActivePointerId; field in class:ForwardingListener 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);
|
H A D | HorizontalScrollView.java | 138 private int mActivePointerId = INVALID_POINTER; field in class:HorizontalScrollView 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 [all...] |
H A D | ScrollView.java | 146 private int mActivePointerId = INVALID_POINTER; field in class:ScrollView 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 [all...] |
H A D | StackView.java | 104 * Used by {@link #mActivePointerId}. 127 private int mActivePointerId; field in class:StackView 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...] |
H A D | AbsListView.java | 654 private int mActivePointerId = INVALID_POINTER; field in class:AbsListView 658 * Used by {@link #mActivePointerId}. 3853 mActivePointerId = id; 3877 mActivePointerId = ev.getPointerId(0); 3946 int pointerIndex = ev.findPointerIndex(mActivePointerId); 3949 mActivePointerId = ev.getPointerId(pointerIndex); 4088 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale); 4136 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); 4160 mActivePointerId = INVALID_POINTER; 4204 mActivePointerId [all...] |
/frameworks/support/customview/src/main/java/androidx/customview/widget/ |
H A D | ViewDragHelper.java | 119 private int mActivePointerId = INVALID_POINTER; field in class:ViewDragHelper 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), 908 if (toCapture == mCapturedView && mActivePointerId [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | ForwardingListener.java | 61 private int mActivePointerId; field in class:ForwardingListener 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/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackViewTouchHandler.java | 85 int mActivePointerId = INACTIVE_POINTER_ID; field in class:TaskStackViewTouchHandler 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 [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/ |
H A D | SwipeDetector.java | 49 protected int mActivePointerId = INVALID_POINTER_ID; field in class:SwipeDetector 213 mActivePointerId = ev.getPointerId(0); 228 if (ptrId == mActivePointerId) { 234 mActivePointerId = ev.getPointerId(newPointerIdx); 238 int pointerIndex = ev.findPointerIndex(mActivePointerId);
|
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/ |
H A D | SwipeRefreshLayout.java | 132 private int mActivePointerId = INVALID_POINTER; field in class:SwipeRefreshLayout 710 mActivePointerId = ev.getPointerId(0); 713 pointerIndex = ev.findPointerIndex(mActivePointerId); 721 if (mActivePointerId == INVALID_POINTER) { 726 pointerIndex = ev.findPointerIndex(mActivePointerId); 741 mActivePointerId = INVALID_POINTER; 1017 mActivePointerId = ev.getPointerId(0); 1022 pointerIndex = ev.findPointerIndex(mActivePointerId); 1048 mActivePointerId = ev.getPointerId(pointerIndex); 1057 pointerIndex = ev.findPointerIndex(mActivePointerId); [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 62 int32_t mActivePointerId; member in class:android::VelocityTrackerState 68 mVelocityTracker(strategy), mActivePointerId(-1) { 73 mActivePointerId = -1;
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
H A D | ItemTouchHelper.java | 213 int mActivePointerId = ACTIVE_POINTER_ID_NONE; field in class:ItemTouchHelper 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 [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | ItemTouchHelper.java | 216 private int mActivePointerId = ACTIVE_POINTER_ID_NONE; field in class:ItemTouchHelper 316 mActivePointerId = event.getPointerId(0); 334 mActivePointerId = ACTIVE_POINTER_ID_NONE; 336 } else if (mActivePointerId != ACTIVE_POINTER_ID_NONE) { 339 final int index = event.findPointerIndex(mActivePointerId); 363 if (mActivePointerId == ACTIVE_POINTER_ID_NONE) { 367 final int activePointerIndex = event.findPointerIndex(mActivePointerId); 394 mActivePointerId = ACTIVE_POINTER_ID_NONE; 399 if (pointerId == mActivePointerId) { 403 mActivePointerId [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 105 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; field in class:ResolverDrawerLayout 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 [all...] |
H A D | PointerLocationView.java | 126 private int mActivePointerId; field in class:PointerLocationView 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);
|
H A D | ViewPager.java | 167 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager 170 * Used by {@link #mActivePointerId}. 1815 mActivePointerId = INVALID_POINTER; 1847 final int activePointerId = mActivePointerId; 1902 mActivePointerId = ev.getPointerId(0); 1973 mActivePointerId = ev.getPointerId(0); 1978 final int pointerIndex = ev.findPointerIndex(mActivePointerId); 2004 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 2013 final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); 2028 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); [all...] |
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 113 mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) { 212 mActivePointerId = -1; 221 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { 222 mActivePointerId = !remainingIdBits.isEmpty() ? remainingIdBits.firstMarkedBit() : -1; 246 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) { 247 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit(); 254 eventTime, idBits.value, mActivePointerId);
|
/frameworks/native/include/input/ |
H A D | VelocityTracker.h | 99 inline int32_t getActivePointerId() const { return mActivePointerId; } 109 int32_t mActivePointerId; member in class:android::VelocityTracker
|
/frameworks/support/compat/src/main/java/androidx/core/widget/ |
H A D | NestedScrollView.java | 156 private int mActivePointerId = INVALID_POINTER; field in class:NestedScrollView 169 * Used by {@link #mActivePointerId}. 715 final int activePointerId = mActivePointerId; 758 mActivePointerId = ev.getPointerId(0); 778 mActivePointerId = INVALID_POINTER; 832 mActivePointerId = ev.getPointerId(0); 837 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 839 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); 915 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); 922 mActivePointerId [all...] |
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 122 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/viewpager/src/main/java/androidx/viewpager/widget/ |
H A D | ViewPager.java | 207 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager 210 * Used by {@link #mActivePointerId}. 2065 final int activePointerId = mActivePointerId; 2120 mActivePointerId = ev.getPointerId(0); 2201 mActivePointerId = ev.getPointerId(0); 2206 final int pointerIndex = ev.findPointerIndex(mActivePointerId); 2240 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 2249 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); 2258 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 2278 mActivePointerId [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | NotificationStackScrollLayout.java | 134 * Sentinel value for no current active pointer. Used by {@link #mActivePointerId}. 161 private int mActivePointerId = INVALID_POINTER; field in class:NotificationStackScrollLayout 1623 mActivePointerId = ev.getPointerId(0); 1627 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 1629 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); 1677 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); 1698 mActivePointerId = INVALID_POINTER; 1708 mActivePointerId = INVALID_POINTER; 1716 mActivePointerId = ev.getPointerId(index); 1721 mLastMotionY = (int) ev.getY(ev.findPointerIndex(mActivePointerId)); [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewRootImpl.java | 5849 private int mActivePointerId = -1; field in class:ViewRootImpl.SyntheticTouchNavigationHandler 5942 mActivePointerId = event.getPointerId(0); 5960 if (mActivePointerId < 0) { 5963 final int index = event.findPointerIndex(mActivePointerId); 5987 final float vx = mVelocityTracker.getXVelocity(mActivePointerId); 5988 final float vy = mVelocityTracker.getYVelocity(mActivePointerId); 6021 if (mActivePointerId >= 0) { 6022 mActivePointerId = -1;
|