Home | History | Annotate | Download | only in widget

Lines Matching refs:selectorIndex

1587             int selectorIndex = selectorIndices[i];
1588 String scrollSelectorValue = mSelectorIndexToStringCache.get(selectorIndex);
1692 int selectorIndex = current + (i - SELECTOR_MIDDLE_ITEM_INDEX);
1694 selectorIndex = getWrappedSelectorIndex(selectorIndex);
1696 selectorIndices[i] = selectorIndex;
1824 * @return The wrapped index <code>selectorIndex</code> value.
1826 private int getWrappedSelectorIndex(int selectorIndex) {
1827 if (selectorIndex > mMaxValue) {
1828 return mMinValue + (selectorIndex
1829 } else if (selectorIndex < mMinValue) {
1830 return mMaxValue - (mMinValue - selectorIndex) % (mMaxValue - mMinValue) + 1;
1832 return selectorIndex;
1869 * selectorIndex</code> to avoid multiple instantiations of the same string.
1871 private void ensureCachedScrollSelectorValue(int selectorIndex) {
1873 String scrollSelectorValue = cache.get(selectorIndex);
1877 if (selectorIndex < mMinValue || selectorIndex > mMaxValue) {
1881 int displayedValueIndex = selectorIndex - mMinValue;
1884 scrollSelectorValue = formatNumber(selectorIndex);
1887 cache.put(selectorIndex, scrollSelectorValue);