/external/qemu/android/utils/ |
D | timezone.c | 44 check_timezone_is_zoneinfo(const char* tz) in check_timezone_is_zoneinfo() argument 48 if (tz == NULL) in check_timezone_is_zoneinfo() 52 slash1 = strchr( tz, '/' ); in check_timezone_is_zoneinfo() 88 const char* tz = get_zoneinfo_timezone(); in bufprint_zoneinfo_timezone() local 90 if (tz == NULL || !check_timezone_is_zoneinfo(tz)) in bufprint_zoneinfo_timezone() 93 return bufprint(p, end, "%s", tz); in bufprint_zoneinfo_timezone() 109 const char* tz = getenv("TZ"); in get_zoneinfo_timezone() local 113 if (tz == NULL) { in get_zoneinfo_timezone() 128 tz = buff + sizeof(ZONEINFO_DIR)-1; in get_zoneinfo_timezone() 129 if ( !check_timezone_is_zoneinfo(tz) ) { in get_zoneinfo_timezone() [all …]
|
/external/v8/src/ |
D | dateparser-inl.h | 43 TimeZoneComposer tz; in Parse() local 95 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse() 122 } else if (tz.IsExpecting(n)) { in Parse() 123 tz.SetAbsoluteMinute(n); in Parse() 147 tz.Set(value); in Parse() 152 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) { in Parse() 154 tz.SetSign(token.ascii_sign()); in Parse() 163 tz.SetAbsoluteHour(n); in Parse() 164 tz.SetAbsoluteMinute(kNone); in Parse() 166 tz.SetAbsoluteHour(n / 100); in Parse() [all …]
|
/external/icu4c/tools/tzcode/ |
D | icuzdump.cpp | 115 void setTimeZone(TimeZone* tz) { in setTimeZone() argument 116 timezone = tz; in setTimeZone() 239 TimeZone* tz = NULL; in next() local 244 tz = TimeZone::createTimeZone(*zid); in next() 250 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next() 253 tz = TimeZone::createDefault(); in next() 258 return tz; in next() 375 TimeZone* tz = zit->next(); in main() local 376 if (tz == NULL) { in main() 379 dumper.setTimeZone(tz); in main() [all …]
|
/external/smack/src/org/jivesoftware/smackx/packet/ |
D | Time.java | 69 private String tz = null; field in Time 87 tz = cal.getTimeZone().getID(); in Time() 153 return tz; in getTz() 161 public void setTz(String tz) { in setTz() argument 162 this.tz = tz; in setTz() 189 if (tz != null) { in getChildElementXML() 190 buf.append("<tz>").append(tz).append("</tz>"); in getChildElementXML()
|
/external/icu4c/test/intltest/ |
D | tzbdtest.cpp | 116 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone() argument 122 if (tz->inDaylightTime(d, status) != startsInDST) { in findDaylightBoundaryUsingTimeZone() 123 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDS… in findDaylightBoundaryUsingTimeZone() 127 if (tz->inDaylightTime(max, status) == startsInDST) { in findDaylightBoundaryUsingTimeZone() 128 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsIn… in findDaylightBoundaryUsingTimeZone() 134 UBool isIn = tz->inDaylightTime(mid, status); in findDaylightBoundaryUsingTimeZone() 143 logln(tz->getID(str) + " Before: " + showDate(min)); in findDaylightBoundaryUsingTimeZone() 144 logln(tz->getID(str) + " After: " + showDate(max)); in findDaylightBoundaryUsingTimeZone() 337 TimeZone *tz; in TestBoundaries() local 338 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))); in TestBoundaries() [all …]
|
D | tztest.cpp | 237 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition() argument 241 UBool startsInDST = tz.inDaylightTime(min, ec); in findTransition() 243 if (tz.inDaylightTime(max, ec) == startsInDST) { in findTransition() 244 …logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"T… in findTransition() 251 if (tz.inDaylightTime(mid, ec) == startsInDST) { in findTransition() 260 logln(tz.getID(id) + " Before: " + min/1000 + " = " + in findTransition() 261 dateToString(min,s,tz)); in findTransition() 262 logln(tz.getID(id) + " After: " + max/1000 + " = " + in findTransition() 263 dateToString(max,s,tz)); in findTransition() 267 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch() argument [all …]
|
D | tzregts.cpp | 87 UDate TimeZoneRegressionTest::findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max) { in findTransitionBinary() argument 89 UBool startsInDST = tz.inDaylightTime(min, status); in findTransitionBinary() 91 if (tz.inDaylightTime(max, status) == startsInDST) { in findTransitionBinary() 98 if (tz.inDaylightTime(mid, status) == startsInDST) { in findTransitionBinary() 108 UDate TimeZoneRegressionTest::findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max… in findTransitionStepwise() argument 110 UBool startsInDST = tz.inDaylightTime(min, status); in findTransitionStepwise() 113 if (tz.inDaylightTime(min, status) != startsInDST) { in findTransitionStepwise() 209 TimeZone *tz = TimeZone::createTimeZone("PST"); in Test4084933() local 211 int32_t offset1 = tz->getOffset(1, in Test4084933() 213 int32_t offset2 = tz->getOffset(1, in Test4084933() [all …]
|
D | itformat.cpp | 81 TimeZone *tz = TimeZone::createTimeZone("PST"); in runIndexedTest() local 82 TimeZone::setDefault(*tz); in runIndexedTest() 83 delete tz; in runIndexedTest()
|
D | tzfmttst.cpp | 132 TimeZone *tz = TimeZone::createTimeZone(*tzid); in TestTimeZoneRoundTrip() local 138 sdf->setTimeZone(*tz); in TestTimeZoneRoundTrip() 164 tz->getOffset(DATES[datidx], false, inRaw, inDst, status); in TestTimeZoneRoundTrip() 187 …if (!((BasicTimeZone*)&outtz)->hasEquivalentTransitions((BasicTimeZone&)*tz, low, high, TRUE, stat… in TestTimeZoneRoundTrip() 242 delete tz; in TestTimeZoneRoundTrip() 350 BasicTimeZone *tz = (BasicTimeZone*) TimeZone::createTimeZone(*tzid); in run() local 351 sdf->setTimeZone(*tz); in run() 418 tztAvail = tz->getNextTransition(t, FALSE, tzt); in run() 431 delete tz; in run()
|
D | tzregts.h | 53 UDate findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max); 54 UDate findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max);
|
D | tzrulets.cpp | 623 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestOlsonTransition() local 627 verifyTransitions(*tz, lo, hi); in TestOlsonTransition() 629 delete tz; in TestOlsonTransition() 658 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestRBTZTransition() local 659 int32_t ruleCount = tz->countTransitionRules(status); in TestRBTZTransition() 663 tz->getTimeZoneRules(initial, trsrules, ruleCount, status); in TestRBTZTransition() 688 compareTransitionsAscending(*tz, *rbtz, start, until, FALSE); in TestRBTZTransition() 690 compareTransitionsAscending(*tz, *rbtz, start + 1, until, TRUE); in TestRBTZTransition() 692 compareTransitionsDescending(*tz, *rbtz, start, until, FALSE); in TestRBTZTransition() 694 compareTransitionsDescending(*tz, *rbtz, start + 1, until, TRUE); in TestRBTZTransition() [all …]
|
D | tztest.h | 51 void findTransition(const TimeZone& tz, 57 void testUsingBinarySearch(const TimeZone& tz,
|
D | astrotst.cpp | 268 TimeZone *tz = new SimpleTimeZone(-18000000 + 3600000, "Montreal(FIXED)"); in TestSunriseTimes() local 270 GregorianCalendar *cal = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() 271 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() 285 df_t->adoptTimeZone(tz->clone()); in TestSunriseTimes() 286 df_d->adoptTimeZone(tz->clone()); in TestSunriseTimes() 287 df_dt->adoptTimeZone(tz->clone()); in TestSunriseTimes() 361 delete tz; in TestSunriseTimes()
|
/external/icu4c/samples/date/ |
D | date.c | 47 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCod… 48 …onst char *format, UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status); 69 const UChar *tz = 0; in main() local 92 tz = GMT_ID; in main() 161 when = getWhen(millis, seconds, format, style, parse, tz, &status); in main() 167 date(when, tz, style, format, &status); in main() 241 const UChar *tz, in date() argument 263 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status); in date() 292 … UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status) { in getWhen() argument 318 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status); in getWhen()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | TimeZoneTest.java | 220 TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai"); in test_getAvailableIDs_I() local 221 int rawoffset = tz.getRawOffset(); in test_getAvailableIDs_I() 259 TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai"); in test_hasSameRules_Ljava_util_TimeZone() local 260 int offset = tz.getRawOffset(); in test_hasSameRules_Ljava_util_TimeZone() 266 if (!(ids[i].equalsIgnoreCase(tz.getID()))) { in test_hasSameRules_Ljava_util_TimeZone() 268 assertTrue(tz.hasSameRules(sameZone)); in test_hasSameRules_Ljava_util_TimeZone() 275 assertFalse("should return false when parameter is null", tz in test_hasSameRules_Ljava_util_TimeZone()
|
/external/webkit/Source/WebCore/platform/graphics/transforms/ |
D | TranslateTransformOperation.h | 40 …ransformOperation> create(const Length& tx, const Length& ty, const Length& tz, OperationType type) in create() argument 42 return adoptRef(new TranslateTransformOperation(tx, ty, tz, type)); in create() 75 …TranslateTransformOperation(const Length& tx, const Length& ty, const Length& tz, OperationType ty… in TranslateTransformOperation() argument 78 , m_z(tz) in TranslateTransformOperation()
|
/external/icu4c/i18n/ |
D | wintzimpl.cpp | 36 static UBool getSystemTimeInformation(TimeZone *tz, SYSTEMTIME &daylightDate, SYSTEMTIME &standardD… in getSystemTimeInformation() argument 39 BasicTimeZone *btz = (BasicTimeZone*)tz; // we should check type in getSystemTimeInformation() 119 TimeZone *tz = TimeZone::createTimeZone(id); in getWindowsTimeZoneInfo() local 121 if (tz != NULL) { in getWindowsTimeZoneInfo() 128 … if (getSystemTimeInformation(tz, daylightDate, standardDate, bias, daylightBias, standardBias)) { in getWindowsTimeZoneInfo()
|
D | vtzone.cpp | 956 : BasicTimeZone(), tz(NULL), vtzlines(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 961 : BasicTimeZone(source), tz(NULL), vtzlines(NULL), in VTimeZone() 964 if (source.tz != NULL) { in VTimeZone() 965 tz = (BasicTimeZone*)source.tz->clone(); in VTimeZone() 987 if (tz != NULL) { in ~VTimeZone() 988 delete tz; in ~VTimeZone() 1002 if (tz != NULL) { in operator =() 1003 delete tz; in operator =() 1004 tz = NULL; in operator =() 1006 if (right.tz != NULL) { in operator =() [all …]
|
D | tzgnames.cpp | 277 UnicodeString& getDisplayName(const TimeZone& tz, UTimeZoneGenericNameType type, 309 UnicodeString& formatGenericNonLocationName(const TimeZone& tz, UTimeZoneGenericNameType type, 441 TimeZone *tz = TimeZone::createDefault(); in initialize() local 442 const UChar *tzID = ZoneMeta::getCanonicalCLDRID(*tz); in initialize() 446 delete tz; in initialize() 470 TZGNCore::getDisplayName(const TimeZone& tz, UTimeZoneGenericNameType type, UDate date, UnicodeStri… in getDisplayName() argument 475 const UChar* tzCanonicalID = ZoneMeta::getCanonicalCLDRID(tz); in getDisplayName() 483 formatGenericNonLocationName(tz, type, date, name); in getDisplayName() 485 const UChar* tzCanonicalID = ZoneMeta::getCanonicalCLDRID(tz); in getDisplayName() 623 TZGNCore::formatGenericNonLocationName(const TimeZone& tz, UTimeZoneGenericNameType type, UDate dat… in formatGenericNonLocationName() argument [all …]
|
D | smpdtfmt.cpp | 1433 const TimeZone& tz = cal.getTimeZone(); in subFormat() local 1439 tzFormat()->format(UTZFMT_STYLE_RFC822, tz, date, zoneString); in subFormat() 1442 tzFormat()->format(UTZFMT_STYLE_ISO8601, tz, date, zoneString); in subFormat() 1445 tzFormat()->format(UTZFMT_STYLE_LOCALIZED_GMT, tz, date, zoneString); in subFormat() 1450 tzFormat()->format(UTZFMT_STYLE_SPECIFIC_SHORT, tz, date, zoneString); in subFormat() 1454 tzFormat()->format(UTZFMT_STYLE_SPECIFIC_LONG, tz, date, zoneString); in subFormat() 1460 tzFormat()->format(UTZFMT_STYLE_GENERIC_SHORT, tz, date, zoneString); in subFormat() 1464 tzFormat()->format(UTZFMT_STYLE_GENERIC_LONG, tz, date, zoneString); in subFormat() 1470 tzFormat()->format(UTZFMT_STYLE_SPECIFIC_SHORT, tz, date, zoneString); in subFormat() 1474 tzFormat()->format(UTZFMT_STYLE_GENERIC_LOCATION, tz, date, zoneString); in subFormat() [all …]
|
/external/e2fsprogs/debugfs/ |
D | util.c | 195 const char *tz; in time_to_string() local 199 tz = getenv("TZ"); in time_to_string() 200 if (!tz) in time_to_string() 201 tz = ""; in time_to_string() 202 do_gmt = !strcmp(tz, "GMT"); in time_to_string()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowTime.java | 190 TimeZone tz; in parse() local 193 tz = TimeZone.getTimeZone("UTC"); in parse() 195 tz = TimeZone.getTimeZone(time.timezone); in parse() 199 df.setTimeZone(tz); in parse() 200 dfShort.setTimeZone(tz); in parse() 201 time.timezone = tz.getID(); in parse() 211 return "UTC".equals(tz.getID()); in parse()
|
/external/tremolo/Tremolo/ |
D | misc.c | 92 static struct timezone tz; in _insert() local 95 gettimeofday(&tv,&tz); in _insert() 149 static struct timezone tz; in _ripremove() local 155 gettimeofday(&tv,&tz); in _ripremove()
|
/external/chromium/third_party/libevent/ |
D | evutil.h | 169 #define evutil_gettimeofday(tv, tz) gettimeofday((tv), (tz)) argument 172 int evutil_gettimeofday(struct timeval *tv, struct timezone *tz);
|
/external/icu4c/test/perf/normperf/ |
D | dtfmtrtperf.h | 163 TimeZone *tz = TimeZone::createTimeZone(*tzid); in call() local 170 sdf->setTimeZone(*tz); in call() 194 delete tz; in call() local
|