/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
D | TimeUnit.java | 21 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/ |
D | RecordingCallback.java | 30 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/ |
D | CacheStrategy.java | 200 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/ |
D | ShadowTime.java | 67 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/ |
D | TimeTest.java | 19 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/ |
D | SocketTimeoutTest.java | 83 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/ |
D | MockWebServerTest.java | 201 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/ |
D | WrappingExecutorServiceTest.java | 206 assertEquals(unit.toMillis(timeout), lastTimeoutInMillis); in assertMethodWithTimeout() 229 lastTimeoutInMillis = unit.toMillis(timeout); in invokeAll() 247 lastTimeoutInMillis = unit.toMillis(timeout); in invokeAny()
|
D | RateLimiterTest.java | 331 return TimeUnit.NANOSECONDS.toMillis(ticker.instant - startTime); in measureTotalTimeMillis()
|
/external/apache-http/src/org/apache/http/impl/conn/ |
D | SingleClientConnManager.java | 334 connectionExpiresTime = timeUnit.toMillis(validDuration) + lastReleaseTime; 358 System.currentTimeMillis() - tunit.toMillis(idletime);
|
D | IdleConnectionHandler.java | 189 this.timeExpires = now + validUnit.toMillis(validDuration); in TimeValues()
|
D | AbstractClientConnAdapter.java | 362 this.duration = unit.toMillis(duration); in setIdleDuration()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | OkHttpClient.java | 235 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/ |
D | OkHttp.java | 73 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in run()
|
D | UrlConnection.java | 74 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in run()
|
D | ApacheHttpClient.java | 78 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in run()
|
D | OkHttpAsync.java | 79 total, TimeUnit.NANOSECONDS.toMillis(finish - start)); in prepare()
|
D | NettyHttpClient.java | 188 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in receive()
|
/external/apache-http/android/src/android/net/http/ |
D | LegacyHttpDateTime.java | 121 return time.toMillis(false /* use isDst */); in parse()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/ |
D | BitmapPreFillRunner.java | 54 static final long MAX_BACKOFF_MS = TimeUnit.SECONDS.toMillis(1);
|
/external/glide/library/src/main/java/com/bumptech/glide/request/ |
D | RequestFutureTarget.java | 121 return doGet(timeUnit.toMillis(time)); in get()
|
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
D | AbstractConnPool.java | 253 idleConnHandler.closeIdleConnections(tunit.toMillis(idletime)); in closeIdleConnections()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | MapMaker.java | 186 this.expirationMillis = unit.toMillis(duration); in expireAfterWrite()
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | OkUrlFactoryTest.java | 159 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/ |
D | Spdy3ConnectionTest.java | 889 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 */);
|