/frameworks/support/v4/eclair/android/support/v4/view/ |
MotionEventCompatEclair.java | 28 public static int getPointerId(MotionEvent event, int pointerIndex) { 29 return event.getPointerId(pointerIndex); 31 public static float getX(MotionEvent event, int pointerIndex) { 32 return event.getX(pointerIndex); 34 public static float getY(MotionEvent event, int pointerIndex) { 35 return event.getY(pointerIndex);
|
/frameworks/support/v4/java/android/support/v4/view/ |
MotionEventCompat.java | 30 public int getPointerId(MotionEvent event, int pointerIndex); 31 public float getX(MotionEvent event, int pointerIndex); 32 public float getY(MotionEvent event, int pointerIndex); 48 public int getPointerId(MotionEvent event, int pointerIndex) { 49 if (pointerIndex == 0) { 56 public float getX(MotionEvent event, int pointerIndex) { 57 if (pointerIndex == 0) { 63 public float getY(MotionEvent event, int pointerIndex) { 64 if (pointerIndex == 0) { 80 public int getPointerId(MotionEvent event, int pointerIndex) { [all...] |
ViewPager.java | [all...] |
/frameworks/base/include/ui/ |
Input.h | 387 inline const PointerProperties* getPointerProperties(size_t pointerIndex) const { 388 return &mPointerProperties[pointerIndex]; 391 inline int32_t getPointerId(size_t pointerIndex) const { 392 return mPointerProperties[pointerIndex].id; 395 inline int32_t getToolType(size_t pointerIndex) const { 396 return mPointerProperties[pointerIndex].toolType; 401 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 403 float getRawAxisValue(int32_t axis, size_t pointerIndex) const; 405 inline float getRawX(size_t pointerIndex) const { 406 return getRawAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); [all...] |
/frameworks/base/core/jni/ |
android_view_MotionEvent.cpp | 155 static bool validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) { 156 if (pointerIndex < 0 || size_t(pointerIndex) >= pointerCount) { 158 "pointerIndex out of range"); 553 jint nativePtr, jint pointerIndex) { 556 if (!validatePointerIndex(env, pointerIndex, pointerCount)) { 559 return event->getPointerId(pointerIndex); 563 jint nativePtr, jint pointerIndex) { 566 if (!validatePointerIndex(env, pointerIndex, pointerCount)) { 569 return event->getToolType(pointerIndex); [all...] |
/frameworks/base/services/java/com/android/server/accessibility/ |
TouchExplorer.java | 251 final int pointerIndex = event.findPointerIndex(pointerId); 262 - event.getX(pointerIndex); 264 - event.getY(pointerIndex); 294 final float deltaX = mLastTouchExploreEvent.getX(pointerIndex) 295 - event.getX(pointerIndex); 296 final float deltaY = mLastTouchExploreEvent.getY(pointerIndex) 297 - event.getY(pointerIndex); 395 final int pointerIndex = event.findPointerIndex(pointerId); 396 final float deltaX = mLastTouchExploreEvent.getX(pointerIndex) 397 - event.getX(pointerIndex); [all...] |
/development/samples/CrossCompatibility/src/com/example/android/touchexample/ |
VersionedGestureDetector.java | 122 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 124 final int pointerId = ev.getPointerId(pointerIndex); 128 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
FBOSyncView.java | 116 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 118 final int pointerId = ev.getPointerId(pointerIndex); 122 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
FBOTestView.java | 116 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 118 final int pointerId = ev.getPointerId(pointerIndex); 122 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
ShadersTestView.java | 110 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 112 final int pointerId = ev.getPointerId(pointerIndex); 116 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/frameworks/base/core/java/android/view/ |
MotionEvent.java | [all...] |
ScaleGestureDetector.java | 514 private static float getRawX(MotionEvent event, int pointerIndex) { 515 if (pointerIndex < 0) return Float.MIN_VALUE; 516 if (pointerIndex == 0) return event.getRawX(); 518 return event.getX(pointerIndex) + offset; 524 private static float getRawY(MotionEvent event, int pointerIndex) { 525 if (pointerIndex < 0) return Float.MIN_VALUE; 526 if (pointerIndex == 0) return event.getRawY(); 528 return event.getY(pointerIndex) + offset;
|
/development/samples/RenderScript/Balls/src/com/example/android/rs/balls/ |
BallsView.java | 82 int pointerIndex = ev.getActionIndex(); 83 int pointerId = ev.getPointerId(pointerIndex);
|
/development/samples/RenderScript/Fountain/src/com/example/android/rs/fountain/ |
FountainView.java | 84 int pointerIndex = ev.getActionIndex(); 85 int pointerId = ev.getPointerId(pointerIndex);
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
SimpleModelView.java | 143 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 145 final int pointerId = ev.getPointerId(pointerIndex); 149 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewWithDraggableItems.java | 131 final int pointerIndex = ev.findPointerIndex(mActivePointerId); 132 final float x = ev.getX(pointerIndex); 133 final float y = ev.getY(pointerIndex);
|
PagedView.java | [all...] |
/frameworks/base/libs/ui/ |
Input.cpp | 459 const PointerCoords* MotionEvent::getRawPointerCoords(size_t pointerIndex) const { 460 return &mSamplePointerCoords[getHistorySize() * getPointerCount() + pointerIndex]; 463 float MotionEvent::getRawAxisValue(int32_t axis, size_t pointerIndex) const { 464 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); 467 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { 468 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); 479 size_t pointerIndex, size_t historicalIndex) const { 480 return &mSamplePointerCoords[historicalIndex * getPointerCount() + pointerIndex]; 483 float MotionEvent::getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, 485 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis) [all...] |
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
LiveWallpaperPreview.java | 212 int pointerIndex = ev.getActionIndex(); 215 (int) ev.getX(pointerIndex), (int) ev.getY(pointerIndex), 0, null);
|
/frameworks/base/core/java/android/widget/ |
StackView.java | 622 int pointerIndex = ev.findPointerIndex(mActivePointerId); 623 if (pointerIndex == INVALID_POINTER) { 628 float newY = ev.getY(pointerIndex); 704 int pointerIndex = ev.findPointerIndex(mActivePointerId); 705 if (pointerIndex == INVALID_POINTER) { 711 float newY = ev.getY(pointerIndex); 712 float newX = ev.getX(pointerIndex); 802 int pointerIndex = ev.findPointerIndex(mActivePointerId); 803 float newY = ev.getY(pointerIndex); [all...] |
HorizontalScrollView.java | 462 final int pointerIndex = ev.findPointerIndex(activePointerId); 463 final float x = ev.getX(pointerIndex); 649 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> 651 final int pointerId = ev.getPointerId(pointerIndex); 656 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; [all...] |
ScrollView.java | 474 final int pointerIndex = ev.findPointerIndex(activePointerId); 475 final float y = ev.getY(pointerIndex); 659 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> 661 final int pointerId = ev.getPointerId(pointerIndex); 666 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
LatinKeyboardView.java | 170 final int pointerIndex = firstDown.getActionIndex(); 171 final int id = firstDown.getPointerId(pointerIndex); 188 final int pointerIndex = secondDown.getActionIndex(); 189 final int id = secondDown.getPointerId(pointerIndex);
|
/packages/apps/Browser/src/com/android/browser/view/ |
ScrollerView.java | 531 final int pointerIndex = ev.findPointerIndex(activePointerId); 532 final float y = mHorizontal ? ev.getX(pointerIndex) : ev 533 .getY(pointerIndex); 545 final float ocoord = mHorizontal ? ev.getY(pointerIndex) : ev 546 .getX(pointerIndex); 788 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> 790 final int pointerId = ev.getPointerId(pointerIndex); 795 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; [all...] |
/frameworks/base/services/input/ |
InputReader.h | 683 inline bool isHovering(uint32_t pointerIndex) { 684 return pointers[pointerIndex].isHovering; 701 inline bool isHovering(uint32_t pointerIndex) { 702 return hoveringIdBits.hasBit(pointerProperties[pointerIndex].id); [all...] |