Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/data/
DCityModel.java61 private Map<String, City> mCityMap;
64 private List<City> mAllCities;
67 private List<City> mSelectedCities;
70 private List<City> mUnselectedCities;
73 private City mHomeCity;
91 List<City> getAllCities() { in getAllCities()
94 final List<City> selected = new ArrayList<>(getSelectedCities()); in getAllCities()
97 Collections.sort(selected, new City.NameComparator()); in getAllCities()
100 final List<City> allCities = new ArrayList<>(getCityMap().size()); in getAllCities()
113 City getCity(String cityName) { in getCity()
[all …]
DCity.java27 public final class City { class
53 City(String id, int index, String indexString, String name, String phoneticName, in City() method in City
95 public static final class UtcOffsetComparator implements Comparator<City> {
97 private final Comparator<City> mDelegate1 = new UtcOffsetIndexComparator();;
99 private final Comparator<City> mDelegate2 = new NameComparator();
101 public int compare(City c1, City c2) { in compare()
119 public static final class UtcOffsetIndexComparator implements Comparator<City> {
124 public int compare(City c1, City c2) { in compare()
140 public static final class NameComparator implements Comparator<City> {
142 private final Comparator<City> mDelegate = new NameIndexComparator();
[all …]
DCityDAO.java63 public static List<City> getSelectedCities(Context context, Map<String, City> cityMap) { in getSelectedCities()
66 final List<City> selectedCities = new ArrayList<>(size); in getSelectedCities()
70 final City city = cityMap.get(id); in getSelectedCities()
82 public static void setSelectedCities(Context context, Collection<City> cities) { in setSelectedCities()
88 for (City city : cities) { in setSelectedCities()
99 public static Map<String, City> getCities(Context context) { in getCities()
119 final Map<String, City> cities = new ArrayMap<>(ids.length); in getCities()
138 static City createCity(String id, String formattedName, String timeZoneId) { in createCity()
150 return new City(id, index, indexString, name, phoneticName, timeZoneId); in createCity()
DDataModel.java171 public List<City> getAllCities() { in getAllCities()
180 public City getCity(String cityName) { in getCity()
188 public City getHomeCity() { in getHomeCity()
196 public List<City> getUnselectedCities() { in getUnselectedCities()
204 public List<City> getSelectedCities() { in getSelectedCities()
212 public void setSelectedCities(Collection<City> cities) { in setSelectedCities()
220 public Comparator<City> getCityIndexComparator() { in getCityIndexComparator()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java48 import com.android.deskclock.data.City;
226 private List<City> mFilteredCities = Collections.emptyList();
229 private final Set<City> mUserSelectedCities = new ArraySet<>();
271 public City getItem(int position) { in getItem()
302 final City city = getItem(position); in getView()
361 final City city = (City) b.getTag(); in onCheckedChanged()
396 final City city = getItem(position); in getSections()
453 final List<City> selected = DataModel.getDataModel().getSelectedCities(); in refresh()
473 final List<City> filteredCities; in filter()
477 final List<City> unselected = DataModel.getDataModel().getUnselectedCities(); in filter()
[all …]
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalWidgetViewsFactory.java30 import com.android.deskclock.data.City;
57 private City mHomeCity;
58 private List<City> mCities;
115 final City left = leftIndex == -1 ? mHomeCity : in getViewAt()
117 final City right = rightIndex < mCities.size() ? mCities.get(rightIndex) : null; in getViewAt()
183 private void update(RemoteViews clock, City city, int clockId, int labelId, int dayId) {
221 private City mHomeCity;
222 private List<City> mCities;
/packages/apps/DeskClock/src/com/android/deskclock/
DClockFragment.java41 import com.android.deskclock.data.City;
365 final City city = (City) getItem(position); in getView()
418 private City getHomeCity() { in getHomeCity()
422 private List<City> getCities() { in getCities()
DHandleDeskClockApiCalls.java24 import com.android.deskclock.data.City;
290 final City city = DataModel.getDataModel().getCity(cityName); in handleClockIntent()
306 final Set<City> selectedCities = in handleClockIntent()