Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSwitch.java1050 float dPos; in onTouchEvent() local
1052 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
1056 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
1059 dPos = -dPos; in onTouchEvent()
1061 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()