/external/icu/icu4c/source/i18n/ |
zonemeta.h | 31 * Return the canonical id for this tzid defined by CLDR, which might be the id itself. 32 * If the given system tzid is not known, U_ILLEGAL_ARGUMENT_ERROR is set in the status. 37 static UnicodeString& U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status); 40 * Return the canonical id for this tzid defined by CLDR, which might be the id itself. 44 static const UChar* U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status); 52 * Return the canonical country code for this tzid. If we have none, or if the time zone 54 * @param tzid Zone ID 59 static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &country, UBool *isPrimary = NULL); 62 * Returns a CLDR metazone ID for the given Olson tzid and time. 64 static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result) [all...] |
tznames_impl.h | 175 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const; 177 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const; 178 UnicodeString& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const; 181 UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeString& name) const; 183 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const; 187 static UnicodeString& getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& name); 190 static StringEnumeration* _getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status); 191 static UnicodeString& _getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID); 192 static UnicodeString& _getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID); 226 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const [all...] |
udateintervalformat.cpp | 27 const UChar* tzID, 35 (tzID == NULL ? tzIDLength != 0 : tzIDLength < -1) 46 if(tzID != 0) { 47 TimeZone *zone = TimeZone::createTimeZone(UnicodeString((UBool)(tzIDLength == -1), tzID, tzIDLength));
|
tznames.cpp | 110 StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const; 111 UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const; 112 UnicodeString& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const; 115 UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeString& name) const; 117 UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const; 252 TimeZoneNamesDelegate::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const { 253 return fTZnamesCacheEntry->names->getAvailableMetaZoneIDs(tzID, status); 257 TimeZoneNamesDelegate::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const { 258 return fTZnamesCacheEntry->names->getMetaZoneID(tzID, date, mzID); 262 TimeZoneNamesDelegate::getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const [all...] |
zonemeta.cpp | 233 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status) { 238 if (tzid.isBogus() || tzid.length() > ZID_KEY_MAX) { 253 tzid.extract(utzid, ZID_KEY_MAX + 1, tmpStatus); 254 U_ASSERT(tmpStatus == U_ZERO_ERROR); // we checked the length of tzid already 270 tzid.extract(0, 0x7fffffff, id, UPRV_LENGTHOF(id), US_INV); 287 canonicalID = TimeZone::findID(tzid); 304 const UChar *derefer = TimeZone::dereferOlsonLink(tzid); 346 const UChar* key = ZoneMeta::findTimeZoneID(tzid); 369 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status) 711 const UChar *tzid = NULL; local [all...] |
tzgnames.cpp | 55 const UChar* tzID; 65 // <tzID>&<mzID>#[L|S] 67 UnicodeString str(p->tzID); 89 // We just check identity of tzID/mzID 90 return (p1->tzID == p2->tzID && p1->mzID == p2->mzID && p1->isLong == p2->isLong); 106 const UChar* tzID; 131 UnicodeString& getTimeZoneID(int32_t index, UnicodeString& tzID) const; 174 TimeZoneGenericNameMatchInfo::getTimeZoneID(int32_t index, UnicodeString& tzID) const { 176 if (minfo != NULL && minfo->gnameInfo->tzID != NULL) [all...] |
tznames_impl.cpp | 634 static TZNames* createInstance(UResourceBundle* rb, const char* key, const UnicodeString& tzID); 662 TZNames::createInstance(UResourceBundle* rb, const char* key, const UnicodeString& tzID) { 684 TimeZoneNamesImpl::getDefaultExemplarLocationName(tzID, tmpName); 781 const UChar* tzID; 844 if (nameinfo->tzID) { 845 fResults->addZone(nameinfo->type, matchLength, UnicodeString(nameinfo->tzID, -1), status); 951 const UChar *tzID = ZoneMeta::getCanonicalCLDRID(*tz); 952 if (tzID != NULL) { 953 loadStrings(UnicodeString(tzID)); 1036 TimeZoneNamesImpl::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const [all...] |
tzgnames.h | 56 UnicodeString& tzID, UTimeZoneFormatTimeType& timeType, UErrorCode& status) const;
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
TimeZoneNameTest.java | 50 for (String tzid : tzids) { 55 String icuStdLong = getIcuDisplayName(tzid, false, TimeZone.LONG, loc); 56 String icuDstLong = getIcuDisplayName(tzid, true, TimeZone.LONG, loc); 57 String icuStdShort = getIcuDisplayName(tzid, false, TimeZone.SHORT, loc); 58 String icuDstShort = getIcuDisplayName(tzid, true, TimeZone.SHORT, loc); 61 checkDisplayNamePair(TimeZone.SHORT, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); 62 checkDisplayNamePair(TimeZone.LONG, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); 65 + tzid + " in locale " + loc + " in ICU") [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
TimeZoneNamesImpl.java | 95 public Set<String> getAvailableMetaZoneIDs(String tzID) { 96 return _getAvailableMetaZoneIDs(tzID); 99 static Set<String> _getAvailableMetaZoneIDs(String tzID) { 100 if (tzID == null || tzID.length() == 0) { 103 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); 119 public String getMetaZoneID(String tzID, long date) { 120 return _getMetaZoneID(tzID, date); 123 static String _getMetaZoneID(String tzID, long date) [all...] |
ZoneMeta.java | 353 * Return the canonical id for this tzid defined by CLDR, which might be 354 * the id itself. If the given tzid is not known, return null. 359 public static String getCanonicalCLDRID(String tzid) { 360 String canonical = CANONICAL_ID_CACHE.get(tzid); 362 canonical = findCLDRCanonicalID(tzid); 366 int zoneIdx = getZoneIndex(tzid); 374 tzid = getZoneID(zone.getInt()); 375 canonical = findCLDRCanonicalID(tzid); 378 canonical = tzid; 386 CANONICAL_ID_CACHE.put(tzid, canonical) [all...] |
TimeZoneGenericNames.java | 265 info.tzID = canonicalTzID; 328 String tzID = ZoneMeta.getCanonicalCLDRID(tz); 330 if (tzID == null) { 336 String name = _tznames.getTimeZoneDisplayName(tzID, nameType); 343 String mzID = _tznames.getMetaZoneID(tzID, date); 385 String stdName = _tznames.getDisplayName(tzID, stdNameType, date); 409 if (goldenID != null && !goldenID.equals(tzID)) { 421 name = getPartialLocationName(tzID, mzID, (nameType == NameType.LONG_GENERIC), mzName); 537 * @param tzID the canonical time zone ID 543 private String getPartialLocationName(String tzID, String mzID, boolean isLong, String mzDisplayName) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
TimeZoneNamesImpl.java | 93 public Set<String> getAvailableMetaZoneIDs(String tzID) { 94 return _getAvailableMetaZoneIDs(tzID); 97 static Set<String> _getAvailableMetaZoneIDs(String tzID) { 98 if (tzID == null || tzID.length() == 0) { 101 List<MZMapEntry> maps = TZ_TO_MZS_CACHE.getInstance(tzID, tzID); 117 public String getMetaZoneID(String tzID, long date) { 118 return _getMetaZoneID(tzID, date); 121 static String _getMetaZoneID(String tzID, long date) [all...] |
ZoneMeta.java | 352 * Return the canonical id for this tzid defined by CLDR, which might be 353 * the id itself. If the given tzid is not known, return null. 358 public static String getCanonicalCLDRID(String tzid) { 359 String canonical = CANONICAL_ID_CACHE.get(tzid); 361 canonical = findCLDRCanonicalID(tzid); 365 int zoneIdx = getZoneIndex(tzid); 373 tzid = getZoneID(zone.getInt()); 374 canonical = findCLDRCanonicalID(tzid); 377 canonical = tzid; 385 CANONICAL_ID_CACHE.put(tzid, canonical) [all...] |
TimeZoneGenericNames.java | 263 info.tzID = canonicalTzID; 326 String tzID = ZoneMeta.getCanonicalCLDRID(tz); 328 if (tzID == null) { 334 String name = _tznames.getTimeZoneDisplayName(tzID, nameType); 341 String mzID = _tznames.getMetaZoneID(tzID, date); 383 String stdName = _tznames.getDisplayName(tzID, stdNameType, date); 407 if (goldenID != null && !goldenID.equals(tzID)) { 419 name = getPartialLocationName(tzID, mzID, (nameType == NameType.LONG_GENERIC), mzName); 535 * @param tzID the canonical time zone ID 541 private String getPartialLocationName(String tzID, String mzID, boolean isLong, String mzDisplayName) [all...] |
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
RecurrenceSetTest.java | 36 String recurrence = "DTSTART;TZID=America/New_York:20080221T070000\n" 37 + "DTEND;TZID=America/New_York:20080221T190000\n" 77 String recurrence = "DTSTART;TZID=America/Los_Angeles:20090821T010203\n" 78 + "RDATE;TZID=America/Los_Angeles;VALUE=DATE:20110601,20110602,20110603\n" 81 //"TZID=America/Los_Angeles;VALUE=DATE:20110601,20110602,20110603", 90 String recurrence = "DTSTART;TZID=America/Los_Angeles:20090821T070000\n" 91 + "DTEND;TZID=America/New_York:20090821T110000\n" 98 String recurrence2 = "DTSTART;TZID=America/New_York:20090821T100000\n" 99 + "DTEND;TZID=America/Los_Angeles:20090821T080000\n" 104 // TODO: should we rigorously define which tzid becomes the "event timezone" [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
TimeZoneNames.java | 192 * @param tzID 196 public abstract Set<String> getAvailableMetaZoneIDs(String tzID); 201 * @param tzID 209 public abstract String getMetaZoneID(String tzID, long date); 249 * @param tzID 258 public final String getDisplayName(String tzID, NameType type, long date) { 259 String name = getTimeZoneDisplayName(tzID, type); 261 String mzID = getMetaZoneID(tzID, date); 271 * @param tzID 278 public abstract String getTimeZoneDisplayName(String tzID, NameType type) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
TimeZoneNames.java | 214 * @param tzID 219 public abstract Set<String> getAvailableMetaZoneIDs(String tzID); 224 * @param tzID 233 public abstract String getMetaZoneID(String tzID, long date); 275 * @param tzID 285 public final String getDisplayName(String tzID, NameType type, long date) { 286 String name = getTimeZoneDisplayName(tzID, type); 288 String mzID = getMetaZoneID(tzID, date); 298 * @param tzID 306 public abstract String getTimeZoneDisplayName(String tzID, NameType type) [all...] |
/external/icu/icu4c/source/test/intltest/ |
tzfmttst.cpp | 175 const UnicodeString *tzid; local 176 while ((tzid = tzids->snext(status))) { 177 TimeZone *tz = TimeZone::createTimeZone(*tzid); 211 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); 223 TimeZone::getCanonicalID(*tzid, canonicalID, status); 226 errln((UnicodeString)"Unknown ID " + *tzid); 232 logln((UnicodeString)"Canonical round trip failed (probably as expected); tz=" + *tzid 237 errln((UnicodeString)"Canonical round trip failed; tz=" + *tzid 245 if (outtzid != *tzid) { 246 errln((UnicodeString)"Zone ID round trip failued; tz=" + *tzid 472 const UnicodeString *tzid; local 1021 const char* tzid; member in struct:__anon13057 [all...] |
tzrulets.cpp | 613 const UnicodeString *tzid = tzenum.snext(status); local 614 if (tzid == NULL) { 621 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 648 const UnicodeString *tzid = tzenum.snext(status); local 649 if (tzid == NULL) { 656 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 663 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); 665 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); 667 errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); 672 errln((UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); 785 const UnicodeString *tzid = tzenum.snext(status); local 885 const UnicodeString *tzid = tzenum.snext(status); local 981 const UnicodeString *tzid = tzenum.snext(status); local 1121 const UnicodeString *tzid = tzenum.snext(status); local 1870 UnicodeString tzid; local 2337 UnicodeString tzid; local [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
tznames.h | 192 * @param tzID The canoical tiem zone ID. 197 virtual StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const = 0; 201 * @param tzID The canonical time zone ID. 209 virtual UnicodeString& getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const = 0; 221 * @param tzID Receives the reference zone ID ("golden zone" in the LDML specification) for the given time zone ID for the 227 virtual UnicodeString& getReferenceZoneID(const UnicodeString& mzID, const char* region, UnicodeString& tzID) const = 0; 244 * @param tzID The canonical time zone ID. 251 virtual UnicodeString& getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeString& name) const = 0; 266 * @param tzID The canonical time zone ID 272 virtual UnicodeString& getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const [all...] |
/external/icu/icu4c/source/test/cintltst/ |
cdtdptst.c | 232 UChar *pattern=NULL, *tzID=NULL; 255 tzID=(UChar*)malloc(sizeof(UChar) * 4); 256 u_uastrcpy(tzID, "GMT"); 257 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); 297 free(tzID); 308 UChar *pattern, *tzID, *exp; 326 tzID=(UChar*)malloc(sizeof(UChar) * 4); 327 u_uastrcpy(tzID, "PST"); 330 /* cal=ucal_open(tzID, u_strlen(tzID), NULL, UCAL_TRADITIONAL, &status); * [all...] |
ccaltst.c | 99 UChar tzID[4]; 131 /*get Illegal TZID where index >= count*/ 134 log_err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); 278 u_uastrcpy(tzID, "PST"); 279 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 284 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 288 u_strcpy(tzID, fgGMTID); 289 calfr=ucal_open(tzID, u_strlen(tzID), "fr_FR", UCAL_TRADITIONAL, &status) [all...] |
/libcore/luni/src/test/java/libcore/util/ |
ZoneInfoDBTest.java | 83 String tzId = "Europe/London"; 84 ZoneInfo first = data.makeTimeZone(tzId); 85 ZoneInfo second = data.makeTimeZone(tzId);
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
RecurrenceSet.java | 197 dtstartProperty.getFirstParameter("TZID"); 199 String tzid = tzidParam == null ? null : tzidParam.value; local 200 Time start = new Time(tzidParam == null ? Time.TIMEZONE_UTC : tzid); 207 tzid = Time.TIMEZONE_UTC; 244 values.put(CalendarContract.Events.EVENT_TIMEZONE, tzid); 274 String tzid = cursor.getString(tzidColumn); local 291 if (!TextUtils.isEmpty(tzid)) { 293 dtstartProp.addParameter(new ICalendar.Parameter("TZID", tzid)); 295 dtstartTime = new Time(tzid); 332 final String tzid = values.getAsString(CalendarContract.Events.EVENT_TIMEZONE); local [all...] |