Searched refs:computedVelocity (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 325 VelocityTracker::ComputedVelocity computedVelocity; in TEST_F() local 327 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, /*id=*/0, /*velocity=*/200); in TEST_F() 328 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, /*id=*/26U, /*velocity=*/400); in TEST_F() 329 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, /*id=*/27U, /*velocity=*/650); in TEST_F() 330 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, MAX_POINTER_ID, /*velocity=*/750); in TEST_F() 331 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, /*id=*/0, /*velocity=*/1000); in TEST_F() 332 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, /*id=*/26U, /*velocity=*/2000); in TEST_F() 333 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, /*id=*/27U, /*velocity=*/3000); in TEST_F() 334 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, MAX_POINTER_ID, /*velocity=*/4000); in TEST_F() 337 EXPECT_EQ(*(computedVelocity.getVelocity(AMOTION_EVENT_AXIS_X, /*id=*/0U)), 200); in TEST_F() [all …]
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 370 ComputedVelocity computedVelocity; in getComputedVelocity() local 379 computedVelocity.addVelocity(axis, id, adjustedVelocity); in getComputedVelocity() 383 return computedVelocity; in getComputedVelocity()
|