Searched refs:getXCursorPosition (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 95 assertTrue(Float.isNaN(event.getXCursorPosition())); in testCalculatesCursorPositionForTouchscreenEvents() 105 assertEquals(30, event.getXCursorPosition(), 0.1); in testCalculatesCursorPositionForSimpleMouseEvents() 116 assertEquals(40, event.getXCursorPosition(), 0.1); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset() 143 assertEquals(30, event.getXCursorPosition(), 0.1); in testCalculatesCursorPositionForMultiTouchMouseEvents()
|
/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 626 ASSERT_NEAR(cosf(PI_180 * ROTATION) * RADIUS, event.getXCursorPosition(), 0.001); in TEST_F() 681 ASSERT_EQ(300, event.getXCursorPosition()); in TEST_F() 691 ASSERT_EQ(3, event.getXCursorPosition()); in TEST_F()
|
D | InputPublisherAndConsumer_test.cpp | 229 EXPECT_EQ(xCursorPosition * xScale + xOffset, motionEvent->getXCursorPosition()); in PublishAndConsumeMotionEvent()
|
/frameworks/native/include/input/ |
D | Input.h | 534 float getXCursorPosition() const;
|
/frameworks/native/libs/input/ |
D | Input.cpp | 395 float MotionEvent::getXCursorPosition() const { in getXCursorPosition() function in android::MotionEvent
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 2745 public float getXCursorPosition() { in getXCursorPosition() method in MotionEvent
|
D | ViewGroup.java | 2714 isMouseEvent ? ev.getXCursorPosition() : ev.getX(actionIndex); in dispatchTouchEvent()
|