Searched refs:now (Results 1 - 18 of 18) 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/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/main/java/java/util/concurrent/
H A DAbstractExecutorService.java154 long now = System.nanoTime();
155 nanos -= now - lastTime;
156 lastTime = now;
248 long now = System.nanoTime();
249 nanos -= now - lastTime;
250 lastTime = now;
266 long now = System.nanoTime();
267 nanos -= now - lastTime;
268 lastTime = now;
H A DExchanger.java498 long now = System.nanoTime();
502 nanos -= now - lastTime;
503 lastTime = now;
H A DFutureTask.java387 long now = System.nanoTime();
388 if ((nanos -= (now - last)) <= 0L) {
392 last = now;
H A DSynchronousQueue.java126 * node's link to now point to the node itself. This doesn't arise
414 long now = System.nanoTime();
415 nanos -= now - lastTime;
416 lastTime = now;
719 long now = System.nanoTime();
720 nanos -= now - lastTime;
721 lastTime = now;
H A DPhaser.java1098 long now = System.nanoTime();
1099 nanos -= now - lastTime;
1100 lastTime = now;
H A DForkJoinPool.java1052 long now = System.nanoTime();
1053 nanos -= now - last;
1054 last = now;
1224 * @param now if true, unconditionally terminate, else only
1226 * @return true if now terminating or terminated
1228 private boolean tryTerminate(boolean now) { argument
1231 if (!now) {
H A DLinkedTransferQueue.java267 * if the initial head is now off-list, in which case they
327 * already have been removed or is now offlist). But there are two
646 if (p != t) { // update if slack now >= 2
701 long now = System.nanoTime();
702 if ((nanos -= now - lastTime) > 0)
704 lastTime = now;
733 * stale pointer that is now off the list.
889 * Unsplices (now or later) the given deleted/cancelled node with
917 return; // now empty
922 for (;;) { // sweep now i
[all...]
H A DScheduledThreadPoolExecutor.java149 final long now() { method in class:ScheduledThreadPoolExecutor
209 return unit.convert(time - now(), NANOSECONDS);
472 return 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/luni/src/main/java/java/util/concurrent/locks/
H A DAbstractQueuedLongSynchronizer.java470 * racing acquires/releases, so most need signals now or soon
677 long now = System.nanoTime();
678 nanosTimeout -= now - lastTime;
679 lastTime = now;
781 long now = System.nanoTime();
782 nanosTimeout -= now - lastTime;
783 lastTime = now;
838 * @return {@code true} if this object is now in a fully released
1373 * a condition queue, is now waiting to reacquire on sync queue.
1834 long now
[all...]
H A DAbstractQueuedSynchronizer.java699 * racing acquires/releases, so most need signals now or soon
906 long now = System.nanoTime();
907 nanosTimeout -= now - lastTime;
908 lastTime = now;
1010 long now = System.nanoTime();
1011 nanosTimeout -= now - lastTime;
1012 lastTime = now;
1067 * @return {@code true} if this object is now in a fully released
1603 * a condition queue, is now waiting to reacquire on sync queue.
2062 long now
[all...]
/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/luni/src/test/java/tests/api/java/util/
H A DDateTest.java36 long now = new Date().getTime();
37 assertTrue("Created incorrect date: " + oldTime + " now: " + now,
38 oldTime < now);
/libcore/luni/src/main/java/libcore/net/http/
H A DHttpEngine.java274 long now = System.currentTimeMillis();
275 this.responseSource = cachedResponseHeaders.chooseResponseSource(now, requestHeaders);
/libcore/support/src/test/java/libcore/java/security/
H A DTestKeyStore.java486 long now = System.currentTimeMillis();
487 Date start = new Date(now - millisPerDay);
488 Date end = new Date(now + millisPerDay);

Completed in 743 milliseconds