Home
last modified time | relevance | path

Searched refs:zone (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/main/java/java/text/
DDateFormatSymbols.java326 for (String[] zone : result) { in getZoneStrings()
327 String id = zone[0]; in getZoneStrings()
328 if (zone[1] == null) { in getZoneStrings()
329 zone[1] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.LONG, locale); in getZoneStrings()
331 if (zone[2] == null) { in getZoneStrings()
332 zone[2] = TimeZone.getTimeZone(id).getDisplayName(false, TimeZone.SHORT, locale); in getZoneStrings()
334 if (zone[3] == null) { in getZoneStrings()
335 zone[3] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.LONG, locale); in getZoneStrings()
337 if (zone[4] == null) { in getZoneStrings()
338 zone[4] = TimeZone.getTimeZone(id).getDisplayName(true, TimeZone.SHORT, locale); in getZoneStrings()
DSimpleDateFormat.java791 private Date error(ParsePosition position, int offset, TimeZone zone) { in error() argument
793 calendar.setTimeZone(zone); in error()
1037 TimeZone zone = calendar.getTimeZone(); in parse() local
1044 return error(position, -offset - 1, zone); in parse()
1050 return error(position, offset, zone); in parse()
1067 return error(position, -offset - 1, zone); in parse()
1076 return error(position, -offset - 1, zone); in parse()
1082 return error(position, offset, zone); in parse()
1089 return error(position, -offset - 1, zone); in parse()
1096 return error(position, offset, zone); in parse()
[all …]
/libcore/luni/src/main/java/java/util/
DTimeZone.java363 TimeZone zone = null; in getTimeZone() local
365 zone = ZoneInfoDB.getInstance().makeTimeZone(id); in getTimeZone()
370 if (zone == null && id.length() > 3 && id.startsWith("GMT")) { in getTimeZone()
371 zone = getCustomTimeZone(id); in getTimeZone()
375 return (zone != null) ? zone : (TimeZone) GMT.clone(); in getTimeZone()
DCalendar.java344 private TimeZone zone; field in Calendar
821 clone.zone = (TimeZone) zone.clone(); in clone()
1056 return zone; in getTimeZone()
1215 zone = timezone; in setTimeZone()
1228 ",zone=" + zone.getID() + in toString()
1391 putFields.put("zone", zone); in writeObject()
1405 zone = (TimeZone) readFields.get("zone", null); in readObject()
DDate.java389 boolean zone = false; in parse()
425 zone = true; in parse()
508 zone = true; in parse()
510 } else if ((value = zone(text)) != 0) { in parse()
511 zone = true; in parse()
548 if (zone) { in parse()
763 private static int zone(String text) { in zone() method in Date
DSimpleTimeZone.java299 SimpleTimeZone zone = (SimpleTimeZone) super.clone(); in clone() local
300 return zone; in clone()
506 public boolean hasSameRules(TimeZone zone) { in hasSameRules() argument
507 if (!(zone instanceof SimpleTimeZone)) { in hasSameRules()
510 SimpleTimeZone tz = (SimpleTimeZone) zone; in hasSameRules()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSimpleTimeZoneTest.java403 SimpleTimeZone zone = new SimpleTimeZone(tz.getRawOffset(), "EST", in test_inDaylightTimeLjava_util_Date() local
407 assertTrue("Returned incorrect daylight value1", zone.inDaylightTime(gc in test_inDaylightTimeLjava_util_Date()
410 assertTrue("Returned incorrect daylight value2", !(zone in test_inDaylightTimeLjava_util_Date()
412 gc = new GregorianCalendar(zone); in test_inDaylightTimeLjava_util_Date()
414 assertTrue("Returned incorrect daylight value3", !(zone in test_inDaylightTimeLjava_util_Date()
417 assertTrue("Returned incorrect daylight value4", zone in test_inDaylightTimeLjava_util_Date()
420 assertTrue("Returned incorrect daylight value5", !(zone in test_inDaylightTimeLjava_util_Date()
423 assertTrue("Returned incorrect daylight value6", zone in test_inDaylightTimeLjava_util_Date()
426 assertTrue("Returned incorrect daylight value7", !zone in test_inDaylightTimeLjava_util_Date()
428 assertTrue("Returned incorrect daylight value8", zone in test_inDaylightTimeLjava_util_Date()
[all …]
DTimeZoneTest.java168 TimeZone zone = new SimpleTimeZone(45, "TEST"); in test_setDefaultLjava_util_TimeZone() local
169 TimeZone.setDefault(zone); in test_setDefaultLjava_util_TimeZone()
170 assertEquals("timezone not set", zone, TimeZone.getDefault()); in test_setDefaultLjava_util_TimeZone()
/libcore/luni/src/test/resources/
Dsimple_ns.dtd43 <!ATTLIST emp:address emp:zone ID #IMPLIED>
/libcore/dom/src/test/resources/
DstaffNS.dtd43 <!ATTLIST emp:address emp:zone ID #IMPLIED>
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipEntryTest.java342 TimeZone zone = TimeZone.getDefault(); in test_setTimeJ() local
363 TimeZone.setDefault(zone); in test_setTimeJ()