/external/icu4c/i18n/ |
zonemeta.h | 30 * Return the canonical id for this system tzid, which might be the id itself. 31 * If the given system tzid is not know, U_ILLEGAL_ARGUMENT_ERROR is set in the status. 33 static UnicodeString& U_EXPORT2 getCanonicalSystemID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status); 36 * Return the canonical country code for this tzid. If we have none, or if the time zone 39 static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &canonicalCountry); 47 static UnicodeString& U_EXPORT2 getSingleCountry(const UnicodeString &tzid, UnicodeString &country); 50 * Returns a CLDR metazone ID for the given Olson tzid and time. 52 static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result); 58 static const UVector* U_EXPORT2 getMetazoneMappings(const UnicodeString &tzid); 62 static UVector* createMetazoneMappings(const UnicodeString &tzid); [all...] |
zstrfmt.h | 270 inline UnicodeString& getLongStandard(const UnicodeString &tzid, UDate date, 272 inline UnicodeString& getLongDaylight(const UnicodeString &tzid, UDate date, 274 inline UnicodeString& getLongGenericNonLocation(const UnicodeString &tzid, UDate date, 276 inline UnicodeString& getLongGenericPartialLocation(const UnicodeString &tzid, UDate date, 278 inline UnicodeString& getShortStandard(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 280 inline UnicodeString& getShortDaylight(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 282 inline UnicodeString& getShortGenericNonLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 284 inline UnicodeString& getShortGenericPartialLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 286 inline UnicodeString& getGenericLocation(const UnicodeString &tzid, UnicodeString &result) const; 303 UnicodeString& getString(const UnicodeString &tzid, TimeZoneTranslationTypeIndex typeIdx, UDate date [all...] |
zonemeta.cpp | 187 ZoneMeta::getCanonicalSystemID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status) { 189 const UChar *canonical = TimeZone::dereferOlsonLink(tzid); 228 ZoneMeta::getCanonicalCountry(const UnicodeString &tzid, UnicodeString &canonicalCountry) { 229 const UChar *region = TimeZone::getRegion(tzid); 239 ZoneMeta::getSingleCountry(const UnicodeString &tzid, UnicodeString &country) { 241 const UChar *region = TimeZone::getRegion(tzid); 358 ZoneMeta::getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result) { 360 const UVector *mappings = getMetazoneMappings(tzid); 378 ZoneMeta::getMetazoneMappings(const UnicodeString &tzid) { 381 tzid.extract(tzidUChars, ZID_KEY_MAX, status) 560 const UChar *tzid = NULL; local [all...] |
zstrfmt.cpp | 655 // because generic location format is generated from tzid for the case. 684 const char *tzid; local 685 while ((tzid = tzids->next(NULL, status))) { 690 UnicodeString utzid(tzid, -1, US_INV); 702 uprv_strcpy(zidkey, tzid); 773 if (uprv_strlen(tzid) > 4 && uprv_strncmp(tzid, "Etc/", 4) == 0) { 1085 const UChar *tzid; local 1140 UnicodeString tzid; local 1157 UnicodeString tzid; local 1182 UnicodeString tzid; local 1295 UnicodeString tzid; local [all...] |
vtzone.cpp | 45 static const UChar ICAL_TZID[] = {0x54, 0x5A, 0x49, 0x44, 0}; /* "TZID" */ 355 * Create a default TZNAME from TZID 357 static void getDefaultTZName(const UnicodeString tzid, UBool isDST, UnicodeString& zonename) { 358 zonename = tzid; 1320 UnicodeString tzid; local 1740 UnicodeString tzid; local 1804 UnicodeString tzid; local 2036 UnicodeString tzid; local 2137 UnicodeString tzid; local [all...] |
/external/chromium/third_party/icu/source/i18n/ |
zonemeta.h | 40 * Return the canonical id for this system tzid, which might be the id itself. 41 * If the given system tzid is not know, U_ILLEGAL_ARGUMENT_ERROR is set in the status. 43 static UnicodeString& U_EXPORT2 getCanonicalSystemID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status); 46 * Return the canonical country code for this tzid. If we have none, or if the time zone 49 static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &canonicalCountry); 57 static UnicodeString& U_EXPORT2 getSingleCountry(const UnicodeString &tzid, UnicodeString &country); 60 * Returns a CLDR metazone ID for the given Olson tzid and time. 62 static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result); 68 static const UVector* U_EXPORT2 getMetazoneMappings(const UnicodeString &tzid); 72 static const CanonicalMapEntry* U_EXPORT2 getCanonicalInfo(const UnicodeString &tzid); [all...] |
zstrfmt.h | 225 inline UnicodeString& getLongStandard(const UnicodeString &tzid, UDate date, 227 inline UnicodeString& getLongDaylight(const UnicodeString &tzid, UDate date, 229 inline UnicodeString& getLongGenericNonLocation(const UnicodeString &tzid, UDate date, 231 inline UnicodeString& getLongGenericPartialLocation(const UnicodeString &tzid, UDate date, 233 inline UnicodeString& getShortStandard(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 235 inline UnicodeString& getShortDaylight(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 237 inline UnicodeString& getShortGenericNonLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 239 inline UnicodeString& getShortGenericPartialLocation(const UnicodeString &tzid, UDate date, UBool commonlyUsedOnly, 241 inline UnicodeString& getGenericLocation(const UnicodeString &tzid, UnicodeString &result) const; 252 UnicodeString& getString(const UnicodeString &tzid, TimeZoneTranslationTypeIndex typeIdx, UDate date [all...] |
zonemeta.cpp | 508 * Creating Olson tzid to metazone mappings from resource (3.8.1 and beyond) 538 const UnicodeString *tzid; local 539 while ((tzid = tzids->snext(status))) { 546 tzid->extract(0, tzid->length(), zidkey, sizeof(zidkey), US_INV); 624 int32_t tzidLen = tzid->length() + 1; // Add one for NUL terminator 631 tzid->extract(key, tzidLen, status); 697 const UChar *tzid = ures_getStringByIndex(mz, 0, &tzidLen, &status); local 705 entry->id = tzid; 846 ZoneMeta::getCanonicalSystemID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status) [all...] |
zstrfmt.cpp | 548 // because generic location format is generated from tzid for the case. 580 const char *tzid; local 581 while ((tzid = tzids->next(NULL, status))) { 586 UnicodeString utzid(tzid, -1, US_INV); 598 uprv_strcpy(zidkey, tzid); 674 if (uprv_strlen(tzid) > 4 && uprv_strncmp(tzid, "Etc/", 4) == 0) { 970 const UChar *tzid; local 1025 UnicodeString tzid; local 1042 UnicodeString tzid; local 1067 UnicodeString tzid; local 1180 UnicodeString tzid; local [all...] |
vtzone.cpp | 45 static const UChar ICAL_TZID[] = {0x54, 0x5A, 0x49, 0x44, 0}; /* "TZID" */ 355 * Create a default TZNAME from TZID 357 static void getDefaultTZName(const UnicodeString tzid, UBool isDST, UnicodeString& zonename) { 358 zonename = tzid; 1320 UnicodeString tzid; local 1740 UnicodeString tzid; local 1804 UnicodeString tzid; local 2036 UnicodeString tzid; local 2137 UnicodeString tzid; local [all...] |
/external/chromium/third_party/icu/source/test/cintltst/ |
cdtdptst.c | 230 UChar *pattern=NULL, *tzID=NULL; 253 tzID=(UChar*)malloc(sizeof(UChar) * 4); 254 u_uastrcpy(tzID, "GMT"); 255 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); 295 free(tzID); 306 UChar *pattern, *tzID, *exp; 324 tzID=(UChar*)malloc(sizeof(UChar) * 4); 325 u_uastrcpy(tzID, "PST"); 328 /* cal=ucal_open(tzID, u_strlen(tzID), NULL, UCAL_TRADITIONAL, &status); * [all...] |
ccaltst.c | 81 UChar tzID[4]; 113 /*get Illegal TZID where index >= count*/ 116 log_err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); 236 u_uastrcpy(tzID, "PST"); 237 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 242 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 246 u_strcpy(tzID, fgGMTID); 247 calfr=ucal_open(tzID, u_strlen(tzID), "fr_FR", UCAL_TRADITIONAL, &status) [all...] |
cmsgtst.c | 364 UChar *result, tzID[4], str[25]; 383 u_uastrcpy(tzID, "PST"); 384 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 465 UChar *result, *tzID, *str; 484 tzID=(UChar*)malloc(sizeof(UChar) * 4); 485 u_uastrcpy(tzID, "PST"); 486 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 551 free(tzID); [all...] |
cdtrgtst.c | 207 UChar tzID[4]; 210 u_uastrcpy(tzID, "PST"); 213 def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,tzID,-1,pattern, u_strlen(pattern),&status); 226 def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,tzID,-1,pattern, u_strlen(pattern),&status); 279 UChar dateString[30], pattern[20], tzID[4]; 285 u_uastrcpy(tzID, "PST"); 287 formatter = udat_open(UDAT_IGNORE,UDAT_IGNORE,"en_US",tzID,-1,pattern, u_strlen(pattern), &status); 292 fmt = udat_open(UDAT_FULL,UDAT_LONG ,NULL, tzID, -1, NULL, 0, &status); 300 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status) [all...] |
/external/icu4c/test/cintltst/ |
cdtdptst.c | 230 UChar *pattern=NULL, *tzID=NULL; 253 tzID=(UChar*)malloc(sizeof(UChar) * 4); 254 u_uastrcpy(tzID, "GMT"); 255 cal=ucal_open(tzID, u_strlen(tzID), "cs", UCAL_GREGORIAN, &status); 295 free(tzID); 306 UChar *pattern, *tzID, *exp; 324 tzID=(UChar*)malloc(sizeof(UChar) * 4); 325 u_uastrcpy(tzID, "PST"); 328 /* cal=ucal_open(tzID, u_strlen(tzID), NULL, UCAL_TRADITIONAL, &status); * [all...] |
ccaltst.c | 85 UChar tzID[4]; 117 /*get Illegal TZID where index >= count*/ 120 log_err("FAIL:for TZID index >= count Expected INDEX_OUTOFBOUNDS_ERROR Got %s\n", u_errorName(status)); 240 u_uastrcpy(tzID, "PST"); 241 caldef=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 246 caldef2=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 250 u_strcpy(tzID, fgGMTID); 251 calfr=ucal_open(tzID, u_strlen(tzID), "fr_FR", UCAL_TRADITIONAL, &status) [all...] |
cdtrgtst.c | 208 UChar tzID[4]; 211 u_uastrcpy(tzID, "PST"); 214 def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,tzID,-1,pattern, u_strlen(pattern),&status); 227 def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,tzID,-1,pattern, u_strlen(pattern),&status); 280 UChar dateString[30], pattern[20], tzID[4]; 286 u_uastrcpy(tzID, "PST"); 288 formatter = udat_open(UDAT_IGNORE,UDAT_IGNORE,"en_US",tzID,-1,pattern, u_strlen(pattern), &status); 293 fmt = udat_open(UDAT_FULL,UDAT_LONG ,NULL, tzID, -1, NULL, 0, &status); 301 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_GREGORIAN, &status) [all...] |
cmsgtst.c | 362 UChar *result, tzID[4], str[25]; 381 u_uastrcpy(tzID, "PST"); 382 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 463 UChar *result, *tzID, *str; 482 tzID=(UChar*)malloc(sizeof(UChar) * 4); 483 u_uastrcpy(tzID, "PST"); 484 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 549 free(tzID); [all...] |
/external/icu4c/test/intltest/ |
tzfmttst.cpp | 126 const UnicodeString *tzid; local 127 while ((tzid = tzids->snext(status))) { 128 TimeZone *tz = TimeZone::createTimeZone(*tzid); 162 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); 176 TimeZone::getCanonicalID(*tzid, canonical, status); 179 errln((UnicodeString)"Unknown ID " + *tzid); 186 logln("Canonical round trip failed (as expected); tz=" + *tzid 191 errln("Canonical round trip failed; tz=" + *tzid 216 errln((UnicodeString)"Offset round trip failed; tz=" + *tzid 224 errln((UnicodeString)"Raw offset round trip failed; tz=" + *tzid 329 const UnicodeString *tzid; local [all...] |
tzrulets.cpp | 609 const UnicodeString *tzid = tzenum.snext(status); local 610 if (tzid == NULL) { 617 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 644 const UnicodeString *tzid = tzenum.snext(status); local 645 if (tzid == NULL) { 652 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 659 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); 661 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); 663 errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); 668 errln((UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); 781 const UnicodeString *tzid = tzenum.snext(status); local 880 const UnicodeString *tzid = tzenum.snext(status); local 974 const UnicodeString *tzid = tzenum.snext(status); local 1114 const UnicodeString *tzid = tzenum.snext(status); local 1817 UnicodeString tzid; local 2284 UnicodeString tzid; local [all...] |
/frameworks/base/core/java/android/pim/ |
RecurrenceSet.java | 177 dtstartProperty.getFirstParameter("TZID"); 179 String tzid = tzidParam == null ? null : tzidParam.value; local 180 Time start = new Time(tzidParam == null ? Time.TIMEZONE_UTC : tzid); 187 tzid = Time.TIMEZONE_UTC; 209 // TODO: also change tzid to be UTC? that would be consistent, but 227 values.put(Calendar.Events.EVENT_TIMEZONE, tzid); 252 String tzid = cursor.getString(tzidColumn); local 269 if (!TextUtils.isEmpty(tzid)) { 271 dtstartProp.addParameter(new ICalendar.Parameter("TZID", tzid)); 310 String tzid = values.getAsString(Calendar.Events.EVENT_TIMEZONE); local [all...] |
/external/chromium/third_party/icu/source/test/intltest/ |
tzfmttst.cpp | 125 const UnicodeString *tzid; local 126 while ((tzid = tzids->snext(status))) { 127 TimeZone *tz = TimeZone::createTimeZone(*tzid); 161 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); 175 TimeZone::getCanonicalID(*tzid, canonical, status); 178 errln((UnicodeString)"Unknown ID " + *tzid); 185 logln("Canonical round trip failed (as expected); tz=" + *tzid 190 errln("Canonical round trip failed; tz=" + *tzid 215 errln((UnicodeString)"Offset round trip failed; tz=" + *tzid 223 errln((UnicodeString)"Raw offset round trip failed; tz=" + *tzid 347 const UnicodeString *tzid; local [all...] |
tzrulets.cpp | 598 const UnicodeString *tzid = tzenum.snext(status); local 599 if (tzid == NULL) { 606 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 633 const UnicodeString *tzid = tzenum.snext(status); local 634 if (tzid == NULL) { 641 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); 648 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); 650 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); 652 errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); 657 errln((UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); 770 const UnicodeString *tzid = tzenum.snext(status); local 869 const UnicodeString *tzid = tzenum.snext(status); local 963 const UnicodeString *tzid = tzenum.snext(status); local 1103 const UnicodeString *tzid = tzenum.snext(status); local 1806 UnicodeString tzid; local 2155 UnicodeString tzid; local [all...] |
/frameworks/base/core/tests/coretests/src/android/pim/ |
RecurrenceSetTest.java | 35 String recurrence = "DTSTART;TZID=America/New_York:20080221T070000\n" 36 + "DTEND;TZID=America/New_York:20080221T190000\n" 63 String exrule, String exdate, long dtstart, String tzid, String duration, int allDay) 77 assertEquals(tzid, values.get(android.provider.Calendar.Events.EVENT_TIMEZONE));
|
/packages/providers/CalendarProvider/ |
maketests.py | 35 DTSTART_TZID = re.compile("DTSTART;TZID=(.*):(.*)")
79 tzid = ""
variable 92 tzid = re_dtstart.group(1)
variable
|