Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DSwitchCompat.java941 float dPos; in onTouchEvent() local
943 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
947 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
950 dPos = -dPos; in onTouchEvent()
952 final float newPos = constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()
/frameworks/base/core/java/android/widget/
DSwitch.java966 float dPos; in onTouchEvent() local
968 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()
972 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()
975 dPos = -dPos; in onTouchEvent()
977 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()