Searched refs:X_SCALE (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 224 static constexpr float X_SCALE = 2.0; member in android::MotionEventTest 260 mTransform.set({X_SCALE, 0, X_OFFSET, 0, Y_SCALE, Y_OFFSET, 0, 0, 1}); in initializeEventWithHistory() 409 ASSERT_EQ(X_OFFSET + 10 * X_SCALE, event->getHistoricalX(0, 0)); in assertEqualsEventWithHistory() 410 ASSERT_EQ(X_OFFSET + 20 * X_SCALE, event->getHistoricalX(1, 0)); in assertEqualsEventWithHistory() 411 ASSERT_EQ(X_OFFSET + 110 * X_SCALE, event->getHistoricalX(0, 1)); in assertEqualsEventWithHistory() 412 ASSERT_EQ(X_OFFSET + 120 * X_SCALE, event->getHistoricalX(1, 1)); in assertEqualsEventWithHistory() 413 ASSERT_EQ(X_OFFSET + 210 * X_SCALE, event->getX(0)); in assertEqualsEventWithHistory() 414 ASSERT_EQ(X_OFFSET + 220 * X_SCALE, event->getX(1)); in assertEqualsEventWithHistory() 547 ASSERT_EQ((X_OFFSET + 210 * X_SCALE) * 2, event.getX(0)); in TEST_F()
|