/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | RunUtilFuncTest.java | 66 assertEquals(CommandStatus.TIMED_OUT, RunUtil.getDefault().runTimed(SHORT_TIMEOUT_MS, in testRunTimed_timeout() 91 assertTrue(RunUtil.getDefault().runTimedRetry(100, SHORT_TIMEOUT_MS, maxAttempts, in testRunTimedRetry() 108 RunUtil.getDefault().runTimedCmd(LONG_TIMEOUT_MS, "echo", "hello"); in testRunTimedCmd_repeatedOutput() 123 CommandResult result = RunUtil.getDefault().runTimedCmd(0L, "sleep", "35"); in testRunTimedCmd_noTimeout() 150 RunUtil.getDefault() in testRunTimedCmd_largeOutput() 168 RunUtil runUtil = new RunUtil(); in testUnsetEnvVariable() 196 RunUtil runUtil = new RunUtil(); in testRunTimedCmd_timeout() 215 t.getName().contains(RunUtil.RUNNABLE_NOTIFIER_NAME)); in testRunTimedCmd_timeout() 218 t.getName().contains(RunUtil.INHERITIO_PREFIX)); in testRunTimedCmd_timeout() 231 RunUtil.getDefault() in testRunTimedCmd_WithInputRedirect() [all …]
|
D | RequestUtilTest.java | 46 RunUtil runUtil = Mockito.mock(RunUtil.class); in testRequestFailedAll() 61 RunUtil runUtil = Mockito.mock(RunUtil.class); in testWaitRightTimeBetweenRequests_1() 79 RunUtil runUtil = Mockito.mock(RunUtil.class); in testWaitRightTimeBetweenRequests_2() 97 RunUtil runUtil = Mockito.mock(RunUtil.class); in testWaitRightTimeBetweenRequests_3()
|
D | RunUtilTest.java | 41 import com.android.tradefed.util.RunUtil.RunnableResult; 65 private RunUtil mRunUtil; 77 mRunUtil = new RunUtil(new CommandInterrupter()); in setUp() 89 class SpyRunUtil extends RunUtil { 198 RunUtil runUtil = new RunUtil(interrupter); in testRunTimed_interrupted() 215 RunUtil spyUtil = new SpyRunUtil(true); in testRunTimedCmd_failed() 252 RunUtil firstRunUtil = new SpyRunUtil(false); in runTimedCmdWithOutputMonitor_cache_same_run() 255 RunUtil secondRunUtil = new SpyRunUtil(false); in runTimedCmdWithOutputMonitor_cache_same_run() 355 RunUtil spyUtil = new SpyRunUtil(true); in testRunTimedCmdWithInput_failed() 394 RunUtil.getDefault().setWorkingDir(new File("foo")); in testSetWorkingDir_default() [all …]
|
D | PythonVirtualenvHelperTest.java | 47 IRunUtil runUtil = mock(RunUtil.class); in testActivate_shouldThrowNPE_whenVirtualenvPathIsNull() 66 IRunUtil runUtil = mock(RunUtil.class); in testActivate_whenVirtualenvPathIsInvalid() 84 IRunUtil runUtil = mock(RunUtil.class); in testActivate_whenPythonBinNotFound() 104 IRunUtil runUtil = mock(RunUtil.class); in testActivate_success() 130 IRunUtil runUtil = mock(RunUtil.class); in testActivate_pipShowFails()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | BaseEmulatorPreparer.java | 20 import com.android.tradefed.util.RunUtil; 83 protected RunUtil buildRunUtilForEmulatorLaunch() { in buildRunUtilForEmulatorLaunch() 84 RunUtil runUtil = new RunUtil(); in buildRunUtilForEmulatorLaunch()
|
D | LocalEmulatorSnapshot.java | 25 import com.android.tradefed.util.RunUtil; 45 RunUtil runUtil = buildRunUtilForEmulatorLaunch(); in setUp()
|
D | LocalEmulatorLaunch.java | 25 import com.android.tradefed.util.RunUtil; 48 RunUtil runUtil = buildRunUtilForEmulatorLaunch(); in setUp()
|
D | CreateAvdPreparer.java | 32 import com.android.tradefed.util.RunUtil; 99 RunUtil runUtil = new RunUtil(); in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/command/ |
D | CommandSchedulerFuncTest.java | 49 import com.android.tradefed.util.RunUtil; 156 RunUtil.getDefault().allowInterrupt(true); in setUp() 243 RunUtil.getDefault().allowInterrupt(true); in invoke() 247 RunUtil.getDefault().sleep(mSleepTimMs); in invoke() 257 RunUtil.getDefault().sleep(100); in invoke() 390 RunUtil.getDefault().sleep(500); in testShutdown_interruptible() 431 RunUtil.getDefault().allowInterrupt(true); in testShutdown_notInterruptible() 468 RunUtil.getDefault().sleep(1000); in testShutdown_notInterruptible() 504 RunUtil.getDefault().allowInterrupt(true); in invoke() 507 RunUtil.getDefault().sleep(2000); in invoke() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | CpuThrottlingWaiter.java | 24 import com.android.tradefed.util.RunUtil; 65 RunUtil.getDefault().sleep(mMaxWaitSecs * 1000); in setUp() 99 RunUtil.getDefault().sleep(intervalMs); in setUp() 102 RunUtil.getDefault().sleep(mPostIdleWaitSecs * 1000); in setUp()
|
D | TimeWaster.java | 25 import com.android.tradefed.util.RunUtil; 61 return RunUtil.getDefault(); in getRunUtil()
|
D | WaitForDeviceDatetimePreparer.java | 26 import com.android.tradefed.util.RunUtil; 125 return RunUtil.getDefault(); in getRunUtil()
|
/tools/tradefederation/contrib/src/com/android/wireless/tests/ |
D | RadioHelper.java | 22 import com.android.tradefed.util.RunUtil; 42 return RunUtil.getDefault(); in getRunUtil() 71 RunUtil.getDefault().sleep(5 * 1000); in isCdmaDevice()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | EmulatorStartupPerfTest.java | 27 import com.android.tradefed.util.RunUtil; 53 RunUtil runUtil = buildRunUtilForEmulatorLaunch(); in launchEmulator() 122 RunUtil.getDefault().sleep(50); in waitForBootComplete()
|
D | AppIncrementalInstallTest.java | 28 import com.android.tradefed.util.RunUtil; 102 RunUtil.getDefault().sleep(mTestStartDelay); in run() 125 RunUtil.getDefault().sleep(mTestDelayBetweenInstalls); in run()
|
/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/ |
D | DeviceStateTransitionFuncTests.java | 24 import com.android.tradefed.util.RunUtil; 50 RunUtil.getDefault().sleep(30000); in testFastbootTransition()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | PerfettoTraceRecorder.java | 87 RunUtil.getDefault() in startTrace() 128 RunUtil.getDefault() in startTrace() 163 RunUtil.getDefault().sleep(1 * 1000); in startTrace() 190 RunUtil.getDefault() in stopTrace()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | TestDeviceFuncTest.java | 45 import com.android.tradefed.util.RunUtil; 648 RunUtil.getDefault().sleep(15 * 1000); in testRebootIntoRecovery() 660 RunUtil.getDefault().sleep(1000); in waitForSystemServerProcess() 689 RunUtil.getDefault().sleep(1000); in testDeviceSoftRestart() 696 RunUtil.getDefault().sleep(1000); in testDeviceSoftRestart() 704 RunUtil.getDefault().sleep(10000); in testDeviceSoftRestart() 707 RunUtil.getDefault().sleep(1000); in testDeviceSoftRestart() 735 RunUtil.getDefault().sleep(2000); in testClearErrorDialogs_crash() 743 RunUtil.getDefault().sleep(2000); in testClearErrorDialogs_crash() 746 RunUtil.getDefault().sleep(2000); in testClearErrorDialogs_crash() [all …]
|
D | BackgroundDeviceActionTest.java | 26 import com.android.tradefed.util.RunUtil; 80 RunUtil.getDefault().sleep(SHORT_WAIT_TIME_MS); in testBackgroundActionComplete() 117 RunUtil.getDefault().sleep(LONG_WAIT_TIME_MS); in testBackgroundAction_shellException()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | NestedDeviceStateMonitor.java | 26 import com.android.tradefed.util.RunUtil; 70 RunUtil.getDefault().sleep(200L); in nestedWaitForDeviceOnline()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | MicrodroidHelper.java | 25 import com.android.tradefed.util.RunUtil; 77 return RunUtil.getDefault(); in getRunUtil()
|
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/hostmetric/ |
D | AbstractHostMonitor.java | 22 import com.android.tradefed.util.RunUtil; 106 return RunUtil.getDefault(); in getRunUtil()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | UsbResetTest.java | 29 import com.android.tradefed.util.RunUtil; 81 return RunUtil.getDefault(); in getRunUtil()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AdbScreenrecordTest.java | 31 import com.android.tradefed.util.RunUtil; 264 RunUtil.getDefault() in extractDurationAndBitrateFromVideoFileUsingAvprobe() 376 RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT_MS, swName, "-version"); in verifyRequiredSoftwareIsInstalled() 385 String hostname = RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT_MS, "hostname").getStdout(); in verifyRequiredSoftwareIsInstalled() 427 RunUtil.getDefault().sleep(POLLING_INTERVAL_MS); in waitForFile()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | EmulatorMemoryCpuCapturer.java | 26 import com.android.tradefed.util.RunUtil; 91 return RunUtil.getDefault(); in getRunUtil()
|