/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 | 31 public int getPointerId(MotionEvent event, int pointerIndex); 32 public float getX(MotionEvent event, int pointerIndex); 33 public float getY(MotionEvent event, int pointerIndex); 50 public int getPointerId(MotionEvent event, int pointerIndex) { 51 if (pointerIndex == 0) { 58 public float getX(MotionEvent event, int pointerIndex) { 59 if (pointerIndex == 0) { 65 public float getY(MotionEvent event, int pointerIndex) { 66 if (pointerIndex == 0) { 86 public int getPointerId(MotionEvent event, int pointerIndex) { [all...] |
/frameworks/native/include/input/ |
Input.h | 384 inline const PointerProperties* getPointerProperties(size_t pointerIndex) const { 385 return &mPointerProperties[pointerIndex]; 388 inline int32_t getPointerId(size_t pointerIndex) const { 389 return mPointerProperties[pointerIndex].id; 392 inline int32_t getToolType(size_t pointerIndex) const { 393 return mPointerProperties[pointerIndex].toolType; 398 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 400 float getRawAxisValue(int32_t axis, size_t pointerIndex) const; 402 inline float getRawX(size_t pointerIndex) const { 403 return getRawAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMotionEvent.java | 27 private int pointerIndex; 54 return action | (pointerIndex << MotionEvent.ACTION_POINTER_ID_SHIFT); 78 public final float getX(int pointerIndex) { 79 return x[pointerIndex]; 83 public final float getY(int pointerIndex) { 84 return y[pointerIndex]; 126 return pointerIndex; 130 public final float getPressure(int pointerIndex) { 147 public void setPointerIndex(int pointerIndex) { 148 this.pointerIndex = pointerIndex [all...] |
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
TapGestureDetector.java | 128 int pointerIndex = 0; 130 pointerIndex = event.getActionIndex(); 132 int pointerId = event.getPointerId(pointerIndex); 134 new PointF(event.getX(pointerIndex), event.getY(pointerIndex))); 139 int pointerIndex = 0; 141 pointerIndex = event.getActionIndex(); 143 int pointerId = event.getPointerId(pointerIndex);
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
GestureUtils.java | 38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) { 39 return MathUtils.dist(first.getX(pointerIndex), first.getY(pointerIndex), 40 second.getX(pointerIndex), second.getY(pointerIndex));
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
PhotoViewPager.java | 139 final int pointerIndex = 141 final float x = MotionEventCompat.getX(ev, pointerIndex); 168 final int pointerIndex = MotionEventCompat.getActionIndex(ev); 169 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); 172 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/frameworks/base/core/java/android/view/ |
MotionEvent.java | [all...] |
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
TestGenericDetailFragment.java | 140 * @param pointerIndex 142 private void collectStartAction(MotionEvent event, View view, int pointerIndex) { 146 (int)(event.getX(pointerIndex) + offsetInScreen[0]); 148 (int)(event.getY(pointerIndex) + offsetInScreen[1]); 157 * @param pointerIndex 159 private void collectEndAction(MotionEvent event, View view, int pointerIndex) { 163 (int)(event.getX(pointerIndex) + offsetInScreen[0]); 165 (int)(event.getY(pointerIndex) + offsetInScreen[1]);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/ |
TouchPointView.java | 70 int pointerIndex = event.findPointerIndex(pointerId); 72 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex));
|
/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;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewWithDraggableItems.java | 133 final int pointerIndex = ev.findPointerIndex(mActivePointerId); 134 final float x = ev.getX(pointerIndex); 135 final float y = ev.getY(pointerIndex);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
PagedViewWithDraggableItems.java | 133 final int pointerIndex = ev.findPointerIndex(mActivePointerId); 134 final float x = ev.getX(pointerIndex); 135 final float y = ev.getY(pointerIndex);
|
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/ |
FountainFboView.java | 66 int pointerIndex = ev.getActionIndex(); 67 int pointerId = ev.getPointerId(pointerIndex);
|
/frameworks/base/core/jni/ |
android_view_MotionEvent.cpp | 156 static bool validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) { 157 if (pointerIndex < 0 || size_t(pointerIndex) >= pointerCount) { 159 "pointerIndex out of range"); 549 jlong nativePtr, jint pointerIndex) { 552 if (!validatePointerIndex(env, pointerIndex, pointerCount)) { 555 return event->getPointerId(pointerIndex); 559 jlong nativePtr, jint pointerIndex) { 562 if (!validatePointerIndex(env, pointerIndex, pointerCount)) { 565 return event->getToolType(pointerIndex); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
SystemGesturesPointerEventListener.java | 115 private void captureDown(MotionEvent event, int pointerIndex) { 116 final int pointerId = event.getPointerId(pointerIndex); 119 " down pointerIndex=" + pointerIndex + " trackingIndex=" + i); 121 mDownX[i] = event.getX(pointerIndex); 122 mDownY[i] = event.getY(pointerIndex);
|
/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PanelView.java | 222 int pointerIndex = event.findPointerIndex(mTrackingPointer); 223 if (pointerIndex < 0) { 224 pointerIndex = 0; 225 mTrackingPointer = event.getPointerId(pointerIndex); 227 final float y = event.getY(pointerIndex); 228 final float x = event.getX(pointerIndex); 396 int pointerIndex = event.findPointerIndex(mTrackingPointer); 397 if (pointerIndex < 0) { 398 pointerIndex = 0; 399 mTrackingPointer = event.getPointerId(pointerIndex); [all...] |
/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;
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
TestAppView.java | 125 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 127 final int pointerId = ev.getPointerId(pointerIndex); 131 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/frameworks/native/libs/input/ |
Input.cpp | 285 const PointerCoords* MotionEvent::getRawPointerCoords(size_t pointerIndex) const { 286 return &mSamplePointerCoords[getHistorySize() * getPointerCount() + pointerIndex]; 289 float MotionEvent::getRawAxisValue(int32_t axis, size_t pointerIndex) const { 290 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); 293 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { 294 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); 305 size_t pointerIndex, size_t historicalIndex) const { 306 return &mSamplePointerCoords[historicalIndex * getPointerCount() + pointerIndex]; 309 float MotionEvent::getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, 311 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis) [all...] |
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
FountainView.java | 81 int pointerIndex = ev.getActionIndex(); 82 int pointerId = ev.getPointerId(pointerIndex);
|
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
FountainView.java | 81 int pointerIndex = ev.getActionIndex(); 82 int pointerId = ev.getPointerId(pointerIndex);
|