Home | History | Annotate | Download | only in util

Lines Matching refs:country

60      * and DST value at the specified moment in the specified country.
63 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) {
75 for (TimeZone tz : getTimeZones(country)) {
76 // If the current time zone is from the right country
87 // country that has the correct current offset and DST.
103 * Return list of unique time zones for the country. Do not modify
105 * @param country to find
109 public static ArrayList<TimeZone> getTimeZonesWithUniqueOffsets(String country) {
111 if ((country != null) && country.equals(sLastUniqueCountry)) {
114 country + "): return cached version");
120 Collection<TimeZone> zones = getTimeZones(country);
144 sLastUniqueCountry = country;
151 * Returns the time zones for the country, which is the code
154 * @param country is a two character country code.
158 public static ArrayList<TimeZone> getTimeZones(String country) {
160 if ((country != null) && country.equals(sLastCountry)) {
161 if (DBG) Log.d(TAG, "getTimeZones(" + country + "): return cached version");
168 if (country == null) {
189 if (country.equals(code)) {
197 Log.d(TAG, "getTimeZone('" + country + "'): found tz.getID=="
205 Log.e(TAG, "Got xml parser exception getTimeZone('" + country + "'): e=", e);
207 Log.e(TAG, "Got IO exception getTimeZone('" + country + "'): e=", e);
215 sLastCountry = country;