Searched refs:commandResult (Results 1 – 6 of 6) sorted by relevance
181 CommandResult commandResult = device.executeShellV2Command(command); in executeShellCommandOrThrow() local183 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() local195 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() local268 if (commandResult.getStdout() == null) { in isPackageInstalled()[all …]
78 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile() local79 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() local100 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() local115 commandResult.setStdout(""); in testFindFile_w_empty_line_stdout()[all …]
83 CommandResult commandResult = createSuccessfulCommandResult(); in uninstallPackage_differentPackageWithSameNamePrefixInstalled_doesNotRemove() local84 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() local306 commandResult.setStdout( in createGoodDeviceWithUserAppInstalled()312 .thenReturn(commandResult); in createGoodDeviceWithUserAppInstalled()319 CommandResult commandResult = createSuccessfulCommandResult(); in createGoodDeviceWithAppNotInstalled() local320 commandResult.setStdout(""); in createGoodDeviceWithAppNotInstalled()325 .thenReturn(commandResult); in createGoodDeviceWithAppNotInstalled()336 CommandResult commandResult; in createGoodDeviceWithSystemAppInstalled() local[all …]
73 CommandResult commandResult = device.executeShellV2Command("stat -c %a " + filepath); in getPermission() local74 if (!CommandStatus.SUCCESS.equals(commandResult.getStatus())) { in getPermission()76 commandResult.getStdout(), commandResult.getStderr()); in getPermission()79 return commandResult.getStdout().trim(); in getPermission()
279 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in createSuccessfulCommandResult() local280 commandResult.setExitCode(0); in createSuccessfulCommandResult()281 return commandResult; in createSuccessfulCommandResult()285 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in createFailedCommandResult() local286 commandResult.setExitCode(1); in createFailedCommandResult()287 return commandResult; in createFailedCommandResult()
447 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in createSuccessfulCommandResult() local448 commandResult.setExitCode(0); in createSuccessfulCommandResult()449 return commandResult; in createSuccessfulCommandResult()453 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in createFailedCommandResult() local454 commandResult.setExitCode(1); in createFailedCommandResult()455 return commandResult; in createFailedCommandResult()