Home
last modified time | relevance | path

Searched refs:commandResult (Results 1 – 6 of 6) sorted by relevance

/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DSystemPackageUninstaller.java181 CommandResult commandResult = device.executeShellV2Command(command); in executeShellCommandOrThrow() local
183 if (commandResult.getStatus() != CommandStatus.SUCCESS) { in executeShellCommandOrThrow()
185 String.format("%s; Command result: %s", failureMessage, commandResult)); in executeShellCommandOrThrow()
188 return commandResult; in executeShellCommandOrThrow()
194 CommandResult commandResult = device.executeShellV2Command(command); in executeShellCommandOrLog() local
195 if (commandResult.getStatus() != CommandStatus.SUCCESS) { in executeShellCommandOrLog()
196 CLog.e("%s. Command result: %s", failureMessage, commandResult); in executeShellCommandOrLog()
199 return commandResult; in executeShellCommandOrLog()
262 CommandResult commandResult = in isPackageInstalled() local
268 if (commandResult.getStdout() == null) { in isPackageInstalled()
[all …]
/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/
DTargetFileUtilsTest.java78 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile() local
79 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile()
80 commandResult.setExitCode(0); in testFindFile()
83 .andReturn(commandResult); in testFindFile()
99 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in testFindFile_w_cmd_result_fail() local
100 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile_w_cmd_result_fail()
101 commandResult.setExitCode(0); in testFindFile_w_cmd_result_fail()
103 .andReturn(commandResult); in testFindFile_w_cmd_result_fail()
114 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile_w_empty_line_stdout() local
115 commandResult.setStdout(""); in testFindFile_w_empty_line_stdout()
[all …]
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/
DSystemAppUninstallerTest.java83 CommandResult commandResult = createSuccessfulCommandResult(); in uninstallPackage_differentPackageWithSameNamePrefixInstalled_doesNotRemove() local
84 commandResult.setStdout(String.format("package:%s_some_more_chars", TEST_PACKAGE_NAME)); in uninstallPackage_differentPackageWithSameNamePrefixInstalled_doesNotRemove()
89 .thenReturn(commandResult); in uninstallPackage_differentPackageWithSameNamePrefixInstalled_doesNotRemove()
305 CommandResult commandResult = createSuccessfulCommandResult(); in createGoodDeviceWithUserAppInstalled() local
306 commandResult.setStdout( in createGoodDeviceWithUserAppInstalled()
312 .thenReturn(commandResult); in createGoodDeviceWithUserAppInstalled()
319 CommandResult commandResult = createSuccessfulCommandResult(); in createGoodDeviceWithAppNotInstalled() local
320 commandResult.setStdout(""); in createGoodDeviceWithAppNotInstalled()
325 .thenReturn(commandResult); in createGoodDeviceWithAppNotInstalled()
336 CommandResult commandResult; in createGoodDeviceWithSystemAppInstalled() local
[all …]
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java73 CommandResult commandResult = device.executeShellV2Command("stat -c %a " + filepath); in getPermission() local
74 if (!CommandStatus.SUCCESS.equals(commandResult.getStatus())) { in getPermission()
76 commandResult.getStdout(), commandResult.getStderr()); in getPermission()
79 return commandResult.getStdout().trim(); in getPermission()
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/
DCheckGmsPreparerTest.java279 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in createSuccessfulCommandResult() local
280 commandResult.setExitCode(0); in createSuccessfulCommandResult()
281 return commandResult; in createSuccessfulCommandResult()
285 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in createFailedCommandResult() local
286 commandResult.setExitCode(1); in createFailedCommandResult()
287 return commandResult; in createFailedCommandResult()
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/testtype/
DAppLaunchTestTest.java447 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in createSuccessfulCommandResult() local
448 commandResult.setExitCode(0); in createSuccessfulCommandResult()
449 return commandResult; in createSuccessfulCommandResult()
453 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in createFailedCommandResult() local
454 commandResult.setExitCode(1); in createFailedCommandResult()
455 return commandResult; in createFailedCommandResult()