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.java940 float dPos; in onTouchEvent() local
942 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
946 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
949 dPos = -dPos; in onTouchEvent()
951 final float newPos = constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()
/frameworks/base/core/java/android/widget/
DSwitch.java961 float dPos; in onTouchEvent() local
963 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
967 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
970 dPos = -dPos; in onTouchEvent()
972 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()