Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java64 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/
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()
DScrollView.java175 private int mActivePointerId = INVALID_POINTER; field in ScrollView
626 final int activePointerId = mActivePointerId; in onInterceptTouchEvent()
671 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
694 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent()
756 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
761 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
763 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent()
836 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchEvent()
845 mActivePointerId = INVALID_POINTER; in onTouchEvent()
854 mActivePointerId = INVALID_POINTER; in onTouchEvent()
[all …]
DHorizontalScrollView.java164 private int mActivePointerId = INVALID_POINTER; field in HorizontalScrollView
586 final int activePointerId = mActivePointerId; in onInterceptTouchEvent()
624 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
642 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent()
650 mActivePointerId = ev.getPointerId(index); in onInterceptTouchEvent()
655 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent()
695 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
699 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
701 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); in onTouchEvent()
764 int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent()
[all …]
DStackView.java127 private int mActivePointerId; field in StackView
197 mActivePointerId = INVALID_POINTER; in initStackView()
624 if (mActivePointerId == INVALID_POINTER) { in onInterceptTouchEvent()
627 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
632 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent()
650 mActivePointerId = INVALID_POINTER; in onInterceptTouchEvent()
714 int pointerIndex = ev.findPointerIndex(mActivePointerId);
759 mActivePointerId = INVALID_POINTER;
770 if (pointerId == mActivePointerId) {
796 mActivePointerId = ev.getPointerId(index);
[all …]
DAbsListView.java686 private int mActivePointerId = INVALID_POINTER; field in AbsListView
3917 mActivePointerId = id; in onTouchEvent()
3941 mActivePointerId = ev.getPointerId(0); in onTouchDown()
4010 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchMove()
4013 mActivePointerId = ev.getPointerId(pointerIndex); in onTouchMove()
4152 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale); in onTouchUp()
4200 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); in onTouchUp()
4224 mActivePointerId = INVALID_POINTER; in onTouchUp()
4272 mActivePointerId = INVALID_POINTER; in onTouchCancel()
4518 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/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java85 int mActivePointerId = INACTIVE_POINTER_ID; field in TaskStackViewTouchHandler
238 mActivePointerId = ev.getPointerId(0); in handleTouchEvent()
248 mActivePointerId = ev.getPointerId(index); in handleTouchEvent()
258 int activePointerIndex = ev.findPointerIndex(mActivePointerId); in handleTouchEvent()
320 if (pointerId == mActivePointerId) { in handleTouchEvent()
323 mActivePointerId = ev.getPointerId(newPointerIndex); in handleTouchEvent()
335 int activePointerIndex = ev.findPointerIndex(mActivePointerId); in handleTouchEvent()
337 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); in handleTouchEvent()
366 mActivePointerId = INACTIVE_POINTER_ID; in handleTouchEvent()
372 mActivePointerId = INACTIVE_POINTER_ID; in handleTouchEvent()
/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/
DResolverDrawerLayout.java114 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; field in ResolverDrawerLayout
301 mActivePointerId = ev.getPointerId(0); in onInterceptTouchEvent()
347 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
356 int index = ev.findPointerIndex(mActivePointerId); in onTouchEvent()
358 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting"); in onTouchEvent()
360 mActivePointerId = ev.getPointerId(0); in onTouchEvent()
389 mActivePointerId = pointerId; in onTouchEvent()
417 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent()
462 if (pointerId == mActivePointerId) {
468 mActivePointerId = ev.getPointerId(newPointerIndex);
[all …]
DPointerLocationView.java135 private int mActivePointerId; field in PointerLocationView
195 mActivePointerId = 0; in PointerLocationView()
267 if (mActivePointerId >= 0) { in onDraw()
268 final PointerState ps = mPointers.get(mActivePointerId); in onDraw()
579 if (mActivePointerId < 0 || in onPointerEvent()
580 !mPointers.get(mActivePointerId).mCurDown) { in onPointerEvent()
581 mActivePointerId = id; in onPointerEvent()
666 if (mActivePointerId == id) { in onPointerEvent()
667 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0); in onPointerEvent()
DViewPager.java169 private int mActivePointerId = INVALID_POINTER; field in ViewPager
1821 mActivePointerId = INVALID_POINTER;
1853 final int activePointerId = mActivePointerId;
1908 mActivePointerId = ev.getPointerId(0);
1979 mActivePointerId = ev.getPointerId(0);
1984 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
2010 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2019 … final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
2034 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2041 mActivePointerId = INVALID_POINTER;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java96 private int mActivePointerId = -1; field in KeyguardSecurityContainer
169 mActivePointerId = event.getPointerId(pointerIndex); in onInterceptTouchEvent()
183 int index = event.findPointerIndex(mActivePointerId); in onInterceptTouchEvent()
205 int pointerIndex = event.findPointerIndex(mActivePointerId); in onTouchEvent()
215 mActivePointerId = -1; in onTouchEvent()
223 if (pointerId == mActivePointerId) { in onTouchEvent()
228 mActivePointerId = event.getPointerId(newPointerIndex); in onTouchEvent()
/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp62 int32_t mActivePointerId; member in android::VelocityTrackerState
68 mVelocityTracker(strategy), mActivePointerId(-1) { in VelocityTrackerState()
73 mActivePointerId = -1; in clear()
/frameworks/native/libs/input/
DVelocityTracker.cpp115 mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) { in VelocityTracker()
214 mActivePointerId = -1; in clear()
223 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) { in clearPointers()
224 mActivePointerId = !remainingIdBits.isEmpty() ? remainingIdBits.firstMarkedBit() : -1; in clearPointers()
248 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) { in addMovement()
249 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit(); in addMovement()
256 eventTime, idBits.value, mActivePointerId); in addMovement()
/frameworks/native/include/input/
DVelocityTracker.h99 inline int32_t getActivePointerId() const { return mActivePointerId; } in getActivePointerId()
109 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/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java217 private int mActivePointerId = INVALID_POINTER; field in NotificationStackScrollLayout
3759 mActivePointerId = ev.getPointerId(0);
3763 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
3765 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
3817 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
3842 mActivePointerId = INVALID_POINTER;
3857 mActivePointerId = INVALID_POINTER;
3865 mActivePointerId = ev.getPointerId(index);
3870 mLastMotionY = (int) ev.getY(ev.findPointerIndex(mActivePointerId));
3871 mDownX = (int) ev.getX(ev.findPointerIndex(mActivePointerId));
[all …]
/frameworks/base/core/java/android/view/
DViewRootImpl.java6230 private int mActivePointerId = -1;
6323 mActivePointerId = event.getPointerId(0);
6341 if (mActivePointerId < 0) {
6344 final int index = event.findPointerIndex(mActivePointerId);
6368 final float vx = mVelocityTracker.getXVelocity(mActivePointerId);
6369 final float vy = mVelocityTracker.getYVelocity(mActivePointerId);
6402 if (mActivePointerId >= 0) {
6403 mActivePointerId = -1;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt84520 Landroid/view/ViewRootImpl$SyntheticTouchNavigationHandler;->mActivePointerId:I
87955 Landroid/widget/ForwardingListener;->mActivePointerId:I
88314 Landroid/widget/HorizontalScrollView;->mActivePointerId:I
89947 Landroid/widget/ScrollView;->mActivePointerId:I
90562 Landroid/widget/StackView;->mActivePointerId:I