Home
last modified time | relevance | path

Searched refs:toMillis (Results 1 – 25 of 34) sorted by relevance

12

/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DTimeUnit.java21 public long toMillis(long d) { return d/(C2/C0); } in toMillis() method
32 public long toMillis(long d) { return d/(C2/C1); } in toMillis() method
43 public long toMillis(long d) { return d; } in toMillis() method
48 public long convert(long d, TimeUnit u) { return u.toMillis(d); } in convert()
54 public long toMillis(long d) { return x(d, C3/C2, MAX/(C3/C2)); } in toMillis() method
65 public long toMillis(long d) { return x(d, C4/C2, MAX/(C4/C2)); } in toMillis() method
76 public long toMillis(long d) { return x(d, C5/C2, MAX/(C5/C2)); } in toMillis() method
87 public long toMillis(long d) { return x(d, C6/C2, MAX/(C6/C2)); } in toMillis() method
127 public long toMillis(long duration) { in toMillis() method in TimeUnit
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRecordingCallback.java30 public static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10);
53 long timeoutMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) + TIMEOUT_MILLIS; in await()
63 long nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()); in await()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DCacheStrategy.java200 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate()
205 minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds()); in getCandidate()
211 maxStaleMillis = SECONDS.toMillis(requestCaching.maxStaleSeconds()); in getCandidate()
249 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime()
280 ? Math.max(apparentReceivedAge, SECONDS.toMillis(ageSeconds)) in cacheResponseAge()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTime.java67 long millis = time.toMillis(true); in isEpoch()
117 public long toMillis(boolean ignoreDst) { in toMillis() method in ShadowTime
167 long ams = a.toMillis(false); in compare()
168 long bms = b.toMillis(false); in compare()
218 return strftime.format(new Date(toMillis(false))); in format()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DTimeTest.java19 assertThat(t.toMillis(false), not(equalTo(0l))); in shouldSetToNow()
106 assertEquals(86400 * 1000, t.toMillis(false)); in shouldHaveToMillis()
233 millis = time.toMillis(false); in testSetJulianDay()
/external/okhttp/okio/okio/src/test/java/okio/
DSocketTimeoutTest.java83 assertTrue("elapsed: " + elapsed, TimeUnit.NANOSECONDS.toMillis(elapsed) >= 500); in writeWithTimeout()
84 assertTrue("elapsed: " + elapsed, TimeUnit.NANOSECONDS.toMillis(elapsed) <= 750); in writeWithTimeout()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java201 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos); in throttleRequest()
227 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos);
252 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos);
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DWrappingExecutorServiceTest.java206 assertEquals(unit.toMillis(timeout), lastTimeoutInMillis); in assertMethodWithTimeout()
229 lastTimeoutInMillis = unit.toMillis(timeout); in invokeAll()
247 lastTimeoutInMillis = unit.toMillis(timeout); in invokeAny()
DRateLimiterTest.java331 return TimeUnit.NANOSECONDS.toMillis(ticker.instant - startTime); in measureTotalTimeMillis()
/external/apache-http/src/org/apache/http/impl/conn/
DSingleClientConnManager.java334 connectionExpiresTime = timeUnit.toMillis(validDuration) + lastReleaseTime;
358 System.currentTimeMillis() - tunit.toMillis(idletime);
DIdleConnectionHandler.java189 this.timeExpires = now + validUnit.toMillis(validDuration); in TimeValues()
DAbstractClientConnAdapter.java362 this.duration = unit.toMillis(duration); in setIdleDuration()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpClient.java235 long millis = unit.toMillis(timeout); in setConnectTimeout()
255 long millis = unit.toMillis(timeout); in setReadTimeout()
273 long millis = unit.toMillis(timeout); in setWriteTimeout()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DOkHttp.java73 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in run()
DUrlConnection.java74 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in run()
DApacheHttpClient.java78 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in run()
DOkHttpAsync.java79 total, TimeUnit.NANOSECONDS.toMillis(finish - start)); in prepare()
DNettyHttpClient.java188 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in receive()
/external/apache-http/android/src/android/net/http/
DLegacyHttpDateTime.java121 return time.toMillis(false /* use isDst */); in parse()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
DBitmapPreFillRunner.java54 static final long MAX_BACKOFF_MS = TimeUnit.SECONDS.toMillis(1);
/external/glide/library/src/main/java/com/bumptech/glide/request/
DRequestFutureTarget.java121 return doGet(timeUnit.toMillis(time)); in get()
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DAbstractConnPool.java253 idleConnHandler.closeIdleConnections(tunit.toMillis(idletime)); in closeIdleConnections()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMapMaker.java186 this.expirationMillis = unit.toMillis(duration); in expireAfterWrite()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java159 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
DSpdy3ConnectionTest.java889 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
917 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
955 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);
996 assertEquals(500d, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200d /* 200ms delta */);

12