Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.java29 import com.android.deskclock.data.DataModel.CitySort;
88 static CitySort getCitySort(SharedPreferences prefs) { in getCitySort()
89 final int defaultSortOrdinal = CitySort.NAME.ordinal(); in getCitySort()
91 return CitySort.values()[citySortOrdinal]; in getCitySort()
98 final CitySort oldSort = getCitySort(prefs); in toggleCitySort()
99 final CitySort newSort = oldSort == CitySort.NAME ? CitySort.UTC_OFFSET : CitySort.NAME; in toggleCitySort()
DCityModel.kt32 import com.android.deskclock.data.DataModel.CitySort
188 CitySort.NAME -> NameIndexComparator()
189 CitySort.UTC_OFFSET -> UtcOffsetIndexComparator()
195 val citySort: CitySort
220 CitySort.NAME -> NameComparator()
221 CitySort.UTC_OFFSET -> UtcOffsetComparator()
DSettingsDAO.kt30 import com.android.deskclock.data.DataModel.CitySort
77 fun getCitySort(prefs: SharedPreferences): CitySort { in getCitySort()
78 val defaultSortOrdinal = CitySort.NAME.ordinal in getCitySort()
80 return CitySort.values()[citySortOrdinal] in getCitySort()
88 val newSort = if (oldSort == CitySort.NAME) CitySort.UTC_OFFSET else CitySort.NAME in toggleCitySort()
DCityModel.java28 import com.android.deskclock.data.DataModel.CitySort;
194 final CitySort citySort = mSettingsModel.getCitySort(); in getCityIndexComparator()
205 CitySort getCitySort() { in getCitySort()
229 final CitySort citySort = mSettingsModel.getCitySort(); in getCitySortComparator()
DSettingsModel.java26 import com.android.deskclock.data.DataModel.CitySort;
63 CitySort getCitySort() { in getCitySort()
DDataModel.java60 public enum CitySort {NAME, UTC_OFFSET} enum in DataModel
380 public CitySort getCitySort() { in getCitySort()
DDataModel.kt59 enum class CitySort { class in com.android.deskclock.data.DataModel
364 val citySort: CitySort
DSettingsModel.kt53 val citySort: DataModel.CitySort
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt327 DataModel.CitySort.NAME -> { in getView()
331 DataModel.CitySort.UTC_OFFSET -> { in getView()
396 DataModel.CitySort.NAME -> sections.add(city.indexString.orEmpty()) in getSections()
397 DataModel.CitySort.UTC_OFFSET -> { in getSections()
494 private val citySort: DataModel.CitySort
575 item.setTitle(if (DataModel.dataModel.citySort == DataModel.CitySort.NAME) { in onPrepareOptionsItem()
DCitySelectionActivity.java550 private DataModel.CitySort getCitySort() { in getCitySort()
633 item.setTitle(DataModel.getDataModel().getCitySort() == DataModel.CitySort.NAME in onPrepareOptionsItem()