Searched refs:getXVelocity (Results 1 – 2 of 2) sorted by relevance
29 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 …]
132 protected float getXVelocity() { in getXVelocity() method in ShadowVelocityTracker133 return getXVelocity(ACTIVE_POINTER_ID); in getXVelocity()142 protected float getXVelocity(int id) { in getXVelocity() method in ShadowVelocityTracker