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

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DTimestampTest.java39 private Date now = new Date(); field in class:TimestampTest
53 new Timestamp(now, null);
59 Timestamp timestamp = new Timestamp(now, cpath);
60 assertEquals("not expected value", now, timestamp.getTimestamp());
68 Timestamp one = new Timestamp(now, cpath);
69 Timestamp two = new Timestamp(now, cpath);
83 assertSame(new Timestamp(now, cpath).getSignerCertPath(), cpath);
87 Timestamp t = new Timestamp(now, cpath);
88 assertEquals(now, t.getTimestamp());
89 assertNotSame(now,
[all...]
H A DCodeSignerTest.java39 private Date now = new Date(); field in class:CodeSignerTest
41 private Timestamp ts = new Timestamp(now, cpath);
/libcore/luni/src/main/native/
H A Djava_lang_System.cpp109 timeval now; local
110 gettimeofday(&now, NULL);
111 jlong when = now.tv_sec * 1000LL + now.tv_usec / 1000;
117 timespec now; local
118 clock_gettime(CLOCK_MONOTONIC, &now);
119 return now.tv_sec * 1000000000LL + now.tv_nsec;
121 timeval now;
122 gettimeofday(&now, NUL
[all...]
H A Dlibcore_icu_TimeZoneNames.cpp76 const UDate now(icu::Calendar::getNow());
92 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_STANDARD, now, long_std);
94 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_STANDARD, now, short_std);
96 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_DAYLIGHT, now, long_dst);
98 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_DAYLIGHT, now, short_dst);
138 const UDate now(icu::Calendar::getNow());
139 names->getDisplayName(tz.unicodeString(), UTZNM_EXEMPLAR_LOCATION, now, s);
H A Dlibcore_io_Posix.cpp1311 timespec now; local
1312 clock_gettime(CLOCK_MONOTONIC, &now);
1315 diff.tv_sec = now.tv_sec - before.tv_sec;
1316 diff.tv_nsec = now.tv_nsec - before.tv_nsec;
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DAsciiHprofWriter.java69 Date now = new Date(data.getStartMillis());
72 total, now, now, now, now, now);
/libcore/luni/src/test/java/libcore/icu/
H A DRelativeDateTimeFormatterTest.java355 // (now + DAY_IN_MILLIS).
361 final long now = cal.getTimeInMillis();
365 now - 42 * MINUTE_IN_MILLIS, now, MINUTE_IN_MILLIS, 0));
368 now + 42 * MINUTE_IN_MILLIS, now, MINUTE_IN_MILLIS, 0));
371 now - DAY_IN_MILLIS, now, DAY_IN_MILLIS, 0));
374 now - 2 * DAY_IN_MILLIS, now, DAY_IN_MILLI
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DRelativeDateTimeFormatter.java67 * return a string describing 'time' as a time relative to 'now' such as
72 * the elapsed time between time' and 'now', e.g. minutes, days and etc.
87 * the abbreviated forms when available. When 'time' equals to 'now', it
92 long now, long minResolution, int flags) {
96 return getRelativeTimeSpanString(locale, tz, time, now, minResolution, flags, displayContext);
100 long now, long minResolution, int flags, DisplayContext displayContext) {
109 return getRelativeTimeSpanString(icuLocale, icuTimeZone, time, now, minResolution, flags,
114 com.ibm.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, int flags,
117 long duration = Math.abs(now - time);
118 boolean past = (now >
91 getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, long now, long minResolution, int flags) argument
99 getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, long now, long minResolution, int flags, DisplayContext displayContext) argument
113 getRelativeTimeSpanString(ULocale icuLocale, com.ibm.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, int flags, DisplayContext displayContext) argument
260 getRelativeDateTimeString(Locale locale, java.util.TimeZone tz, long time, long now, long minResolution, long transitionResolution, int flags) argument
[all...]
H A DDateUtilsBridge.java173 Calendar now = (Calendar) c.clone();
174 now.setTimeInMillis(System.currentTimeMillis());
175 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR);
/libcore/luni/src/test/java/libcore/java/util/
H A DOldGregorianCalendarTest.java31 Date now = new Date();
34 gc1.setTime(now);
36 gc2.setTime(now);
/libcore/dalvik/src/test/java/dalvik/system/profiler/
H A DSamplingProfilerTest.java100 long now = System.currentTimeMillis();
101 hprofData.setStartMillis(now);
102 assertEquals(now, hprofData.getStartMillis());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DDateTest.java37 long now = new Date().getTime();
38 assertTrue("Created incorrect date: " + oldTime + " now: " + now,
39 oldTime < now);
H A DFormatterTest.java1719 Date now = new Date(1147327147578L);
2410 f.format("%-10ta", now); //$NON-NLS-2$
2414 f.format("%10000000000000000000000000000000001ta", now); //$NON-NLS-2$
/libcore/libart/src/main/java/java/lang/
H A DThread.java1033 long now = System.nanoTime();
1034 long elapsed = now - start;
1041 start = now;
/libcore/luni/src/main/java/java/util/concurrent/
H A DScheduledThreadPoolExecutor.java150 final long now() { method in class:ScheduledThreadPoolExecutor
212 return unit.convert(time - now(), NANOSECONDS);
494 return now() +
H A DForkJoinPool.java2190 * @param now if true, unconditionally terminate, else only
2193 * @return true if now terminating or terminated
2195 private boolean tryTerminate(boolean now, boolean enable) { argument
2218 if (!now) { // check if idle & no tasks
2578 // a task to run ForkJoinTask.invokeAll, but now external
/libcore/support/src/test/java/libcore/java/security/
H A DTestKeyStore.java579 long now = System.currentTimeMillis();
580 Date start = new Date(now - millisPerDay);
581 Date end = new Date(now + millisPerDay);
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CertificateTest.java404 Date now = new Date();
405 assertTrue(now.after(dates[0]));
406 assertTrue(now.before(dates[1]));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DSerializationStressTest2.java1165 Date now = new Date();
1168 twoObjects[1] = now;
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 571 milliseconds