/external/guava/guava-tests/test/com/google/common/base/ |
D | StopwatchTest.java | 21 import static java.util.concurrent.TimeUnit.NANOSECONDS; 42 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testInitialState() 91 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testReset_new() 94 assertEquals(3, stopwatch.elapsedTime(NANOSECONDS)); in testReset_new() 100 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testReset_whileRunning() 102 assertEquals(2, stopwatch.elapsedTime(NANOSECONDS)); in testReset_whileRunning() 106 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testReset_whileRunning() 112 assertEquals(0, stopwatch.elapsedTime(NANOSECONDS)); in testElapsedTime_whileRunning() 115 assertEquals(345, stopwatch.elapsedTime(NANOSECONDS)); in testElapsedTime_whileRunning() 124 assertEquals(4, stopwatch.elapsedTime(NANOSECONDS)); in testElapsedTime_notRunning() [all …]
|
D | SuppliersTest.java | 242 supplier, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testExpiringMemoizedSupplierThreadSafe()
|
/external/guava/guava/src/com/google/common/base/ |
D | Stopwatch.java | 23 import static java.util.concurrent.TimeUnit.NANOSECONDS; 157 return desiredUnit.convert(elapsedNanos(), NANOSECONDS); in elapsedTime() 189 double value = (double) nanos / NANOSECONDS.convert(1, unit); in toString() 197 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 200 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 203 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 206 return NANOSECONDS; in chooseUnit() 211 case NANOSECONDS: in abbreviate()
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
D | Stopwatch.java | 23 import static java.util.concurrent.TimeUnit.NANOSECONDS; 156 return desiredUnit.convert(elapsedNanos(), NANOSECONDS); in elapsedTime() 169 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 172 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 175 if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 178 return NANOSECONDS; in chooseUnit() 183 case NANOSECONDS: in abbreviate()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | Uninterruptibles.java | 19 import static java.util.concurrent.TimeUnit.NANOSECONDS; 83 return latch.await(remainingNanos, NANOSECONDS); in awaitUninterruptibly() 164 return future.get(remainingNanos, NANOSECONDS); in getUninterruptibly() 192 NANOSECONDS.timedJoin(toJoin, remainingNanos); in joinUninterruptibly() 261 NANOSECONDS.sleep(remainingNanos); in sleepUninterruptibly()
|
D | AbstractListeningExecutorService.java | 98 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); in doInvokeAny() 215 f.get(nanos, TimeUnit.NANOSECONDS); in invokeAll()
|
D | Futures.java | 28 import static java.util.concurrent.TimeUnit.NANOSECONDS; 649 if (unit != NANOSECONDS) { 650 timeout = NANOSECONDS.convert(timeout, unit); 651 unit = NANOSECONDS;
|
D | Monitor.java | 321 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); in enter() 453 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) { in enterWhenUninterruptibly()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | QueuesTest.java | 94 int elements = drain(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS, interruptibly); in testMultipleProducers() 163 int elements = Queues.drain(q, buf, -1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testNegativeMaxElements() 169 Queues.drain(q, buf, 1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testNegativeMaxElements() 181 Queues.drain(q, ImmutableList.of(), 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testDrain_throws() 204 Queues.drainUninterruptibly(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testDrainUninterruptibly_doesNotThrow() 243 Queues.drain(q, Lists.newArrayList(), 1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in assertInterruptibleDrained()
|
D | ComputingConcurrentHashMapTest.java | 227 MapMaker maker = createMapMaker().expireAfterWrite(1, TimeUnit.NANOSECONDS); in testComputeExpiredEntry()
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/ |
D | RecordingReceiver.java | 50 long timeoutMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) + TIMEOUT_MILLIS; in await() 58 long nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()); in await()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | InterruptionUtil.java | 20 import static java.util.concurrent.TimeUnit.NANOSECONDS; 127 NANOSECONDS.timedJoin(thread, remainingNanos); in joinUninterruptibly()
|
D | JSR166TestCase.java | 31 import static java.util.concurrent.TimeUnit.NANOSECONDS; 756 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime); in millisElapsedSince()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Queues.java | 218 E e = q.poll(deadline - System.nanoTime(), TimeUnit.NANOSECONDS); in drain() 257 e = q.poll(deadline - System.nanoTime(), TimeUnit.NANOSECONDS); in drainUninterruptibly()
|
D | MapMakerInternalMap.java | 4006 mapMaker.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS); 4009 mapMaker.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderTest.java | 25 import static java.util.concurrent.TimeUnit.NANOSECONDS; 277 .expireAfterWrite(1, NANOSECONDS) in testTimeToLive_small() 304 .expireAfterAccess(1, NANOSECONDS) in testTimeToIdle_small() 323 .expireAfterWrite(1, NANOSECONDS) in testTimeToIdleAndToLive() 324 .expireAfterAccess(1, NANOSECONDS) in testTimeToIdleAndToLive()
|
D | LocalCacheTest.java | 31 import static java.util.concurrent.TimeUnit.NANOSECONDS; 531 .expireAfterWrite(1, TimeUnit.NANOSECONDS); in testComputeExpiredEntry() 822 .expireAfterWrite(2, TimeUnit.NANOSECONDS) in testRemovalListener_expired() 964 .expireAfterAccess(1, TimeUnit.NANOSECONDS)); in testSegmentGetAndContains() 2042 .expireAfterWrite(1, TimeUnit.NANOSECONDS)); in testExpireAfterWrite() 2081 .expireAfterAccess(1, TimeUnit.NANOSECONDS)); in testExpireAfterAccess() 2367 .expireAfterAccess(123, NANOSECONDS) in testSerializationProxyManual()
|
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
D | TimeUnit.java | 14 NANOSECONDS { enumConstant
|
/external/guava/guava/src/com/google/common/cache/ |
D | LocalCache.java | 24 import static java.util.concurrent.TimeUnit.NANOSECONDS; 3581 return stopwatch.elapsedTime(NANOSECONDS); in elapsedNanos() 4063 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS)); 4068 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS)); 4087 globalStatsCounter.recordLoadException(stopwatch.elapsedTime(NANOSECONDS)); 4092 globalStatsCounter.recordLoadSuccess(stopwatch.elapsedTime(NANOSECONDS)); 4650 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS); 4653 builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
D | SpdyConnectionTest.java | 857 assertEquals(1000d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
|
/external/srec/config/en.us/dictionary/ |
D | c0.6 | 78094 NANOSECONDS N AE1 N OW0 S EH2 K AH0 N D Z
|