Lines Matching refs:City
24 import com.android.deskclock.data.City;
42 // add a clock of a selected city, if no city is specified opens the city selection screen
44 // delete a clock of a selected city, if no city is specified shows CitiesActivity for the user
45 // to choose a city
48 public static final String EXTRA_CITY = "com.android.deskclock.extra.clock.CITY";
271 // If no city was given, start the city chooser.
289 // If a city was given, ensure it can be located.
290 final City city = DataModel.getDataModel().getCity(cityName);
291 if (city == null) {
306 final Set<City> selectedCities =
311 // Fail if the city is already present.
312 if (!selectedCities.add(city)) {
320 reason = getString(R.string.city_added, city.getName());
325 // Fail if the city is not present.
326 if (!selectedCities.remove(city)) {
334 reason = getString(R.string.city_deleted, city.getName());