Home
last modified time | relevance | path

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

/test/cts-root/tests/bugreport/src/android/bugreport/cts_root/
DBugreportManagerTest.java67 import java.util.concurrent.TimeUnit;
83 private static final long UIAUTOMATOR_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(10);
85 private static final long BUGREPORT_TIMEOUT_MS = TimeUnit.MINUTES.toMillis(4);
137 latch.await(4, TimeUnit.MINUTES); in testRetrieveBugreportConsentGranted()
151 assertThat(latch.await(10, TimeUnit.SECONDS)).isTrue(); in testRetrieveBugreportConsentGranted()
165 assertThat(latch.await(1, TimeUnit.MINUTES)).isTrue(); in testRetrieveBugreportConsentGranted()
187 latch.await(4, TimeUnit.MINUTES); in testRetrieveBugreportConsentDenied()
203 latch.await(1, TimeUnit.MINUTES); in testRetrieveBugreportConsentDenied()
215 latch.await(1, TimeUnit.MINUTES); in testRetrieveBugreportConsentDenied()
251 latch.await(BUGREPORT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testBugreportsLimitReached()
[all …]
/test/cts-root/tests/packagewatchdog/src/android/packagewatchdog/cts_root/
DPackageWatchdogTest.java37 import java.util.concurrent.TimeUnit;
49 private static final long SHORT_DURATION = TimeUnit.MINUTES.toMillis(5);
83 assertThat(latch.await(5, TimeUnit.SECONDS)).isTrue(); in testAppCrashIsMitigated()
116 assertThat(mLatch1.await(5, TimeUnit.SECONDS)).isTrue(); in testRegisteringMultipleObservers()
117 assertThat(mLatch2.await(5, TimeUnit.SECONDS)).isTrue(); in testRegisteringMultipleObservers()
142 assertThat(mLatch2.await(1, TimeUnit.MINUTES)).isTrue(); in testUnregistration()
188 assertThat(mLatch1.await(5, TimeUnit.SECONDS)).isTrue(); in testImmediateFailures()
207 assertThat(mLatch1.await(5, TimeUnit.SECONDS)).isTrue(); in testPersistentObserverWatchesPackage()
244 Thread.sleep(TimeUnit.SECONDS.toMillis(6)); in raiseFatalFailure()
/test/mlts/benchmark/src/com/android/nn/benchmark/app/
DNNModelLoadingStressTest.java31 import java.util.concurrent.TimeUnit;
70 float endTime = stopwatch.runtime(TimeUnit.SECONDS) + RUNTIME_SECONDS; in stressTestNNAPI()
72 while (stopwatch.runtime(TimeUnit.SECONDS) < endTime) { in stressTestNNAPI()
/test/dittosuite/include/ditto/
Dresult.h51 struct TimeUnit { struct
61 TimeUnit time_unit_; argument
85 TimeUnit GetTimeUnit(int64_t min_value);
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DNNCrashTestActivity.java27 import java.util.concurrent.TimeUnit;
70 mTestStatus.waitForCompletion(testTimeout.toMillis(), TimeUnit.MILLISECONDS); in testResult()
DCrashTestStatus.java26 import java.util.concurrent.TimeUnit;
99 public boolean waitForCompletion(long timeout, TimeUnit timeUnit) throws InterruptedException { in waitForCompletion()
DNNMultiProcessTestActivity.java27 import java.util.concurrent.TimeUnit;
DNNParallelTestActivity.java22 import static java.util.concurrent.TimeUnit.MILLISECONDS;
/test/cts-root/hostsidetests/packageinstaller/src/com/android/cts_root/packageinstaller/host/
DSessionCleanUpHostTest.java39 import java.util.concurrent.TimeUnit;
49 private static final long MAX_TIME_SINCE_UPDATE_MILLIS = TimeUnit.DAYS.toMillis(21);
188 Instant t2 = t1.plusMillis(TimeUnit.DAYS.toMillis(1)); in testSessionCleanUp_LowStorage()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/
DCrashTestService.java34 import java.util.concurrent.TimeUnit;
105 startTest.await(3, TimeUnit.SECONDS); in onBind()
/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/
DRollbackManagerHostTest.java46 import java.util.concurrent.TimeUnit;
76 private static final long MAX_TIME_SINCE_UPDATE_MILLIS = TimeUnit.DAYS.toMillis(21);
425 waitForDeviceNotAvailable(2, TimeUnit.MINUTES); in testBadApkOnly()
456 waitForDeviceNotAvailable(5, TimeUnit.MINUTES); in testNativeWatchdogTriggersRollback()
493 waitForDeviceNotAvailable(5, TimeUnit.MINUTES); in testNativeWatchdogTriggersRollbackForAll()
566 private void waitForDeviceNotAvailable(long timeout, TimeUnit unit) { in waitForDeviceNotAvailable()
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DApkInstaller.java36 import java.util.concurrent.TimeUnit;
40 private static long sCommandTimeOut = TimeUnit.MINUTES.toMillis(4);
41 private static long sObbPushCommandTimeOut = TimeUnit.MINUTES.toMillis(12);
DTestUtils.java40 import java.util.concurrent.TimeUnit;
349 long minutes = TimeUnit.MILLISECONDS.toMinutes(milliseconds); in convertToMinuteSecond()
351 TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(minutes); in convertToMinuteSecond()
DDeviceUtils.java51 import java.util.concurrent.TimeUnit;
278 TimeUnit.MILLISECONDS); in runWithScreenRecording()
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/targetprep/
DAppSetupPreparer.java51 import java.util.concurrent.TimeUnit;
133 private long mSetupOnceTimeoutMillis = TimeUnit.MINUTES.toMillis(10);
205 TimeUnit.MILLISECONDS); in setUp()
/test/catbox/runner/src/com/android/catbox/runner/
DMopedRunner.java22 import java.util.concurrent.TimeUnit;
143 if (!p.waitFor(timeout, TimeUnit.MINUTES)) { in executeHostCommand()
/test/cts-root/hostsidetests/rollback/app/src/com/android/cts_root/rollback/host/app/
DHostTestHelper.java47 import java.util.concurrent.TimeUnit;
195 Thread.sleep(TimeUnit.SECONDS.toMillis(30)); in testBadApkOnly_Phase2_VerifyInstall()
/test/dittosuite/src/
Dresult.cpp248 Result::TimeUnit Result::GetTimeUnit(const int64_t min_value) { in GetTimeUnit()
249 TimeUnit result; in GetTimeUnit()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DRunModelsInParallel.java19 import static java.util.concurrent.TimeUnit.MILLISECONDS;
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DProcessor.java19 import static java.util.concurrent.TimeUnit.MILLISECONDS;