Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSwitch.java1058 float dPos; in onTouchEvent() local
1060 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
1064 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
1067 dPos = -dPos; in onTouchEvent()
1069 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()