/frameworks/base/include/androidfw/ |
D | Input.h | 357 inline const PointerProperties* getPointerProperties(size_t pointerIndex) const { in getPointerProperties() argument 358 return &mPointerProperties[pointerIndex]; in getPointerProperties() 361 inline int32_t getPointerId(size_t pointerIndex) const { in getPointerId() argument 362 return mPointerProperties[pointerIndex].id; in getPointerId() 365 inline int32_t getToolType(size_t pointerIndex) const { in getToolType() argument 366 return mPointerProperties[pointerIndex].toolType; in getToolType() 371 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 373 float getRawAxisValue(int32_t axis, size_t pointerIndex) const; 375 inline float getRawX(size_t pointerIndex) const { in getRawX() argument 376 return getRawAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getRawX() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | MotionEventCompat.java | 31 public int getPointerId(MotionEvent event, int pointerIndex); in getPointerId() argument 32 public float getX(MotionEvent event, int pointerIndex); in getX() argument 33 public float getY(MotionEvent event, int pointerIndex); in getY() argument 49 public int getPointerId(MotionEvent event, int pointerIndex) { in getPointerId() argument 50 if (pointerIndex == 0) { in getPointerId() 57 public float getX(MotionEvent event, int pointerIndex) { in getX() argument 58 if (pointerIndex == 0) { in getX() 64 public float getY(MotionEvent event, int pointerIndex) { in getY() argument 65 if (pointerIndex == 0) { in getY() 81 public int getPointerId(MotionEvent event, int pointerIndex) { in getPointerId() argument [all …]
|
D | ViewPager.java | 1601 final int pointerIndex = MotionEventCompat.findPointerIndex(ev, activePointerId); 1602 final float x = MotionEventCompat.getX(ev, pointerIndex); 1605 final float y = MotionEventCompat.getY(ev, pointerIndex); 1733 … final int pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId); 1734 final float x = MotionEventCompat.getX(ev, pointerIndex); 1736 final float y = MotionEventCompat.getY(ev, pointerIndex); 2136 final int pointerIndex = MotionEventCompat.getActionIndex(ev); 2137 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); 2141 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/frameworks/support/v4/eclair/android/support/v4/view/ |
D | MotionEventCompatEclair.java | 28 public static int getPointerId(MotionEvent event, int pointerIndex) { in getPointerId() argument 29 return event.getPointerId(pointerIndex); in getPointerId() 31 public static float getX(MotionEvent event, int pointerIndex) { in getX() argument 32 return event.getX(pointerIndex); in getX() 34 public static float getY(MotionEvent event, int pointerIndex) { in getY() argument 35 return event.getY(pointerIndex); in getY()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 1351 private static native int nativeGetPointerId(int nativePtr, int pointerIndex); in nativeGetPointerId() argument 1352 private static native int nativeGetToolType(int nativePtr, int pointerIndex); in nativeGetToolType() argument 1358 int axis, int pointerIndex, int historyPos); in nativeGetRawAxisValue() argument 1360 int axis, int pointerIndex, int historyPos); in nativeGetAxisValue() argument 1362 int pointerIndex, int historyPos, PointerCoords outPointerCoords); in nativeGetPointerCoords() argument 1364 int pointerIndex, PointerProperties outPointerProperties); in nativeGetPointerProperties() argument 1933 public final int getPointerId(int pointerIndex) { in getPointerId() argument 1934 return nativeGetPointerId(mNativePtr, pointerIndex); in getPointerId() 1953 public final int getToolType(int pointerIndex) { in getToolType() argument 1954 return nativeGetToolType(mNativePtr, pointerIndex); in getToolType() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 156 static bool validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) { in validatePointerIndex() argument 157 if (pointerIndex < 0 || size_t(pointerIndex) >= pointerCount) { in validatePointerIndex() 554 jint nativePtr, jint pointerIndex) { in android_view_MotionEvent_nativeGetPointerId() argument 557 if (!validatePointerIndex(env, pointerIndex, pointerCount)) { in android_view_MotionEvent_nativeGetPointerId() 560 return event->getPointerId(pointerIndex); in android_view_MotionEvent_nativeGetPointerId() 564 jint nativePtr, jint pointerIndex) { in android_view_MotionEvent_nativeGetToolType() argument 567 if (!validatePointerIndex(env, pointerIndex, pointerCount)) { in android_view_MotionEvent_nativeGetToolType() 570 return event->getToolType(pointerIndex); in android_view_MotionEvent_nativeGetToolType() 600 jint nativePtr, jint axis, jint pointerIndex, jint historyPos) { in android_view_MotionEvent_nativeGetRawAxisValue() argument 603 if (!validatePointerIndex(env, pointerIndex, pointerCount)) { in android_view_MotionEvent_nativeGetRawAxisValue() [all …]
|
/frameworks/base/services/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 396 final int pointerIndex = event.findPointerIndex(pointerId); in handleMotionEventStateTouchExploring() local 413 - event.getX(pointerIndex); in handleMotionEventStateTouchExploring() 415 - event.getY(pointerIndex); in handleMotionEventStateTouchExploring() 471 - event.getX(pointerIndex); in handleMotionEventStateTouchExploring() 473 - event.getY(pointerIndex); in handleMotionEventStateTouchExploring() 877 for (int pointerIndex = 0; pointerIndex < pointerCount; pointerIndex++) { in sendMotionEventStripInactivePointers() 878 final int pointerId = prototype.getPointerId(pointerIndex); in sendMotionEventStripInactivePointers() 978 private int computeInjectionAction(int actionMasked, int pointerIndex) { in computeInjectionAction() argument 987 return (pointerIndex << MotionEvent.ACTION_POINTER_INDEX_SHIFT) in computeInjectionAction() 997 return (pointerIndex << MotionEvent.ACTION_POINTER_INDEX_SHIFT) in computeInjectionAction() [all …]
|
/frameworks/base/libs/androidfw/ |
D | Input.cpp | 352 const PointerCoords* MotionEvent::getRawPointerCoords(size_t pointerIndex) const { in getRawPointerCoords() 353 return &mSamplePointerCoords[getHistorySize() * getPointerCount() + pointerIndex]; in getRawPointerCoords() 356 float MotionEvent::getRawAxisValue(int32_t axis, size_t pointerIndex) const { in getRawAxisValue() 357 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getRawAxisValue() 360 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { in getAxisValue() 361 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getAxisValue() 372 size_t pointerIndex, size_t historicalIndex) const { in getHistoricalRawPointerCoords() argument 373 return &mSamplePointerCoords[historicalIndex * getPointerCount() + pointerIndex]; in getHistoricalRawPointerCoords() 376 float MotionEvent::getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, in getHistoricalRawAxisValue() argument 378 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalRawAxisValue() [all …]
|
D | VelocityTracker.cpp | 308 uint32_t pointerIndex[MAX_POINTERS]; in addMovement() local 310 pointerIndex[i] = idBits.getIndexOfBit(event->getPointerId(i)); in addMovement() 320 uint32_t index = pointerIndex[i]; in addMovement() 329 uint32_t index = pointerIndex[i]; in addMovement()
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | ShadersTestView.java | 110 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) in onTouchEvent() local 112 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() 116 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOTestView.java | 116 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) in onTouchEvent() local 118 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() 122 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onTouchEvent()
|
D | FBOSyncView.java | 116 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) in onTouchEvent() local 118 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() 122 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | TestAppView.java | 125 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) in onTouchEvent() local 127 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() 131 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelView.java | 143 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) in onTouchEvent() local 145 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent() 149 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/ |
D | FountainFboView.java | 66 int pointerIndex = ev.getActionIndex(); in onTouchEvent() local 67 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
D | FountainView.java | 81 int pointerIndex = ev.getActionIndex(); in onTouchEvent() local 82 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
D | FountainView.java | 84 int pointerIndex = ev.getActionIndex(); in onTouchEvent() local 85 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent()
|
/frameworks/base/tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/ |
D | BallsView.java | 82 int pointerIndex = ev.getActionIndex(); in onTouchEvent() local 83 int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent()
|
/frameworks/base/core/java/android/widget/ |
D | StackView.java | 625 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent() local 626 if (pointerIndex == INVALID_POINTER) { in onInterceptTouchEvent() 631 float newY = ev.getY(pointerIndex); in onInterceptTouchEvent() 707 int pointerIndex = ev.findPointerIndex(mActivePointerId); 708 if (pointerIndex == INVALID_POINTER) { 714 float newY = ev.getY(pointerIndex); 715 float newX = ev.getX(pointerIndex); 805 int pointerIndex = ev.findPointerIndex(mActivePointerId); 806 float newY = ev.getY(pointerIndex);
|
D | HorizontalScrollView.java | 458 final int pointerIndex = ev.findPointerIndex(activePointerId); in onInterceptTouchEvent() local 459 final int x = (int) ev.getX(pointerIndex); in onInterceptTouchEvent() 662 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> in onSecondaryPointerUp() local 664 final int pointerId = ev.getPointerId(pointerIndex); in onSecondaryPointerUp() 669 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onSecondaryPointerUp()
|
D | ScrollView.java | 480 final int pointerIndex = ev.findPointerIndex(activePointerId); in onInterceptTouchEvent() local 481 final int y = (int) ev.getY(pointerIndex); in onInterceptTouchEvent() 685 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> in onSecondaryPointerUp() local 687 final int pointerId = ev.getPointerId(pointerIndex); in onSecondaryPointerUp() 692 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onSecondaryPointerUp()
|
D | AbsListView.java | 3444 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() local 3445 if (pointerIndex == -1) { in onTouchEvent() 3446 pointerIndex = 0; in onTouchEvent() 3447 mActivePointerId = ev.getPointerId(pointerIndex); in onTouchEvent() 3449 final int y = (int) ev.getY(pointerIndex); in onTouchEvent() 3908 int pointerIndex = ev.findPointerIndex(mActivePointerId); in onInterceptTouchEvent() local 3909 if (pointerIndex == -1) { in onInterceptTouchEvent() 3910 pointerIndex = 0; in onInterceptTouchEvent() 3911 mActivePointerId = ev.getPointerId(pointerIndex); in onInterceptTouchEvent() 3913 final int y = (int) ev.getY(pointerIndex); in onInterceptTouchEvent() [all …]
|
/frameworks/base/services/input/ |
D | InputReader.h | 727 inline bool isHovering(uint32_t pointerIndex) { in isHovering() 728 return pointers[pointerIndex].isHovering; in isHovering() 745 inline bool isHovering(uint32_t pointerIndex) { in isHovering() 746 return hoveringIdBits.hasBit(pointerProperties[pointerIndex].id); in isHovering()
|
D | InputDispatcher.cpp | 1163 int32_t pointerIndex = getMotionEventActionPointerIndex(action); in findTouchedWindowTargetsLocked() local 1164 int32_t x = int32_t(entry->pointerCoords[pointerIndex]. in findTouchedWindowTargetsLocked() 1166 int32_t y = int32_t(entry->pointerCoords[pointerIndex]. in findTouchedWindowTargetsLocked() 1277 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked() 1515 int32_t pointerIndex = getMotionEventActionPointerIndex(action); in findTouchedWindowTargetsLocked() local 1516 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked()
|
/frameworks/base/docs/html/guide/topics/graphics/renderscript/ |
D | graphics.jd | 424 int pointerIndex = ev.getActionIndex(); 425 int pointerId = ev.getPointerId(pointerIndex);
|