/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 | 209 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in PublishAndConsumeMotionEvent() 211 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in PublishAndConsumeMotionEvent() 213 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset, in PublishAndConsumeMotionEvent() 215 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent() 217 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in PublishAndConsumeMotionEvent() 219 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in PublishAndConsumeMotionEvent() 221 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in PublishAndConsumeMotionEvent() 223 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in PublishAndConsumeMotionEvent() 225 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in PublishAndConsumeMotionEvent() 227 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in PublishAndConsumeMotionEvent() [all …]
|
/frameworks/native/include/input/ |
D | Input.h | 237 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/support/compat/java/android/support/v4/view/ |
D | MotionEventCompat.java | 569 public static float getAxisValue(MotionEvent event, int axis) { in getAxisValue() method in MotionEventCompat 570 return event.getAxisValue(axis); in getAxisValue() 589 public static float getAxisValue(MotionEvent event, int axis, int pointerIndex) { in getAxisValue() method in MotionEventCompat 590 return event.getAxisValue(axis, pointerIndex); in getAxisValue()
|
/frameworks/native/libs/input/ |
D | Input.cpp | 91 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()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 409 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT)); in onDraw() 510 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords() 512 .append(" Distance=").append(coords.getAxisValue(MotionEvent.AXIS_DISTANCE), 1) in logCoords() 513 .append(" VScroll=").append(coords.getAxisValue(MotionEvent.AXIS_VSCROLL), 1) in logCoords() 514 .append(" HScroll=").append(coords.getAxisValue(MotionEvent.AXIS_HSCROLL), 1) in logCoords() 516 .append(event.getAxisValue(MotionEvent.AXIS_GENERIC_1), 3) in logCoords() 517 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_2), 3).append(")") in logCoords() 518 .append(", (").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_3), 3) in logCoords() 519 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_4), 3) in logCoords() 619 ps.mBoundingLeft = event.getAxisValue(MotionEvent.AXIS_GENERIC_1, i); in onPointerEvent() [all …]
|
D | RecyclerView.java | 2912 vScroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 2917 hScroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
|
/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/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/base/libs/input/ |
D | PointerController.cpp | 301 c.getAxisValue(AMOTION_EVENT_AXIS_X), in setSpots() 302 c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots() 303 c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE)); in setSpots() 315 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 in setSpots() 317 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots() 318 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y); in setSpots()
|
/frameworks/native/services/inputflinger/ |
D | InputDispatcher.cpp | 448 getAxisValue(AMOTION_EVENT_AXIS_X)); in enqueueInboundEventLocked() 450 getAxisValue(AMOTION_EVENT_AXIS_Y)); in enqueueInboundEventLocked() 905 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetailsLocked() 906 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetailsLocked() 907 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetailsLocked() 908 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetailsLocked() 909 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetailsLocked() 910 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetailsLocked() 911 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetailsLocked() 912 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetailsLocked() [all …]
|
D | InputReader.cpp | 3211 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in dump() 3212 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in dump() 3213 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in dump() 3214 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in dump() 3215 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in dump() 3216 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), in dump() 3217 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TILT), in dump() 3218 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), in dump() 4525 pressure = coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE); in applyExternalStylusTouchState() 6191 coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures() [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/tests/ |
D | InputReader_test.cpp | 1637 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), 1); in assertPointerCoords() 1638 ASSERT_NEAR(y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y), 1); in assertPointerCoords() 1639 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords() 1640 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords() 1641 ASSERT_NEAR(touchMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), 1); in assertPointerCoords() 1642 ASSERT_NEAR(touchMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), 1); in assertPointerCoords() 1643 ASSERT_NEAR(toolMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), 1); in assertPointerCoords() 1644 ASSERT_NEAR(toolMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), 1); in assertPointerCoords() 1645 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords() 1646 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords() [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/widget/ |
D | HorizontalScrollView.java | 736 axisValue = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 738 axisValue = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent() 741 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
|
D | ScrollView.java | 794 axisValue = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 796 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
|
D | StackView.java | 588 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
|
D | AbsListView.java | 4214 axisValue = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 4216 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 2135 public final float getAxisValue(int axis) { in getAxisValue() method in MotionEvent 2345 public final float getAxisValue(int axis, int pointerIndex) { in getAxisValue() method in MotionEvent 3635 public float getAxisValue(int axis) { in getAxisValue() method in MotionEvent.PointerCoords
|
D | ViewRootImpl.java | 5324 event.getAxisValue(MotionEvent.AXIS_HAT_X)); 5330 event.getAxisValue(MotionEvent.AXIS_HAT_Y));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskStackViewTouchHandler.java | 431 float vScroll = ev.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | NestedScrollView.java | 928 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 3077 vScroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 3082 hScroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent() 3087 final float axisScroll = event.getAxisValue(MotionEventCompat.AXIS_SCROLL); in onGenericMotionEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | NotificationStackScrollLayout.java | 1382 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
|