HomeSort by relevance Sort by last modified time
    Searched refs:command (Results 451 - 475 of 4245) sorted by null

<<11121314151617181920>>

  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/session/
DefaultSession_RunTest.java 20 import org.mockftpserver.core.command.Command;
21 import org.mockftpserver.core.command.CommandHandler;
22 import org.mockftpserver.core.command.CommandNames;
23 import org.mockftpserver.core.command.ConnectCommandHandler;
24 import org.mockftpserver.core.command.InvocationRecord;
26 import org.mockftpserver.stub.command.AbstractStubCommandHandler;
44 private static final Command COMMAND = new Command("USER", EMPTY);
    [all...]
  /tools/tradefederation/core/src/com/android/tradefed/util/
RunUtil.java 130 public CommandResult runTimedCmd(final long timeout, final String... command) {
131 return runTimedCmd(timeout, null, null, true, command);
139 OutputStream stderr, final String... command) {
140 return runTimedCmd(timeout, stdout, stderr, false, command);
146 * @return a {@CommandResult} containing results from command
149 OutputStream stderr, boolean closeStreamAfterRun, final String... command) {
152 createRunnableResult(result, stdout, stderr, closeStreamAfterRun, command);
160 * command.
168 String... command) {
170 result, null, createProcessBuilder(command), stdout, stderr, closeStreamAfterRun)
    [all...]
  /external/syslinux/com32/hdt/
hdt-cli.c 64 .command = CLI_EXIT,
69 .command = CLI_HELP,
250 * @line: command line to parse
251 * @command: first token in the line
259 static void expand_aliases(char *line __unused, char **command, char **module,
265 find_cli_mode_descr(mode_s_to_mode_t(*command), &mode);
275 argv[0] = malloc((sizeof(*command) + 1) * sizeof(char));
276 strlcpy(argv[0], *command, sizeof(*command) + 1);
277 dprintf("CLI DEBUG: ALIAS %s ", *command);
583 char *command = NULL, *module = NULL; local
622 char *command = NULL, *module = NULL; local
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
SetPolicyActivity.java 38 private static final String EXTRA_COMMAND = "extra-command";
75 String command = intent.getStringExtra(EXTRA_COMMAND); local
76 Log.i(TAG, "Command: " + command);
78 if (COMMAND_ADD_USER_RESTRICTION.equals(command)) {
83 } else if (COMMAND_CLEAR_USER_RESTRICTION.equals(command)) {
89 } else if (COMMAND_BLOCK_ACCOUNT_TYPE.equals(command)) {
95 } else if (COMMAND_UNBLOCK_ACCOUNT_TYPE.equals(command)) {
101 } else if (COMMAND_SET_APP_RESTRICTIONS_MANAGER.equals(command)) {
110 } else if (COMMAND_SET_DELEGATED_SCOPES.equals(command)) {
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
EffectBundleTest.java 118 final int command = Equalizer.PARAM_GET_PRESET_NAME; local
124 if (!eqGetParam(media, command, invalidBand, reply)) {
154 final int command = Equalizer.PARAM_BAND_LEVEL; local
158 if (!eqSetParam(MEDIA_SHORT, command, invalidBand, value)) {
169 final int command = Equalizer.PARAM_BAND_LEVEL; local
173 if (!eqSetParam(MEDIA_LONG, command, invalidBand, value)) {
272 byte command[] = concatArrays(/*status*/ intToByteArray(0),
278 byte reply[] = new byte[ 4 /*command.length*/];
281 Object o = AudioEffect.class.getDeclaredMethod("command", int.class, byte[].class,
282 byte[].class).invoke(af, cmdCode, command, reply)
486 java.lang.reflect.Method command = AudioEffect.class.getDeclaredMethod( local
    [all...]
  /external/perf_data_converter/src/quipper/
perf_recorder_test.cc 19 // Runs "perf record" to see if the command is available on the current system.
27 // Runs "perf mem record" to see if the command is available on the current
55 const auto& command = string_meta.perf_command_line_token(); local
56 EXPECT_EQ(GetPerfPath(), command.Get(0).value());
57 EXPECT_EQ("record", command.Get(1).value());
58 EXPECT_EQ("-o", command.Get(2).value());
60 // Unpredictable: EXPECT_EQ("/tmp/quipper.XXXXXX", command.Get(3).value());
62 EXPECT_EQ(strlen("/tmp/quipper.XXXXXX"), command.Get(3).value().size());
64 command.Get(3).value().substr(0, strlen("/tmp/quipper")));
66 EXPECT_EQ("--", command.Get(4).value())
    [all...]
  /external/toybox/toys/pending/
init.c 30 char *command; member in struct:action_list_seed
96 static void add_new_action(uint8_t action,char *command,char *term)
103 if (!(strcmp(x->command, command)) && !(strcmp(x->terminal_name, term))) {
116 x->command = xstrdup(command);
126 char *p, *q, *extracted_token, *tty_name = NULL, *command = NULL, *tmp; local
144 tty_name = command = NULL;
168 command = xstrdup(extracted_token);
179 free(command);
    [all...]
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/session/
DefaultSession_RunTest.java 29 import org.mockftpserver.core.command.Command;
30 import org.mockftpserver.core.command.CommandHandler;
31 import org.mockftpserver.core.command.CommandNames;
32 import org.mockftpserver.core.command.InvocationRecord;
36 import org.mockftpserver.stub.command.AbstractStubCommandHandler;
37 import org.mockftpserver.stub.command.ConnectCommandHandler;
50 private static final Command COMMAND = new Command("USER", EMPTY);
    [all...]
  /system/netd/server/
FirewallController.cpp 99 std::string command = local
105 res = execIptablesRestore(V4V6, command.c_str());
119 std::string command = local
126 return execIptablesRestore(V4V6, command.c_str());
150 std::string command = "*filter\n"; local
152 StringAppendF(&command, "%s %s -j %s\n", (enable ? "-A" : "-D"), parent, name);
154 StringAppendF(&command, "COMMIT\n");
156 return execIptablesRestore(V4V6, command);
189 std::string command = Join(std::vector<std::string> { local
195 return execIptablesRestore(V4V6, command);
249 std::string command = "*filter\\n"; local
    [all...]
  /tools/tradefederation/core/src/com/android/tradefed/targetprep/
RunHostCommandTargetPreparer.java 46 @OptionClass(alias = "run-host-command")
56 name = "host-setup-command",
58 "Command to be run before the test. Can be repeated. "
66 name = "host-teardown-command",
67 description = "Command to be run after the test. Can be repeated."
72 name = "host-background-command",
74 "Background command to be run before the test. Can be repeated. "
85 description = "Timeout for each command specified."
94 * An interface simply wraps the OutputStream and InputStreamSource for the background command
168 // Upload log of each background command use external logger
218 String command = bgCommands.get(i); local
242 String command = local
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
RunCommandTargetPreparerTest.java 63 * through without exception when running a command.
67 final String command = "mkdir test"; local
69 setter.setOptionValue("run-command", command);
74 EasyMock.expect(mMockDevice.executeShellV2Command(EasyMock.eq(command))).andReturn(res);
82 * through without exception when running a command with timeout.
86 final String command = "mkdir test"; local
88 setter.setOptionValue("run-command", command);
89 setter.setOptionValue("run-command-timeout", "100")
113 final String command = "mkdir test"; local
129 final String command = "mkdir test"; local
148 final String command = "mkdir test"; local
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
ModelInterpreter.java 469 onCHLD(String command) throws InterpreterEx
471 // command starts with "+CHLD="
476 c0 = command.charAt(6);
478 if (command.length() >= 8) {
479 c1 = command.charAt(7);
490 onDial(String command) throws InterpreterEx
494 success = mSimulatedCallState.onDial(command.substring(1));
514 onSMSSend(String command)
532 String command = commands[i]; local
534 if (command.equals("A"))
    [all...]
  /cts/suite/audio_quality/lib/include/audio/
RemoteAudio.h 37 * Assumption: only one command at a time. No other command can come
38 * while a command is pending.
76 void sendCommand(android::sp<android::MessageHandler>& command);
79 bool waitForCompletion(android::sp<android::MessageHandler>& command, int timeInMSec);
86 CommandHandler* toCommandHandler(android::sp<android::MessageHandler>& command) {
87 return reinterpret_cast<CommandHandler*>(command.get());
114 CommandHandler(RemoteAudio& thread, int command)
116 mMessage(command),
  /cts/tests/app/app/src/android/app/stubs/
LocalForegroundService.java 35 private static final String EXTRA_COMMAND = "LocalForegroundService.command";
61 int command = intent.getIntExtra(EXTRA_COMMAND, -1); local
63 Log.d(TAG, "service start cmd " + command + ", intent " + intent);
65 switch (command) {
96 Log.e(TAG, "Unknown command: " + command);
110 public static Bundle newCommand(IBinder stateReceiver, int command) {
113 bundle.putInt(EXTRA_COMMAND, command);
  /cts/tests/backup/src/android/backup/cts/
BaseBackupCtsTest.java 48 protected InputStream executeShellCommand(String command) throws IOException {
49 return executeStreamedShellCommand(getInstrumentation(), command);
101 protected String exec(String command) throws Exception {
102 try (InputStream in = executeStreamedShellCommand(getInstrumentation(), command)) {
115 Instrumentation instrumentation, String command) throws IOException {
117 instrumentation.getUiAutomation().executeShellCommand(command);
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/command/
AbstractTrackingCommandHandler.java 16 package org.mockftpserver.core.command;
30 * objects corresponding to each invocation of the command handler, and provide helper methods for subclasses.
44 * Handle the specified command for the session. This method is declared to throw Exception,
48 * @param command - the Command to be handled
49 * @param session - the session on which the Command was submitted
51 * @throws AssertFailedException - if the command or session is null
52 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(org.mockftpserver.core.command.Command,
    [all...]
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/
StubFtpServer.java 18 import org.mockftpserver.core.command.CommandHandler;
19 import org.mockftpserver.core.command.CommandNames;
20 import org.mockftpserver.core.command.ConnectCommandHandler;
21 import org.mockftpserver.core.command.ReplyTextBundleUtil;
22 import org.mockftpserver.core.command.UnsupportedCommandHandler;
24 import org.mockftpserver.stub.command.*;
33 * <b>StubFtpServer</b> works out of the box with default command handlers that return
35 * The command handler for any command can be easily configured to return custom data
38 * failure scenarios. The command handlers can also be interrogated to verify command
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/
AbstractFakeCommandHandlerTestCase.groovy 16 package org.mockftpserver.fake.command
18 import org.mockftpserver.core.command.Command
19 import org.mockftpserver.core.command.CommandHandler
20 import org.mockftpserver.core.command.ReplyCodes
59 def command = createValidCommand()
60 shouldFailWithMessageContaining("serverConfiguration") { commandHandler.handleCommand(command, session) }
64 shouldFailWithMessageContaining("command") { commandHandler.handleCommand(null, session) }
68 def command = createValidCommand()
69 shouldFailWithMessageContaining("session") { commandHandler.handleCommand(command, null)
    [all...]
  /external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/command/
AbstractCommandHandler.java 16 package org.mockftpserver.core.command;
31 * InvocationRecord objects corresponding to each invocation of the command handler,
50 * Handle the specified command for the session. This method is declared to throw Exception,
54 * @param command - the Command to be handled
55 * @param session - the session on which the Command was submitted
58 * @throws AssertFailedException - if the command or session is null
60 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(org.mockftpserver.core.command.Command,
    [all...]
  /frameworks/base/tools/bit/
print.cpp 72 print_command(const Command& command)
75 for (map<string,string>::const_iterator it=command.env.begin(); it!=command.env.end(); it++) {
81 fputs(command.prog.c_str(), stdout);
82 for (vector<string>::const_iterator it=command.args.begin(); it!=command.args.end(); it++) {
  /packages/apps/Dialer/java/com/android/dialer/commandline/
CommandLineReceiver.java 25 import com.android.dialer.commandline.Command.IllegalCommandLineArgumentException;
37 public static final String COMMAND = "command";
52 Command command = local
56 .get(intent.getStringExtra(COMMAND));
58 if (command == null) {
59 LogUtil.i(outputTag, "unknown command " + intent.getStringExtra(COMMAND));
66 LogUtil.i(outputTag, "usage:\n" + command.getUsage())
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
Dicttool.java 32 public static abstract class Command {
70 static HashMap<String, Class<? extends Command>> sCommands = new HashMap<>();
76 public static void addCommand(final String commandName, final Class<? extends Command> cls) {
80 private static Command getCommandInstance(final String commandName) {
91 System.out.println("Syntax: dicttool <command [arguments]>\nAvailable commands:\n");
103 private static Command getCommand(final String[] arguments) {
106 throw new RuntimeException("Unknown command : " + commandName);
108 final Command command = getCommandInstance(commandName); local
110 command.setArgs(argsArray)
120 final Command command = getCommand(arguments); local
    [all...]
  /system/bt/vendor_libs/test_vendor_lib/test/
packet_stream_unittest.cc 71 // Read the command packet.
72 std::unique_ptr<CommandPacket> command = local
75 const vector<uint8_t> received_payload = command->GetPayload();
79 EXPECT_EQ(packet.size(), command->GetPacketSize());
80 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType());
81 EXPECT_EQ(opcode, command->GetOpcode());
82 EXPECT_EQ(static_cast<size_t>(payload_size + 1), command->GetPayloadSize());
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
AbstractFakeCommandHandler.java 16 package org.mockftpserver.fake.command;
21 import org.mockftpserver.core.command.AbstractCommandHandler;
22 import org.mockftpserver.core.command.Command;
23 import org.mockftpserver.core.command.ReplyCodes;
54 * Reply code sent back when a FileSystemException is caught by the {@link #handleCommand(Command, Session)}
70 public void handleCommand(Command command, Session session) {
72 Assert.notNull(command, "command");
    [all...]
  /cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
BaseDevicePolicyTest.java 77 * command output from the device. At any time, if the shell command does not output anything
193 protected void executeShellCommand(final String command) throws Exception {
194 CLog.d("Starting command " + command);
195 String commandOutput = getDevice().executeShellCommand(command);
196 CLog.d("Output for command " + command + ": " + commandOutput);
225 String command = "pm list users"; local
226 String commandOutput = getDevice().executeShellCommand(command);
483 String command = "pm list features"; local
517 String command ="pm create-user " + (guest ? "--guest " : "") local
557 String command = "pm create-user --profileOf " + parentUserId + " --managed " local
591 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'"; local
626 String command = "dpm set-active-admin --user " + userId + " '" + componentName + "'"; local
650 String command = "dpm set-device-owner --user " + userId + " '" + componentName + "'"; local
675 String command = "settings --user " + userId + " get " + namespace + " " + name; local
683 String command = "settings --user " + userId + " put " + namespace + " " + name local
691 String command = "dpm remove-active-admin --user " + userId + " '" + componentName + "'"; local
699 String command = "dumpsys device_policy"; local
738 String command = "pm enable --user " + userId + " " + packageOrComponent; local
749 String command = "pm disable --user " + userId + " " + packageOrComponent; local
893 String command = "am start -W --user " + userId + " " + packageName + "\/" + activityName; local
    [all...]

Completed in 616 milliseconds

<<11121314151617181920>>