/frameworks/base/include/androidfw/ |
D | Input.h | 366 inline const PointerProperties* getPointerProperties(size_t pointerIndex) const { in getPointerProperties() argument 367 return &mPointerProperties[pointerIndex]; in getPointerProperties() 370 inline int32_t getPointerId(size_t pointerIndex) const { in getPointerId() argument 371 return mPointerProperties[pointerIndex].id; in getPointerId() 374 inline int32_t getToolType(size_t pointerIndex) const { in getToolType() argument 375 return mPointerProperties[pointerIndex].toolType; in getToolType() 380 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 382 float getRawAxisValue(int32_t axis, size_t pointerIndex) const; 384 inline float getRawX(size_t pointerIndex) const { in getRawX() argument 385 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 50 public int getPointerId(MotionEvent event, int pointerIndex) { in getPointerId() argument 51 if (pointerIndex == 0) { in getPointerId() 58 public float getX(MotionEvent event, int pointerIndex) { in getX() argument 59 if (pointerIndex == 0) { in getX() 65 public float getY(MotionEvent event, int pointerIndex) { in getY() argument 66 if (pointerIndex == 0) { in getY() 86 public int getPointerId(MotionEvent event, int pointerIndex) { in getPointerId() argument [all …]
|
/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/services/java/com/android/server/accessibility/ |
D | GestureUtils.java | 38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) { in computeDistance() argument 39 return MathUtils.dist(first.getX(pointerIndex), first.getY(pointerIndex), in computeDistance() 40 second.getX(pointerIndex), second.getY(pointerIndex)); in computeDistance()
|
D | TouchExplorer.java | 467 final int pointerIndex = event.findPointerIndex(pointerId); in handleMotionEventStateTouchExploring() local 485 - rawEvent.getX(pointerIndex); in handleMotionEventStateTouchExploring() 487 - rawEvent.getY(pointerIndex); in handleMotionEventStateTouchExploring() 528 - rawEvent.getX(pointerIndex); in handleMotionEventStateTouchExploring() 531 - rawEvent.getY(pointerIndex); in handleMotionEventStateTouchExploring() 565 - rawEvent.getX(pointerIndex); in handleMotionEventStateTouchExploring() 567 - rawEvent.getY(pointerIndex); in handleMotionEventStateTouchExploring() 1020 for (int pointerIndex = 0; pointerIndex < pointerCount; pointerIndex++) { in sendMotionEventStripInactivePointers() 1021 final int pointerId = prototype.getPointerId(pointerIndex); in sendMotionEventStripInactivePointers() 1126 private int computeInjectionAction(int actionMasked, int pointerIndex) { in computeInjectionAction() argument [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/opt/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewPager.java | 139 final int pointerIndex = in onInterceptTouchEvent() local 141 final float x = MotionEventCompat.getX(ev, pointerIndex); in onInterceptTouchEvent() 168 final int pointerIndex = MotionEventCompat.getActionIndex(ev); in onInterceptTouchEvent() local 169 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); in onInterceptTouchEvent() 172 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onInterceptTouchEvent()
|
/frameworks/ex/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewPager.java | 138 final int pointerIndex = in onInterceptTouchEvent() local 140 final float x = MotionEventCompat.getX(ev, pointerIndex); in onInterceptTouchEvent() 167 final int pointerIndex = MotionEventCompat.getActionIndex(ev); in onInterceptTouchEvent() local 168 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); in onInterceptTouchEvent() 171 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onInterceptTouchEvent()
|
/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 …]
|
/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/docs/html/training/gestures/ |
D | scale.jd | 111 final int pointerIndex = MotionEventCompat.getActionIndex(ev); 112 final float x = MotionEventCompat.getX(ev, pointerIndex); 113 final float y = MotionEventCompat.getY(ev, pointerIndex); 125 final int pointerIndex = 128 final float x = MotionEventCompat.getX(ev, pointerIndex); 129 final float y = MotionEventCompat.getY(ev, pointerIndex); 161 final int pointerIndex = MotionEventCompat.getActionIndex(ev); 162 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); 167 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
D | multi.jd | 98 int pointerIndex = event.findPointerIndex(mActivePointerId); 100 float x = event.getX(pointerIndex); 101 float y = event.getY(pointerIndex);
|
/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/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/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/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 | 460 final int pointerIndex = ev.findPointerIndex(activePointerId); in onInterceptTouchEvent() local 461 if (pointerIndex == -1) { in onInterceptTouchEvent() 467 final int x = (int) ev.getX(pointerIndex); in onInterceptTouchEvent() 675 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> in onSecondaryPointerUp() local 677 final int pointerId = ev.getPointerId(pointerIndex); in onSecondaryPointerUp() 682 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onSecondaryPointerUp()
|
D | ScrollView.java | 490 final int pointerIndex = ev.findPointerIndex(activePointerId); in onInterceptTouchEvent() local 491 if (pointerIndex == -1) { in onInterceptTouchEvent() 497 final int y = (int) ev.getY(pointerIndex); in onInterceptTouchEvent() 706 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> in onSecondaryPointerUp() local 708 final int pointerId = ev.getPointerId(pointerIndex); in onSecondaryPointerUp() 713 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onSecondaryPointerUp()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
D | PagedView.java | 1173 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in determineScrollingStart() local 1174 if (pointerIndex == -1) return; in determineScrollingStart() 1177 final float x = ev.getX(pointerIndex); in determineScrollingStart() 1178 final float y = ev.getY(pointerIndex); in determineScrollingStart() 1350 final int pointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() local 1351 final float x = ev.getX(pointerIndex); in onTouchEvent() 1487 final int pointerIndex = ev.findPointerIndex(activePointerId); in onTouchEvent() local 1488 final float x = ev.getX(pointerIndex); in onTouchEvent() 1655 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> in onSecondaryPointerUp() local 1657 final int pointerId = ev.getPointerId(pointerIndex); in onSecondaryPointerUp() [all …]
|