Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DNumberPicker.java1673 int selectorIndex = selectorIndices[i]; in onDraw() local
1674 String scrollSelectorValue = mSelectorIndexToStringCache.get(selectorIndex); in onDraw()
1817 int selectorIndex = current + (i - SELECTOR_MIDDLE_ITEM_INDEX); in initializeSelectorWheelIndices() local
1819 selectorIndex = getWrappedSelectorIndex(selectorIndex); in initializeSelectorWheelIndices()
1821 selectorIndices[i] = selectorIndex; in initializeSelectorWheelIndices()
1954 private int getWrappedSelectorIndex(int selectorIndex) { in getWrappedSelectorIndex() argument
1955 if (selectorIndex > mMaxValue) { in getWrappedSelectorIndex()
1956 return mMinValue + (selectorIndex - mMaxValue) % (mMaxValue - mMinValue) - 1; in getWrappedSelectorIndex()
1957 } else if (selectorIndex < mMinValue) { in getWrappedSelectorIndex()
1958 return mMaxValue - (mMinValue - selectorIndex) % (mMaxValue - mMinValue) + 1; in getWrappedSelectorIndex()
[all …]