Home
last modified time | relevance | path

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

12

/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DTimeUnit.java17 public long toMillis(long d) { return d/(C2/C0); } in toMillis() method
28 public long toMillis(long d) { return d/(C2/C1); } in toMillis() method
39 public long toMillis(long d) { return d; } in toMillis() method
44 public long convert(long d, TimeUnit u) { return u.toMillis(d); } in convert()
50 public long toMillis(long d) { return x(d, C3/C2, MAX/(C3/C2)); } in toMillis() method
61 public long toMillis(long d) { return x(d, C4/C2, MAX/(C4/C2)); } in toMillis() method
72 public long toMillis(long d) { return x(d, C5/C2, MAX/(C5/C2)); } in toMillis() method
83 public long toMillis(long d) { return x(d, C6/C2, MAX/(C6/C2)); } in toMillis() method
123 public long toMillis(long duration) { in toMillis() method in TimeUnit
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
DCallbackHelper.java181 mLock.wait(unit.toMillis(timeout)); in waitForCallback()
212 SystemClock.uptimeMillis() - startTime < unit.toMillis(timeout)) { in waitUntilCriteria()
213 mLock.wait(unit.toMillis(timeout)); in waitUntilCriteria()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRecordingReceiver.java32 public static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10);
75 long timeoutMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) + TIMEOUT_MILLIS; in await()
85 long nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()); in await()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DCacheStrategy.java213 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate()
218 minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds()); in getCandidate()
224 maxStaleMillis = SECONDS.toMillis(requestCaching.maxStaleSeconds()); in getCandidate()
265 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime()
296 ? 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/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
DDateTimePickerDialog.java125 if (time.toMillis(true) < mMinTimeMillis) { in onTimeChanged()
127 } else if (time.toMillis(true) > mMaxTimeMillis) { in onTimeChanged()
DInputDialogContainer.java368 mInputActionDelegate.replaceDateTime(TimeUnit.HOURS.toMillis(hourOfDay) + in setFieldDateTimeValue()
369 TimeUnit.MINUTES.toMillis(minute) + in setFieldDateTimeValue()
370 TimeUnit.SECONDS.toMillis(second) + in setFieldDateTimeValue()
/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/apache-http/src/org/apache/http/impl/conn/
DSingleClientConnManager.java329 connectionExpiresTime = timeUnit.toMillis(validDuration) + lastReleaseTime;
353 System.currentTimeMillis() - tunit.toMillis(idletime);
DIdleConnectionHandler.java184 this.timeExpires = now + validUnit.toMillis(validDuration); in TimeValues()
DAbstractClientConnAdapter.java357 this.duration = unit.toMillis(duration); in setIdleDuration()
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/
DInfoBarTestAnimationListener.java18 private static long WAIT_MILLIS = TimeUnit.SECONDS.toMillis(5);
DApplicationData.java24 scaleTimeout(TimeUnit.SECONDS.toMillis(3));
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DOkHttp.java72 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.java78 total, TimeUnit.NANOSECONDS.toMillis(finish - start)); in prepare()
DNettyHttpClient.java188 total, TimeUnit.NANOSECONDS.toMillis(finish - start))); in receive()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpClient.java91 long millis = unit.toMillis(timeout); in setConnectTimeout()
115 long millis = unit.toMillis(timeout); in setReadTimeout()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java309 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos); in testThrottleRequest()
336 long elapsedMillis = NANOSECONDS.toMillis(elapsedNanos);
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DAbstractConnPool.java248 idleConnHandler.closeIdleConnections(tunit.toMillis(idletime)); in closeIdleConnections()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMapMaker.java201 this.expirationMillis = unit.toMillis(duration); in expireAfterWrite()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DUtil.java226 while (NANOSECONDS.toMillis(System.nanoTime() - startNanos) < timeoutMillis) { in skipAll()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java87 this.expirationMillis = unit.toMillis(duration); in expireAfterWrite()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java538 long delayMs = throttlePolicy.getThrottleUnit().toMillis(throttlePolicy.getThrottlePeriod()); in throttledTransfer()
723 long delayMs = response.getThrottleUnit().toMillis(response.getThrottlePeriod()); in writeResponse()

12