Home
last modified time | relevance | path

Searched refs:TimeUnit (Results 1 – 25 of 29) sorted by relevance

12

/art/libartbase/base/
Dtime_utils.h31 enum TimeUnit { enum
48 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit,
52 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration);
55 uint64_t GetNsToTimeUnitDivisor(TimeUnit time_unit);
Dtime_utils.cc62 TimeUnit GetAppropriateTimeUnit(uint64_t nano_duration) { in GetAppropriateTimeUnit()
77 uint64_t GetNsToTimeUnitDivisor(TimeUnit time_unit) { in GetNsToTimeUnitDivisor()
95 std::string FormatDuration(uint64_t nano_duration, TimeUnit time_unit, in FormatDuration()
Dhistogram-inl.h200 const TimeUnit unit = GetAppropriateTimeUnit(Mean() * kAdjust); in PrintConfidenceIntervals()
/art/test/odsign/test-src/com/android/tests/odsign/
DCompOsTestUtils.java29 import java.util.concurrent.TimeUnit;
67 TimeUnit.SECONDS.sleep(SECONDS_BEFORE_PROGRESS_CHECK); in runCompilationJobEarlyAndWait()
89 TimeUnit.SECONDS.sleep(1); in waitForJobToBeScheduled()
106 TimeUnit.SECONDS.sleep(1); in waitForJobExit()
/art/libartservice/service/javatests/com/android/server/art/testing/
DMockClock.java29 import java.util.concurrent.TimeUnit;
70 @NonNull Runnable command, long delay, @NonNull TimeUnit unit) { in schedule()
73 command, Long.MAX_VALUE, TimeUnit.MILLISECONDS); in schedule()
/art/libartservice/service/java/com/android/server/art/
DDebouncer.java26 import java.util.concurrent.TimeUnit;
76 () -> runTask(command, executor), mIntervalMs, TimeUnit.MILLISECONDS); in maybeRunAsync()
DBackgroundDexoptJob.java56 import java.util.concurrent.TimeUnit;
70 @VisibleForTesting public static final long JOB_INTERVAL_MS = TimeUnit.DAYS.toMillis(1);
DDexoptHelper.java57 import java.util.concurrent.TimeUnit;
/art/libartservice/service/javatests/com/android/server/art/
DPreRebootDexoptJobTest.java58 import java.util.concurrent.TimeUnit;
253 assertThat(jobStarted.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testStart()
277 assertThat(dexoptCancelled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testCancel()
298 assertThat(dexoptCancelled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testSyncCancel()
377 assertThat(jobBlocker.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testRace1()
421 assertThat(jobFinishedCalledAfterNewJobStarted.tryAcquire(1, TimeUnit.SECONDS)).isFalse(); in testRace1()
427 assertThat(jobFinishedCalledAfterNewJobStarted.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)) in testRace1()
460 assertThat(dexoptCancelled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testRace3()
DBackgroundDexoptJobTest.java68 import java.util.concurrent.TimeUnit;
142 assertThat(dexoptDone.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testStartAlreadyRunning()
196 assertThat(dexoptCancelled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testCancel()
293 assertThat(mJobFinishedCalled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testWantsRescheduleFalsePerformed()
304 assertThat(mJobFinishedCalled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testWantsRescheduleFalseFatalError()
319 assertThat(mJobFinishedCalled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testWantsRescheduleTrue()
DDexoptHelperTest.java75 import java.util.concurrent.TimeUnit;
358 assertThat(dexoptCancelled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testDexoptCancelledDuringDex2oatInvocationsMultiThreaded()
377 assertThat(dexoptStarted.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testDexoptCancelledDuringDex2oatInvocationsMultiThreaded()
410 assertThat(dexoptCancelled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testDexoptCancelledDuringDex2oatInvocationsOnCurrentThread()
429 assertThat(dexoptStarted.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testDexoptCancelledDuringDex2oatInvocationsOnCurrentThread()
DPrimaryDexopterTest.java64 import java.util.concurrent.TimeUnit;
717 assertThat(dexoptCancelled.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testDexoptCancelledDuringDexopt()
733 assertThat(dexoptStarted.tryAcquire(TIMEOUT_SEC, TimeUnit.SECONDS)).isTrue(); in testDexoptCancelledDuringDexopt()
DArtManagerLocalTest.java106 import java.util.concurrent.TimeUnit;
120 CURRENT_TIME_MS - TimeUnit.DAYS.toMillis(INACTIVE_DAYS) + 1;
122 CURRENT_TIME_MS - TimeUnit.DAYS.toMillis(INACTIVE_DAYS) - 1;
/art/test/523-checker-can-throw-regression/src/
DMain.java25 import java.util.concurrent.TimeUnit;
/art/libartservice/service/java/com/android/server/art/prereboot/
DPreRebootManager.java47 import java.util.concurrent.TimeUnit;
122 callbackExecutor.awaitTermination(5, TimeUnit.SECONDS); in run()
/art/test/1336-short-finalizer-timeout/src/
DMain.java19 import static java.util.concurrent.TimeUnit.MINUTES;
/art/test/2041-bad-cleaner/src/
DMain.java20 import static java.util.concurrent.TimeUnit.MINUTES;
/art/test/2261-badcleaner-in-systemcleaner/src-art/
DMain.java21 import static java.util.concurrent.TimeUnit.MINUTES;
/art/test/030-bad-finalizer/src/
DMain.java19 import static java.util.concurrent.TimeUnit.MINUTES;
/art/test/2048-bad-native-registry/src/
DMain.java21 import static java.util.concurrent.TimeUnit.MINUTES;
/art/test/2264-throwing-systemcleaner/src-art/
DMain.java22 import static java.util.concurrent.TimeUnit.MINUTES;
/art/test/522-checker-regression-monitor-exit/src/
DMain.java25 import java.util.concurrent.TimeUnit;
/art/test/114-ParallelGC/src/
DMain.java109 startBarrier.await(TIMEOUT_VALUE, java.util.concurrent.TimeUnit.MINUTES); in work()
/art/test/708-jit-cache-churn/src/
DJitCacheChurnTest.java29 import java.util.concurrent.TimeUnit;
64 TimeUnit.MILLISECONDS,new LinkedBlockingQueue<>()); in JitCacheChurnTest()
/art/runtime/base/
Dtiming_logger.cc204 TimeUnit tu = GetAppropriateTimeUnit(longest_split); in Dump()

12