Home
last modified time | relevance | path

Searched refs:now (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DTimestampTest.java39 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 …]
DCodeSignerTest.java39 private Date now = new Date(); field in CodeSignerTest
41 private Timestamp ts = new Timestamp(now, cpath);
/libcore/luni/src/main/native/
Djava_lang_System.cpp109 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()
Dlibcore_icu_TimeZoneNames.cpp76 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()
Dlibcore_io_Posix.cpp1311 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/
DRelativeDateTimeFormatterTest.java361 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/
DAsciiHprofWriter.java69 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/
DRelativeDateTimeFormatter.java92 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 …]
DDateUtilsBridge.java173 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/
DOldGregorianCalendarTest.java31 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/
DDateTest.java37 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()
DFormatterTest.java1719 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/
DSamplingProfilerTest.java100 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/
DThread.java1033 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/
DScheduledThreadPoolExecutor.java150 final long now() { in now() method in ScheduledThreadPoolExecutor
212 return unit.convert(time - now(), NANOSECONDS); in getDelay()
494 return now() + in triggerTime()
DForkJoinPool.java2195 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/
DTestKeyStore.java579 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/
Dbrokentests.txt112 description: "Suffers from DH slowness, disabling for now.",
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java404 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/
DSerializationStressTest2.java1165 Date now = new Date(); in test_OptionalDataNotRead() local
1168 twoObjects[1] = now; in test_OptionalDataNotRead()