/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparerTest.java | 96 mMockRunUtil.runTimedCmd( in testSetup_tearDown() 100 mMockRunUtil.runTimedCmd( in testSetup_tearDown() 120 mMockRunUtil.runTimedCmd( in testSetup_fail_tearDown() 126 mMockRunUtil.runTimedCmd( in testSetup_fail_tearDown() 152 mMockRunUtil.runTimedCmd( in testNoAdb() 156 mMockRunUtil.runTimedCmd( in testNoAdb() 187 mMockRunUtil.runTimedCmd( in testAdbFromEnv() 193 mMockRunUtil.runTimedCmd( in testAdbFromEnv() 212 mMockRunUtil.runTimedCmd( in mockTearDown() 216 mMockRunUtil.runTimedCmd( in mockTearDown()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | VideoMultimeterTest.java | 181 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/ |
D | GceManagerTest.java | 345 mMockRunUtil.runTimedCmd( in testStartGce_timeout() 443 mMockRunUtil.runTimedCmd( in testStartGce() 480 mMockRunUtil.runTimedCmd( in testStartGce_failed() 536 mMockRunUtil.runTimedCmd( in testStartGce_bootFail() 566 mMockRunUtil.runTimedCmd( in testShutdownGce() 605 mMockRunUtil.runTimedCmd( in testShutdownGce_withJsonKeyFile() 633 mMockRunUtil.runTimedCmd( in testGetSshBugreport() 650 mMockRunUtil.runTimedCmd( in testGetSshBugreport() 687 mMockRunUtil.runTimedCmd( in testGetNestedSshBugreport() 706 mMockRunUtil.runTimedCmd( in testGetNestedSshBugreport() [all …]
|
D | RemoteFileUtilTest.java | 59 mMockRunUtil.runTimedCmd( in testFetchRemoteFile() 95 mMockRunUtil.runTimedCmd( in testFetchRemoteFile_fail() 124 mMockRunUtil.runTimedCmd( in testPushFileToRemote() 167 mMockRunUtil.runTimedCmd( in testPushFileToRemote_fail()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | RunUtilTest.java | 172 CommandResult result = spyUtil.runTimedCmd(VERY_LONG_TIMEOUT_MS, "blahggggwarggg"); in testRunTimedCmd_failed() 185 CommandResult result = mRunUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout() 345 spyUtil.runTimedCmd(LONG_TIMEOUT_MS, stdoutStream, stderrStream, command); in testRuntimedCmd_withFileOutputStream() 373 CommandResult result = spyUtil.runTimedCmd(LONG_TIMEOUT_MS, null, null, command); in testRuntimedCmd_regularOutput_fileNull() 402 spyUtil.runTimedCmd(LONG_TIMEOUT_MS, stdoutStream, stderrStream, command); in testRuntimedCmd_notWritable() 450 testRunUtil.runTimedCmd( in testUnsetPriority() 467 testRunUtil.runTimedCmd( in testUnsetPriority_inverted() 478 testRunUtil.runTimedCmd(VERY_LONG_TIMEOUT_MS, "/bin/bash", "-c", "exit 2"); in testGotExitCodeFromCommand() 489 testRunUtil.runTimedCmd( in testSetRedirectStderrToStdout()
|
D | RunUtilFuncTest.java | 103 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()
|
D | BundletoolUtilTest.java | 84 mMockRuntil.runTimedCmd( in testGenerateDeviceSpecFile() 108 mMockRuntil.runTimedCmd( in testextractSplitsFromApks() 139 mMockRuntil.runTimedCmd( in test_extractSplitsFromApksFail()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | RemoteAndroidDeviceTest.java | 84 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect() 87 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect() 100 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails() 119 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbConnect_fails_confirmation() 133 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbDisconnect() 145 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), in testAdbDisconnect_fails()
|
D | AndroidDebugBridgeWrapperTest.java | 56 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()
|
D | ReconnectingRecoveryTest.java | 74 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()
|
D | WaitDeviceRecoveryTest.java | 137 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()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparer.java | 73 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/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 97 mMockRunUtil.runTimedCmd( in testRun() 137 mMockRunUtil.runTimedCmd( in testRun_withAdbPath() 172 mMockRunUtil.runTimedCmd( in testRunFail_exception() 212 mMockRunUtil.runTimedCmd( in testRunFail_failureOnly() 234 mMockRunUtil.runTimedCmd( in expectedAdbPath() 246 mMockRunUtil.runTimedCmd( in expectedAdbPath()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | AtraceCollectorTest.java | 391 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/core/tests/src/com/android/tradefed/targetprep/ |
D | PythonVirtualenvPreparerTest.java | 53 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()
|
D | PreloadedClassesPreparerTest.java | 79 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()
|
D | RunHostCommandTargetPreparerTest.java | 82 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testSetUp() 106 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testSetUp_withWorkDir() 127 EasyMock.expect(mRunUtil.runTimedCmd(10L, commandArray)).andReturn(result); in testTearDown()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTestTest.java | 104 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable() 128 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_dnae() 168 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_search() 197 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_notFound() 227 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_failure()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | PythonVirtualenvPreparer.java | 74 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/ |
D | BundletoolUtil.java | 90 CommandResult res = getRunUtil().runTimedCmd(CMD_TIME_OUT, cmd); in generateDeviceSpecFile() 135 CommandResult res = getRunUtil().runTimedCmd(CMD_TIME_OUT, extractApkCmd); in extractSplitsFromApks() 164 CommandResult res = getRunUtil().runTimedCmd(CMD_TIME_OUT, installApksCmd); in installApks()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | NestedRemoteDevice.java | 97 CommandResult stopCvdRes = getRunUtil().runTimedCmd(60000L, stopCvdCommand.split(" ")); in resetVirtualDevice() 101 CommandResult printAdbDevices = getRunUtil().runTimedCmd(60000L, "adb", "devices"); in resetVirtualDevice() 116 .runTimedCmd( in resetVirtualDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | PythonUnitTestRunner.java | 120 CommandResult c = runUtil.runTimedCmd(1000, "which", "python"); in getPythonBinary() 125 c = runUtil.runTimedCmd(1000, pythonBin, "--version"); in getPythonBinary() 202 CommandResult c = runUtil.runTimedCmd(mTestTimeout, cmd); in doRunTest()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ReconnectingRecovery.java | 42 getRunUtil().runTimedCmd(ADB_TIMEOUT, "adb", "disconnect", serial); in recoverDevice() 48 getRunUtil().runTimedCmd(ADB_TIMEOUT, "adb", "connect", serial); in recoverDevice()
|
D | WaitDeviceRecovery.java | 128 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/testtype/python/ |
D | PythonBinaryHostTest.java | 189 .runTimedCmd(PATH_TIMEOUT_MS, "/bin/bash", "-c", "echo $" + PATH_VAR); in runSinglePythonFile() 207 CommandResult versionRes = getRunUtil().runTimedCmd(PATH_TIMEOUT_MS, "adb", "version"); in runSinglePythonFile() 215 getRunUtil().runTimedCmd(mTestTimeout, commandLine.toArray(new String[0])); in runSinglePythonFile()
|