Home
last modified time | relevance | path

Searched refs:pointerId (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java215 public void onEdgeTouched(int edgeFlags, int pointerId) {} in onEdgeTouched() argument
241 public void onEdgeDragStarted(int edgeFlags, int pointerId) {} in onEdgeDragStarted() argument
291 public abstract boolean tryCaptureView(View child, int pointerId); in tryCaptureView() argument
791 private void clearMotionHistory(int pointerId) { in clearMotionHistory() argument
792 if (mInitialMotionX == null || !isPointerDown(pointerId)) { in clearMotionHistory()
795 mInitialMotionX[pointerId] = 0; in clearMotionHistory()
796 mInitialMotionY[pointerId] = 0; in clearMotionHistory()
797 mLastMotionX[pointerId] = 0; in clearMotionHistory()
798 mLastMotionY[pointerId] = 0; in clearMotionHistory()
799 mInitialEdgesTouched[pointerId] = 0; in clearMotionHistory()
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DVelocityTrackerCompat.java30 public float getXVelocity(VelocityTracker tracker, int pointerId); in getXVelocity() argument
31 public float getYVelocity(VelocityTracker tracker, int pointerId); in getYVelocity() argument
39 public float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity() argument
43 public float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity() argument
53 public float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity() argument
54 return VelocityTrackerCompatHoneycomb.getXVelocity(tracker, pointerId); in getXVelocity()
57 public float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity() argument
58 return VelocityTrackerCompatHoneycomb.getYVelocity(tracker, pointerId); in getYVelocity()
81 public static float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity() argument
82 return IMPL.getXVelocity(tracker, pointerId); in getXVelocity()
[all …]
DMotionEventCompat.java31 public int findPointerIndex(MotionEvent event, int pointerId); in findPointerIndex() argument
47 public int findPointerIndex(MotionEvent event, int pointerId) { in findPointerIndex() argument
48 if (pointerId == 0) { in findPointerIndex()
107 public int findPointerIndex(MotionEvent event, int pointerId) { in findPointerIndex() argument
108 return MotionEventCompatEclair.findPointerIndex(event, pointerId); in findPointerIndex()
477 public static int findPointerIndex(MotionEvent event, int pointerId) { in findPointerIndex() argument
478 return IMPL.findPointerIndex(event, pointerId); in findPointerIndex()
DGestureDetectorCompat.java371 final int pointerId = MotionEventCompat.getPointerId(ev, 0); in onTouchEvent() local
374 velocityTracker, pointerId); in onTouchEvent()
376 velocityTracker, pointerId); in onTouchEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java373 final int pointerId = event.getPointerId(pointerIndex); in onDoubleTapAndHold() local
382 mLongPressingPointerId = pointerId; in onDoubleTapAndHold()
411 final int pointerId = event.getPointerId(pointerIndex); in onDoubleTap() local
474 final int pointerId = mReceivedPointerTracker.getPrimaryPointerId(); in onGestureCancelled() local
475 final int pointerIdBits = (1 << pointerId); in onGestureCancelled()
524 final int pointerId = receivedTracker.getPrimaryPointerId(); in handleMotionEventStateTouchExploring() local
525 final int pointerIdBits = (1 << pointerId); in handleMotionEventStateTouchExploring()
542 final int pointerId = receivedTracker.getPrimaryPointerId(); in handleMotionEventStateTouchExploring() local
543 final int pointerIndex = event.findPointerIndex(pointerId); in handleMotionEventStateTouchExploring()
544 final int pointerIdBits = (1 << pointerId); in handleMotionEventStateTouchExploring()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp74 static int findSlot(int32_t pointerId) { in findSlot() argument
75 std::map<int,int>::iterator it = slotsMap.find(pointerId); in findSlot()
82 static int assignSlot(int32_t pointerId) { in assignSlot() argument
85 slotsMap[pointerId] = slot; in assignSlot()
91 static void unassignSlot(int32_t pointerId) { in unassignSlot() argument
92 int slot = findSlot(pointerId); in unassignSlot()
95 slotsMap.erase(pointerId); in unassignSlot()
221 jint pointerId, jint x, jint y) { in nativeSendPointerDown() argument
224 int32_t slot = findSlot(pointerId); in nativeSendPointerDown()
226 slot = assignSlot(pointerId); in nativeSendPointerDown()
[all …]
/frameworks/support/v4/honeycomb/android/support/v4/view/
DVelocityTrackerCompatHoneycomb.java25 public static float getXVelocity(VelocityTracker tracker, int pointerId) { in getXVelocity() argument
26 return tracker.getXVelocity(pointerId); in getXVelocity()
28 public static float getYVelocity(VelocityTracker tracker, int pointerId) { in getYVelocity() argument
29 return tracker.getYVelocity(pointerId); in getYVelocity()
/frameworks/base/services/core/java/com/android/server/tv/
DUinputBridge.java40 private static native void nativeSendPointerDown(long ptr, int pointerId, int x, int y); in nativeSendPointerDown() argument
41 private static native void nativeSendPointerUp(long ptr, int pointerId); in nativeSendPointerUp() argument
114 public void sendPointerDown(IBinder token, int pointerId, int x, int y) { in sendPointerDown() argument
116 nativeSendPointerDown(mPtr, pointerId, x, y); in sendPointerDown()
120 public void sendPointerUp(IBinder token, int pointerId) { in sendPointerUp() argument
122 nativeSendPointerUp(mPtr, pointerId); in sendPointerUp()
DTvRemoteService.java179 private void sendPointerDownInternalLocked(IBinder token, int pointerId, int x, int y) { in sendPointerDownInternalLocked() argument
182 pointerId + ", x: " + x + ", y: " + y); in sendPointerDownInternalLocked()
187 inputBridge.sendPointerDown(token, pointerId, x, y); in sendPointerDownInternalLocked()
191 private void sendPointerUpInternalLocked(IBinder token, int pointerId) { in sendPointerUpInternalLocked() argument
194 pointerId); in sendPointerUpInternalLocked()
199 inputBridge.sendPointerUp(token, pointerId); in sendPointerUpInternalLocked()
334 public void sendPointerDown(TvRemoteProviderProxy provider, IBinder token, int pointerId, in sendPointerDown() argument
337 Slog.d(TAG, "sendPointerDown(), token: " + token + ", pointerId: " + pointerId); in sendPointerDown()
341 mService.sendPointerDownInternalLocked(token, pointerId, x, y); in sendPointerDown()
347 public void sendPointerUp(TvRemoteProviderProxy provider, IBinder token, int pointerId) { in sendPointerUp() argument
[all …]
DTvRemoteProviderProxy.java264 void sendPointerDown(TvRemoteProviderProxy provider, IBinder token, int pointerId, int x, in sendPointerDown() argument
267 void sendPointerUp(TvRemoteProviderProxy provider, IBinder token, int pointerId); in sendPointerUp() argument
475 void sendPointerDown(final IBinder token, final int pointerId, final int x, final int y) { in sendPointerDown() argument
480 " token=" + token + ", pointerId=" + pointerId); in sendPointerDown()
486 pointerId, x, y); in sendPointerDown()
501 void sendPointerUp(final IBinder token, final int pointerId) { in sendPointerUp() argument
506 " token=" + token + ", pointerId=" + pointerId); in sendPointerUp()
512 pointerId); in sendPointerUp()
623 public void sendPointerDown(IBinder token, int pointerId, int x, int y) in sendPointerDown() argument
627 connection.sendPointerDown(token, pointerId, x, y); in sendPointerDown()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DSystemGesturesPointerEventListener.java160 final int pointerId = event.getPointerId(pointerIndex); in captureDown() local
161 final int i = findIndex(pointerId); in captureDown()
162 if (DEBUG) Slog.d(TAG, "pointer " + pointerId + in captureDown()
168 if (DEBUG) Slog.d(TAG, "pointer " + pointerId + in captureDown()
173 private int findIndex(int pointerId) { in findIndex() argument
175 if (mDownPointerId[i] == pointerId) { in findIndex()
179 if (mDownPointers == MAX_TRACKED_POINTERS || pointerId == MotionEvent.INVALID_POINTER_ID) { in findIndex()
182 mDownPointerId[mDownPointers++] = pointerId; in findIndex()
190 final int pointerId = move.getPointerId(p); in detectSwipe() local
191 final int i = findIndex(pointerId); in detectSwipe()
/frameworks/base/media/lib/tvremote/java/com/android/media/tv/remoteprovider/
DTvRemoteProvider.java225 public void sendPointerUp(IBinder token, int pointerId) throws RuntimeException { in sendPointerUp() argument
227 ", pointerId: " + pointerId); in sendPointerUp()
229 mRemoteServiceInput.sendPointerUp(token, pointerId); in sendPointerUp()
245 public void sendPointerDown(IBinder token, int pointerId, int x, int y) in sendPointerDown() argument
248 ", pointerId: " + pointerId); in sendPointerDown()
250 mRemoteServiceInput.sendPointerDown(token, pointerId, x, y); in sendPointerDown()
/frameworks/support/v4/eclair/android/support/v4/view/
DMotionEventCompatEclair.java25 public static int findPointerIndex(MotionEvent event, int pointerId) { in findPointerIndex() argument
26 return event.findPointerIndex(pointerId); in findPointerIndex()
/frameworks/base/media/java/android/media/tv/
DITvRemoteServiceInput.aidl30 void sendPointerDown(IBinder token, int pointerId, int x, int y); in sendPointerDown() argument
31 void sendPointerUp(IBinder token, int pointerId); in sendPointerUp() argument
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
DBallsView.java83 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local
84 mRender.newTouchPosition(0, 0, 0, pointerId); in onTouchEvent()
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewPager.java169 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); in onInterceptTouchEvent() local
170 if (pointerId == mActivePointerId) { in onInterceptTouchEvent()
/frameworks/base/core/java/android/view/
DGestureDetector.java643 final int pointerId = ev.getPointerId(0); in onTouchEvent() local
645 final float velocityY = velocityTracker.getYVelocity(pointerId); in onTouchEvent()
646 final float velocityX = velocityTracker.getXVelocity(pointerId); in onTouchEvent()
/frameworks/base/docs/html/training/gestures/
Dmovement.jd112 int pointerId = event.getPointerId(index);
137 pointerId));
140 pointerId));
/frameworks/base/core/java/com/android/internal/widget/
DSwipeDismissLayout.java188 int pointerId = ev.getPointerId(actionIndex); in onInterceptTouchEvent() local
189 if (pointerId == mActiveTouchId) { in onInterceptTouchEvent()
DResolverDrawerLayout.java334 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() local
335 mActivePointerId = pointerId; in onTouchEvent()
395 final int pointerId = ev.getPointerId(pointerIndex);
396 if (pointerId == mActivePointerId) {
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java393 public boolean tryCaptureView(View child, int pointerId) { in tryCaptureView() argument
398 return child == mDynamicContent && pointerId == FIRST_POINTER_ID; in tryCaptureView()
/frameworks/native/libs/input/
DInput.cpp329 ssize_t MotionEvent::findPointerIndex(int32_t pointerId) const { in findPointerIndex()
332 if (mPointerProperties.itemAt(i).id == pointerId) { in findPointerIndex()
/frameworks/support/design/src/android/support/design/widget/
DBottomSheetBehavior.java570 public boolean tryCaptureView(View child, int pointerId) {
577 if (mState == STATE_EXPANDED && mActivePointerId == pointerId) {
DSwipeDismissBehavior.java220 public boolean tryCaptureView(View child, int pointerId) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java313 int pointerId = ev.getPointerId(pointerIndex); in handleTouchEvent() local
314 if (pointerId == mActivePointerId) { in handleTouchEvent()

12