/packages/modules/AdServices/adservices/tests/test-util/side-less/com/android/adservices/common/ |
D | AbstractAdServicesShellCommandHelper.java | 23 import com.android.adservices.shared.testing.shell.CommandResult; 99 CommandResult commandResult = runShellCommandRS(String.format(cmdFmt, cmdArgs)); in runCommand() 120 public CommandResult runCommandRwe(@FormatString String cmdFmt, @Nullable Object... cmdArgs) { in runCommandRwe() 134 CommandResult res = runShellCommandRwe(cmd); in runCommandRwe() 150 protected abstract CommandResult runShellCommandRwe(String cmd); in runShellCommandRwe() 157 private CommandResult runShellCommandRS(String cmd) { in runShellCommandRS() 166 CommandResult commandRes = runGetResultShellCommand(componentName); in runShellCommandRS() 186 CommandResult parseResultFromDumpsys(String res) { in parseResultFromDumpsys() 229 return new CommandResult(res, "", commandStatus); in parseResultFromDumpsys() 231 return new CommandResult(out, err, commandStatus); in parseResultFromDumpsys() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/side-less/com/android/adservices/common/ |
D | AbstractAdServicesShellCommandHelperTest.java | 26 import com.android.adservices.shared.testing.shell.CommandResult; 81 CommandResult commandResult = in testParseResultFromDumpsys_success() 93 CommandResult commandResult = in testParseResultFromDumpsys_onlyErrPresent() 105 CommandResult commandResult = in testParseResultFromDumpsys_bothOutAndErrPresent() 125 CommandResult commandResult = mAdServicesShellCommandHelper.parseResultFromDumpsys(input); in testParseResultFromDumpsys_fails() 167 CommandResult res = in testRunCommandRwe_deviceLevelTPlus() 180 CommandResult res = in testRunCommandRwe_deviceLevelS() 196 CommandResult res = in testRunCommandRwe_deviceLevelT_usesSdkSandbox() 234 protected CommandResult runShellCommandRwe(String cmd) { in runShellCommandRwe() 236 return new CommandResult(res, ""); in runShellCommandRwe()
|
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/ |
D | CommandRunner.java | 26 import com.android.tradefed.util.CommandResult; 50 CommandResult result = runForResult(cmd); in run() 58 CommandResult result = runForResult(cmd); in tryRun() 69 CommandResult result = runForResultWithTimeout(timeoutMillis, cmd); in runWithTimeout() 76 public CommandResult runForResultWithTimeout(long timeoutMillis, String... cmd) in runForResultWithTimeout() 82 public CommandResult runForResult(String... cmd) throws DeviceNotAvailableException { in runForResult()
|
D | CommandResultSubject.java | 20 import com.android.tradefed.util.CommandResult; 32 private final CommandResult mActual; 34 public static Factory<CommandResultSubject, CommandResult> command_results() { in command_results() 38 public static CommandResultSubject assertThat(CommandResult actual) { in assertThat() 42 private CommandResultSubject(FailureMetadata metadata, CommandResult actual) { in CommandResultSubject()
|
D | MicrodroidHostTestCaseBase.java | 34 import com.android.tradefed.util.CommandResult; 168 CommandResult result = RunUtil.getDefault().runTimedCmd(timeout, cmd); in tryRunOnHost() 267 CommandResult result = android.runForResult("service check", SECRETKEEPER_AIDL); in isUpdatableVmSupported()
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxShellHostTest.java | 32 import com.android.tradefed.util.CommandResult; 102 CommandResult output = getDevice().executeShellV2Command( in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 119 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForNonDebuggableApp() 130 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForIncorrectUser() 144 CommandResult output = getDevice().executeShellV2Command( in testStopSdkSandboxSucceedsForRunningDebuggableApp() 155 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForInvalidPackage() 165 CommandResult output = getDevice().executeShellV2Command( in testStopSdkSandboxFailsForNonDebuggableApp() 179 CommandResult output = getDevice().executeShellV2Command(String.format( in testStopSdkSandboxFailsForIncorrectUser()
|
/packages/modules/AdServices/shared/libraries/host-side/java/com/android/adservices/shared/testing/ |
D | TestDeviceHelper.java | 20 import com.android.adservices.shared.testing.shell.CommandResult; 98 public static CommandResult runShellCommandRwe( in runShellCommandRwe() 108 public static CommandResult runShellCommandRwe( in runShellCommandRwe() 111 com.android.tradefed.util.CommandResult result; in runShellCommandRwe() 121 private static CommandResult asCommandResult(com.android.tradefed.util.CommandResult input) { in asCommandResult() 124 return new CommandResult(out, err); in asCommandResult()
|
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/ |
D | AdServicesShellCommandHelper.java | 28 import com.android.adservices.shared.testing.shell.CommandResult; 51 protected CommandResult runShellCommandRwe(String cmd) { in runShellCommandRwe() 75 return new CommandResult(out, err); in runShellCommandRwe() 78 return new CommandResult(out, e.getMessage()); in runShellCommandRwe()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/ |
D | ShellCommandResult.java | 20 import static com.android.adservices.service.stats.ShellCommandStats.CommandResult; 31 @CommandResult 43 public static ShellCommandResult create(@CommandResult int resultCode, @Command int command) { in create()
|
D | AbstractShellCommand.java | 20 import static com.android.adservices.service.stats.ShellCommandStats.CommandResult; 69 @CommandResult int commandResult, @Command int command) { in toShellCommandResult()
|
/packages/modules/Virtualization/tests/pvmfw/java/com/android/pvmfw/test/ |
D | DebugPolicyHostTests.java | 34 import com.android.tradefed.util.CommandResult; 106 CommandResult result = tryLaunchProtectedNonDebuggableVm(); in testNoAdbInDebugPolicy_withDebugLevelNone_boots() 170 CommandResult result = in isDebugPolicyEnabled() 207 private boolean hasConsoleOutput(@NonNull CommandResult result) in hasConsoleOutput() 213 CommandResult result = in hasMicrodroidLogcatOutput() 234 private CommandResult tryLaunchProtectedNonDebuggableVm() throws Exception { in tryLaunchProtectedNonDebuggableVm()
|
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/shell/ |
D | CommandResult.java | 22 public final class CommandResult { class 31 public CommandResult(String out, String err, String commandStatus) { in CommandResult() method in CommandResult 37 public CommandResult(String out, String err) { in CommandResult() method in CommandResult
|
/packages/modules/Virtualization/compos/tests/java/android/compos/test/ |
D | ComposTestCase.java | 38 import com.android.tradefed.util.CommandResult; 139 CommandResult result = runOdrefresh(android, "--force-compile"); in testOdrefresh() 150 CommandResult result = runOdrefresh(android, "--check"); in testOdrefresh() 194 CommandResult result = in assertVmBccIsValid() 204 private CommandResult runOdrefresh(CommandRunner android, String command) throws Exception { in runOdrefresh()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/ |
D | ShellCommandStats.java | 146 public @interface CommandResult {} annotation in ShellCommandStats 152 public ShellCommandStats(@Command int command, @CommandResult int result, int latencyMillis) { in ShellCommandStats() 163 @CommandResult
|
/packages/modules/AdServices/adservices/tests/test-util/host-side/com/android/adservices/common/ |
D | HostSideAdServicesShellCommandHelper.java | 21 import com.android.adservices.shared.testing.shell.CommandResult; 35 protected CommandResult runShellCommandRwe(String cmd) { in runShellCommandRwe()
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | command_handler.rs | 63 type CommandResult = Result<(), CommandError>; typedef 65 type CommandFunction = fn(&mut CommandHandler, &Vec<String>) -> CommandResult; 67 fn _noop(_handler: &mut CommandHandler, _args: &Vec<String>) -> CommandResult { in _noop() argument 466 fn cmd_help(&mut self, args: &Vec<String>) -> CommandResult { in cmd_help() argument 517 fn cmd_adapter(&mut self, args: &Vec<String>) -> CommandResult { in cmd_adapter() argument 668 fn cmd_get_address(&mut self, _args: &Vec<String>) -> CommandResult { in cmd_get_address() argument 678 fn cmd_discovery(&mut self, args: &Vec<String>) -> CommandResult { in cmd_discovery() argument 698 fn cmd_battery(&mut self, args: &Vec<String>) -> CommandResult { in cmd_battery() argument 769 fn cmd_bond(&mut self, args: &Vec<String>) -> CommandResult { in cmd_bond() argument 828 fn cmd_device(&mut self, args: &Vec<String>) -> CommandResult { in cmd_device() argument [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | AdServicesShellCommandTest.java | 23 import com.android.adservices.shared.testing.shell.CommandResult; 44 CommandResult out = mShellCommandHelper.runCommandRwe("%s %s", CMD_ECHO, CMD_ECHO_OUT); in testRunCommandRwe_echoCommand()
|
/packages/modules/common/javatests/com/android/modules/targetprep/ |
D | ClasspathFetcherTest.java | 40 import com.android.tradefed.util.CommandResult; 193 private static CommandResult successfulCommandResult(String stdout, String stderr) { in successfulCommandResult() 194 final CommandResult result = new CommandResult(); in successfulCommandResult()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/ |
D | AdServicesShellCommandHostTest.java | 25 import com.android.adservices.shared.testing.shell.CommandResult; 49 CommandResult out = mShellCommandHelper.runCommandRwe("%s %s", CMD_ECHO, CMD_ECHO_OUT); in testRunCommandRwe_echoCommand()
|
/packages/modules/SdkExtensions/javatests/com/android/sdkext/extensions/ |
D | SdkExtensionsHostTest.java | 35 import com.android.tradefed.util.CommandResult; 144 CommandResult res = getDevice().executeShellV2Command(command); in getExtensionVersionFromSysprop() 151 CommandResult res = getDevice().executeShellV2Command(command); in broadcast() 158 private static void checkExitCode(String command, CommandResult res) { in checkExitCode()
|
/packages/modules/Virtualization/authfs/tests/hosttests/java/src/com/android/fs/ |
D | AuthFsHostTest.java | 37 import com.android.tradefed.util.CommandResult; 657 private static CommandResult copyFile(CommandRunner runner, String src, String dest) in copyFile() 674 private static CommandResult resizeFile(CommandRunner runner, String path, long size) in resizeFile() 690 private static CommandResult checkReadAt(CommandRunner runner, String filePath, long offset, in checkReadAt() 699 private CommandResult writeZerosAtFileOffset(CommandRunner runner, String filePath, long offset, in writeZerosAtFileOffset()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/ |
D | ShellCommandTestCase.java | 21 import static com.android.adservices.service.stats.ShellCommandStats.CommandResult; 75 @CommandResult int expectedCommandResult) { in expectFailure()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/ |
D | GenerateInputForEncodingShellCommandTest.java | 46 import com.android.adservices.shared.testing.shell.CommandResult; 115 CommandResult commandResult = in testRun_generateInputForEncoding_happyPath()
|
D | CustomAudienceShellCommandsE2ETest.java | 41 import com.android.adservices.shared.testing.shell.CommandResult; 155 CommandResult commandResult = in testRun_refreshCustomAudiences_verifyNoCustomAudienceChanged()
|
/packages/modules/Virtualization/authfs/tests/common/src/java/com/android/fs/common/ |
D | AuthFsTestRule.java | 37 import com.android.tradefed.util.CommandResult; 231 CommandResult result = cmdRunner.runForResult(cmd);
|