/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 49 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 …]
|
D | InputPublisherAndConsumer_test.cpp | 212 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/ |
D | Input.h | 270 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/ |
D | Input.cpp | 105 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/ |
D | PointerLocationView.java | 448 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 …]
|
D | RecyclerView.java | 2913 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/ |
D | BasicGLSurfaceView.java | 66 float x = event.getAxisValue(MotionEvent.AXIS_X); in onGenericMotionEvent() 67 float y = event.getAxisValue(MotionEvent.AXIS_Y); in onGenericMotionEvent()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputClassifierConverter_test.cpp | 65 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()
|
D | InputReader_test.cpp | 1878 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/ |
D | android_view_MotionEvent.cpp | 261 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/ |
D | PointerController.cpp | 285 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/ |
D | InputDispatcher.cpp | 462 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/ |
D | BaseMovementMethod.java | 101 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/ |
D | TouchInputMapper.cpp | 298 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/ |
D | input.cpp | 187 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index); in AMotionEvent_getAxisValue()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 2301 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
|
D | ViewRootImpl.java | 6211 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/ |
D | HorizontalScrollView.java | 834 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()
|
D | ScrollView.java | 900 axisValue = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 902 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
|
D | StackView.java | 589 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
|
D | AbsListView.java | 4292 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/ |
D | TaskStackViewTouchHandler.java | 422 float vScroll = ev.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayout.java | 3734 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL);
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 32895 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/ |
D | current.txt | 50926 method public float getAxisValue(int); 50927 method public float getAxisValue(int, int); 51104 method public float getAxisValue(int);
|