Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionSearchPicker.java48 private BaseTimeZoneAdapter<RegionItem> mAdapter;
69 private void onListItemClick(RegionItem item) { in onListItemClick()
113 private List<RegionItem> createAdapterItem(Set<String> regionIds) { in createAdapterItem()
115 final TreeSet<RegionItem> items = new TreeSet<>(new RegionInfoComparator(collator)); in createAdapterItem()
120 items.add(new RegionItem(i++, regionId, name)); in createAdapterItem()
126 static class RegionItem implements AdapterItem { class in RegionSearchPicker
133 RegionItem(long itemId, String id, String name) { in RegionItem() method in RegionSearchPicker.RegionItem
178 private static class RegionInfoComparator implements Comparator<RegionItem> {
186 public int compare(RegionItem r1, RegionItem r2) { in compare()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DRegionSearchPicker.java48 private BaseTimeZoneAdapter<RegionItem> mAdapter;
69 private void onListItemClick(RegionItem item) { in onListItemClick()
113 private List<RegionItem> createAdapterItem(Set<String> regionIds) { in createAdapterItem()
115 final TreeSet<RegionItem> items = new TreeSet<>(new RegionInfoComparator(collator)); in createAdapterItem()
120 items.add(new RegionItem(i++, regionId, name)); in createAdapterItem()
126 static class RegionItem implements AdapterItem { class in RegionSearchPicker
133 RegionItem(long itemId, String id, String name) { in RegionItem() method in RegionSearchPicker.RegionItem
178 private static class RegionInfoComparator implements Comparator<RegionItem> {
186 public int compare(RegionItem r1, RegionItem r2) { in compare()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DRegionSearchPickerTest.java33 import com.android.settings.datetime.timezone.RegionSearchPicker.RegionItem;
88 BaseTimeZoneAdapter<RegionItem> adapter = picker.createAdapter(new TimeZoneData(finder)); in clickItemView_duringRegionSearch_shouldNotCrash()