Home
last modified time | relevance | path

Searched refs:RunUtil (Results 1 – 25 of 145) sorted by relevance

123456

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DRunUtilFuncTest.java66 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 …]
DRequestUtilTest.java46 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()
DRunUtilTest.java41 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 …]
DPythonVirtualenvHelperTest.java47 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/
DBaseEmulatorPreparer.java20 import com.android.tradefed.util.RunUtil;
83 protected RunUtil buildRunUtilForEmulatorLaunch() { in buildRunUtilForEmulatorLaunch()
84 RunUtil runUtil = new RunUtil(); in buildRunUtilForEmulatorLaunch()
DLocalEmulatorSnapshot.java25 import com.android.tradefed.util.RunUtil;
45 RunUtil runUtil = buildRunUtilForEmulatorLaunch(); in setUp()
DLocalEmulatorLaunch.java25 import com.android.tradefed.util.RunUtil;
48 RunUtil runUtil = buildRunUtilForEmulatorLaunch(); in setUp()
DCreateAvdPreparer.java32 import com.android.tradefed.util.RunUtil;
99 RunUtil runUtil = new RunUtil(); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/command/
DCommandSchedulerFuncTest.java49 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/
DCpuThrottlingWaiter.java24 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()
DTimeWaster.java25 import com.android.tradefed.util.RunUtil;
61 return RunUtil.getDefault(); in getRunUtil()
DWaitForDeviceDatetimePreparer.java26 import com.android.tradefed.util.RunUtil;
125 return RunUtil.getDefault(); in getRunUtil()
/tools/tradefederation/contrib/src/com/android/wireless/tests/
DRadioHelper.java22 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/
DEmulatorStartupPerfTest.java27 import com.android.tradefed.util.RunUtil;
53 RunUtil runUtil = buildRunUtilForEmulatorLaunch(); in launchEmulator()
122 RunUtil.getDefault().sleep(50); in waitForBootComplete()
DAppIncrementalInstallTest.java28 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/
DDeviceStateTransitionFuncTests.java24 import com.android.tradefed.util.RunUtil;
50 RunUtil.getDefault().sleep(30000); in testFastbootTransition()
/tools/tradefederation/core/src/com/android/tradefed/util/
DPerfettoTraceRecorder.java87 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/
DTestDeviceFuncTest.java45 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 …]
DBackgroundDeviceActionTest.java26 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/
DNestedDeviceStateMonitor.java26 import com.android.tradefed.util.RunUtil;
70 RunUtil.getDefault().sleep(200L); in nestedWaitForDeviceOnline()
/tools/tradefederation/core/src/com/android/tradefed/device/
DMicrodroidHelper.java25 import com.android.tradefed.util.RunUtil;
77 return RunUtil.getDefault(); in getRunUtil()
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/hostmetric/
DAbstractHostMonitor.java22 import com.android.tradefed.util.RunUtil;
106 return RunUtil.getDefault(); in getRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DUsbResetTest.java29 import com.android.tradefed.util.RunUtil;
81 return RunUtil.getDefault(); in getRunUtil()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAdbScreenrecordTest.java31 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/
DEmulatorMemoryCpuCapturer.java26 import com.android.tradefed.util.RunUtil;
91 return RunUtil.getDefault(); in getRunUtil()

123456