Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DVelocityTrackerTest.java29 assertThat(velocityTracker.getXVelocity()).isEqualTo(1.0f); in handlesXMovement()
30 assertThat(velocityTracker.getXVelocity(0)).isEqualTo(1.0f); in handlesXMovement()
32 assertThat(velocityTracker.getXVelocity(10)).isEqualTo(0.0f); in handlesXMovement()
54 assertThat(velocityTracker.getXVelocity()).isEqualTo(1.0f); in handlesXAndYMovement()
64 assertThat(velocityTracker.getXVelocity()).isEqualTo(10.0f); in handlesWindowing_positive()
74 assertThat(velocityTracker.getXVelocity()).isEqualTo(-10.0f); in handlesWindowing_negative()
88 assertThat(velocityTracker.getXVelocity()).isEqualTo(1.0f); in handlesMultiplePointers()
89 assertThat(velocityTracker.getXVelocity(1)).isEqualTo(1.0f); in handlesMultiplePointers()
91 assertThat(velocityTracker.getXVelocity(0)).isEqualTo(2.0f); in handlesMultiplePointers()
101 assertThat(velocityTracker.getXVelocity()).isEqualTo(0.0f); in handlesClearing()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowVelocityTracker.java132 protected float getXVelocity() { in getXVelocity() method in ShadowVelocityTracker
133 return getXVelocity(ACTIVE_POINTER_ID); in getXVelocity()
142 protected float getXVelocity(int id) { in getXVelocity() method in ShadowVelocityTracker