/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/native/include/input/ |
Input.h | 365 inline const PointerProperties* getPointerProperties(size_t pointerIndex) const { 366 return &mPointerProperties[pointerIndex]; 369 inline int32_t getPointerId(size_t pointerIndex) const { 370 return mPointerProperties[pointerIndex].id; 373 inline int32_t getToolType(size_t pointerIndex) const { 374 return mPointerProperties[pointerIndex].toolType; 379 const PointerCoords* getRawPointerCoords(size_t pointerIndex) const; 381 float getRawAxisValue(int32_t axis, size_t pointerIndex) const; 383 inline float getRawX(size_t pointerIndex) const { 384 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...] |
/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/base/services/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));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
JsonUtils.java | 133 for (int pointerIndex = 0; pointerIndex < pointerCount; pointerIndex++) { 136 jsonWriter.value(me.getHistoricalX(pointerIndex, index)); 138 jsonWriter.value(me.getHistoricalY(pointerIndex, index)); 149 for (int pointerIndex = 0; pointerIndex < pointerCount; pointerIndex++) { 152 jsonWriter.value(me.getX(pointerIndex)); 154 jsonWriter.value(me.getY(pointerIndex)); [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]);
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
TapGestureDetector.java | 129 int pointerIndex = 0; 131 pointerIndex = event.getActionIndex(); 133 int pointerId = event.getPointerId(pointerIndex); 135 new PointF(event.getX(pointerIndex), event.getY(pointerIndex))); 140 int pointerIndex = 0; 142 pointerIndex = event.getActionIndex(); 144 int pointerId = event.getPointerId(pointerIndex);
|
/external/jmonkeyengine/engine/src/android/com/jme3/input/android/ |
AndroidInput.java | 228 int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK)
230 int pointerId = event.getPointerId(pointerIndex);
239 touch.set(Type.DOWN, event.getX(pointerIndex), this.getHeight() - event.getY(pointerIndex), 0, 0);
242 touch.setPressure(event.getPressure(pointerIndex));
253 touch.set(Type.UP, event.getX(pointerIndex), this.getHeight() - event.getY(pointerIndex), 0, 0);
256 touch.setPressure(event.getPressure(pointerIndex));
267 Vector2f lastPos = lastPositions.get(pointerIndex);
269 lastPos = new Vector2f(event.getX(pointerIndex), this.getHeight() - event.getY(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/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);
|
/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;
|
/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/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/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/native/libs/input/ |
Input.cpp | 354 const PointerCoords* MotionEvent::getRawPointerCoords(size_t pointerIndex) const { 355 return &mSamplePointerCoords[getHistorySize() * getPointerCount() + pointerIndex]; 358 float MotionEvent::getRawAxisValue(int32_t axis, size_t pointerIndex) const { 359 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); 362 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { 363 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); 374 size_t pointerIndex, size_t historicalIndex) const { 375 return &mSamplePointerCoords[historicalIndex * getPointerCount() + pointerIndex]; 378 float MotionEvent::getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, 380 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis) [all...] |
/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/java/android/view/ |
MotionEvent.java | [all...] |
/frameworks/base/docs/html/training/gestures/ |
scale.jd | 117 final int pointerIndex = MotionEventCompat.getActionIndex(ev); 118 final float x = MotionEventCompat.getX(ev, pointerIndex); 119 final float y = MotionEventCompat.getY(ev, pointerIndex); 131 final int pointerIndex = 134 final float x = MotionEventCompat.getX(ev, pointerIndex); 135 final float y = MotionEventCompat.getY(ev, pointerIndex); 165 final int pointerIndex = MotionEventCompat.getActionIndex(ev); 166 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex); 171 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
|
/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);
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
BallsView.java | 82 int pointerIndex = ev.getActionIndex(); 83 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;
|