Home
last modified time | relevance | path

Searched refs:runTimedCmd (Results 1 – 25 of 82) sorted by relevance

1234

/tools/tradefederation/contrib/src/com/android/media/tests/
DVideoMultimeterTest.java181 CommandResult cr = getRunUtil().runTimedCmd( in doCalibration()
190 cr = getRunUtil().runTimedCmd(2 * 1000, mMeterUtilPath, CMD_GET_FRAMERATE_STATE); in doCalibration()
197 cr = getRunUtil().runTimedCmd( in doCalibration()
209 CommandResult cr = getRunUtil().runTimedCmd( in setupTestEnv()
218 cr = getRunUtil().runTimedCmd(COMMAND_TIMEOUT_MS, mMeterUtilPath, CMD_START_MEASUREMENT); in setupTestEnv()
220 cr = getRunUtil().runTimedCmd(COMMAND_TIMEOUT_MS, mMeterUtilPath, CMD_STOP_MEASUREMENT); in setupTestEnv()
229 cr = getRunUtil().runTimedCmd(COMMAND_TIMEOUT_MS, mMeterUtilPath, calibrationValues); in setupTestEnv()
254 cr = getRunUtil().runTimedCmd(COMMAND_TIMEOUT_MS, mMeterUtilPath, CMD_START_MEASUREMENT); in doMeasurement()
260 cr = getRunUtil().runTimedCmd(COMMAND_TIMEOUT_MS, mMeterUtilPath, CMD_STOP_MEASUREMENT); in doMeasurement()
263 cr = getRunUtil().runTimedCmd( in doMeasurement()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java353 mMockRunUtil.runTimedCmd( in testStartGce_timeout()
457 mMockRunUtil.runTimedCmd( in testStartGce()
497 mMockRunUtil.runTimedCmd( in testStartGce_failed()
556 mMockRunUtil.runTimedCmd( in testStartGce_bootFail()
585 mMockRunUtil.runTimedCmd( in testShutdownGce()
658 mMockRunUtil.runTimedCmd( in testShutdownGce_withJsonKeyFile()
686 mMockRunUtil.runTimedCmd( in testGetSshBugreport()
703 mMockRunUtil.runTimedCmd( in testGetSshBugreport()
740 mMockRunUtil.runTimedCmd( in testGetNestedSshBugreport()
760 mMockRunUtil.runTimedCmd( in testGetNestedSshBugreport()
[all …]
DRemoteFileUtilTest.java59 mMockRunUtil.runTimedCmd( in testFetchRemoteFile()
95 mMockRunUtil.runTimedCmd( in testFetchRemoteFile_fail()
123 mMockRunUtil.runTimedCmd( in testFetchRemoteDir()
160 mMockRunUtil.runTimedCmd( in testPushFileToRemote()
203 mMockRunUtil.runTimedCmd( in testPushFileToRemote_fail()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparerTest.java103 mMockRunUtil.runTimedCmd( in testSetup_tearDown()
107 mMockRunUtil.runTimedCmd( in testSetup_tearDown()
127 mMockRunUtil.runTimedCmd( in testSetup_fail_tearDown()
133 mMockRunUtil.runTimedCmd( in testSetup_fail_tearDown()
159 mMockRunUtil.runTimedCmd( in testNoAdb()
163 mMockRunUtil.runTimedCmd( in testNoAdb()
198 mMockRunUtil.runTimedCmd( in testAdbFromEnv()
204 mMockRunUtil.runTimedCmd( in testAdbFromEnv()
223 mMockRunUtil.runTimedCmd( in mockTearDown()
227 mMockRunUtil.runTimedCmd( in mockTearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java128 mMockRunUtil.runTimedCmd( in testRun()
169 mMockRunUtil.runTimedCmd( in testRun_failWithIncludeFilters()
216 mMockRunUtil.runTimedCmd( in testRun_withIncludeFilters()
278 mMockRunUtil.runTimedCmd( in testRun_withExcludeFilters()
332 mMockRunUtil.runTimedCmd( in testRun_withAdbPath()
377 mMockRunUtil.runTimedCmd( in testRun_withSharedLibInHostTestsDir()
422 mMockRunUtil.runTimedCmd( in testRun_withSharedLib()
461 mMockRunUtil.runTimedCmd( in testRunFail_exception()
507 mMockRunUtil.runTimedCmd( in testRunFail_failureOnly()
626 mMockRunUtil.runTimedCmd( in expectRunThatWritesTestOutputFile()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRunHostCommandTargetPreparerTest.java87 when(mRunUtil.runTimedCmd(anyLong(), any())).thenReturn(result); in testSetUp()
91 verify(mRunUtil).runTimedCmd(eq(10L), eq("command"), eq("argument"), eq(DEVICE_SERIAL)); in testSetUp()
102 when(mRunUtil.runTimedCmd(anyLong(), any())).thenReturn(result); in testSetUp_withWorkDir()
107 verify(mRunUtil).runTimedCmd(eq(10L), eq("command")); in testSetUp_withWorkDir()
118 when(mRunUtil.runTimedCmd(anyLong(), any())).thenReturn(result); in testSetUp_withErrors()
129 when(mRunUtil.runTimedCmd(anyLong(), any())).thenReturn(result); in testTearDown()
133 verify(mRunUtil).runTimedCmd(eq(10L), eq("command"), eq("argument"), eq(DEVICE_SERIAL)); in testTearDown()
144 when(mRunUtil.runTimedCmd(anyLong(), any())).thenReturn(result); in testTearDown_withError()
DRunHostScriptTargetPreparerTest.java101 when(mRunUtil.runTimedCmd(anyLong(), any())).thenReturn(result); in setUp()
117 verify(mRunUtil).runTimedCmd(10L, mScriptFile.getAbsolutePath()); in testSetUp()
129 verify(mRunUtil).runTimedCmd(anyLong(), eq(mScriptFile.getAbsolutePath())); in testSetUp_workingDir()
138 verify(mRunUtil).runTimedCmd(anyLong(), eq(mScriptFile.getAbsolutePath())); in testSetUp_findFile()
151 when(mRunUtil.runTimedCmd(anyLong(), any())).thenReturn(result); in testSetUp_executionError()
DPythonVirtualenvPreparerTest.java53 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_reqFile_success()
64 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_depModule_success()
75 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_reqFile_failure()
90 expect(mMockRunUtil.runTimedCmd(anyLong(), in testInstallDeps_depModule_failure()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilTest.java175 CommandResult result = spyUtil.runTimedCmd(VERY_LONG_TIMEOUT_MS, "blahggggwarggg"); in testRunTimedCmd_failed()
188 CommandResult result = mRunUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout()
348 spyUtil.runTimedCmd(LONG_TIMEOUT_MS, stdoutStream, stderrStream, command); in testRuntimedCmd_withFileOutputStream()
376 CommandResult result = spyUtil.runTimedCmd(LONG_TIMEOUT_MS, null, null, command); in testRuntimedCmd_regularOutput_fileNull()
405 spyUtil.runTimedCmd(LONG_TIMEOUT_MS, stdoutStream, stderrStream, command); in testRuntimedCmd_notWritable()
453 testRunUtil.runTimedCmd( in testUnsetPriority()
470 testRunUtil.runTimedCmd( in testUnsetPriority_inverted()
481 testRunUtil.runTimedCmd(VERY_LONG_TIMEOUT_MS, "/bin/bash", "-c", "exit 2"); in testGotExitCodeFromCommand()
492 testRunUtil.runTimedCmd( in testSetRedirectStderrToStdout()
DRunUtilFuncTest.java103 RunUtil.getDefault().runTimedCmd(LONG_TIMEOUT_MS, "echo", "hello"); in testRunTimedCmd_repeatedOutput()
117 CommandResult result = RunUtil.getDefault().runTimedCmd(0l, "sleep", "35"); in testRunTimedCmd_noTimeout()
143 .runTimedCmd(3 * LONG_TIMEOUT_MS, "cat", f.getAbsolutePath()); in testRunTimedCmd_largeOutput()
178 result = runUtil.runTimedCmd(SHORT_TIMEOUT_MS, "printenv", "bar"); in testUnsetEnvVariable()
190 CommandResult result = runUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout()
240 .runTimedCmd( in testRunTimedCmd_WithOutputRedirect()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DAtraceCollectorTest.java391 mMockRunUtil.runTimedCmd( in testExecutesPostProcessPar()
433 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParDifferentFormat()
471 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParNoStderr()
512 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParFailed()
552 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParTimeout()
592 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.anyObject())) in testProcessesMetricOutput()
628 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.anyObject())) in testProcessesMetricOutputWithMalformedRegex()
659 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.anyObject())) in testProcessesMetricOutputWithFileNotFound()
695 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.anyObject())) in testProcessesMetricOutputTwoKeys()
/tools/tradefederation/contrib/src/com/android/build/tests/
DKernelImageCheck.java132 CommandResult result = RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT, cmd); in test_stable_abi()
140 result = RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT, cmd); in test_stable_abi()
157 RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT, chmod); in test_stable_abi()
175 result = RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT, abidwCmd.toArray(new String[0])); in test_stable_abi()
192 result = RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT, cmd); in test_stable_abi()
196 result = RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT, cmd); in test_stable_abi()
211 result = RunUtil.getDefault().runTimedCmd(CMD_TIMEOUT, abidiffCmd.toArray(new String[0])); in test_stable_abi()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java138 when(mMockRunUtil.runTimedCmd( in testRun()
153 .runTimedCmd( in testRun()
184 when(mMockRunUtil.runTimedCmd( in testRun_withSetupScripts()
202 .runTimedCmd( in testRun_withSetupScripts()
208 .runTimedCmd( in testRun_withSetupScripts()
252 when(mMockRunUtil.runTimedCmd( in testRun_withUseSubprocessReporting()
270 .runTimedCmd( in testRun_withUseSubprocessReporting()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java122 .runTimedCmd( in testRunHostExecutable()
151 .runTimedCmd( in testRunHostExecutable_relativePath()
184 .runTimedCmd( in testRunHostExecutable_dnae()
235 .runTimedCmd( in testRunHostExecutable_search()
268 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_notFound()
311 .runTimedCmd( in testRunHostExecutable_failure()
357 .runTimedCmd( in testRunHostExecutable_timeout()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DRemoteAndroidDeviceTest.java89 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect()
92 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect()
105 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails()
124 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails_confirmation()
138 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbDisconnect()
150 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbDisconnect_fails()
DAndroidDebugBridgeWrapperTest.java56 mMockRunUtil.runTimedCmd( in testAdbVersionParsing()
75 mMockRunUtil.runTimedCmd( in testAdbVersionParsing_altFormat()
92 mMockRunUtil.runTimedCmd( in testAdbVersionParse_runFail()
107 mMockRunUtil.runTimedCmd( in testAdbVersionParsing_partial()
123 mMockRunUtil.runTimedCmd( in testAdbVersionParsing_parseFail()
DWaitDeviceRecoveryTest.java192 mMockRunUtil.runTimedCmd( in testRecoverDevice_unavailable_fastboot()
250 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDevice_fastboot()
273 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_fastboot()
280 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_fastboot()
300 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_unavailable()
307 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_unavailable()
DTestDeviceTest.java265 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in setExecuteAdbCommandExpectations()
321 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String)EasyMock.anyObject(), in testGetProductType_fastboot()
342 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String)EasyMock.anyObject(), in testGetProductType_fastbootNonalpha()
363 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String)EasyMock.anyObject(), in testGetProductType_fastbootFail()
977 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testExecuteFastbootCommand_state()
1028 EasyMock.expect(mMockRunUtil.runTimedCmd( in testExecuteFastbootCommand_recovery()
1036 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testExecuteFastbootCommand_recovery()
1239 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("adb"), in testSwitchToAdbTcp()
1290 mMockRunUtil.runTimedCmd( in setMockIDeviceAppOpsToPersist()
4664 mMockRunUtil.runTimedCmd( in testListDisplayId()
[all …]
DDeviceManagerTest.java227 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String) EasyMock.anyObject(), in setUp()
775 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("adb"), in testConnectToTcpDevice_connectFailed()
893 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("adb"), in setConnectToTcpDeviceExpectations()
996 mMockRunUtil.runTimedCmd( in testFreeDevice_unavailable()
1057 mMockRunUtil.runTimedCmd( in testFreeDevice_recovery()
1122 mMockRunUtil.runTimedCmd( in testFreeDevice_unknown()
1187 mMockRunUtil.runTimedCmd( in testFreeDevice_unknown_subName()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparer.java73 getRunUtil().runTimedCmd(CMD_TIMEOUT, "adb", "kill-server"); in setUp()
104 restartAdb.runTimedCmd(CMD_TIMEOUT, adb.getAbsolutePath(), "start-server"); in setUp()
114 getRunUtil().runTimedCmd(CMD_TIMEOUT, "adb", "start-server"); in setUp()
126 getRunUtil().runTimedCmd(CMD_TIMEOUT, "adb", "kill-server"); in tearDown()
128 CommandResult restart = getRunUtil().runTimedCmd(CMD_TIMEOUT, "adb", "start-server"); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java140 getRunUtil().runTimedCmd(mFastbootWaitTime, mFastbootPath, "-s", in recoverDevice()
375 .runTimedCmd( in handleDeviceFastbootdUnresponsive()
393 .runTimedCmd( in handleDeviceFastbootdUnresponsive()
418 getRunUtil().runTimedCmd(mFastbootWaitTime, mFastbootPath, "-s", monitor.getSerialNumber(), in handleDeviceBootloaderUnresponsive()
428 CommandResult result = getRunUtil().runTimedCmd(mFastbootWaitTime, mFastbootPath, "-s", in handleDeviceBootloaderUnresponsive()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTestTest.java110 Mockito.when(mMockRunUtil.runTimedCmd(anyLong(), any())) in testRun_withPythonBinariesOption()
126 verify(mSpyTest.getRunUtil()).runTimedCmd(anyLong(), any()); in testRun_withPythonBinariesOption()
147 Mockito.when(mMockRunUtil.runTimedCmd(anyLong(), any())) in testRun_withParFileNameOption()
163 verify(mSpyTest.getRunUtil()).runTimedCmd(anyLong(), any()); in testRun_withParFileNameOption()
193 Mockito.when(mMockRunUtil.runTimedCmd(anyLong(), any())) in testRun_testResultIsMissing()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryHostTestTest.java131 mMockRunUtil.runTimedCmd( in mockTestRunExpect()
286 mMockRunUtil.runTimedCmd( in testExcludeFilter()
329 mMockRunUtil.runTimedCmd( in testIncludeExcludeFilter()
389 mMockRunUtil.runTimedCmd( in testMultipleIncludeExcludeFilter()
401 mMockRunUtil.runTimedCmd( in testMultipleIncludeExcludeFilter()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DNestedRemoteDevice.java96 CommandResult stopCvdRes = getRunUtil().runTimedCmd(60000L, stopCvdCommand.split(" ")); in resetVirtualDevice()
100 CommandResult printAdbDevices = getRunUtil().runTimedCmd(60000L, "adb", "devices"); in resetVirtualDevice()
115 .runTimedCmd( in resetVirtualDevice()
186 .runTimedCmd( in captureLauncherLog()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DRunUtil.java145 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd() method in RunUtil
146 return runTimedCmd(timeout, null, null, command); in runTimedCmd()
153 public CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd() method in RunUtil
185 result = runTimedCmd(timeout, command); in runTimedCmdRetry()

1234