Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/
DBubblePositionerTest.kt103 val restingPosition = positioner.getRestingPosition() in testGetRestingPosition_returnsDefaultPosition() constant
105 assertThat(restingPosition).isEqualTo(defaultPosition) in testGetRestingPosition_returnsDefaultPosition()
112 val restingPosition = PointF(100f, 100f) in testGetRestingPosition_returnsRestingPosition() constant
113 positioner.restingPosition = restingPosition in testGetRestingPosition_returnsRestingPosition()
114 assertThat(positioner.getRestingPosition()).isEqualTo(restingPosition) in testGetRestingPosition_returnsRestingPosition()
122 val restingPosition = positioner.getRestingPosition() in testGetRestingPosition_bubble_onPhone() constant
123 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() constant
132 assertThat(restingPosition.x).isEqualTo(allowableStackRegion.right) in testGetRestingPosition_bubble_onPhone_RTL()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanel.kt187 private var restingPosition = 0f variable
233 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()