/external/libchrome/base/android/java/src/org/chromium/base/metrics/ |
D | RecordHistogram.java | 189 name, timeUnit.toMillis(duration), 1, TimeUnit.SECONDS.toMillis(10), 50); in recordTimesHistogram() 203 name, timeUnit.toMillis(duration), 10, TimeUnit.MINUTES.toMillis(3), 50); in recordMediumTimesHistogram() 217 name, timeUnit.toMillis(duration), 1, TimeUnit.HOURS.toMillis(1), 50); in recordLongTimesHistogram() 231 name, timeUnit.toMillis(duration), 1, TimeUnit.HOURS.toMillis(1), 100); in recordLongTimesHistogram100() 248 recordCustomTimesHistogramMilliseconds(name, timeUnit.toMillis(duration), in recordCustomTimesHistogram() 249 timeUnit.toMillis(min), timeUnit.toMillis(max), numBuckets); in recordCustomTimesHistogram()
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | DurationTest.java | 143 public void toMillis() { in toMillis() method in DurationTest 144 assertThat(Duration.create(10, 0).toMillis()).isEqualTo(10000L); in toMillis() 145 assertThat(Duration.create(10, 1000).toMillis()).isEqualTo(10000L); in toMillis() 146 assertThat(Duration.create(0, (int) 1e6).toMillis()).isEqualTo(1L); in toMillis() 147 assertThat(Duration.create(0, 0).toMillis()).isEqualTo(0L); in toMillis() 148 assertThat(Duration.create(-10, 0).toMillis()).isEqualTo(-10000L); in toMillis() 149 assertThat(Duration.create(-10, -1000).toMillis()).isEqualTo(-10000L); in toMillis() 150 assertThat(Duration.create(0, -(int) 1e6).toMillis()).isEqualTo(-1L); in toMillis()
|
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/ |
D | BasicAttributeProvider.java | 90 file.setCreationTime(checkType(view, attribute, value, FileTime.class).toMillis()); in set() 94 file.setLastAccessTime(checkType(view, attribute, value, FileTime.class).toMillis()); in set() 98 file.setLastModifiedTime(checkType(view, attribute, value, FileTime.class).toMillis()); in set() 158 file.setLastModifiedTime(lastModifiedTime.toMillis()); in setTimes() 162 file.setLastAccessTime(lastAccessTime.toMillis()); in setTimes() 166 file.setCreationTime(createTime.toMillis()); in setTimes()
|
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/ |
D | InstanaExporterHandler.java | 105 private static long toMillis(Timestamp timestamp) { in toMillis() method in InstanaExporterHandler 106 return SECONDS.toMillis(timestamp.getSeconds()) + NANOSECONDS.toMillis(timestamp.getNanos()); in toMillis() 109 private static long toMillis(Timestamp start, Timestamp end) { in toMillis() method in InstanaExporterHandler 111 return SECONDS.toMillis(duration.getSeconds()) + NANOSECONDS.toMillis(duration.getNanos()); in toMillis() 150 sb.append("\"timestamp\":").append(toMillis(startTimestamp)).append(','); in convertToJson() 151 sb.append("\"duration\":").append(toMillis(startTimestamp, endTimestamp)).append(','); in convertToJson()
|
/external/opencensus-java/api/src/main/java/io/opencensus/common/ |
D | Duration.java | 98 public long toMillis() { in toMillis() method in Duration 99 return TimeUnit.SECONDS.toMillis(getSeconds()) + TimeUnit.NANOSECONDS.toMillis(getNanos()); in toMillis()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | RecordingCallback.java | 28 public static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10); 48 long timeoutMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) + TIMEOUT_MILLIS; in await() 58 long nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()); in await()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowTime.java | 73 long millis = time.toMillis(true); in isEpoch() 122 protected long toMillis(boolean ignoreDst) { in toMillis() method in ShadowTime 172 long date = toMillis(true); in switchTimezone() 181 long ams = a.toMillis(false); in compare() 182 long bms = b.toMillis(false); in compare() 291 long millisInUtc = time.toMillis(false); in parse3339() 316 …return Strftime.format(format, new Date(toMillis(false)), Locale.getDefault(), TimeZone.getTimeZon… in format()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | CacheStrategy.java | 199 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate() 204 minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds()); in getCandidate() 210 maxStaleMillis = SECONDS.toMillis(requestCaching.maxStaleSeconds()); in getCandidate() 248 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime() 279 ? Math.max(apparentReceivedAge, SECONDS.toMillis(ageSeconds)) in cacheResponseAge()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
D | CacheStrategy.java | 204 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate() 209 minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds()); in getCandidate() 215 maxStaleMillis = SECONDS.toMillis(requestCaching.maxStaleSeconds()); in getCandidate() 253 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime() 284 ? Math.max(apparentReceivedAge, SECONDS.toMillis(ageSeconds)) in cacheResponseAge()
|
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/types/ |
D | TestCrossProfileType.java | 132 TimeUnit.SECONDS.toMillis(secondsDelay)); in listenableFutureVoidMethodWithNonBlockingDelay() 141 new Handler().postDelayed(() -> v.set(s), TimeUnit.SECONDS.toMillis(secondsDelay)); in listenableFutureIdentityStringMethodWithNonBlockingDelay() 151 new Handler().postDelayed(() -> v.set(s), TimeUnit.SECONDS.toMillis(secondsDelay)); in listenableFutureIdentityStringMethodWithNonBlockingDelayWith3SecondTimeout() 198 .postDelayed(() -> asyncVoidMethod(callback), TimeUnit.SECONDS.toMillis(secondsDelay)); in asyncVoidMethodWithNonBlockingDelay() 205 .postDelayed(() -> asyncVoidMethod(callback), TimeUnit.SECONDS.toMillis(secondsDelay)); in asyncVoidMethodWithNonBlockingDelayWith50SecondTimeout() 213 () -> asyncIdentityStringMethod(s, callback), TimeUnit.SECONDS.toMillis(secondsDelay)); in asyncIdentityStringMethodWithNonBlockingDelayWith3SecondTimeout() 221 () -> asyncIdentityStringMethod(s, callback), TimeUnit.SECONDS.toMillis(secondsDelay)); in asyncIdentityStringMethodWithNonBlockingDelay() 536 new Handler().postDelayed(() -> future.set(s), TimeUnit.SECONDS.toMillis(secondsDelay)); in simpleFutureIdentityStringMethodWithNonBlockingDelay()
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 153 public static long toMillis(Timestamp timestamp) { in toMillis() method in TimeUtil 154 return Timestamps.toMillis(timestamp); in toMillis() 165 public static long toMillis(Duration duration) { in toMillis() method in TimeUtil 166 return Durations.toMillis(duration); in toMillis()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | Stopwatch.java | 68 …new MockitoAssertionError(format(message, NANOSECONDS.toMillis(expectedNanos), NANOSECONDS.toMilli… in fail()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | IntervalBucket.java | 89 return ((double) elapsedTime.toMillis()) / duration.toMillis(); in getFraction()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | InterruptibleTaskTest.java | 69 runner.join(TimeUnit.SECONDS.toMillis(10)); in testInterruptThrows() 141 runner.join(TimeUnit.SECONDS.toMillis(10)); in testInterruptIsSlow()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | InterruptibleTaskTest.java | 69 runner.join(TimeUnit.SECONDS.toMillis(10)); in testInterruptThrows() 141 runner.join(TimeUnit.SECONDS.toMillis(10)); in testInterruptIsSlow()
|
D | WrappingExecutorServiceTest.java | 203 assertEquals(unit.toMillis(timeout), lastTimeoutInMillis); in assertMethodWithTimeout() 226 lastTimeoutInMillis = unit.toMillis(timeout); in invokeAll() 244 lastTimeoutInMillis = unit.toMillis(timeout); in invokeAny()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/ |
D | TestScheduledExecutorService.java | 57 new SimpleScheduledFuture<>(callable, millisPast + unit.toMillis(delay)); in schedule() 105 advanceTimeByMillis(unit.toMillis(timeout)); in advanceTimeBy()
|
/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/ |
D | ZoneInfoDataTest.java | 705 (int) newOffset.toMillis()); in testCreateCopyWithRawOffset() 770 assertEquals(expectedOffset.toMillis(), zoneInfoData.getRawOffset()); in assertRawOffset() 779 Integer expectedLatestDstSavings = (int) expectedDSTSavings.toMillis(); in assertDSTSavings() 793 expectedOffset.toMillis(), zoneInfoData.getOffset(time.toEpochMilli())); in assertOffsetAt() 803 expectedStandardOffset.toMillis(), offsets[0]); in assertOffsetAt() 804 assertEquals("Unexpected Dst offset at " + time, expectedDstOffset.toMillis(), offsets[1]); in assertOffsetAt()
|
/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/okio/okio/src/jvmTest/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/turbine/javatests/com/google/turbine/lower/testdata/ |
D | cast_tail.test | 5 public static final int X = (int) (TimeUnit.SECONDS.toMillis(0));
|
/external/conscrypt/libcore-stub/src/main/java/android/system/ |
D | StructTimeval.java | 43 public long toMillis() { in toMillis() method in StructTimeval
|
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
D | Scheduler.java | 158 long delayMillis = unit.toMillis(delay); in postDelayed() 242 long endingTime = currentTime + unit.toMillis(amount); in advanceBy()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | AbstractManagedChannelImplBuilder.java | 75 static final long IDLE_MODE_DEFAULT_TIMEOUT_MILLIS = TimeUnit.MINUTES.toMillis(30); 81 static final long IDLE_MODE_MIN_TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(1); 293 this.idleTimeoutMillis = Math.max(unit.toMillis(value), IDLE_MODE_MIN_TIMEOUT_MILLIS); in idleTimeout()
|
/external/webrtc/sdk/android/src/java/org/webrtc/ |
D | Camera1Session.java | 186 final int stopTimeMs = (int) TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - stopStartTime); in stop() 259 (int) TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - constructionTimeNs); in listenForTextureFrames() 297 (int) TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - constructionTimeNs); in listenForBytebufferFrames()
|