Home
last modified time | relevance | path

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

1234

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilFuncTest.java62 assertEquals(CommandStatus.TIMED_OUT, RunUtil.getDefault().runTimed(SHORT_TIMEOUT_MS, in testRunTimed_timeout()
86 assertTrue(RunUtil.getDefault().runTimedRetry(100, SHORT_TIMEOUT_MS, maxAttempts, in testRunTimedRetry()
102 RunUtil.getDefault().runTimedCmd(LONG_TIMEOUT_MS, "echo", "hello"); in testRunTimedCmd_repeatedOutput()
116 CommandResult result = RunUtil.getDefault().runTimedCmd(0l, "sleep", "35"); in testRunTimedCmd_noTimeout()
141 RunUtil.getDefault() in testRunTimedCmd_largeOutput()
160 RunUtil runUtil = new RunUtil(); in testUnsetEnvVariable()
187 RunUtil runUtil = new RunUtil(); in testRunTimedCmd_timeout()
206 t.getName().contains(RunUtil.RUNNABLE_NOTIFIER_NAME)); in testRunTimedCmd_timeout()
209 t.getName().contains(RunUtil.INHERITIO_PREFIX)); in testRunTimedCmd_timeout()
DRunUtilTest.java23 import com.android.tradefed.util.RunUtil.RunnableResult;
40 private RunUtil mRunUtil;
54 mRunUtil = new RunUtil(); in setUp()
59 class SpyRunUtil extends RunUtil {
137 RunUtil spyUtil = new SpyRunUtil(true); in testRunTimedCmd_failed()
161 RunUtil.getDefault().setWorkingDir(new File("foo")); in testSetWorkingDir_default()
174 RunUtil.getDefault().setEnvVariable("foo", "bar"); in testSetEnvVariable_default()
187 RunUtil.getDefault().unsetEnvVariable("foo"); in testUnsetEnvVariable_default()
202 RunUtil runUtil = new RunUtil() { in testRunEscalatingTimedRetry_timeout()
305 RunUtil spyUtil = new SpyRunUtil(false); in testRuntimedCmd_withFileOutputStream()
[all …]
DGCSFileDownloaderFuncTest.java53 RunUtil.getDefault() in setUpBeforeClass()
62 RunUtil.getDefault() in setUpBeforeClass()
80 RunUtil.getDefault() in tearDownAfterClass()
87 cr = RunUtil.getDefault().runTimedCmd(TIMEOUT, GSUTIL, "rb", "-f", sBucketUrl); in tearDownAfterClass()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DCpuThrottlingWaiter.java24 import com.android.tradefed.util.RunUtil;
66 RunUtil.getDefault().sleep(mMaxWaitSecs * 1000); in setUp()
100 RunUtil.getDefault().sleep(intervalMs); in setUp()
103 RunUtil.getDefault().sleep(mPostIdleWaitSecs * 1000); in setUp()
DConnectionChecker.java23 import com.android.tradefed.util.RunUtil;
45 RunUtil.getDefault().sleep(mInterval * 1000); in setUp()
DTemperatureThrottlingWaiter.java24 import com.android.tradefed.util.RunUtil;
94 RunUtil.getDefault().sleep(intervalMs); in setUp()
97 RunUtil.getDefault().sleep(mPostIdleWaitSecs * 1000); in setUp()
DTimeWaster.java25 import com.android.tradefed.util.RunUtil;
62 return RunUtil.getDefault(); in getRunUtil()
DWaitForDeviceDatetimePreparer.java25 import com.android.tradefed.util.RunUtil;
155 return RunUtil.getDefault(); in getRunUtil()
DPreloadedClassesPreparer.java27 import com.android.tradefed.util.RunUtil;
114 return RunUtil.getDefault(); in getRunUtil()
DDeviceCleaner.java27 import com.android.tradefed.util.RunUtil;
142 RunUtil.getDefault().sleep(SCREEN_OFF_RETRY_DELAY_MS * retries); in turnScreenOff()
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DDataIdleTestHelper.java22 import com.android.tradefed.util.RunUtil;
53 RunUtil.getDefault().sleep(PING_WAITING_TIME); in pingTest()
/tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/
DRadioHelper.java22 import com.android.tradefed.util.RunUtil;
46 return RunUtil.getDefault(); in getRunUtil()
78 RunUtil.getDefault().sleep(5 * 1000); in isCdmaDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerFuncTest.java42 import com.android.tradefed.util.RunUtil;
134 RunUtil.getDefault().allowInterrupt(true); in setUp()
219 RunUtil.getDefault().allowInterrupt(true); in invoke()
223 RunUtil.getDefault().sleep(200); in invoke()
233 RunUtil.getDefault().sleep(100); in invoke()
367 RunUtil.getDefault().sleep(500); in testShutdown_interruptible()
408 RunUtil.getDefault().allowInterrupt(true); in testShutdown_notInterruptible()
443 RunUtil.getDefault().sleep(1000); in testShutdown_notInterruptible()
479 RunUtil.getDefault().allowInterrupt(true); in invoke()
482 RunUtil.getDefault().sleep(2000); in invoke()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DReconnectingRecovery.java21 import com.android.tradefed.util.RunUtil;
97 return RunUtil.getDefault(); in getRunUtil()
DDeviceDiagTest.java21 import com.android.tradefed.util.RunUtil;
46 RunUtil.getDefault().sleep(1*1000); in testAllDevicesAvailable()
DBackgroundDeviceAction.java26 import com.android.tradefed.util.RunUtil;
138 return RunUtil.getDefault(); in getRunUtil()
DAndroidDebugBridgeWrapper.java27 import com.android.tradefed.util.RunUtil;
145 return RunUtil.getDefault(); in getRunUtil()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DScheduledDeviceMetricCollectorTest.java28 import com.android.tradefed.util.RunUtil;
85 RunUtil.getDefault().sleep(500); in testSetupAndPeriodicRunSingleDevice()
114 RunUtil.getDefault().sleep(500); in testSetupAndPeriodicRunMultipleDevices()
DScheduleMultipleDeviceMetricCollectorTest.java29 import com.android.tradefed.util.RunUtil;
164 RunUtil.getDefault().sleep(500); in testMultipleMetricCollector_success()
189 RunUtil.getDefault().sleep(500); in testMultipleMetricCollector_noFailureEvenIfNoCollectorRequested()
233 RunUtil.getDefault().sleep(500); in testMultipleMetricCollector_collectorNotFound()
/tools/tradefederation/core/src/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/
DCodeCoverageTest.java31 import com.android.tradefed.util.RunUtil;
89 RunUtil.getDefault().sleep(2000); in run()
DPythonUnitTestRunner.java30 import com.android.tradefed.util.RunUtil;
78 mRunUtil = new RunUtil(); in getRunUtil()
115 IRunUtil runUtil = RunUtil.getDefault(); in getPythonBinary()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DBackgroundDeviceActionTest.java20 import com.android.tradefed.util.RunUtil;
77 RunUtil.getDefault().sleep(SHORT_WAIT_TIME_MS); in testBackgroundActionComplete()
108 RunUtil.getDefault().sleep(LONG_WAIT_TIME_MS); in testBackgroundAction_shellException()
/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/prod-tests/src/com/android/performance/tests/
DHermeticMemoryTest.java29 import com.android.tradefed.util.RunUtil;
108 RunUtil.getDefault().sleep(5000); in run()
110 RunUtil.getDefault().sleep(5000); in run()
115 RunUtil.getDefault().sleep(mPostAppLaunchDelay); in run()

1234