/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpDateTest.java | 47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime()); in parseStandardFormats() 48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime()); in parseStandardFormats() 51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime()); in parseStandardFormats() 52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime()); in parseStandardFormats() 55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime()); in parseStandardFormats() 56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime()); in parseStandardFormats() 66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() 67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime()); in parseNonStandardStrings() 69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime()); in parseNonStandardStrings() 80 assertEquals(3600000L, HttpDate.parse("Thursday, 01-Jan-1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() [all …]
|
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 43 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 44 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 45 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined() 46 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined() 49 new DateInterval(date[0].getTime(),date[1].getTime()), in dtitvfmtPreDefined() 50 new DateInterval(date[1].getTime(),date[2].getTime()), in dtitvfmtPreDefined() 51 new DateInterval(date[2].getTime(),date[3].getTime()), in dtitvfmtPreDefined() 86 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized() 87 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized() 88 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized() [all …]
|
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 42 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 43 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 44 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined() 45 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined() 48 new DateInterval(date[0].getTime(),date[1].getTime()), in dtitvfmtPreDefined() 49 new DateInterval(date[1].getTime(),date[2].getTime()), in dtitvfmtPreDefined() 50 new DateInterval(date[2].getTime(),date[3].getTime()), in dtitvfmtPreDefined() 85 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized() 86 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized() 87 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 103 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 115 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 195 cal.getTime(); in Test4051765() 271 Date cd = gc.getTime(); in Test4059654() 275 Date exp = cal.getTime(); in Test4059654() 311 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 342 return cal.getTime(); in getAssociatedDate() 361 logln(cal.getTime().toString()); in dowTest() 382 cal.setTime(tempcal.getTime()); in Test4071385() 384 logln(cal.getTime().toString()); in Test4071385() [all …]
|
D | CompatibilityTest.java | 59 long a = jdkCal.getTime().getTime(); in TestGregorianChangeover() 60 Date c = jdkCal.getTime(); in TestGregorianChangeover() 62 long b = c.getTime(); in TestGregorianChangeover() 69 Date co = jdkCal.getTime(); in TestGregorianChangeover() 70 logln("Change over (Oct 15 1582) = " + co + " (" + co.getTime() + ")"); in TestGregorianChangeover() 97 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 153 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 199 long calMillis = cal.getTime().getTime(); in TestMapping() 220 calMillis = cal.getTime().getTime(); in TestMapping() 238 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 48 astro.setDate(gc.getTime()); in TestSolarLongitude() 101 astro.setDate(gc.getTime()); in TestLunarPosition() 139 Date then = cal.getTime(); in TestCoverage() 164 logln(" time: " + astro.getTime()); in TestCoverage() 258 astro.setDate(cal.getTime()); in TestSunriseTimes() 263 cal2.setTime(cal.getTime()); in TestSunriseTimes() 269 Date exprise = cal2.getTime(); in TestSunriseTimes() 272 Date expset = cal2.getTime(); in TestSunriseTimes() 274 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 275 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
D | HolidayTest.java | 38 longTimeAgo = cal.getTime(); in init() 107 first.setTime(first.getTime() + awhile); in exerciseHoliday() 166 c.getTime(); // JDK 1.1.2 bug workaround in exerciseHoliday() 168 Date endOfMonth = c.getTime(); in exerciseHoliday() 201 d.setTime( d.getTime() + 1000 ); // "d++" in exerciseHoliday() 226 return fCalendar.getTime(); in startOfMonth() 300 Date d0 = gcal.getTime(); in TestIsOn() 302 Date d1 = gcal.getTime(); in TestIsOn() 304 Date d2 = gcal.getTime(); in TestIsOn() 306 Date d3 = gcal.getTime(); in TestIsOn() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 102 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 114 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 194 cal.getTime(); in Test4051765() 270 Date cd = gc.getTime(); in Test4059654() 274 Date exp = cal.getTime(); in Test4059654() 310 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 341 return cal.getTime(); in getAssociatedDate() 360 logln(cal.getTime().toString()); in dowTest() 381 cal.setTime(tempcal.getTime()); in Test4071385() 383 logln(cal.getTime().toString()); in Test4071385() [all …]
|
D | CompatibilityTest.java | 58 long a = jdkCal.getTime().getTime(); in TestGregorianChangeover() 59 Date c = jdkCal.getTime(); in TestGregorianChangeover() 61 long b = c.getTime(); in TestGregorianChangeover() 68 Date co = jdkCal.getTime(); in TestGregorianChangeover() 69 logln("Change over (Oct 15 1582) = " + co + " (" + co.getTime() + ")"); in TestGregorianChangeover() 96 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 152 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 198 long calMillis = cal.getTime().getTime(); in TestMapping() 219 calMillis = cal.getTime().getTime(); in TestMapping() 237 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 47 astro.setDate(gc.getTime()); in TestSolarLongitude() 100 astro.setDate(gc.getTime()); in TestLunarPosition() 138 Date then = cal.getTime(); in TestCoverage() 163 logln(" time: " + astro.getTime()); in TestCoverage() 257 astro.setDate(cal.getTime()); in TestSunriseTimes() 262 cal2.setTime(cal.getTime()); in TestSunriseTimes() 268 Date exprise = cal2.getTime(); in TestSunriseTimes() 271 Date expset = cal2.getTime(); in TestSunriseTimes() 273 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 274 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
D | HolidayTest.java | 37 longTimeAgo = cal.getTime(); in init() 106 first.setTime(first.getTime() + awhile); in exerciseHoliday() 165 c.getTime(); // JDK 1.1.2 bug workaround in exerciseHoliday() 167 Date endOfMonth = c.getTime(); in exerciseHoliday() 200 d.setTime( d.getTime() + 1000 ); // "d++" in exerciseHoliday() 225 return fCalendar.getTime(); in startOfMonth() 299 Date d0 = gcal.getTime(); in TestIsOn() 301 Date d1 = gcal.getTime(); in TestIsOn() 303 Date d2 = gcal.getTime(); in TestIsOn() 305 Date d3 = gcal.getTime(); in TestIsOn() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue49/ |
D | CalendarTest.java | 105 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadBean() 106 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadBean() 110 assertEquals(date, calendar.getTime()); in testLoadBean() 117 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadWithTag() 118 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadWithTag() 121 assertEquals(date, calendar.getTime()); in testLoadWithTag()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 70 long min = d.getTime(); in findDaylightBoundaryUsingDate() 150 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 209 d.getTime(); in showDate() 228 fmt.format(d) + " = " + d.getTime(); in showDate() 244 Date d = cal.getTime(); in verifyDST() 248 d.getTime()/3600000.0 + ")"); in verifyDST() 306 Date d = cal.getTime(); in verifyMapping() 307 double e = d.getTime() / H; in verifyMapping() 419 Date d = tempcal.getTime(); in TestBoundaries() 431 tempcal.setTimeInMillis(d.getTime() + i*60*1000); in TestBoundaries() [all …]
|
D | TimeZoneRuleTest.java | 147 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 168 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 494 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTrip() 496 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTrip() 502 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, false)) { in TestVTimeZoneRoundTrip() 555 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTripPartial() 557 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTripPartial() 658 + lastmod.getTime() + "/After:" + newvtz1.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 689 + lastmod.getTime() + "/After:" + newvtz2.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 865 d2 = a1.getPreviousStart(d1.getTime(), -3*HOUR, 0, true); in TestTimeZoneRuleCoverage() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 69 long min = d.getTime(); in findDaylightBoundaryUsingDate() 149 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 208 d.getTime(); in showDate() 227 fmt.format(d) + " = " + d.getTime(); in showDate() 243 Date d = cal.getTime(); in verifyDST() 247 d.getTime()/3600000.0 + ")"); in verifyDST() 305 Date d = cal.getTime(); in verifyMapping() 306 double e = d.getTime() / H; in verifyMapping() 418 Date d = tempcal.getTime(); in TestBoundaries() 430 tempcal.setTimeInMillis(d.getTime() + i*60*1000); in TestBoundaries() [all …]
|
D | TimeZoneRuleTest.java | 146 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 167 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 493 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTrip() 495 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTrip() 501 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, false)) { in TestVTimeZoneRoundTrip() 554 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTripPartial() 556 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTripPartial() 657 + lastmod.getTime() + "/After:" + newvtz1.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 688 + lastmod.getTime() + "/After:" + newvtz2.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 864 d2 = a1.getPreviousStart(d1.getTime(), -3*HOUR, 0, true); in TestTimeZoneRuleCoverage() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BasicTimeZone.java | 147 && tr1.getTime() <= end in hasEquivalentTransitions() 151 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 158 && tr2.getTime() <= end in hasEquivalentTransitions() 162 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 172 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 177 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 188 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 204 time = tr1.getTime(); in hasEquivalentTransitions() 271 time = tzt.getTime(); in getTimeZoneRules() 299 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 154 getOffset(date.getTime(), false, offsets); in inDaylightTime() 234 time = tt.getTime(); in observesDaylightTime() 354 long tt = tzt.getTime(); in getNextTransition() 360 tt = tzt.getTime(); in getNextTransition() 372 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 374 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 387 tt = tzt.getTime(); in getNextTransition() 406 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 425 long tt = tzt.getTime(); in getPreviousTransition() 433 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | BasicTimeZone.java | 140 && tr1.getTime() <= end in hasEquivalentTransitions() 144 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 151 && tr2.getTime() <= end in hasEquivalentTransitions() 155 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 165 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 170 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 181 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 197 time = tr1.getTime(); in hasEquivalentTransitions() 260 time = tzt.getTime(); in getTimeZoneRules() 288 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 143 getOffset(date.getTime(), false, offsets); in inDaylightTime() 218 time = tt.getTime(); in observesDaylightTime() 332 long tt = tzt.getTime(); in getNextTransition() 338 tt = tzt.getTime(); in getNextTransition() 350 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 352 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 365 tt = tzt.getTime(); in getNextTransition() 384 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 401 long tt = tzt.getTime(); in getPreviousTransition() 409 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 95 astro->setDate(gc->getTime(status)); in TestSolarLongitude() 122 astro->setDate(gc->getTime(status)); in TestLunarPosition() 153 UDate then = cal->getTime(status); in TestCoverage() 181 logln((UnicodeString)" date: " + anAstro->getTime()); in TestCoverage() 292 astro3->setDate(cal->getTime(status)); in TestSunriseTimes() 299 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes() 305 UDate exprise = cal2->getTime(status); in TestSunriseTimes() 308 UDate expset = cal2->getTime(status); in TestSunriseTimes() 321 errln("FAIL: (rise) " + df_d->format(cal->getTime(status),s1) + in TestSunriseTimes() 326 logln(df_d->format(cal->getTime(status),s1) + in TestSunriseTimes() [all …]
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 55 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor() 56 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor() 211 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability() 212 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability() 214 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor() 55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor() 210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability() 211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability() 213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
|
/external/mockftpserver/tags/2.1/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor() 55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor() 210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability() 211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability() 213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
|
/external/mockftpserver/tags/2.0.2/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor() 55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor() 210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability() 211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability() 213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
|