Home
last modified time | relevance | path

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

12

/frameworks/base/libs/androidfw/tests/
DInputEvent_test.cpp50 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
52 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
60 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
62 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
71 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
73 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
75 ASSERT_EQ(0, coords.getAxisValue(2)) in TEST_F()
77 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
87 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
89 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
[all …]
DInputPublisherAndConsumer_test.cpp204 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in PublishAndConsumeMotionEvent()
206 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in PublishAndConsumeMotionEvent()
208 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset, in PublishAndConsumeMotionEvent()
210 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent()
212 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in PublishAndConsumeMotionEvent()
214 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in PublishAndConsumeMotionEvent()
216 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in PublishAndConsumeMotionEvent()
218 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in PublishAndConsumeMotionEvent()
220 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in PublishAndConsumeMotionEvent()
222 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in PublishAndConsumeMotionEvent()
[all …]
/frameworks/base/include/androidfw/
DInput.h175 float getAxisValue(int32_t axis) const;
181 return getAxisValue(AMOTION_EVENT_AXIS_X); in getX()
185 return getAxisValue(AMOTION_EVENT_AXIS_Y); in getY()
383 float getAxisValue(int32_t axis, size_t pointerIndex) const;
386 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getX()
390 return getAxisValue(AMOTION_EVENT_AXIS_Y, pointerIndex); in getY()
394 return getAxisValue(AMOTION_EVENT_AXIS_PRESSURE, pointerIndex); in getPressure()
398 return getAxisValue(AMOTION_EVENT_AXIS_SIZE, pointerIndex); in getSize()
402 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, pointerIndex); in getTouchMajor()
406 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, pointerIndex); in getTouchMinor()
[all …]
/frameworks/base/libs/androidfw/
DInput.cpp158 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue() function in android::PointerCoords
197 float value = c.getAxisValue(axis); in scaleAxisValue()
357 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getRawAxisValue()
360 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { in getAxisValue() function in android::MotionEvent
361 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getAxisValue()
378 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalRawAxisValue()
383 float value = getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalAxisValue()
463 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X) + oldXOffset; in transform()
464 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y) + oldYOffset; in transform()
469 float orientation = c.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); in transform()
DInputTransport.cpp655 resampleCoords.getAxisValue(AMOTION_EVENT_AXIS_X), in rewriteMessage()
656 resampleCoords.getAxisValue(AMOTION_EVENT_AXIS_Y), in rewriteMessage()
657 msgCoords.getAxisValue(AMOTION_EVENT_AXIS_X), in rewriteMessage()
658 msgCoords.getAxisValue(AMOTION_EVENT_AXIS_Y)); in rewriteMessage()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp260 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset); in pointerCoordsFromNative()
262 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset); in pointerCoordsFromNative()
264 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_PRESSURE)); in pointerCoordsFromNative()
266 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in pointerCoordsFromNative()
268 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR)); in pointerCoordsFromNative()
270 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR)); in pointerCoordsFromNative()
272 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR)); in pointerCoordsFromNative()
274 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR)); in pointerCoordsFromNative()
276 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION)); in pointerCoordsFromNative()
309 outValues[index++] = rawPointerCoords->getAxisValue(axis); in pointerCoordsFromNative()
[all …]
/frameworks/base/services/input/
DPointerController.cpp252 c.getAxisValue(AMOTION_EVENT_AXIS_X), in setSpots()
253 c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots()
254 c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE)); in setSpots()
266 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 in setSpots()
268 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots()
269 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y); in setSpots()
DInputDispatcher.cpp427 getAxisValue(AMOTION_EVENT_AXIS_X)); in enqueueInboundEventLocked()
429 getAxisValue(AMOTION_EVENT_AXIS_Y)); in enqueueInboundEventLocked()
862 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetailsLocked()
863 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetailsLocked()
864 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetailsLocked()
865 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetailsLocked()
866 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetailsLocked()
867 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetailsLocked()
868 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetailsLocked()
869 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetailsLocked()
[all …]
DInputReader.cpp2661 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in dump()
2662 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in dump()
2663 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in dump()
2664 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in dump()
2665 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in dump()
2666 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), in dump()
2667 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TILT), in dump()
2668 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), in dump()
5146 coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures()
5147 coords.getAxisValue(AMOTION_EVENT_AXIS_Y), 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/core/java/com/android/internal/widget/
DPointerLocationView.java386 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT)); in onDraw()
481 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords()
483 .append(" Distance=").append(coords.getAxisValue(MotionEvent.AXIS_DISTANCE), 1) in logCoords()
484 .append(" VScroll=").append(coords.getAxisValue(MotionEvent.AXIS_VSCROLL), 1) in logCoords()
485 .append(" HScroll=").append(coords.getAxisValue(MotionEvent.AXIS_HSCROLL), 1) in logCoords()
/frameworks/base/docs/html/sdk/api_diff/12/
DmissingSinces.txt30 NO DOC BLOCK: android.view.MotionEvent Method getAxisValue(int)
31 NO DOC BLOCK: android.view.MotionEvent Method getAxisValue(int, int)
32 NO DOC BLOCK: android.view.MotionEvent.PointerCoords Method getAxisValue(int)
/frameworks/base/services/input/tests/
DInputReader_test.cpp1425 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), 1); in assertPointerCoords()
1426 ASSERT_NEAR(y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y), 1); in assertPointerCoords()
1427 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords()
1428 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords()
1429 ASSERT_NEAR(touchMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), 1); in assertPointerCoords()
1430 ASSERT_NEAR(touchMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), 1); in assertPointerCoords()
1431 ASSERT_NEAR(toolMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), 1); in assertPointerCoords()
1432 ASSERT_NEAR(toolMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), 1); in assertPointerCoords()
1433 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords()
1434 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords()
[all …]
/frameworks/base/native/android/
Dinput.cpp184 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index); in AMotionEvent_getAxisValue()
/frameworks/base/core/java/android/view/
DMotionEvent.java1913 public final float getAxisValue(int axis) { in getAxisValue() method in MotionEvent
2125 public final float getAxisValue(int axis, int pointerIndex) { in getAxisValue() method in MotionEvent
3352 public float getAxisValue(int axis) { in getAxisValue() method in MotionEvent.PointerCoords
DViewRootImpl.java3360 int xDirection = joystickAxisValueToDirection(event.getAxisValue(MotionEvent.AXIS_HAT_X)); in updateJoystickDirection()
3365 int yDirection = joystickAxisValueToDirection(event.getAxisValue(MotionEvent.AXIS_HAT_Y)); in updateJoystickDirection()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java686 hscroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
688 hscroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
DScrollView.java707 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
DStackView.java582 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
DAbsListView.java3743 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
/frameworks/base/docs/html/about/versions/
Dandroid-3.1.jd266 sample using {@link android.view.MotionEvent#getAxisValue(int) getAxisValue()}.
270 instead of calling {@link android.view.MotionEvent#getAxisValue(int)
271 getAxisValue()}, applications can call {@link android.view.MotionEvent#getX(int)
Dandroid-4.0.jd1527 android.view.MotionEvent#getAxisValue getAxisValue()} with the axis codes {@link
/frameworks/base/core/java/android/webkit/
DWebViewClassic.java6360 hscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
6362 vscroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
6363 hscroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
/frameworks/base/api/
D14.txt22426 method public final float getAxisValue(int);
22427 method public final float getAxisValue(int, int);
22589 method public float getAxisValue(int);
D15.txt22572 method public final float getAxisValue(int);
22573 method public final float getAxisValue(int, int);
22735 method public float getAxisValue(int);

12