Home
last modified time | relevance | path

Searched refs:mActivePointerId (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchState.java68 private int mActivePointerId; field in PipTouchState
105 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
108 "%s: Setting active pointer id on DOWN: %d", TAG, mActivePointerId); in onTouchEvent()
133 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
136 "%s: Invalid active pointer id on MOVE: %d", TAG, mActivePointerId); in onTouchEvent()
168 if (pointerId == mActivePointerId) { in onTouchEvent()
171 mActivePointerId = ev.getPointerId(newPointerIndex); in onTouchEvent()
175 TAG, mActivePointerId); in onTouchEvent()
193 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
196 "%s: Invalid active pointer id on UP: %d", TAG, mActivePointerId); in onTouchEvent()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewPager.java59 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/base/core/java/android/widget/
DForwardingListener.java57 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()
DHorizontalScrollView.java169 private int mActivePointerId = INVALID_POINTER; field in HorizontalScrollView
593 final int activePointerId = mActivePointerId; in onInterceptTouchEvent()
631 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
657 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent()
665 mActivePointerId = ev.getPointerId(index); in onInterceptTouchEvent()
670 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent()
710 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
714 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
716 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent()
790 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent()
[all …]
DStackView.java129 private int mActivePointerId; field in StackView
199 mActivePointerId = INVALID_POINTER; in initStackView()
626 if (mActivePointerId == INVALID_POINTER) { in onInterceptTouchEvent()
629 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
634 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent()
652 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent()
716 int pointerIndex = ev.findPointerIndex(mActivePointerId);
761 mActivePointerId = INVALID_POINTER;
772 if (pointerId == mActivePointerId) {
798 mActivePointerId = ev.getPointerId(index);
[all …]
DScrollView.java180 private int mActivePointerId = INVALID_POINTER; field in ScrollView
633 final int activePointerId = mActivePointerId; in onInterceptTouchEvent()
678 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
709 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent()
771 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
776 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
778 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent()
866 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent()
875 mActivePointerId = INVALID_POINTER; in onTouchEvent()
884 mActivePointerId = INVALID_POINTER; in onTouchEvent()
[all …]
DAbsListView.java711 private int mActivePointerId = INVALID_POINTER; field in AbsListView
4020 mActivePointerId = id; in onTouchEvent()
4044 mActivePointerId = ev.getPointerId(0); in onTouchDown()
4128 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchMove()
4131 mActivePointerId = ev.getPointerId(pointerIndex); in onTouchMove()
4272 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale); in onTouchUp()
4325 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchUp()
4349 mActivePointerId = INVALID_POINTER; in onTouchUp()
4397 mActivePointerId = INVALID_POINTER; in onTouchCancel()
4643 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
[all …]
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java213 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/base/packages/SystemUI/src/com/android/systemui/qs/touch/
DSwipeDetector.java50 protected int mActivePointerId = INVALID_POINTER_ID; field in SwipeDetector
214 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
229 if (ptrId == mActivePointerId) { in onTouchEvent()
235 mActivePointerId = ev.getPointerId(newPointerIdx); in onTouchEvent()
239 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java148 private int mActivePointerId; field in PointerLocationView
214 mActivePointerId = 0; in PointerLocationView()
419 if (mActivePointerId < 0 || mActivePointerId >= mPointers.size()) { in drawLabels()
430 final PointerState ps = mPointers.get(mActivePointerId); in drawLabels()
634 if (mActivePointerId < 0 || mActivePointerId >= NP in onPointerEvent()
635 || !mPointers.get(mActivePointerId).mCurDown) { in onPointerEvent()
636 mActivePointerId = id; in onPointerEvent()
721 if (mActivePointerId == id) { in onPointerEvent()
722 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0); in onPointerEvent()
DResolverDrawerLayout.java125 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; field in ResolverDrawerLayout
347 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
402 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
411 int index = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
413 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting"); in onTouchEvent()
415 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
445 mActivePointerId = ev.getPointerId(pointerIndex); in onTouchEvent()
473 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent()
527 if (pointerId == mActivePointerId) {
533 mActivePointerId = ev.getPointerId(newPointerIndex);
[all …]
DViewPager.java169 private int mActivePointerId = INVALID_POINTER; field in ViewPager
1821 mActivePointerId = INVALID_POINTER;
1853 final int activePointerId = mActivePointerId;
1908 mActivePointerId = ev.getPointerId(0);
1990 mActivePointerId = ev.getPointerId(0);
1995 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
2021 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2030 … final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
2045 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2052 mActivePointerId = INVALID_POINTER;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DCropView.java76 private int mActivePointerId; field in CropView
170 mActivePointerId = event.getPointerId(0); in onTouchEvent()
180 int pointerIndex = event.findPointerIndex(mActivePointerId); in onTouchEvent()
197 if (mActivePointerId == event.getPointerId(event.getActionIndex()) in onTouchEvent()
204 if (mActivePointerId == event.getPointerId(event.getActionIndex()) in onTouchEvent()
213 && mActivePointerId == event.getPointerId(mActivePointerId)) { in onTouchEvent()
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp60 int32_t mActivePointerId; member in android::VelocityTrackerState
66 : mVelocityTracker(strategy), mActivePointerId(-1) {} in VelocityTrackerState()
70 mActivePointerId = -1; in clear()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsController.java169 private int mActivePointerId = -1; field in UdfpsController
480 final TouchProcessorResult result = mTouchProcessor.processTouch(event, mActivePointerId, in newOnTouch()
491 mActivePointerId = processedTouch.getPointerOnSensorId(); in newOnTouch()
575 mActivePointerId = event.getPointerId(0); in oldOnTouch()
591 final int idx = mActivePointerId == -1 in oldOnTouch()
593 : event.findPointerIndex(mActivePointerId); in oldOnTouch()
616 final float v = computePointerSpeed(mVelocityTracker, mActivePointerId); in oldOnTouch()
669 mActivePointerId = -1; in oldOnTouch()
1107 mActivePointerId = -1; in onFingerUp()
/frameworks/native/libs/input/
DVelocityTracker.cpp121 : mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) { in VelocityTracker()
199 mActivePointerId = -1; in clear()
208 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { in clearPointers()
209 mActivePointerId = !remainingIdBits.isEmpty() ? remainingIdBits.firstMarkedBit() : -1; in clearPointers()
237 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) { in addMovement()
238 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit(); in addMovement()
246 eventTime, idBits.value, mActivePointerId); in addMovement()
/frameworks/native/include/input/
DVelocityTracker.h115 inline int32_t getActivePointerId() const { return mActivePointerId; } in getActivePointerId()
130 int32_t mActivePointerId; variable
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java122 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/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java162 private int mActivePointerId = -1; field in KeyguardSecurityContainer
460 mActivePointerId = event.getPointerId(pointerIndex); in onInterceptTouchEvent()
474 int index = event.findPointerIndex(mActivePointerId); in onInterceptTouchEvent()
504 int pointerIndex = event.findPointerIndex(mActivePointerId); in onTouchEvent()
516 mActivePointerId = -1; in onTouchEvent()
524 if (pointerId == mActivePointerId) { in onTouchEvent()
529 mActivePointerId = event.getPointerId(newPointerIndex); in onTouchEvent()
DLockIconViewController.java119 private int mActivePointerId = -1; field in LockIconViewController
634 mActivePointerId = event.getPointerId(0); in onTouchEvent()
656 mActivePointerId); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java189 private int mActivePointerId = INVALID_POINTER; field in NotificationStackScrollLayout
3636 if (ev.findPointerIndex(mActivePointerId) == -1 && action != MotionEvent.ACTION_DOWN) { in onScrollTouch()
3639 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent " in onScrollTouch()
3662 mActivePointerId = ev.getPointerId(0); in onScrollTouch()
3666 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onScrollTouch()
3668 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onScrollTouch()
3717 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onScrollTouch()
3745 mActivePointerId = INVALID_POINTER; in onScrollTouch()
3756 mActivePointerId = INVALID_POINTER; in onScrollTouch()
3764 mActivePointerId = ev.getPointerId(index); in onScrollTouch()
[all …]
/frameworks/base/core/java/android/view/
DViewRootImpl.java7531 private int mActivePointerId = -1;
7624 mActivePointerId = event.getPointerId(0);
7642 if (mActivePointerId < 0) {
7645 final int index = event.findPointerIndex(mActivePointerId);
7669 final float vx = mVelocityTracker.getXVelocity(mActivePointerId);
7670 final float vy = mVelocityTracker.getYVelocity(mActivePointerId);
7703 if (mActivePointerId >= 0) {
7704 mActivePointerId = -1;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt64490 Landroid/view/ViewRootImpl$SyntheticTouchNavigationHandler;->mActivePointerId:I
67642 Landroid/widget/ForwardingListener;->mActivePointerId:I
67987 Landroid/widget/HorizontalScrollView;->mActivePointerId:I
69465 Landroid/widget/ScrollView;->mActivePointerId:I
70036 Landroid/widget/StackView;->mActivePointerId:I