Searched refs:restingPosition (Results 1 – 2 of 2) sorted by relevance
103 val restingPosition = positioner.getRestingPosition() in testGetRestingPosition_returnsDefaultPosition() constant105 assertThat(restingPosition).isEqualTo(defaultPosition) in testGetRestingPosition_returnsDefaultPosition()112 val restingPosition = PointF(100f, 100f) in testGetRestingPosition_returnsRestingPosition() constant113 positioner.restingPosition = restingPosition in testGetRestingPosition_returnsRestingPosition()114 assertThat(positioner.getRestingPosition()).isEqualTo(restingPosition) in testGetRestingPosition_returnsRestingPosition()122 val restingPosition = positioner.getRestingPosition() in testGetRestingPosition_bubble_onPhone() constant123 assertThat(restingPosition.x).isEqualTo(allowableStackRegion.left) in testGetRestingPosition_bubble_onPhone()124 assertThat(restingPosition.y).isEqualTo(defaultYPosition) in testGetRestingPosition_bubble_onPhone()131 val restingPosition = positioner.getRestingPosition() in testGetRestingPosition_bubble_onPhone_RTL() constant132 assertThat(restingPosition.x).isEqualTo(allowableStackRegion.right) in testGetRestingPosition_bubble_onPhone_RTL()[all …]
187 private var restingPosition = 0f variable233 restingPosition = newPosition in snapTo()239 snapTo(restingPosition) in snapToRestingPosition()253 animateToFinalPosition(restingPosition + stretchAmount) in stretchTo()264 val stretchedAmount = amount * ((finalPosition ?: 0f) - restingPosition) in stretchBy()265 animation.animateToFinalPosition(restingPosition + stretchedAmount) in stretchBy()271 restingPosition = pos in updateRestingPosition()273 animation.animateToFinalPosition(restingPosition) in updateRestingPosition()275 snapTo(restingPosition) in updateRestingPosition()