Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
DInputEvent_test.cpp225 static constexpr float Y_SCALE = 3.0; member in android::MotionEventTest
260 mTransform.set({X_SCALE, 0, X_OFFSET, 0, Y_SCALE, Y_OFFSET, 0, 0, 1}); in initializeEventWithHistory()
416 ASSERT_EQ(Y_OFFSET + 11 * Y_SCALE, event->getHistoricalY(0, 0)); in assertEqualsEventWithHistory()
417 ASSERT_EQ(Y_OFFSET + 21 * Y_SCALE, event->getHistoricalY(1, 0)); in assertEqualsEventWithHistory()
418 ASSERT_EQ(Y_OFFSET + 111 * Y_SCALE, event->getHistoricalY(0, 1)); in assertEqualsEventWithHistory()
419 ASSERT_EQ(Y_OFFSET + 121 * Y_SCALE, event->getHistoricalY(1, 1)); in assertEqualsEventWithHistory()
420 ASSERT_EQ(Y_OFFSET + 211 * Y_SCALE, event->getY(0)); in assertEqualsEventWithHistory()
421 ASSERT_EQ(Y_OFFSET + 221 * Y_SCALE, event->getY(1)); in assertEqualsEventWithHistory()
548 ASSERT_EQ((Y_OFFSET + 211 * Y_SCALE) * 2, event.getY(0)); in TEST_F()