/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | AndroidDebugBridgeWrapperTest.java | 20 import com.android.tradefed.util.CommandResult; 52 CommandResult res = new CommandResult(); in testAdbVersionParsing() 68 CommandResult res = new CommandResult(); in testAdbVersionParsing_altFormat() 87 CommandResult res = new CommandResult(); in testAdbVersionParse_runFail() 103 CommandResult res = new CommandResult(); in testAdbVersionParsing_partial() 119 CommandResult res = new CommandResult(); in testAdbVersionParsing_parseFail()
|
D | FastbootHelperTest.java | 25 import com.android.tradefed.util.CommandResult; 125 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testIsFastbootAvailable_oldVersion() 137 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testIsFastbootAvailable_noBinary() 149 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testGetDevice_fail() 167 CommandResult fakeRes = new CommandResult(CommandStatus.SUCCESS); in testExecuteCommand() 179 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testExecuteCommand_fail() 190 CommandResult fakeRes = new CommandResult(CommandStatus.SUCCESS); in testGetBootloaderAndFastbootdDevices()
|
D | RemoteAndroidDeviceTest.java | 25 import com.android.tradefed.util.CommandResult; 83 CommandResult adbResult = new CommandResult(); in testAdbConnect() 86 CommandResult adbResultConfirmation = new CommandResult(); in testAdbConnect() 102 CommandResult adbResult = new CommandResult(); in testAdbConnect_fails() 121 CommandResult adbResult = new CommandResult(); in testAdbConnect_fails_confirmation() 136 CommandResult adbResult = new CommandResult(); in testAdbDisconnect() 148 CommandResult adbResult = new CommandResult(); in testAdbDisconnect_fails()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | IRunUtil.java | 56 public default CommandResult getResult() { in getResult() 107 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd() 120 public CommandResult runTimedCmd( in runTimedCmd() 133 public CommandResult runTimedCmdRetry(final long timeout, long retryInterval, in runTimedCmdRetry() 145 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently() 158 public CommandResult runTimedCmdSilentlyRetry(final long timeout, long retryInterval, in runTimedCmdSilentlyRetry() 170 CommandResult runTimedCmdWithInput(long timeout, String input, String... command); in runTimedCmdWithInput() 181 CommandResult runTimedCmdWithInput(long timeout, String input, List<String> command); in runTimedCmdWithInput() 193 CommandResult runTimedCmdWithInputRedirect( in runTimedCmdWithInputRedirect()
|
D | CommandResult.java | 22 public class CommandResult { class 32 public CommandResult() { in CommandResult() method in CommandResult 40 public CommandResult(CommandStatus status) { in CommandResult() method in CommandResult
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestRunnerTest.java | 26 import com.android.tradefed.util.CommandResult; 119 public CommandResult getCommandResult() { in getCommandResult() 120 CommandResult cr = new CommandResult(); in getCommandResult() 138 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given270min() 145 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given331min() 158 CommandResult c = new CommandResult(); in testCheckPythonVersion_300given276min() 165 CommandResult expectedResult = testResult.getCommandResult(); in getMockRunUtil()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | RunHostCommandTargetPreparerTest.java | 32 import com.android.tradefed.util.CommandResult; 86 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetUp() 101 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetUp_withWorkDir() 117 CommandResult result = new CommandResult(CommandStatus.FAILED); in testSetUp_withErrors() 128 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTearDown() 143 CommandResult result = new CommandResult(CommandStatus.FAILED); in testTearDown_withError()
|
D | DisableSELinuxTargetPreparerTest.java | 23 import com.android.tradefed.util.CommandResult; 58 CommandResult result = new CommandResult(); in testSetUpSuccess_permissive() 71 CommandResult result = new CommandResult(); in testSetUpSuccess_enforced_rootBefore() 91 CommandResult result = new CommandResult(); in testSetUpSuccess_enforced_notRootBefore() 114 CommandResult result = new CommandResult(); in testSetUp_rootFail() 130 CommandResult result = new CommandResult(); in testSetUp_disableSELinuxFail()
|
D | FastbootDeviceFlasherTest.java | 29 import com.android.tradefed.util.CommandResult; 130 CommandResult fastbootResult = new CommandResult(); in testGetImageVersion() 148 CommandResult fastbootResult = new CommandResult(); in testGetCurrentSlot_fastboot() 194 CommandResult fastbootInValidResult = new CommandResult(); in testRetryGetVersionCommand() 201 CommandResult fastbootValidResult = new CommandResult(); in testRetryGetVersionCommand() 297 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_exists() 309 fastbootOutput = new CommandResult(); in testWipeCache_exists() 346 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_not_exists() 372 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_not_exists_error() 391 CommandResult result = new CommandResult(); in doTestFlashWithWipe() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 137 CommandResult res = getRunUtil() in checkGSUtil() 156 public CommandResult copy(String source, String dest) throws IOException { in copy() 184 CommandResult res = run in copy() 267 public CommandResult makeBucket(String projectId) throws IOException { in makeBucket() 282 CommandResult res = getRunUtil() in makeBucket() 316 CommandResult res = in ls() 423 CommandResult res = in stat() 459 CommandResult res = in md5Hash() 497 public CommandResult pull(Path bucketPath) throws IOException { in pull() 508 public CommandResult pull(Path bucketPath, File localFile) throws IOException { in pull() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparerTest.java | 28 import com.android.tradefed.util.CommandResult; 100 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_tearDown() 124 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_fail_tearDown() 131 CommandResult failedResult = new CommandResult(CommandStatus.FAILED); in testSetup_fail_tearDown() 156 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testNoAdb() 195 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testAdbFromEnv() 221 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in mockTearDown()
|
/tools/tradefederation/core/src/com/android/tradefed/command/remote/ |
D | ExecCommandTracker.java | 34 private CommandResult.Status mStatus = CommandResult.Status.EXECUTING; 54 mStatus = CommandResult.Status.INVOCATION_ERROR; in invocationComplete() 56 mStatus = CommandResult.Status.INVOCATION_SUCCESS; in invocationComplete() 68 CommandResult getCommandResult() { in getCommandResult() 69 return new CommandResult( in getCommandResult()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTestTest.java | 40 import com.android.tradefed.util.CommandResult; 113 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable() 142 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_relativePath() 175 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_dnae() 221 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_search() 254 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_notFound() 282 CommandResult result = new CommandResult(CommandStatus.FAILED); in testRunHostExecutable_failure() 287 new Answer<CommandResult>() { in testRunHostExecutable_failure() 290 public CommandResult answer(InvocationOnMock invocation) in testRunHostExecutable_failure() 328 CommandResult result = new CommandResult(CommandStatus.TIMED_OUT); in testRunHostExecutable_timeout() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | RemoteFileUtilTest.java | 23 import com.android.tradefed.util.CommandResult; 57 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFetchRemoteFile() 92 CommandResult res = new CommandResult(CommandStatus.FAILED); in testFetchRemoteFile_fail() 121 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFetchRemoteDir() 157 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testPushFileToRemote() 199 CommandResult res = new CommandResult(CommandStatus.FAILED); in testPushFileToRemote_fail()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterDeviceMonitorTest.java | 20 import com.android.tradefed.util.CommandResult; 116 CommandResult prodcertstatusMockResult = new CommandResult(); in testGetAdditionalHostInfo() 126 CommandResult krbstatusMockResult = new CommandResult(); in testGetAdditionalHostInfo() 154 CommandResult prodcertstatusMockResult = new CommandResult(); in testGetAdditionalHostInfo_commandFailed() 165 CommandResult krbstatusMockResult = new CommandResult(); in testGetAdditionalHostInfo_commandFailed()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 33 import com.android.tradefed.util.CommandResult; 123 CommandResult res = new CommandResult(); in testRun() 160 CommandResult res = new CommandResult(); in testRun_failWithIncludeFilters() 199 CommandResult res = new CommandResult(); in testRun_withIncludeFilters() 261 CommandResult res = new CommandResult(); in testRun_withExcludeFilters() 323 CommandResult res = new CommandResult(); in testRun_withAdbPath() 368 CommandResult res = new CommandResult(); in testRun_withSharedLibInHostTestsDir() 413 CommandResult res = new CommandResult(); in testRun_withSharedLib() 452 CommandResult res = new CommandResult(); in testRunFail_exception() 498 CommandResult res = new CommandResult(); in testRunFail_failureOnly() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | HostGTest.java | 28 import com.android.tradefed.util.CommandResult; 69 public CommandResult executeHostCommand(String cmd) { in executeHostCommand() 78 public CommandResult executeHostCommand(String cmd, long timeoutMs) { in executeHostCommand() 89 public CommandResult executeHostGTestCommand( in executeHostGTestCommand() 110 CommandResult result; in executeHostGTestCommand() 128 CommandResult cmdResult = in loadFilter() 158 CommandResult result = executeHostCommand(cmd); in runTest() 167 CommandResult testResult = executeHostGTestCommand(cmd, maxTestTimeMs, resultParser); in runTest() 192 CommandResult result = executeHostCommand(cmd); in runTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/ |
D | SandboxConfigUtilTest.java | 25 import com.android.tradefed.util.CommandResult; 64 CommandResult result = new CommandResult(); in testDumpVersion() 88 CommandResult result = new CommandResult(); in testDumpVersion_failed()
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | GetLastCommandResultOp.java | 20 import com.android.tradefed.command.remote.CommandResult.Status; 32 class GetLastCommandResultOp extends RemoteOperation<CommandResult> { 80 protected CommandResult unpackResponseFromJson(JSONObject json) throws JSONException { in unpackResponseFromJson() 85 status = CommandResult.Status.valueOf(statusString); in unpackResponseFromJson() 113 return new CommandResult(status, errorDetails, state, runMetricsMap); in unpackResponseFromJson() 119 protected void packResponseIntoJson(CommandResult commandResult, JSONObject json) in packResponseIntoJson()
|
D | CommandResult.java | 25 class CommandResult { class 40 CommandResult(Status status, String errorDetails, FreeDeviceState state, in CommandResult() method in CommandResult 48 public CommandResult(Status status) { in CommandResult() method in CommandResult
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/statsd/ |
D | ConfigUtilTest.java | 32 import com.android.tradefed.util.CommandResult; 68 CommandResult mockResult = new CommandResult(); in testPushDeviceConfig() 92 CommandResult mockResult = new CommandResult(); in testPushInvalidDeviceConfig() 118 CommandResult mockResult = new CommandResult(); in testPushBinaryDeviceConfig()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | SandboxConfigurationFactoryTest.java | 30 import com.android.tradefed.util.CommandResult; 76 private void expectDumpCmd(CommandResult res) { in expectDumpCmd() 88 new IAnswer<CommandResult>() { in expectDumpCmd() 90 public CommandResult answer() throws Throwable { in expectDumpCmd() 113 CommandResult results = new CommandResult(); in testCreateConfigurationFromArgs() 135 CommandResult results = new CommandResult(); in testCreateConfigurationFromArgs_fail()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | FastbootHelper.java | 20 import com.android.tradefed.util.CommandResult; 65 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(15000, mFastbootPath, "help"); in isFastbootAvailable() 86 CommandResult fastbootResult = in getDevices() 105 CommandResult fastbootResult = in getBootloaderAndFastbootdDevices() 157 final CommandResult fastbootResult = mRunUtil.runTimedCmd(FASTBOOT_CMD_TIMEOUT, in executeCommand() 169 final CommandResult fastbootResult = in isFastbootd()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 28 import com.android.tradefed.util.CommandResult; 67 CommandResult resSet = new CommandResult(CommandStatus.SUCCESS); in testSetUp_install() 74 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testSetUp_install() 121 CommandResult result = new CommandResult(CommandStatus.FAILED); in testDeleteFile_fail() 139 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testError() 391 private CommandResult mockSuccess() { in mockSuccess() 392 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in mockSuccess()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | INativeDevice.java | 31 import com.android.tradefed.util.CommandResult; 324 public CommandResult executeShellV2Command(String command) throws DeviceNotAvailableException; in executeShellV2Command() 336 public CommandResult executeShellV2Command(String command, File pipeAsInput) in executeShellV2Command() 349 public CommandResult executeShellV2Command(String command, OutputStream pipeToOutput) in executeShellV2Command() 364 public CommandResult executeShellV2Command( in executeShellV2Command() 383 public CommandResult executeShellV2Command( in executeShellV2Command() 407 public CommandResult executeShellV2Command( in executeShellV2Command() 456 public CommandResult executeFastbootCommand(String... commandArgs) in executeFastbootCommand() 470 public CommandResult executeFastbootCommand(long timeout, String... commandArgs) in executeFastbootCommand() 483 public CommandResult executeLongFastbootCommand(String... commandArgs) in executeLongFastbootCommand() [all …]
|