Home
last modified time | relevance | path

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

12

/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.cpp212 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in PublishAndConsumeMotionEvent()
214 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in PublishAndConsumeMotionEvent()
216 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset, in PublishAndConsumeMotionEvent()
218 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent()
220 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in PublishAndConsumeMotionEvent()
222 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in PublishAndConsumeMotionEvent()
224 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in PublishAndConsumeMotionEvent()
226 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in PublishAndConsumeMotionEvent()
228 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in PublishAndConsumeMotionEvent()
230 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in PublishAndConsumeMotionEvent()
[all …]
/frameworks/native/include/input/
DInput.h270 float getAxisValue(int32_t axis) const;
282 return getAxisValue(AMOTION_EVENT_AXIS_X); in getX()
286 return getAxisValue(AMOTION_EVENT_AXIS_Y); in getY()
494 float getAxisValue(int32_t axis, size_t pointerIndex) const;
497 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getX()
501 return getAxisValue(AMOTION_EVENT_AXIS_Y, pointerIndex); in getY()
505 return getAxisValue(AMOTION_EVENT_AXIS_PRESSURE, pointerIndex); in getPressure()
509 return getAxisValue(AMOTION_EVENT_AXIS_SIZE, pointerIndex); in getSize()
513 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, pointerIndex); in getTouchMajor()
517 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, pointerIndex); in getTouchMinor()
[all …]
/frameworks/native/libs/input/
DInput.cpp105 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue() function in android::PointerCoords
139 float value = c.getAxisValue(axis); in scaleAxisValue()
320 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getRawAxisValue()
323 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { in getAxisValue() function in android::MotionEvent
324 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getAxisValue()
341 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalRawAxisValue()
346 float value = getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalAxisValue()
438 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X) + oldXOffset; in transform()
439 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y) + oldYOffset; in transform()
444 float orientation = c.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); in transform()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java448 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT)); in onDraw()
549 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords()
551 .append(" Distance=").append(coords.getAxisValue(MotionEvent.AXIS_DISTANCE), 1) in logCoords()
552 .append(" VScroll=").append(coords.getAxisValue(MotionEvent.AXIS_VSCROLL), 1) in logCoords()
553 .append(" HScroll=").append(coords.getAxisValue(MotionEvent.AXIS_HSCROLL), 1) in logCoords()
555 .append(event.getAxisValue(MotionEvent.AXIS_GENERIC_1), 3) in logCoords()
556 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_2), 3).append(")") in logCoords()
557 .append(", (").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_3), 3) in logCoords()
558 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_4), 3) in logCoords()
658 ps.mBoundingLeft = event.getAxisValue(MotionEvent.AXIS_GENERIC_1, i); in onPointerEvent()
[all …]
DRecyclerView.java2913 vScroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
2918 hScroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DBasicGLSurfaceView.java66 float x = event.getAxisValue(MotionEvent.AXIS_X); in onGenericMotionEvent()
67 float y = event.getAxisValue(MotionEvent.AXIS_Y); in onGenericMotionEvent()
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp65 ASSERT_EQ(0.5, motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST()
75 motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST()
DInputReader_test.cpp1878 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), 1); in assertPointerCoords()
1879 ASSERT_NEAR(y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y), 1); in assertPointerCoords()
1880 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords()
1881 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords()
1882 ASSERT_NEAR(touchMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), 1); in assertPointerCoords()
1883 ASSERT_NEAR(touchMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), 1); in assertPointerCoords()
1884 ASSERT_NEAR(toolMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), 1); in assertPointerCoords()
1885 ASSERT_NEAR(toolMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), 1); in assertPointerCoords()
1886 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords()
1887 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords()
[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.cpp285 c.getAxisValue(AMOTION_EVENT_AXIS_X), in setSpots()
286 c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots()
287 c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in setSpots()
310 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 in setSpots()
312 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots()
313 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y); in setSpots()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp462 int32_t(motionEntry->pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in enqueueInboundEventLocked()
464 int32_t(motionEntry->pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y)); in enqueueInboundEventLocked()
982 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetails()
983 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetails()
984 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetails()
985 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetails()
986 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetails()
987 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetails()
988 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetails()
989 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetails()
[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/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp298 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in dump()
299 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in dump()
300 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in dump()
301 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in dump()
302 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in dump()
303 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), in dump()
304 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TILT), in dump()
305 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), in dump()
1668 pressure = coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE); in applyExternalStylusTouchState()
3324 id, index, properties.toolType, coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures()
[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.java2301 public final float getAxisValue(int axis) { in getAxisValue() method in MotionEvent
2511 public final float getAxisValue(int axis, int pointerIndex) { in getAxisValue() method in MotionEvent
3889 public float getAxisValue(int axis) { in getAxisValue() method in MotionEvent.PointerCoords
DViewRootImpl.java6211 event.getAxisValue(MotionEvent.AXIS_X));
6213 event.getAxisValue(MotionEvent.AXIS_Y));
6215 event.getAxisValue(MotionEvent.AXIS_HAT_X));
6217 event.getAxisValue(MotionEvent.AXIS_HAT_Y));
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java834 axisValue = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
836 axisValue = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
839 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
DScrollView.java900 axisValue = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
902 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
DStackView.java589 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
DAbsListView.java4292 axisValue = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
4294 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackViewTouchHandler.java422 float vScroll = ev.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java3734 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt32895 method public final float getAxisValue(int);
32896 method public final float getAxisValue(int, int);
33059 method public float getAxisValue(int);
/frameworks/base/non-updatable-api/
Dcurrent.txt50926 method public float getAxisValue(int);
50927 method public float getAxisValue(int, int);
51104 method public float getAxisValue(int);

12