Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/icu/
DTimeZoneNamesTest.java26 String[] ids = TimeZoneNames.forLocale(Locale.CANADA); in test_forLocale() local
28 assertTrue(ids.length > 0); in test_forLocale()
31 for (String id : ids) { in test_forLocale()
35 int toronto = linearSearch(ids, "America/Toronto"); in test_forLocale()
37 int atikokan = linearSearch(ids, "America/Atikokan"); in test_forLocale()
53 String[] ids = TimeZoneNames.forLocale(Locale.KOREA);
54 assertEquals("Asia/Seoul", ids[0]);
55 assertEquals(1, ids.length);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java227 List<String> ids = Arrays.asList(TimeZone.getAvailableIDs(rawOffset)); in test_getAvailableIDs_I_16947622() local
231 assertTrue(ids.toString(), ids.contains("America/Los_Angeles")); in test_getAvailableIDs_I_16947622()
235 assertTrue(ids.toString(), ids.contains("America/Dawson")); in test_getAvailableIDs_I_16947622()
236 assertTrue(ids.toString(), ids.contains("America/Tijuana")); in test_getAvailableIDs_I_16947622()
237 assertTrue(ids.toString(), ids.contains("America/Vancouver")); in test_getAvailableIDs_I_16947622()
238 assertTrue(ids.toString(), ids.contains("Canada/Pacific")); in test_getAvailableIDs_I_16947622()
239 assertTrue(ids.toString(), ids.contains("Canada/Yukon")); in test_getAvailableIDs_I_16947622()
240 assertTrue(ids.toString(), ids.contains("Pacific/Pitcairn")); in test_getAvailableIDs_I_16947622()
246 String[] ids = TimeZone.getAvailableIDs(rawoffset); in test_getAvailableIDs_I() local
247 List<String> idList = Arrays.asList(ids); in test_getAvailableIDs_I()
[all …]
DGregorianCalendarTest.java326 String[] ids = TimeZone.getAvailableIDs(); in test_getActualMaximumI() local
327 for (int i = 0; i < ids.length; i++) { in test_getActualMaximumI()
328 TimeZone tz = TimeZone.getTimeZone(ids[i]); in test_getActualMaximumI()
/libcore/luni/src/main/java/libcore/util/
DZoneInfoDB.java66 private String[] ids; field in ZoneInfoDB.TzData
80 int index = Arrays.binarySearch(ids, id);
105 ids = new String[] { "GMT" }; in TzData()
201 ids = new String[entryCount]; in readIndex()
203 ids[i] = allIds.substring(i == 0 ? 0 : idEnd[i - 1], idEnd[i]); in readIndex()
208 return ids.clone(); in getAvailableIDs()
216 matches.add(ids[i]); in getAvailableIDs()
226 rawUtcOffsetsCache = new int[ids.length]; in getRawUtcOffsets()
227 for (int i = 0; i < ids.length; ++i) { in getRawUtcOffsets()
233 rawUtcOffsetsCache[i] = cache.get(ids[i]).getRawOffset(); in getRawUtcOffsets()
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java146 ArrayList<String> ids = new ArrayList<String>(); in forLocale() local
154 ids.add(line.substring(olsonIdStart, olsonIdEnd)); in forLocale()
157 return ids.toArray(new String[ids.size()]); in forLocale()
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java104 String[] ids = new String[] { "Africa/Bujumbura", "Indian/Cocos", "Pacific/Wake", "UTC" }; in testZeroTransitionZones() local
105 for (String id : ids) { in testZeroTransitionZones()