Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitiesActivity.java80 private Object [] mSectionPositions; field in CitiesActivity.CityAdapter
181 mSectionPositions = positions.toArray(); in loadCitiesDataBase()
187 return (mSectionPositions != null) ? (Integer) mSectionPositions[section] : 0; in getPositionForSection()
192 if (mSectionPositions != null) { in getSectionForPosition()
193 for (int i = 0; i < mSectionPositions.length - 1; i++) { in getSectionForPosition()
194 if (p >= (Integer) mSectionPositions[i] in getSectionForPosition()
195 && p < (Integer) mSectionPositions[i + 1]) { in getSectionForPosition()
199 if (p >= (Integer)mSectionPositions[mSectionPositions.length - 1]) { in getSectionForPosition()
200 return mSectionPositions.length - 1; in getSectionForPosition()