Home
last modified time | relevance | path

Searched refs:getXCursorPosition (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java95 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/
DInputEvent_test.cpp626 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()
DInputPublisherAndConsumer_test.cpp229 EXPECT_EQ(xCursorPosition * xScale + xOffset, motionEvent->getXCursorPosition()); in PublishAndConsumeMotionEvent()
/frameworks/native/include/input/
DInput.h534 float getXCursorPosition() const;
/frameworks/native/libs/input/
DInput.cpp395 float MotionEvent::getXCursorPosition() const { in getXCursorPosition() function in android::MotionEvent
/frameworks/base/core/java/android/view/
DMotionEvent.java2745 public float getXCursorPosition() { in getXCursorPosition() method in MotionEvent
DViewGroup.java2714 isMouseEvent ? ev.getXCursorPosition() : ev.getX(actionIndex); in dispatchTouchEvent()