/external/vboot_reference/cgpt/ |
cgpt.c | 45 printf("\nUsage: %s COMMAND [OPTIONS] DRIVE\n\n" 52 printf("\nFor more detailed usage, use %s COMMAND -h\n\n", progname); 59 char* command; local 72 // increment optind now, so that getopt skips argv[0] in command function 73 command = argv[optind++]; 75 // Find the command to invoke. 76 for (i = 0; command && i < sizeof(cmds)/sizeof(cmds[0]); ++i) { 78 if (0 == strcmp(cmds[i].name, command)) { 84 else if (0 == strncmp(cmds[i].name, command, strlen(command))) { [all...] |
/frameworks/base/core/java/com/android/internal/midi/ |
MidiConstants.java | 101 // Returns true if this command can be used for running status 102 public static boolean allowRunningStatus(byte command) { 104 return (command >= STATUS_NOTE_OFF && command < STATUS_SYSTEM_EXCLUSIVE); 107 // Returns true if this command cancels running status 108 public static boolean cancelsRunningStatus(byte command) { 110 return (command >= STATUS_SYSTEM_EXCLUSIVE && command <= STATUS_END_SYSEX);
|
/frameworks/base/media/java/android/media/ |
SessionCommandGroup2.java | 51 public void addCommand(@NonNull SessionCommand2 command) { 52 mProvider.addCommand_impl(command); 63 public void removeCommand(@NonNull SessionCommand2 command) { 64 mProvider.removeCommand_impl(command); 71 public boolean hasCommand(@NonNull SessionCommand2 command) { 72 return mProvider.hasCommand_impl(command);
|
/toolchain/binutils/binutils-2.27/bfd/ |
elf32-am33lin.c | 83 elf_tdata (abfd)->core->command 92 char *command = elf_tdata (abfd)->core->command; local 93 int n = strlen (command); 95 if (0 < n && command[n - 1] == ' ') 96 command[n - 1] = '\0';
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
SimplePerfUtilTest.java | 46 String command = "ls -l"; local 47 String fullCommand = spu.commandStringPreparer(command); 48 Assert.assertEquals("simpleperf stat " + command, fullCommand); 53 String command = "sleep 10"; local 60 String fullCommand = spu.commandStringPreparer(command); 61 Assert.assertEquals("simpleperf record -e cpu-cycles:k --no-inherit perf.data " + command,
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/command/ |
SimpleCompositeCommandHandlerTest.java | 16 package org.mockftpserver.core.command;
25 import org.mockftpserver.core.command.Command;
26 import org.mockftpserver.core.command.CommandHandler;
27 import org.mockftpserver.core.command.SimpleCompositeCommandHandler;
45 private Command command;
field in class:SimpleCompositeCommandHandlerTest 56 commandHandler1.handleCommand(command, session);
59 simpleCompositeCommandHandler.handleCommand(command, session);
70 commandHandler1.handleCommand(command, session); [all...] |
/external/tensorflow/tensorflow/core/profiler/internal/ |
print_model_analysis.cc | 38 string RunProfile(const string& command, const string& options, 40 if (command == kCmds[4]) { 49 tf_stats->BuildView(command); 64 if (command == kCmds[2] || command == kCmds[3]) { 65 ret = tf_stats->ShowMultiGraphNode(command, opts).SerializeAsString(); 66 } else if (command == kCmds[0] || command == kCmds[1]) { 67 ret = tf_stats->ShowGraphNode(command, opts).SerializeAsString(); 69 fprintf(stderr, "Unknown command: %s\n", command.c_str()) [all...] |
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
AppeCommandHandlerTest.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.CommandNames 21 import org.mockftpserver.core.command.ReplyCodes 74 Command createValidCommand() { 75 return new Command(CommandNames.APPE, [FILE])
|
CdupCommandHandlerTest.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.CommandNames 21 import org.mockftpserver.core.command.ReplyCodes 68 Command createValidCommand() { 69 return new Command(CommandNames.CDUP, [])
|
EprtCommandHandlerTest.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.CommandNames 21 import org.mockftpserver.core.command.ReplyCodes 92 Command createValidCommand() { 93 return new Command(CommandNames.EPRT, PARAMETERS_IPV4)
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
SimplePerfUtil.java | 28 * Utility class to dispatch simple command and collect results 65 * Get argument for simpleperf command 74 * Set argument on simpleperf command 84 * Executes the given adb shell command, with simpleperf wrapped around 88 * @param command command to run on device 93 public SimplePerfResult executeCommand(String command) throws DeviceNotAvailableException { 94 String output = mDevice.executeShellCommand(commandStringPreparer(command)); 100 * Executes the given adb shell command, with simpleperf wrapped around 104 * @param command command to run on devic [all...] |
/external/nos/host/generic/libnos_transport/ |
transport.c | 67 static int nos_device_read(const struct nos_device *dev, uint32_t command, 71 int err = dev->ops.read(dev->ctx, command, buf, len); 90 static int nos_device_write(const struct nos_device *dev, uint32_t command, 94 int err = dev->ops.write(dev->ctx, command, buf, len); 118 uint32_t command = CMD_ID(app_id) | CMD_IS_READ | CMD_TRANSPORT; local 120 if (0 != nos_device_read(dev, command, buf, sizeof(buf))) { 133 uint32_t command = CMD_ID(app_id) | CMD_TRANSPORT; local 135 if (0 != nos_device_write(dev, command, 0, 0)) { 148 uint32_t command; local 183 command = CMD_ID(app_id) | CMD_TRANSPORT | CMD_IS_DATA [all...] |
/system/netd/client/ |
NetdClient.cpp | 70 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0, 0}; local 71 if (int error = FwmarkClient().send(&command, acceptedSocket, nullptr)) { 82 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0, 0}; local 83 if (int error = FwmarkClient().send(&command, sockfd, nullptr)) { 94 // Send an ON_CONNECT_COMPLETE command that includes sockaddr and connect latency for reporting 98 FwmarkCommand command = {FwmarkCommand::ON_CONNECT_COMPLETE, /* netId (ignored) */ 0, local 101 FwmarkClient().send(&command, sockfd, &connectInfo); 215 FwmarkCommand command = {FwmarkCommand::SELECT_NETWORK, netId, 0, 0}; local 216 return FwmarkClient().send(&command, socketFd, nullptr); 231 FwmarkCommand command = {FwmarkCommand::PROTECT_FROM_VPN, 0, 0, 0} local 239 FwmarkCommand command = {FwmarkCommand::SELECT_FOR_USER, 0, uid, 0}; local 244 FwmarkCommand command = {FwmarkCommand::QUERY_USER_ACCESS, netId, uid, 0}; local 249 FwmarkCommand command = {FwmarkCommand::TAG_SOCKET, 0, uid, tag}; local 254 FwmarkCommand command = {FwmarkCommand::UNTAG_SOCKET, 0, 0, 0}; local 259 FwmarkCommand command = {FwmarkCommand::SET_COUNTERSET, 0, uid, counterSet}; local 264 FwmarkCommand command = {FwmarkCommand::DELETE_TAGDATA, 0, uid, tag}; local [all...] |
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/ |
StubFtpServer.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.ReplyTextBundleAware;
33 import org.mockftpserver.core.command.ReplyTextBundleUtil;
40 import org.mockftpserver.stub.command.AborCommandHandler;
41 import org.mockftpserver.stub.command.AcctCommandHandler;
42 import org.mockftpserver.stub.command.AlloCommandHandler;
43 import org.mockftpserver.stub.command.AppeCommandHandler; [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
AbstractStoreFileCommandHandler.java | 16 package org.mockftpserver.fake.command;
18 import org.mockftpserver.core.command.Command;
19 import org.mockftpserver.core.command.ReplyCodes;
47 protected void handle(Command command, Session session) {
51 String filename = getOutputFile(command);
99 * the required first parameter for the specified Command. Subclasses may override the default behavior.
101 * @param command - the Command
[all...] |
ListCommandHandler.java | 16 package org.mockftpserver.fake.command;
18 import org.mockftpserver.core.command.Command;
19 import org.mockftpserver.core.command.ReplyCodes;
29 * CommandHandler for the LIST command. Handler logic:
49 protected void handle(Command command, Session session) {
53 String path = getRealPath(session, command.getParameter(0));
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/ |
RetrCommandHandlerTest.java | 16 package org.mockftpserver.stub.command;
21 import org.mockftpserver.core.command.AbstractCommandHandlerTestCase;
22 import org.mockftpserver.core.command.Command;
23 import org.mockftpserver.core.command.CommandNames;
24 import org.mockftpserver.core.command.ReplyCodes;
108 Command command = new Command(CommandNames.RETR, array(FILENAME1));
local 109 commandHandler.handleCommand(command, session); [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
RetrCommandHandlerTest.java | 16 package org.mockftpserver.stub.command;
20 import org.mockftpserver.core.command.Command;
21 import org.mockftpserver.core.command.CommandNames;
22 import org.mockftpserver.core.command.ReplyCodes;
24 import org.mockftpserver.stub.command.RetrCommandHandler;
107 Command command = new Command(CommandNames.RETR, array(FILENAME1));
local 108 commandHandler.handleCommand(command, session); [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
BluetoothInstrumentation.java | 62 String command = mArgs.getString("command"); local 63 if ("enable".equals(command)) { 65 } else if ("disable".equals(command)) { 67 } else if ("unpairAll".equals(command)) { 69 } else if ("getName".equals(command)) { 71 } else if ("getAddress".equals(command)) { 73 } else if ("getBondedDevices".equals(command)) {
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
PacketDispatcher.java | 52 * - begCommandIdForTrace defines starting command ID for trace 53 * (the first command has ID=1, the second - ID=2 and so on). 55 * - commandsNumberForTrace defines number of command for trace. 187 * Internal class to synchronize jdwp commands. It sends command packets 205 // set first command id to 1 210 * Gets the next new id for a command. 231 // obtain the current command id 234 // obtain the current command packet by command id 235 CommandPacket command = commands.remove(Id) local [all...] |
/cts/suite/audio_quality/lib/src/audio/ |
AudioProtocol.cpp | 58 uint32_t command = ntohl(data[0]); local 59 if ((command & 0xffff0000) != 0x43210000) { 60 LOGE("Wrong header %x %x", command, data[0]); 63 command = (command & 0xffff) | 0x12340000; // convert to id 64 if (command < ECmdStart) { 65 LOGE("Wrong header %x %x", command, data[0]); 68 if (command > (ECmdLast - 1)) { 69 LOGE("Wrong header %x %x", command, data[0]); 72 id = (CommandId)command; [all...] |
/system/tpm/trunks/ |
resource_manager_test.cc | 76 // Builds a well-formed command. 118 // Builds a well-formed command authorization section. 150 std::string command = CreateCommand(TPM_CC_Load, input_handles, local 155 EXPECT_CALL(transceiver_, SendCommandAndWait(command)) 157 std::string actual_response = resource_manager_.SendCommandAndWait(command); 167 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 179 resource_manager_.SendCommandAndWait(command); 185 std::string command = CreateCommand(TPM_CC_StartAuthSession, input_handles, local 190 EXPECT_CALL(transceiver_, SendCommandAndWait(command)) 192 std::string actual_response = resource_manager_.SendCommandAndWait(command); 198 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 234 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 245 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 260 std::string command = CreateCommand(TPM_CC_Load, input_handles, local 282 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local 302 std::string command = CreateCommand(TPM_CC_FlushContext, kNoHandles, local 338 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local 354 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local 365 std::string command = local 391 std::string command = local 424 std::string command = local 442 std::string command = local 464 std::string command = local 484 std::string command = CreateCommand(TPM_CC_FlushContext, kNoHandles, local 508 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local 528 std::string command = local 564 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local 583 std::string command = local 597 std::string command = local 606 std::string command = local 628 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 671 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 729 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 739 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 761 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local 768 std::string command = local [all...] |
trunks_binder_service.cc | 31 // If |command| is a valid command protobuf, provides the |command_data| and 33 bool ParseCommandProto(const std::vector<uint8_t>& command, 36 if (!request_proto.ParseFromArray(command.data(), command.size()) || 37 !request_proto.has_command() || request_proto.command().empty()) { 40 *command_data = request_proto.command(); 78 const std::vector<uint8_t>& command, 84 if (!ParseCommandProto(command, &command_data)) { 85 LOG(ERROR) << "TrunksBinderService: Bad command data." [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
SetPolicyActivity.java | 35 private static final String EXTRA_COMMAND = "extra-command"; 64 String command = intent.getStringExtra(EXTRA_COMMAND); local 65 Log.i(TAG, "Command: \"" + command); 67 if (ADD_RESTRICTION_COMMAND.equals(command)) { 72 } else if (CLEAR_RESTRICTION_COMMAND.equals(command)) { 78 Log.e(TAG, "Invalid command: " + command);
|
/external/jacoco/org.jacoco.cli/src/org/jacoco/cli/internal/ |
Main.java | 22 * Entry point for all command line operations. 24 public class Main extends Command { 49 Command command; field in class:Main 53 return "Command line interface for JaCoCo."; 58 return JAVACMD + "--help | <command>"; 80 if (command.help) { 81 command.printHelp(out); 85 if (command.quiet) { 89 return command.execute(out, err) [all...] |