/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchState.java | 65 private int mActivePointerId; field in PipTouchState 97 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 99 Log.e(TAG, "Setting active pointer id on DOWN: " + mActivePointerId); in onTouchEvent() 123 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 125 Log.e(TAG, "Invalid active pointer id on MOVE: " + mActivePointerId); in onTouchEvent() 157 if (pointerId == mActivePointerId) { in onTouchEvent() 160 mActivePointerId = ev.getPointerId(newPointerIndex); in onTouchEvent() 163 mActivePointerId); in onTouchEvent() 181 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 183 Log.e(TAG, "Invalid active pointer id on UP: " + mActivePointerId); in onTouchEvent() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewPager.java | 59 private int mActivePointerId; field in PhotoViewPager 127 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 133 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 163 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); in onInterceptTouchEvent() 170 if (pointerId == mActivePointerId) { in onInterceptTouchEvent() 174 mActivePointerId = MotionEventCompat.getPointerId(ev, newPointerIndex); in onInterceptTouchEvent()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | HeaderBehavior.java | 42 private int mActivePointerId = INVALID_POINTER; field in HeaderBehavior 73 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 80 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 102 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 131 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 140 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 169 float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() 175 mActivePointerId = INVALID_POINTER; in onTouchEvent()
|
D | SwipeDismissBehavior.java | 219 private int mActivePointerId = INVALID_POINTER_ID; 224 return mActivePointerId == INVALID_POINTER_ID && canSwipeDismissView(child); 229 mActivePointerId = activePointerId; 250 mActivePointerId = INVALID_POINTER_ID;
|
D | BottomSheetBehavior.java | 161 int mActivePointerId; field in BottomSheetBehavior 273 mActivePointerId = MotionEvent.INVALID_POINTER_ID; in onInterceptTouchEvent() 286 mActivePointerId = event.getPointerId(event.getActionIndex()); in onInterceptTouchEvent() 289 mIgnoreEvents = mActivePointerId == MotionEvent.INVALID_POINTER_ID && in onInterceptTouchEvent() 581 mActivePointerId = ViewDragHelper.INVALID_POINTER; in reset() 619 return mVelocityTracker.getYVelocity(mActivePointerId); in getYVelocity() 651 if (mState == STATE_EXPANDED && mActivePointerId == pointerId) {
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 115 private int mActivePointerId = INVALID_POINTER; field in ViewDragHelper 468 mActivePointerId = activePointerId; in captureChildView() 485 return mActivePointerId; in getActivePointerId() 500 mActivePointerId = INVALID_POINTER; in cancel() 542 mActivePointerId = INVALID_POINTER; in smoothSlideViewTo() 572 (int) mVelocityTracker.getXVelocity(mActivePointerId), in settleCapturedViewAt() 573 (int) mVelocityTracker.getYVelocity(mActivePointerId)); in settleCapturedViewAt() 705 (int) mVelocityTracker.getXVelocity(mActivePointerId), in flingCapturedView() 706 (int) mVelocityTracker.getYVelocity(mActivePointerId), in flingCapturedView() 897 if (toCapture == mCapturedView && mActivePointerId == pointerId) { in tryCaptureViewForDrag() [all …]
|
D | SwipeRefreshLayout.java | 126 private int mActivePointerId = INVALID_POINTER; field in SwipeRefreshLayout 695 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 698 pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent() 706 if (mActivePointerId == INVALID_POINTER) { in onInterceptTouchEvent() 711 pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent() 726 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 999 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 1004 pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 1030 mActivePointerId = ev.getPointerId(pointerIndex); in onTouchEvent() 1039 pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() [all …]
|
D | NestedScrollView.java | 152 private int mActivePointerId = INVALID_POINTER; field in NestedScrollView 667 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 710 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 730 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 784 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 789 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 791 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent() 867 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() 874 mActivePointerId = INVALID_POINTER; in onTouchEvent() 884 mActivePointerId = INVALID_POINTER; in onTouchEvent() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ForwardingListener.java | 57 private int mActivePointerId; field in ForwardingListener 113 mActivePointerId = MotionEvent.INVALID_POINTER_ID; in onViewDetachedFromWindow() 169 mActivePointerId = srcEvent.getPointerId(0); in onTouchObserved() 182 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); in onTouchObserved() 267 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId); in onTouchForwarded()
|
D | HorizontalScrollView.java | 138 private int mActivePointerId = INVALID_POINTER; field in HorizontalScrollView 488 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 526 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 544 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 552 mActivePointerId = ev.getPointerId(index); in onInterceptTouchEvent() 557 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent() 597 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 601 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 603 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent() 666 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent() [all …]
|
D | ScrollView.java | 146 private int mActivePointerId = INVALID_POINTER; field in ScrollView 524 final int activePointerId = mActivePointerId; in onInterceptTouchEvent() 569 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 592 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 650 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 655 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 657 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent() 730 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() 739 mActivePointerId = INVALID_POINTER; in onTouchEvent() 748 mActivePointerId = INVALID_POINTER; in onTouchEvent() [all …]
|
D | StackView.java | 128 private int mActivePointerId; field in StackView 196 mActivePointerId = INVALID_POINTER; in initStackView() 623 if (mActivePointerId == INVALID_POINTER) { in onInterceptTouchEvent() 626 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 631 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent() 649 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent() 713 int pointerIndex = ev.findPointerIndex(mActivePointerId); 758 mActivePointerId = INVALID_POINTER; 769 if (pointerId == mActivePointerId) { 795 mActivePointerId = ev.getPointerId(index); [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ForwardingListener.java | 60 private int mActivePointerId; field in ForwardingListener 121 mActivePointerId = MotionEvent.INVALID_POINTER_ID; in onViewDetachedFromWindow() 177 mActivePointerId = srcEvent.getPointerId(0); in onTouchObserved() 190 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); in onTouchObserved() 275 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId); in onTouchForwarded()
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 213 int mActivePointerId = ACTIVE_POINTER_ID_NONE; field in 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 = event.getPointerId(newPointerIndex); [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
D | ItemTouchHelper.java | 211 int mActivePointerId = ACTIVE_POINTER_ID_NONE; field in ItemTouchHelper 304 mActivePointerId = event.getPointerId(0); 322 mActivePointerId = ACTIVE_POINTER_ID_NONE; 324 } else if (mActivePointerId != ACTIVE_POINTER_ID_NONE) { 327 final int index = event.findPointerIndex(mActivePointerId); 351 if (mActivePointerId == ACTIVE_POINTER_ID_NONE) { 355 final int activePointerIndex = event.findPointerIndex(mActivePointerId); 382 mActivePointerId = ACTIVE_POINTER_ID_NONE; 387 if (pointerId == mActivePointerId) { 391 mActivePointerId = event.getPointerId(newPointerIndex); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskStackViewTouchHandler.java | 86 int mActivePointerId = INACTIVE_POINTER_ID; field in TaskStackViewTouchHandler 239 mActivePointerId = ev.getPointerId(0); in handleTouchEvent() 249 mActivePointerId = ev.getPointerId(index); in handleTouchEvent() 259 int activePointerIndex = ev.findPointerIndex(mActivePointerId); in handleTouchEvent() 318 if (pointerId == mActivePointerId) { in handleTouchEvent() 321 mActivePointerId = ev.getPointerId(newPointerIndex); in handleTouchEvent() 333 int activePointerIndex = ev.findPointerIndex(mActivePointerId); in handleTouchEvent() 335 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); in handleTouchEvent() 364 mActivePointerId = INACTIVE_POINTER_ID; in handleTouchEvent() 370 mActivePointerId = INACTIVE_POINTER_ID; in handleTouchEvent()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ResolverDrawerLayout.java | 104 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; field in ResolverDrawerLayout 268 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent() 307 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 316 int index = ev.findPointerIndex(mActivePointerId); in onTouchEvent() 318 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting"); in onTouchEvent() 320 mActivePointerId = ev.getPointerId(0); in onTouchEvent() 345 mActivePointerId = pointerId; in onTouchEvent() 373 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() 406 if (pointerId == mActivePointerId) { 412 mActivePointerId = ev.getPointerId(newPointerIndex); [all …]
|
D | PointerLocationView.java | 126 private int mActivePointerId; field in PointerLocationView 176 mActivePointerId = 0; in PointerLocationView() 232 if (mActivePointerId >= 0) { in onDraw() 233 final PointerState ps = mPointers.get(mActivePointerId); in onDraw() 562 if (mActivePointerId < 0 || in onPointerEvent() 563 !mPointers.get(mActivePointerId).mCurDown) { in onPointerEvent() 564 mActivePointerId = id; in onPointerEvent() 649 if (mActivePointerId == id) { in onPointerEvent() 650 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0); in onPointerEvent()
|
D | ViewPager.java | 167 private int mActivePointerId = INVALID_POINTER; field in ViewPager 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); 2035 mActivePointerId = INVALID_POINTER; [all …]
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 111 mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) { in VelocityTracker() 205 mActivePointerId = -1; in clear() 214 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { in clearPointers() 215 mActivePointerId = !remainingIdBits.isEmpty() ? remainingIdBits.firstMarkedBit() : -1; in clearPointers() 239 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) { in addMovement() 240 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit(); in addMovement() 247 eventTime, idBits.value, mActivePointerId); in addMovement()
|
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 62 int32_t mActivePointerId; member in android::VelocityTrackerState 68 mVelocityTracker(strategy), mActivePointerId(-1) { in VelocityTrackerState() 73 mActivePointerId = -1; in clear()
|
/frameworks/native/include/input/ |
D | VelocityTracker.h | 99 inline int32_t getActivePointerId() const { return mActivePointerId; } in getActivePointerId() 109 int32_t mActivePointerId; variable
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 122 private int mActivePointerId; field in StaggeredGridView 287 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); in onInterceptTouchEvent() 297 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); in onInterceptTouchEvent() 300 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + in onInterceptTouchEvent() 328 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); in onTouchEvent() 333 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); in onTouchEvent() 336 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + in onTouchEvent() 366 mActivePointerId); in onTouchEvent()
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | ViewPager.java | 201 private int mActivePointerId = INVALID_POINTER; field in ViewPager 2057 final int activePointerId = mActivePointerId; 2112 mActivePointerId = ev.getPointerId(0); 2193 mActivePointerId = ev.getPointerId(0); 2198 final int pointerIndex = ev.findPointerIndex(mActivePointerId); 2232 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 2241 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); 2250 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 2270 mActivePointerId = ev.getPointerId(index); 2275 mLastMotionX = ev.getX(ev.findPointerIndex(mActivePointerId)); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | NotificationStackScrollLayout.java | 147 private int mActivePointerId = INVALID_POINTER; field in NotificationStackScrollLayout 1436 mActivePointerId = ev.getPointerId(0); in onScrollTouch() 1440 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onScrollTouch() 1442 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onScrollTouch() 1490 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onScrollTouch() 1511 mActivePointerId = INVALID_POINTER; in onScrollTouch() 1521 mActivePointerId = INVALID_POINTER; in onScrollTouch() 1529 mActivePointerId = ev.getPointerId(index); in onScrollTouch() 1534 mLastMotionY = (int) ev.getY(ev.findPointerIndex(mActivePointerId)); in onScrollTouch() 1535 mDownX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onScrollTouch() [all …]
|