Searched refs:CityObj (Results 1 - 6 of 6) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
H A DCities.java32 SharedPreferences prefs, HashMap<String, CityObj> cities) {
35 Collection<CityObj> col = cities.values();
36 Iterator<CityObj> i = col.iterator();
39 CityObj c = i.next();
46 public static HashMap<String, CityObj> readCitiesFromSharedPrefs(SharedPreferences prefs) {
48 HashMap<String, CityObj> c = new HashMap<String, CityObj>();
51 CityObj o = new CityObj(prefs, i);
64 HashMap<String, CityObj>
[all...]
H A DCityObj.java21 public class CityObj { class
31 public CityObj(String name, String timezone, String id) { method in class:CityObj
39 return "CityObj{" +
47 public CityObj(SharedPreferences prefs, int index) { method in class:CityObj
H A DWorldClockAdapter.java49 protected HashMap<String, CityObj> mCitiesDb = new HashMap<String, CityObj>();
78 CityObj[] cities = Utils.loadCitiesDataBase(context);
95 CityObj c = new CityObj(
111 ((CityObj) mCitiesList[0]).mCityName =
131 && ((CityObj) mCitiesList[0]).mCityId == null;
140 private int safeCityNameCompare(CityObj city1, CityObj city2) {
154 CityObj city
[all...]
H A DCitiesActivity.java65 private HashMap<String, CityObj> mUserSelectedCities;
76 private final HashMap<String, CityObj> mSelectedCitiesList; // Selected cities by the use
83 Context context, HashMap<String, CityObj> selectedList, LayoutInflater factory) {
113 return mAllTheCitiesList != null && ((CityObj)mAllTheCitiesList[p]).mCityId != null;
121 CityObj c = (CityObj)mAllTheCitiesList [position];
122 // Header view (A CityObj with nothing but the first letter as the name
154 CityObj[] tempList = Utils.loadCitiesDataBase(c);
162 ArrayList<CityObj> items = new ArrayList<CityObj>();
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DUtils.java50 import com.android.deskclock.worldclock.CityObj;
432 public static CityObj[] loadCitiesDataBase(Context c) {
444 CityObj[] tempList = new CityObj[cities.length];
446 tempList[i] = new CityObj(cities[i], timezones[i], ids[i]);
449 Arrays.sort(tempList, new Comparator<CityObj> () {
451 public int compare(CityObj c1, CityObj c2) {
452 Comparator<CityObj> mCollator;
459 public static String getCityName(CityObj cit
[all...]
/packages/apps/DeskClock/src/com/android/alarmclock/
H A DDigitalWidgetViewsFactory.java37 import com.android.deskclock.worldclock.CityObj;
79 updateView(views, (CityObj) mCitiesList[index], R.id.leftClock1, R.id.leftClock2,
85 updateView(views, (CityObj) mCitiesList[index + 1], R.id.rightClock1,
94 private void updateView(RemoteViews clock, CityObj cityObj, int clockId1, int clockId2,
99 CityObj cityInDb = mCitiesDb.get(cityObj.mCityId);

Completed in 65 milliseconds