Searched refs:tzid (Results 1 - 12 of 12) sorted by relevance

/openjdk9/jdk/test/java/util/Calendar/
H A DGenericTimeZoneNamesTest.java37 for (String tzid : PT) {
38 test(tzid, TimeZone.LONG, locale, "Pacific Time");
39 test(tzid, TimeZone.SHORT, locale, "PT");
48 private static void test(String tzid, int style, Locale locale, String expected) { argument
50 String got = TimeZoneNameUtility.retrieveGenericDisplayName(tzid, style, locale);
52 System.err.printf("test: tzid=%s, locale=%s, style=%d, got=\"%s\", expected=\"%s\"%n",
53 tzid, locale, style, got, expected);
H A DCalendarTest.java229 String tzid = "TestZone";
232 SimpleTimeZone zone = new SimpleTimeZone(tzoffset, tzid);
278 if (z.getID(str) != tzid ||
/openjdk9/jdk/make/src/classes/build/tools/cldrconverter/
H A DMetaZonesParseHandler.java35 private String tzid, metazone; field in class:MetaZonesParseHandler
55 tzid = attributes.getValue("type");
84 if (tzid == null || metazone == null) {
87 put(tzid, metazone);
H A DCLDRConverter.java634 String tzid = (String)e[0];
637 if (map.get(TIMEZONE_ID_PREFIX + tzid) == null &&
638 handlerMetaZones.get(tzid) == null ||
639 handlerMetaZones.get(tzid) != null &&
640 map.get(METAZONE_ID_PREFIX + handlerMetaZones.get(tzid)) == null) {
649 names.put(tzid, cldrMeta.get().getValue());
657 names.put(tzid, jreMeta.get().getValue());
659 String metaName = "JRE_" + tzid.replaceAll("[/-]", "_");
661 names.put(tzid, metaName);
669 for (String tzid
[all...]
H A DBundle.java653 String tzid = null;
656 // Look for tzid
659 tzid = meta;
663 tzid = tz;
669 tzid = key.substring(CLDRConverter.TIMEZONE_ID_PREFIX.length());
672 if (tzid != null) {
674 if (jreZone[0].equals(tzid)) {
H A DLDMLParseHandler.java428 String tzid = attributes.getValue("type"); // Olson tz id
430 put(zonePrefix + tzid, new HashMap<String, String>());
431 pushKeyContainer(qName, attributes, tzid);
/openjdk9/jdk/test/java/util/TimeZone/
H A DDefaultTimeZoneTest.java42 JLabel tzid; field in class:DefaultTimeZoneTest
51 tzid = new JLabel("Time zone ID: " + sdf.getTimeZone().getID(), SwingConstants.CENTER);
52 tzid.setAlignmentX(Component.CENTER_ALIGNMENT);
69 panel.add(tzid);
99 tzid.setText("Time zone ID: " + tz.getID());
/openjdk9/jdk/src/java.base/share/classes/sun/util/locale/provider/
H A DTimeZoneNameUtility.java207 String tzid = (String) params[1];
208 String value = getName(timeZoneNameProvider, locale, requestID, style, tzid);
212 String canonicalID = aliases.get(tzid);
218 canonicalID != null ? canonicalID : tzid, style, aliases);
227 String requestID, String tzid, int style,
230 if (entry.getValue().equals(tzid)) {
246 Locale locale, String requestID, int style, String tzid) {
250 value = timeZoneNameProvider.getDisplayName(tzid, false, style, locale);
253 value = timeZoneNameProvider.getDisplayName(tzid, true, style, locale);
256 value = timeZoneNameProvider.getGenericDisplayName(tzid, styl
226 examineAliases(TimeZoneNameProvider tznp, Locale locale, String requestID, String tzid, int style, Map<String, String> aliases) argument
245 getName(TimeZoneNameProvider timeZoneNameProvider, Locale locale, String requestID, int style, String tzid) argument
[all...]
H A DLocaleResources.java310 String tzid = aliases.get(alias);
311 if (keyset.contains(tzid)) {
312 String[] val = rb.getStringArray(tzid);
/openjdk9/jdk/src/java.base/share/classes/java/util/
H A DTimeZone.java531 String tzid = zoneId.getId(); // throws an NPE if null
532 char c = tzid.charAt(0);
534 tzid = "GMT" + tzid;
535 } else if (c == 'Z' && tzid.length() == 1) {
536 tzid = "UTC";
538 return getTimeZone(tzid, true);
/openjdk9/jdk/src/java.base/macosx/native/libjava/
H A DHostLocaleProviderAdapter_md.c577 (JNIEnv *env, jclass cls, jstring jlangtag, jint type, jstring tzid) {
582 const char *ctzid = (*env)->GetStringUTFChars(env, tzid, 0);
623 (*env)->ReleaseStringUTFChars(env, tzid, ctzid);
576 Java_sun_util_locale_provider_HostLocaleProviderAdapterImpl_getTimeZoneDisplayString(JNIEnv *env, jclass cls, jstring jlangtag, jint type, jstring tzid) argument
/openjdk9/hotspot/src/os/windows/vm/
H A Dos_windows.cpp4348 DWORD tzid = GetTimeZoneInformation(&tz); local
4350 (tzid == TIME_ZONE_ID_DAYLIGHT) ? tz.DaylightBias : tz.StandardBias;

Completed in 214 milliseconds