HomeSort by relevance Sort by last modified time
    Searched refs:pointerIndex (Results 1 - 25 of 59) sorted by null

1 2 3

  /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/base/include/androidfw/
Input.h 366 inline const PointerProperties* getPointerProperties(size_t pointerIndex) const {
367 return &mPointerProperties[pointerIndex];
370 inline int32_t getPointerId(size_t pointerIndex) const {
371 return mPointerProperties[pointerIndex].id;
374 inline int32_t getToolType(size_t pointerIndex) const {
375 return mPointerProperties[pointerIndex].toolType;
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 {
385 return getRawAxisValue(AMOTION_EVENT_AXIS_X, 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));
TouchExplorer.java 467 final int pointerIndex = event.findPointerIndex(pointerId);
485 - rawEvent.getX(pointerIndex);
487 - rawEvent.getY(pointerIndex);
528 - rawEvent.getX(pointerIndex);
531 - rawEvent.getY(pointerIndex);
565 - rawEvent.getX(pointerIndex);
567 - rawEvent.getY(pointerIndex);
    [all...]
  /frameworks/ex/photoviewer/src/com/android/ex/photo/
PhotoViewPager.java 138 final int pointerIndex =
140 final float x = MotionEventCompat.getX(ev, pointerIndex);
167 final int pointerIndex = MotionEventCompat.getActionIndex(ev);
168 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex);
171 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
  /frameworks/opt/photoviewer/src/com/android/ex/photo/
PhotoViewPager.java 138 final int pointerIndex =
140 final float x = MotionEventCompat.getX(ev, pointerIndex);
167 final int pointerIndex = MotionEventCompat.getActionIndex(ev);
168 final int pointerId = MotionEventCompat.getPointerId(ev, pointerIndex);
171 final int newPointerIndex = pointerIndex == 0 ? 1 : 0;
  /frameworks/base/core/java/android/view/
MotionEvent.java     [all...]
  /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/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);
  /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");
554 jint nativePtr, jint pointerIndex) {
557 if (!validatePointerIndex(env, pointerIndex, pointerCount)) {
560 return event->getPointerId(pointerIndex);
564 jint nativePtr, jint pointerIndex) {
567 if (!validatePointerIndex(env, pointerIndex, pointerCount)) {
570 return event->getToolType(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/libs/androidfw/
Input.cpp 352 const PointerCoords* MotionEvent::getRawPointerCoords(size_t pointerIndex) const {
353 return &mSamplePointerCoords[getHistorySize() * getPointerCount() + pointerIndex];
356 float MotionEvent::getRawAxisValue(int32_t axis, size_t pointerIndex) const {
357 return getRawPointerCoords(pointerIndex)->getAxisValue(axis);
360 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const {
361 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis);
372 size_t pointerIndex, size_t historicalIndex) const {
373 return &mSamplePointerCoords[historicalIndex * getPointerCount() + pointerIndex];
376 float MotionEvent::getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex,
378 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis)
    [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/base/tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/
BallsView.java 82 int pointerIndex = ev.getActionIndex();
83 int pointerId = ev.getPointerId(pointerIndex);
  /frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
FountainView.java 84 int pointerIndex = ev.getActionIndex();
85 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);
  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/
Field.java 210 int pointerIndex = nameBuilder.indexOf("*");
211 while (pointerIndex >= 0) {
213 nameBuilder.deleteCharAt(pointerIndex);
214 pointerIndex = nameBuilder.indexOf("*");
  /packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
LiveWallpaperPreview.java 216 int pointerIndex = ev.getActionIndex();
219 (int) ev.getX(pointerIndex), (int) ev.getY(pointerIndex), 0, null);
  /frameworks/base/core/java/android/widget/
StackView.java 625 int pointerIndex = ev.findPointerIndex(mActivePointerId);
626 if (pointerIndex == INVALID_POINTER) {
631 float newY = ev.getY(pointerIndex);
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);
    [all...]

Completed in 835 milliseconds

1 2 3