Home
last modified time | relevance | path

Searched refs:getAxisValue (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/support/v4/java/android/support/v4/view/
DMotionEventCompat.java37 float getAxisValue(MotionEvent event, int axis); in getAxisValue() method
38 float getAxisValue(MotionEvent event, int axis, int pointerIndex); in getAxisValue() method
87 public float getAxisValue(MotionEvent event, int axis) { in getAxisValue() method in MotionEventCompat.BaseMotionEventVersionImpl
92 public float getAxisValue(MotionEvent event, int axis, int pointerIndex) { in getAxisValue() method in MotionEventCompat.BaseMotionEventVersionImpl
144 public float getAxisValue(MotionEvent event, int axis) { in getAxisValue() method in MotionEventCompat.HoneycombMr1MotionEventVersionImpl
145 return MotionEventCompatHoneycombMr1.getAxisValue(event, axis); in getAxisValue()
149 public float getAxisValue(MotionEvent event, int axis, int pointerIndex) { in getAxisValue() method in MotionEventCompat.HoneycombMr1MotionEventVersionImpl
150 return MotionEventCompatHoneycombMr1.getAxisValue(event, axis, pointerIndex); in getAxisValue()
543 public static float getAxisValue(MotionEvent event, int axis) { in getAxisValue() method in MotionEventCompat
544 return IMPL.getAxisValue(event, axis); in getAxisValue()
[all …]
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp49 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
51 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
59 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
61 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
70 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
72 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
74 ASSERT_EQ(0, coords.getAxisValue(2)) in TEST_F()
76 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
86 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
88 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
[all …]
DInputPublisherAndConsumer_test.cpp206 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in PublishAndConsumeMotionEvent()
208 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in PublishAndConsumeMotionEvent()
210 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset, in PublishAndConsumeMotionEvent()
212 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent()
214 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in PublishAndConsumeMotionEvent()
216 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in PublishAndConsumeMotionEvent()
218 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in PublishAndConsumeMotionEvent()
220 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in PublishAndConsumeMotionEvent()
222 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in PublishAndConsumeMotionEvent()
224 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in PublishAndConsumeMotionEvent()
[all …]
/frameworks/support/v4/honeycomb_mr1/android/support/v4/view/
DMotionEventCompatHoneycombMr1.java25 static float getAxisValue(MotionEvent event, int axis) { in getAxisValue() method in MotionEventCompatHoneycombMr1
26 return event.getAxisValue(axis); in getAxisValue()
29 static float getAxisValue(MotionEvent event, int axis, int pointerIndex) { in getAxisValue() method in MotionEventCompatHoneycombMr1
30 return event.getAxisValue(axis, pointerIndex); in getAxisValue()
/frameworks/native/include/input/
DInput.h237 float getAxisValue(int32_t axis) const;
244 return getAxisValue(AMOTION_EVENT_AXIS_X); in getX()
248 return getAxisValue(AMOTION_EVENT_AXIS_Y); in getY()
447 float getAxisValue(int32_t axis, size_t pointerIndex) const;
450 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getX()
454 return getAxisValue(AMOTION_EVENT_AXIS_Y, pointerIndex); in getY()
458 return getAxisValue(AMOTION_EVENT_AXIS_PRESSURE, pointerIndex); in getPressure()
462 return getAxisValue(AMOTION_EVENT_AXIS_SIZE, pointerIndex); in getSize()
466 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, pointerIndex); in getTouchMajor()
470 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, pointerIndex); in getTouchMinor()
[all …]
/frameworks/native/libs/input/
DInput.cpp91 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue() function in android::PointerCoords
125 float value = c.getAxisValue(axis); in scaleAxisValue()
293 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getRawAxisValue()
296 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { in getAxisValue() function in android::MotionEvent
297 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getAxisValue()
314 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalRawAxisValue()
319 float value = getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalAxisValue()
411 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X) + oldXOffset; in transform()
412 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y) + oldYOffset; in transform()
417 float orientation = c.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); in transform()
DInputTransport.cpp672 resampleCoords.getAxisValue(AMOTION_EVENT_AXIS_X), in rewriteMessage()
673 resampleCoords.getAxisValue(AMOTION_EVENT_AXIS_Y), in rewriteMessage()
674 msgCoords.getAxisValue(AMOTION_EVENT_AXIS_X), in rewriteMessage()
675 msgCoords.getAxisValue(AMOTION_EVENT_AXIS_Y)); in rewriteMessage()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java408 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT)); in onDraw()
509 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords()
511 .append(" Distance=").append(coords.getAxisValue(MotionEvent.AXIS_DISTANCE), 1) in logCoords()
512 .append(" VScroll=").append(coords.getAxisValue(MotionEvent.AXIS_VSCROLL), 1) in logCoords()
513 .append(" HScroll=").append(coords.getAxisValue(MotionEvent.AXIS_HSCROLL), 1) in logCoords()
515 .append(event.getAxisValue(MotionEvent.AXIS_GENERIC_1), 3) in logCoords()
516 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_2), 3).append(")") in logCoords()
517 .append(", (").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_3), 3) in logCoords()
518 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_4), 3) in logCoords()
618 ps.mBoundingLeft = event.getAxisValue(MotionEvent.AXIS_GENERIC_1, i); in onPointerEvent()
[all …]
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp261 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset); in pointerCoordsFromNative()
263 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset); in pointerCoordsFromNative()
265 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_PRESSURE)); in pointerCoordsFromNative()
267 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in pointerCoordsFromNative()
269 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR)); in pointerCoordsFromNative()
271 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR)); in pointerCoordsFromNative()
273 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR)); in pointerCoordsFromNative()
275 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR)); in pointerCoordsFromNative()
277 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION)); in pointerCoordsFromNative()
305 outValues[index++] = rawPointerCoords->getAxisValue(axis); in pointerCoordsFromNative()
[all …]
/frameworks/base/libs/input/
DPointerController.cpp277 c.getAxisValue(AMOTION_EVENT_AXIS_X), in setSpots()
278 c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots()
279 c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE)); in setSpots()
291 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 in setSpots()
293 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots()
294 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y); in setSpots()
/frameworks/native/services/inputflinger/
DInputDispatcher.cpp448 getAxisValue(AMOTION_EVENT_AXIS_X)); in enqueueInboundEventLocked()
450 getAxisValue(AMOTION_EVENT_AXIS_Y)); in enqueueInboundEventLocked()
908 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetailsLocked()
909 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetailsLocked()
910 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetailsLocked()
911 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetailsLocked()
912 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetailsLocked()
913 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetailsLocked()
914 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetailsLocked()
915 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetailsLocked()
[all …]
DInputReader.cpp3000 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in dump()
3001 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in dump()
3002 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in dump()
3003 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in dump()
3004 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in dump()
3005 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), in dump()
3006 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TILT), in dump()
3007 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), in dump()
4280 pressure = coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE); in applyExternalStylusTouchState()
5960 coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures()
[all …]
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java101 hscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
103 vscroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
104 hscroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
/frameworks/base/docs/html/training/game-controllers/
Dcontroller-input.jd99 calling {@link android.view.MotionEvent#getAxisValue(int) getAxisValue()}.
393 float xaxis = motionEvent.getAxisValue(MotionEvent.AXIS_HAT_X);
394 float yaxis = motionEvent.getAxisValue(MotionEvent.AXIS_HAT_Y);
502 {@link android.view.MotionEvent#getAxisValue(int)
503 getAxisValue()} or {@link android.view.MotionEvent#getHistoricalAxisValue(int,
563 historyPos < 0 ? event.getAxisValue(axis):
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1468 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), 1); in assertPointerCoords()
1469 ASSERT_NEAR(y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y), 1); in assertPointerCoords()
1470 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords()
1471 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords()
1472 ASSERT_NEAR(touchMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), 1); in assertPointerCoords()
1473 ASSERT_NEAR(touchMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), 1); in assertPointerCoords()
1474 ASSERT_NEAR(toolMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), 1); in assertPointerCoords()
1475 ASSERT_NEAR(toolMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), 1); in assertPointerCoords()
1476 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords()
1477 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords()
[all …]
/frameworks/base/native/android/
Dinput.cpp187 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index); in AMotionEvent_getAxisValue()
/frameworks/base/core/java/android/view/
DMotionEvent.java2056 public final float getAxisValue(int axis) { in getAxisValue() method in MotionEvent
2266 public final float getAxisValue(int axis, int pointerIndex) { in getAxisValue() method in MotionEvent
3554 public float getAxisValue(int axis) { in getAxisValue() method in MotionEvent.PointerCoords
DViewRootImpl.java4935 event.getAxisValue(MotionEvent.AXIS_HAT_X));
4941 event.getAxisValue(MotionEvent.AXIS_HAT_Y));
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java728 hscroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
730 hscroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
DScrollView.java784 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
DStackView.java588 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java421 float vScroll = ev.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
/frameworks/base/docs/html/about/versions/
Dandroid-3.1.jd268 sample using {@link android.view.MotionEvent#getAxisValue(int) getAxisValue()}.
272 instead of calling {@link android.view.MotionEvent#getAxisValue(int)
273 getAxisValue()}, applications can call {@link android.view.MotionEvent#getX(int)
/frameworks/support/v4/java/android/support/v4/widget/
DNestedScrollView.java902 final float vscroll = MotionEventCompat.getAxisValue(event, in onGenericMotionEvent()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java2728 .getAxisValue(event, MotionEventCompat.AXIS_VSCROLL); in onGenericMotionEvent()
2734 .getAxisValue(event, MotionEventCompat.AXIS_HSCROLL); in onGenericMotionEvent()

12