Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java672 float dPos; in onTouchEvent() local
674 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
678 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
681 dPos = -dPos; in onTouchEvent()
683 final float newPos = constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()
/frameworks/base/core/java/android/widget/
DSwitch.java956 float dPos; in onTouchEvent() local
958 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
962 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
965 dPos = -dPos; in onTouchEvent()
967 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()