/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | TimestampTest.java | 39 private Date now = new Date(); field in TimestampTest 53 new Timestamp(now, null); in testTimestamp() 59 Timestamp timestamp = new Timestamp(now, cpath); in testTimestamp() 60 assertEquals("not expected value", now, timestamp.getTimestamp()); in testTimestamp() 68 Timestamp one = new Timestamp(now, cpath); in testEqualsObject() 69 Timestamp two = new Timestamp(now, cpath); in testEqualsObject() 83 assertSame(new Timestamp(now, cpath).getSignerCertPath(), cpath); in testGetSignerCertPath() 87 Timestamp t = new Timestamp(now, cpath); in testGetTimestamp() 88 assertEquals(now, t.getTimestamp()); in testGetTimestamp() 89 assertNotSame(now, t.getTimestamp()); in testGetTimestamp() [all …]
|
D | CodeSignerTest.java | 39 private Date now = new Date(); field in CodeSignerTest 41 private Timestamp ts = new Timestamp(now, cpath);
|
/libcore/luni/src/main/native/ |
D | java_lang_System.cpp | 109 timeval now; in System_currentTimeMillis() local 110 gettimeofday(&now, NULL); in System_currentTimeMillis() 111 jlong when = now.tv_sec * 1000LL + now.tv_usec / 1000; in System_currentTimeMillis() 117 timespec now; in System_nanoTime() local 118 clock_gettime(CLOCK_MONOTONIC, &now); in System_nanoTime() 119 return now.tv_sec * 1000000000LL + now.tv_nsec; in System_nanoTime() 121 timeval now; in System_nanoTime() 122 gettimeofday(&now, NULL); in System_nanoTime() 123 return static_cast<jlong>(now.tv_sec) * 1000000000LL + now.tv_usec * 1000LL; in System_nanoTime()
|
D | libcore_icu_TimeZoneNames.cpp | 76 const UDate now(icu::Calendar::getNow()); in TimeZoneNames_fillZoneStrings() local 92 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_STANDARD, now, long_std); in TimeZoneNames_fillZoneStrings() 94 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_STANDARD, now, short_std); in TimeZoneNames_fillZoneStrings() 96 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_DAYLIGHT, now, long_dst); in TimeZoneNames_fillZoneStrings() 98 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_DAYLIGHT, now, short_dst); in TimeZoneNames_fillZoneStrings() 138 const UDate now(icu::Calendar::getNow()); in TimeZoneNames_getExemplarLocation() local 139 names->getDisplayName(tz.unicodeString(), UTZNM_EXEMPLAR_LOCATION, now, s); in TimeZoneNames_getExemplarLocation()
|
D | libcore_io_Posix.cpp | 1311 timespec now; in Posix_poll() local 1312 clock_gettime(CLOCK_MONOTONIC, &now); in Posix_poll() 1315 diff.tv_sec = now.tv_sec - before.tv_sec; in Posix_poll() 1316 diff.tv_nsec = now.tv_nsec - before.tv_nsec; in Posix_poll()
|
/libcore/luni/src/test/java/libcore/icu/ |
D | RelativeDateTimeFormatterTest.java | 361 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringGerman() local 365 now - 42 * MINUTE_IN_MILLIS, now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman() 368 now + 42 * MINUTE_IN_MILLIS, now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman() 371 now - DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman() 374 now - 2 * DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman() 377 now + DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman() 380 now + 2 * DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringGerman() 389 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringFrench() local 393 now - (42 * MINUTE_IN_MILLIS), now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringFrench() 396 now + (42 * MINUTE_IN_MILLIS), now, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringFrench() [all …]
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
D | AsciiHprofWriter.java | 69 Date now = new Date(data.getStartMillis()); in write() local 72 total, now, now, now, now, now); in write()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | RelativeDateTimeFormatter.java | 92 long now, long minResolution, int flags) { in getRelativeTimeSpanString() argument 96 return getRelativeTimeSpanString(locale, tz, time, now, minResolution, flags, displayContext); in getRelativeTimeSpanString() 100 long now, long minResolution, int flags, DisplayContext displayContext) { in getRelativeTimeSpanString() argument 109 return getRelativeTimeSpanString(icuLocale, icuTimeZone, time, now, minResolution, flags, in getRelativeTimeSpanString() 114 com.ibm.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, int flags, in getRelativeTimeSpanString() argument 117 long duration = Math.abs(now - time); in getRelativeTimeSpanString() 118 boolean past = (now >= time); in getRelativeTimeSpanString() 155 count = Math.abs(dayDistance(icuTimeZone, time, now)); in getRelativeTimeSpanString() 209 Calendar nowCalendar = DateUtilsBridge.createIcuCalendar(icuTimeZone, icuLocale, now); in getRelativeTimeSpanString() 261 long now, long minResolution, long transitionResolution, int flags) { in getRelativeDateTimeString() argument [all …]
|
D | DateUtilsBridge.java | 173 Calendar now = (Calendar) c.clone(); in isThisYear() local 174 now.setTimeInMillis(System.currentTimeMillis()); in isThisYear() 175 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR); in isThisYear()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldGregorianCalendarTest.java | 31 Date now = new Date(); in testGetHour() local 34 gc1.setTime(now); in testGetHour() 36 gc2.setTime(now); in testGetHour()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | DateTest.java | 37 long now = new Date().getTime(); in test_Constructor() local 38 assertTrue("Created incorrect date: " + oldTime + " now: " + now, in test_Constructor() 39 oldTime < now); in test_Constructor()
|
D | FormatterTest.java | 1719 Date now = new Date(1147327147578L); in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() local 2410 f.format("%-10ta", now); //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion() 2414 f.format("%10000000000000000000000000000000001ta", now); //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
|
/libcore/dalvik/src/test/java/dalvik/system/profiler/ |
D | SamplingProfilerTest.java | 100 long now = System.currentTimeMillis(); in test_HprofData_timeMillis() local 101 hprofData.setStartMillis(now); in test_HprofData_timeMillis() 102 assertEquals(now, hprofData.getStartMillis()); in test_HprofData_timeMillis()
|
/libcore/libart/src/main/java/java/lang/ |
D | Thread.java | 1033 long now = System.nanoTime(); in sleep() local 1034 long elapsed = now - start; in sleep() 1041 start = now; in sleep()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 150 final long now() { in now() method in ScheduledThreadPoolExecutor 212 return unit.convert(time - now(), NANOSECONDS); in getDelay() 494 return now() + in triggerTime()
|
D | ForkJoinPool.java | 2195 private boolean tryTerminate(boolean now, boolean enable) { in tryTerminate() argument 2218 if (!now) { // check if idle & no tasks in tryTerminate()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 579 long now = System.currentTimeMillis(); in createCertificate() local 580 Date start = new Date(now - millisPerDay); in createCertificate() 581 Date end = new Date(now + millisPerDay); in createCertificate()
|
/libcore/expectations/ |
D | brokentests.txt | 112 description: "Suffers from DH slowness, disabling for now.",
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CertificateTest.java | 404 Date now = new Date(); in checkValidity() local 405 assertTrue(now.after(dates[0])); in checkValidity() 406 assertTrue(now.before(dates[1])); in checkValidity()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest2.java | 1165 Date now = new Date(); in test_OptionalDataNotRead() local 1168 twoObjects[1] = now; in test_OptionalDataNotRead()
|