/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | TimeZoneTest.java | 34 private static final int ONE_HOUR = 3600000; field in TimeZoneTest 53 ONE_HOUR, st1.getDSTSavings()); in test_getDSTSavings() 61 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); in test_getDSTSavings() 63 ONE_HOUR, tz1.getDSTSavings()); in test_getDSTSavings() 66 tz1 = new Support_TimeZone(3 * ONE_HOUR, false); in test_getDSTSavings() 82 -(5 * ONE_HOUR), st1.getOffset(time1)); in test_getOffset_long() 88 -(5 * ONE_HOUR), st1.getOffset(time2)); in test_getOffset_long() 91 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); in test_getOffset_long() 93 -(5 * ONE_HOUR), tz1.getOffset(time1)); in test_getOffset_long() 95 -(4 * ONE_HOUR), tz1.getOffset(time2)); in test_getOffset_long() [all …]
|
/external/icu4c/test/intltest/ |
D | tzbdtest.cpp | 54 ONE_HOUR(60 * ONE_MINUTE), in TimeZoneBoundaryTest() 55 ONE_DAY(24 * ONE_HOUR), in TimeZoneBoundaryTest() 205 logln(UnicodeString("PASS: getRawOffset() = ") + (expZoneOffset / ONE_HOUR)); in verifyDST() 207 …tRawOffset() = ") + (time_zone->getRawOffset() / ONE_HOUR) + "; expected " + (expZoneOffset / ONE… in verifyDST() 218 if (offset == expDSTOffset) logln(UnicodeString("PASS: getOffset() = ") + (offset / ONE_HOUR)); in verifyDST() 219 …UnicodeString("FAIL: getOffset() = ") + (offset / ONE_HOUR) + "; expected " + (expDSTOffset / ONE_… in verifyDST() 313 …erifyDST(tempcal->getTime(status),pst, TRUE, inDST, -8*ONE_HOUR,inDST ? -7*ONE_HOUR : -8*ONE_HOUR); in TestBoundaries() 329 verifyDST(e, z, TRUE, inDST, - 8 * ONE_HOUR, inDST ? - 7 * ONE_HOUR: - 8 * ONE_HOUR); in TestBoundaries() 428 …Zone(- 8 * (int32_t)ONE_HOUR, "Test_1", UCAL_AUGUST, 2, UCAL_TUESDAY, 2 * (int32_t)ONE_HOUR, UCAL_… in TestNewRules() 436 …(int32_t)ONE_HOUR, "Test_2", UCAL_APRIL, 14, - UCAL_WEDNESDAY, 2 *(int32_t)ONE_HOUR, UCAL_SEPTEMBE… in TestNewRules()
|
D | calregts.cpp | 1312 double ONE_HOUR = 60*60*1000; in test4114578() local 1320 UDate onset = makeDate(1998, UCAL_APRIL, 5, 1, 0) + ONE_HOUR; in test4114578() 1321 UDate cease = makeDate(1998, UCAL_OCTOBER, 25, 0, 0) + 2*ONE_HOUR; in test4114578() 1330 onset - ONE_HOUR, ADD, 1, ONE_HOUR, in test4114578() 1331 onset, ADD, -1, -ONE_HOUR, in test4114578() 1332 onset - ONE_HOUR, ROLL, 1, ONE_HOUR, in test4114578() 1333 onset, ROLL, -1, -ONE_HOUR, in test4114578() 1334 cease - ONE_HOUR, ADD, 1, ONE_HOUR, in test4114578() 1335 cease, ADD, -1, -ONE_HOUR, in test4114578() 1336 cease - ONE_HOUR, ROLL, 1, ONE_HOUR, in test4114578() [all …]
|
D | tzregts.cpp | 849 const int32_t ONE_HOUR = 60*60*1000; in Test4162593() local 851 SimpleTimeZone *asuncion = new SimpleTimeZone(-4*ONE_HOUR, "America/Asuncion" /*PY%sT*/, in Test4162593() 852 UCAL_OCTOBER, 1, 0 /*DOM*/, 0*ONE_HOUR, in Test4162593() 853 UCAL_MARCH, 1, 0 /*DOM*/, 0*ONE_HOUR, 1*ONE_HOUR, status); in Test4162593() 877 new SimpleTimeZone(2*ONE_HOUR, "Asia/Damascus" /*EE%sT*/, in Test4162593() 878 UCAL_APRIL, 1, 0 /*DOM*/, 0*ONE_HOUR, in Test4162593() 879 UCAL_OCTOBER, 1, 0 /*DOM*/, 0*ONE_HOUR, 1*ONE_HOUR, status); in Test4162593() 897 zone[i] = fmt->format(d+ i*ONE_HOUR, zone[i], pos); in Test4162593()
|
D | tzbdtest.h | 87 const UDate ONE_HOUR; variable
|
D | calcasts.cpp | 45 static const int32_t ONE_HOUR = 60*ONE_MINUTE; in doTestCases() local 46 static const double ONE_DAY = 24*ONE_HOUR; in doTestCases()
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
D | tzbdtest.cpp | 54 ONE_HOUR(60 * ONE_MINUTE), in TimeZoneBoundaryTest() 55 ONE_DAY(24 * ONE_HOUR), in TimeZoneBoundaryTest() 205 logln(UnicodeString("PASS: getRawOffset() = ") + (expZoneOffset / ONE_HOUR)); in verifyDST() 207 …tRawOffset() = ") + (time_zone->getRawOffset() / ONE_HOUR) + "; expected " + (expZoneOffset / ONE… in verifyDST() 218 if (offset == expDSTOffset) logln(UnicodeString("PASS: getOffset() = ") + (offset / ONE_HOUR)); in verifyDST() 219 …UnicodeString("FAIL: getOffset() = ") + (offset / ONE_HOUR) + "; expected " + (expDSTOffset / ONE_… in verifyDST() 313 …erifyDST(tempcal->getTime(status),pst, TRUE, inDST, -8*ONE_HOUR,inDST ? -7*ONE_HOUR : -8*ONE_HOUR); in TestBoundaries() 329 verifyDST(e, z, TRUE, inDST, - 8 * ONE_HOUR, inDST ? - 7 * ONE_HOUR: - 8 * ONE_HOUR); in TestBoundaries() 428 …Zone(- 8 * (int32_t)ONE_HOUR, "Test_1", UCAL_AUGUST, 2, UCAL_TUESDAY, 2 * (int32_t)ONE_HOUR, UCAL_… in TestNewRules() 436 …(int32_t)ONE_HOUR, "Test_2", UCAL_APRIL, 14, - UCAL_WEDNESDAY, 2 *(int32_t)ONE_HOUR, UCAL_SEPTEMBE… in TestNewRules()
|
D | calregts.cpp | 1267 double ONE_HOUR = 60*60*1000; in test4114578() local 1275 UDate onset = makeDate(1998, UCAL_APRIL, 5, 1, 0) + ONE_HOUR; in test4114578() 1276 UDate cease = makeDate(1998, UCAL_OCTOBER, 25, 0, 0) + 2*ONE_HOUR; in test4114578() 1285 onset - ONE_HOUR, ADD, 1, ONE_HOUR, in test4114578() 1286 onset, ADD, -1, -ONE_HOUR, in test4114578() 1287 onset - ONE_HOUR, ROLL, 1, ONE_HOUR, in test4114578() 1288 onset, ROLL, -1, -ONE_HOUR, in test4114578() 1289 cease - ONE_HOUR, ADD, 1, ONE_HOUR, in test4114578() 1290 cease, ADD, -1, -ONE_HOUR, in test4114578() 1291 cease - ONE_HOUR, ROLL, 1, ONE_HOUR, in test4114578() [all …]
|
D | tzregts.cpp | 845 const int32_t ONE_HOUR = 60*60*1000; in Test4162593() local 847 SimpleTimeZone *asuncion = new SimpleTimeZone(-4*ONE_HOUR, "America/Asuncion" /*PY%sT*/, in Test4162593() 848 UCAL_OCTOBER, 1, 0 /*DOM*/, 0*ONE_HOUR, in Test4162593() 849 UCAL_MARCH, 1, 0 /*DOM*/, 0*ONE_HOUR, 1*ONE_HOUR, status); in Test4162593() 873 new SimpleTimeZone(2*ONE_HOUR, "Asia/Damascus" /*EE%sT*/, in Test4162593() 874 UCAL_APRIL, 1, 0 /*DOM*/, 0*ONE_HOUR, in Test4162593() 875 UCAL_OCTOBER, 1, 0 /*DOM*/, 0*ONE_HOUR, 1*ONE_HOUR, status); in Test4162593() 893 zone[i] = fmt->format(d+ i*ONE_HOUR, zone[i], pos); in Test4162593()
|
D | tzbdtest.h | 87 const UDate ONE_HOUR; variable
|
D | calcasts.cpp | 45 static const int32_t ONE_HOUR = 60*ONE_MINUTE; in doTestCases() local 46 static const double ONE_DAY = 24*ONE_HOUR; in doTestCases()
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/utils/ |
D | Util.java | 118 public static final long ONE_HOUR = 3600000L; field in Util 505 } else if (time < Util.ONE_HOUR) { // less than 1h in timeString() 511 long h = time / Util.ONE_HOUR; in timeString() 513 long m = (time % Util.ONE_HOUR) / Util.ONE_MINUTE; in timeString()
|