Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
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()
DRemoteAndroidDeviceTest.java82 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect()
85 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect()
99 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails()
117 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails_confirmation()
132 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbDisconnect()
145 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbDisconnect_fails()
DReconnectingRecoveryTest.java74 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), connectCommand())).andReturn( in testRecoverDevice_successRetrying()
91 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), connectCommand())) in testRecoverDevice_failure()
106 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), disconnectCommand())) in expectInitialDisconnectConnectAttempt()
108 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), connectCommand())) in expectInitialDisconnectConnectAttempt()
DWaitDeviceRecoveryTest.java137 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDevice_fastboot()
159 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_fastboot()
166 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_fastboot()
185 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_unavailable()
192 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testRecoverDeviceBootloader_unavailable()
DFastbootHelperTest.java159 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testExecuteCommand()
172 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"), in testExecuteCommand_fail()
/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/util/
DRunUtilFuncTest.java102 RunUtil.getDefault().runTimedCmd(LONG_TIMEOUT_MS, "echo", "hello"); in testRunTimedCmd_repeatedOutput()
116 CommandResult result = RunUtil.getDefault().runTimedCmd(0l, "sleep", "35"); in testRunTimedCmd_noTimeout()
142 .runTimedCmd(3 * LONG_TIMEOUT_MS, "cat", f.getAbsolutePath()); in testRunTimedCmd_largeOutput()
177 result = runUtil.runTimedCmd(SHORT_TIMEOUT_MS, "printenv", "bar"); in testUnsetEnvVariable()
189 CommandResult result = runUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout()
DGCSFileDownloaderFuncTest.java54 .runTimedCmd(TIMEOUT, GSUTIL, "mb", "-p", PROJECT_ID, sBucketUrl); in setUpBeforeClass()
81 .runTimedCmd( in tearDownAfterClass()
87 cr = RunUtil.getDefault().runTimedCmd(TIMEOUT, GSUTIL, "rb", "-f", sBucketUrl); in tearDownAfterClass()
DRunUtilTest.java138 CommandResult result = spyUtil.runTimedCmd(1000, "blahggggwarggg"); in testRunTimedCmd_failed()
150 CommandResult result = mRunUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout()
308 spyUtil.runTimedCmd(LONG_TIMEOUT_MS, stdoutStream, stderrStream, command); in testRuntimedCmd_withFileOutputStream()
335 CommandResult result = spyUtil.runTimedCmd(LONG_TIMEOUT_MS, null, null, command); in testRuntimedCmd_regularOutput_fileNull()
363 spyUtil.runTimedCmd(SHORT_TIMEOUT_MS, stdoutStream, stderrStream, command); in testRuntimedCmd_notWritable()
441 testRunUtil.runTimedCmd( in testUnsetPriority()
459 testRunUtil.runTimedCmd(LONG_TIMEOUT_MS, "/bin/bash", "-c", "echo $" + ENV_NAME); in testUnsetPriority_inverted()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
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()
DPreloadedClassesPreparerTest.java79 when(mMockRunUtil.runTimedCmd(PreloadedClassesPreparer.DEFAULT_TIMEOUT_MS, command)) in testSetUp_RemoteSuccess()
107 when(mMockRunUtil.runTimedCmd(PreloadedClassesPreparer.DEFAULT_TIMEOUT_MS, command)) in testSetUp_LocalSuccess()
127 when(mMockRunUtil.runTimedCmd(PreloadedClassesPreparer.DEFAULT_TIMEOUT_MS, command)) in testSetUp_WriteFailure()
DRunHostCommandTargetPreparerTest.java82 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testSetUp()
103 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testTearDown()
/tools/tradefederation/core/src/com/android/tradefed/device/
DReconnectingRecovery.java42 getRunUtil().runTimedCmd(ADB_TIMEOUT, "adb", "disconnect", serial); in recoverDevice()
48 getRunUtil().runTimedCmd(ADB_TIMEOUT, "adb", "connect", serial); in recoverDevice()
DRemoteAndroidDevice.java124 CommandResult result = getRunUtil().runTimedCmd(DEFAULT_SHORT_CMD_TIMEOUT, "adb", in adbTcpConnect()
150 getRunUtil().runTimedCmd(DEFAULT_SHORT_CMD_TIMEOUT, "adb", "connect", in confirmAdbTcpConnect()
174 CommandResult result = getRunUtil().runTimedCmd(DEFAULT_SHORT_CMD_TIMEOUT, "adb", in adbTcpDisconnect()
DWaitDeviceRecovery.java128 getRunUtil().runTimedCmd(mFastbootWaitTime, mFastbootPath, "-s", in recoverDevice()
302 getRunUtil().runTimedCmd(mFastbootWaitTime, mFastbootPath, "-s", monitor.getSerialNumber(), in handleDeviceBootloaderUnresponsive()
312 CommandResult result = getRunUtil().runTimedCmd(mFastbootWaitTime, mFastbootPath, "-s", in handleDeviceBootloaderUnresponsive()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DPythonVirtualenvPreparer.java74 CommandResult c = mRunUtil.runTimedCmd(BASE_TIMEOUT * 5, mPip, in installDeps()
87 CommandResult c = mRunUtil.runTimedCmd(BASE_TIMEOUT * 5, mPip, in installDeps()
117 mRunUtil.runTimedCmd(BASE_TIMEOUT, "virtualenv", mVenvDir.getAbsolutePath()); in startVirtualenv()
/tools/tradefederation/core/src/com/android/tradefed/util/
DIRunUtil.java87 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd() method
100 public CommandResult runTimedCmd( in runTimedCmd() method
DRunUtil.java130 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd() method in RunUtil
131 return runTimedCmd(timeout, null, null, true, command); in runTimedCmd()
138 public CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd() method in RunUtil
140 return runTimedCmd(timeout, stdout, stderr, false, command); in runTimedCmd()
148 private CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd() method in RunUtil
180 result = runTimedCmd(timeout, command); in runTimedCmdRetry()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java76 mMockRunUtil.runTimedCmd( in testRun()
109 mMockRunUtil.runTimedCmd( in testRunFail_exception()
142 mMockRunUtil.runTimedCmd( in testRunFail_failureOnly()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxConfigUtilTest.java66 doReturn(result).when(mMockRunUtil).runTimedCmd(Mockito.anyLong(), Mockito.any()); in testDumpVersion()
91 doReturn(result).when(mMockRunUtil).runTimedCmd(Mockito.anyLong(), Mockito.any()); in testDumpVersion_failed()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DPythonUnitTestRunner.java116 CommandResult c = runUtil.runTimedCmd(1000, "which", "python"); in getPythonBinary()
121 c = runUtil.runTimedCmd(1000, pythonBin, "--version"); in getPythonBinary()
198 CommandResult c = runUtil.runTimedCmd(mTestTimeout, cmd); in doRunTest()
DJacocoCodeCoverageTest.java150 CommandResult runTimedCmd(long timeout, String[] command) { in runTimedCmd() method in JacocoCodeCoverageTest
151 return RunUtil.getDefault().runTimedCmd(timeout, command); in runTimedCmd()
208 CommandResult result = runTimedCmd(mReportTimeout, cmd); in runAntBuild()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DSdkBuildInfoTest.java58 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testGetSdkTargets()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJacocoCodeCoverageTestTest.java107 .runTimedCmd(anyLong(), any(String[].class)); in testGenerateCoverageReport_success()
120 verify(jacocoCodeCoverageTest, times(1)).runTimedCmd(reportTimeout, new String[] { in testGenerateCoverageReport_success()
189 doReturn(fakeCommandResult).when(jacocoCodeCoverageTest).runTimedCmd(anyLong(), in testGenerateCoverageReport_unsuccessful()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DAtraceCollectorTest.java387 mMockRunUtil.runTimedCmd( in testExecutesPostProcessPar()
429 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParDifferentFormat()
467 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParNoStderr()
508 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParFailed()
548 mMockRunUtil.runTimedCmd( in testExecutesPostProcessParTimeout()

123