Searched refs:now (Results 1 - 17 of 17) 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.cpp105 timeval now; local
106 gettimeofday(&now, NULL);
107 jlong when = now.tv_sec * 1000LL + now.tv_usec / 1000;
113 timespec now; local
114 clock_gettime(CLOCK_MONOTONIC, &now);
115 return now.tv_sec * 1000000000LL + now.tv_nsec;
117 timeval now;
118 gettimeofday(&now, NUL
[all...]
H A Dlibcore_icu_TimeZoneNames.cpp75 const UDate now(Calendar::getNow());
91 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_STANDARD, now, long_std);
93 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_STANDARD, now, short_std);
95 names->getDisplayName(zone_id.unicodeString(), UTZNM_LONG_DAYLIGHT, now, long_dst);
97 names->getDisplayName(zone_id.unicodeString(), UTZNM_SHORT_DAYLIGHT, now, short_dst);
137 const UDate now(Calendar::getNow());
138 names->getDisplayName(tz.unicodeString(), UTZNM_EXEMPLAR_LOCATION, now, s);
/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/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.java36 long now = new Date().getTime();
37 assertTrue("Created incorrect date: " + oldTime + " now: " + now,
38 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/luni/src/main/java/libcore/icu/
H A DDateIntervalFormat.java223 Calendar now = Calendar.getInstance(c.getTimeZone());
224 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR);
/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.java148 final long now() { method in class:ScheduledThreadPoolExecutor
208 return unit.convert(time - now(), NANOSECONDS);
470 return now() +
H A DForkJoinPool.java2197 * @param now if true, unconditionally terminate, else only
2200 * @return true if now terminating or terminated
2202 private boolean tryTerminate(boolean now, boolean enable) { argument
2225 if (!now) { // check if idle & no tasks
2585 // a task to run ForkJoinTask.invokeAll, but now external
/libcore/support/src/test/java/libcore/java/security/
H A DTestKeyStore.java550 long now = System.currentTimeMillis();
551 Date start = new Date(now - millisPerDay);
552 Date end = new Date(now + millisPerDay);
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CertificateTest.java397 Date now = new Date();
398 assertTrue(now.after(dates[0]));
399 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 9771 milliseconds