Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSwitch.java93 private float mThumbPosition; field in Switch
533 final int thumbLeft = mSwitchLeft + (int) (mThumbPosition + 0.5f) - mTouchSlop; in hitThumb()
580 Math.min(mThumbPosition + dx, getThumbScrollRange())); in onTouchEvent()
581 if (newPos != mThumbPosition) { in onTouchEvent()
582 mThumbPosition = newPos; in onTouchEvent()
650 return mThumbPosition <= getThumbScrollRange() / 2; in getTargetCheckedState()
652 return mThumbPosition >= getThumbScrollRange() / 2; in getTargetCheckedState()
658 mThumbPosition = checked ? 0 : getThumbScrollRange(); in setThumbPosition()
660 mThumbPosition = checked ? getThumbScrollRange() : 0; in setThumbPosition()
738 final int thumbPos = (int) (mThumbPosition + 0.5f); in onDraw()