Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DVelocityTrackerTest.java42 assertThat(velocityTracker.getYVelocity()).isEqualTo(1.0f); in handlesYMovement()
43 assertThat(velocityTracker.getYVelocity(0)).isEqualTo(1.0f); in handlesYMovement()
45 assertThat(velocityTracker.getYVelocity(10)).isEqualTo(0.0f); in handlesYMovement()
55 assertThat(velocityTracker.getYVelocity()).isEqualTo(2.0f); in handlesXAndYMovement()
65 assertThat(velocityTracker.getYVelocity()).isEqualTo(10.0f); in handlesWindowing_positive()
75 assertThat(velocityTracker.getYVelocity()).isEqualTo(-10.0f); in handlesWindowing_negative()
102 assertThat(velocityTracker.getYVelocity()).isEqualTo(0.0f); in handlesClearing()
105 assertThat(velocityTracker.getYVelocity()).isEqualTo(0.0f); in handlesClearing()
117 assertThat(velocityTracker.getYVelocity()).isEqualTo(0.0f); in clearsOnDown()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowVelocityTracker.java137 protected float getYVelocity() { in getYVelocity() method in ShadowVelocityTracker
138 return getYVelocity(ACTIVE_POINTER_ID); in getYVelocity()
151 protected float getYVelocity(int id) { in getYVelocity() method in ShadowVelocityTracker