/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 56 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F() 58 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F() 66 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F() 68 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F() 77 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F() 79 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F() 81 ASSERT_EQ(0, coords.getAxisValue(2)) in TEST_F() 83 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F() 93 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F() 95 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F() [all …]
|
D | InputPublisherAndConsumer_test.cpp | 256 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), motionEvent->getPressure(i)); in PublishAndConsumeMotionEvent() 257 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_SIZE), motionEvent->getSize(i)); in PublishAndConsumeMotionEvent() 258 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), motionEvent->getTouchMajor(i)); in PublishAndConsumeMotionEvent() 259 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), motionEvent->getTouchMinor(i)); in PublishAndConsumeMotionEvent() 260 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), motionEvent->getToolMajor(i)); in PublishAndConsumeMotionEvent() 261 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), motionEvent->getToolMinor(i)); in PublishAndConsumeMotionEvent() 265 const float unscaledOrientation = pc.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); in PublishAndConsumeMotionEvent()
|
/frameworks/base/libs/input/ |
D | TouchSpotController.cpp | 88 c.getAxisValue(AMOTION_EVENT_AXIS_X), c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots() 89 c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), displayId); in setSpots() 101 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 in setSpots() 104 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots() 105 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y); in setSpots()
|
D | PointerController.cpp | 209 float pressure = spotCoords[index].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE); in setSpots()
|
/frameworks/native/include/input/ |
D | Input.h | 376 float getAxisValue(int32_t axis) const; 387 return getAxisValue(AMOTION_EVENT_AXIS_X); in getX() 391 return getAxisValue(AMOTION_EVENT_AXIS_Y); in getY() 635 float getAxisValue(int32_t axis, size_t pointerIndex) const; 642 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getX() 650 return getAxisValue(AMOTION_EVENT_AXIS_Y, pointerIndex); in getY() 654 return getAxisValue(AMOTION_EVENT_AXIS_PRESSURE, pointerIndex); in getPressure() 658 return getAxisValue(AMOTION_EVENT_AXIS_SIZE, pointerIndex); in getSize() 662 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, pointerIndex); in getTouchMajor() 666 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, pointerIndex); in getTouchMinor() [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/native/services/inputflinger/tests/ |
D | InputClassifierConverter_test.cpp | 67 ASSERT_EQ(0.5, motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST() 77 motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST()
|
D | InputReader_test.cpp | 3082 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), scaledAxisEpsilon); in assertPointerCoords() 3083 ASSERT_NEAR(y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y), scaledAxisEpsilon); in assertPointerCoords() 3084 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords() 3085 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords() 3086 ASSERT_NEAR(touchMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in assertPointerCoords() 3088 ASSERT_NEAR(touchMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in assertPointerCoords() 3090 ASSERT_NEAR(toolMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in assertPointerCoords() 3092 ASSERT_NEAR(toolMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in assertPointerCoords() 3094 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords() 3095 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords() [all …]
|
D | UnwantedInteractionBlocker_test.cpp | 163 args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR)); in assertArgs()
|
/frameworks/native/libs/input/ |
D | Input.cpp | 311 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue() function in android::PointerCoords 345 float value = c.getAxisValue(axis); in scaleAxisValue() 429 const vec2 relativeXy = rotation.transform(getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in transform() 430 getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y)); in transform() 436 const float val = getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); in transform() 581 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { in getAxisValue() function in android::MotionEvent 894 return coords.getAxisValue(axis); in calculateTransformedAxisValue() 906 {coords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in calculateTransformedAxisValue() 907 coords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y)}); in calculateTransformedAxisValue() 912 return transformAngle(transform, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION)); in calculateTransformedAxisValue() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 403 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT)); in onDraw() 582 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords() 584 .append(" Distance=").append(coords.getAxisValue(MotionEvent.AXIS_DISTANCE), 1) in logCoords() 585 .append(" VScroll=").append(coords.getAxisValue(MotionEvent.AXIS_VSCROLL), 1) in logCoords() 586 .append(" HScroll=").append(coords.getAxisValue(MotionEvent.AXIS_HSCROLL), 1) in logCoords() 588 .append(event.getAxisValue(MotionEvent.AXIS_GENERIC_1), 3) in logCoords() 589 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_2), 3).append(")") in logCoords() 590 .append(", (").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_3), 3) in logCoords() 591 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_4), 3) in logCoords() 691 ps.mBoundingLeft = event.getAxisValue(MotionEvent.AXIS_GENERIC_1, i); in onPointerEvent() [all …]
|
D | RecyclerView.java | 3034 vScroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 3039 hScroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent()
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 201 pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE)); in dump() 206 const float major = pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR); in dump() 207 const float minor = pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR); in dump() 208 const float orientation = pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); in dump()
|
D | UnwantedInteractionBlocker.cpp | 563 touches.back().major = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR); in getTouches() 564 touches.back().minor = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR); in getTouches() 598 touches.back().x = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X); in getTouches() 599 touches.back().y = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y); in getTouches() 611 touches.back().pressure = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE); in getTouches()
|
/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 | 314 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in dump() 315 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y), in dump() 316 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in dump() 317 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in dump() 318 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in dump() 319 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in dump() 320 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in dump() 321 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), in dump() 322 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TILT), in dump() 323 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), in dump() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcher.cpp | 933 motionEntry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in shouldPruneInboundQueueLocked() 935 motionEntry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y)); in shouldPruneInboundQueueLocked() 1741 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetails() 1742 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetails() 1743 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetails() 1744 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetails() 1745 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetails() 1746 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetails() 1747 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetails() 1748 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetails() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 288 outValues[index++] = rawPointerCoords->getAxisValue(axis); in pointerCoordsFromNative() 429 ? event->getAxisValue(axis, pointerIndex) in android_view_MotionEvent_nativeGetPointerCoords() 558 return event->getAxisValue(axis, pointerIndex); in android_view_MotionEvent_nativeGetAxisValue()
|
/frameworks/base/native/android/ |
D | input.cpp | 201 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index); in AMotionEvent_getAxisValue()
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 860 axisValue = -event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 862 axisValue = event.getAxisValue(MotionEvent.AXIS_HSCROLL); in onGenericMotionEvent() 865 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
|
D | ScrollView.java | 930 axisValue = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 932 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
|
D | StackView.java | 591 final float vscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent()
|
D | AbsListView.java | 4417 axisValue = event.getAxisValue(MotionEvent.AXIS_VSCROLL); in onGenericMotionEvent() 4419 axisValue = event.getAxisValue(MotionEvent.AXIS_SCROLL); in onGenericMotionEvent()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 2387 public final float getAxisValue(int axis) { in getAxisValue() method in MotionEvent 2611 public final float getAxisValue(int axis, int pointerIndex) { in getAxisValue() method in MotionEvent 4198 public float getAxisValue(int axis) { in getAxisValue() method in MotionEvent.PointerCoords
|
D | ViewRootImpl.java | 7342 event.getAxisValue(MotionEvent.AXIS_X)); 7344 event.getAxisValue(MotionEvent.AXIS_Y)); 7346 event.getAxisValue(MotionEvent.AXIS_HAT_X)); 7348 event.getAxisValue(MotionEvent.AXIS_HAT_Y));
|