Home
last modified time | relevance | path

Searched refs:Command (Results 1 – 25 of 60) sorted by relevance

123

/system/connectivity/wifilogd/tests/
Dprotocol_unittest.cpp74 using protocol::Command; in TEST()
75 ASSERT_TRUE(std::is_standard_layout<Command>::value); in TEST()
77 EXPECT_EQ(0U, offsetof(Command, src_boottime_nsec)); in TEST()
78 EXPECT_EQ(8U, sizeof(Command::src_boottime_nsec)); in TEST()
80 EXPECT_EQ(8U, offsetof(Command, sequence_num)); in TEST()
81 EXPECT_EQ(2U, sizeof(Command::sequence_num)); in TEST()
83 EXPECT_EQ(10U, offsetof(Command, opcode)); in TEST()
84 EXPECT_EQ(2U, sizeof(Command::opcode)); in TEST()
86 EXPECT_EQ(12U, offsetof(Command, payload_len)); in TEST()
87 EXPECT_EQ(2U, sizeof(Command::payload_len)); in TEST()
[all …]
Dcommand_processor_unittest.cpp63 sizeof(protocol::Command) -
107 protocol::Command() in BuildAsciiMessageCommandWithAdjustments()
111 GetMaxVal<decltype(protocol::Command::payload_len)>())); in BuildAsciiMessageCommandWithAdjustments()
146 const auto command = protocol::Command() in SendDumpBuffers()
175 command_buffer.data(), sizeof(protocol::Command) - 1, Os::kInvalidFd)); in TEST_F()
219 using opcode_enum_t = decltype(protocol::Command::opcode); in TEST_F()
224 protocol::Command() in TEST_F()
/system/bt/gd/security/
Dsmp_packets.pdl22 packet Command {
55 packet PairingRequest : Command (code = PAIRING_REQUEST) {
59 packet PairingResponse : Command (code = PAIRING_RESPONSE) {
63 packet PairingConfirm : Command (code = PAIRING_CONFIRM) {
67 packet PairingRandom : Command (code = PAIRING_RANDOM) {
88 packet PairingFailed : Command (code = PAIRING_FAILED) {
92 packet EncryptionInformation : Command (code = ENCRYPTION_INFORMATION) {
96 packet MasterIdentification : Command (code = MASTER_IDENTIFICATION) {
101 packet IdentityInformation : Command (code = IDENTITY_INFORMATION) {
110 packet IdentityAddressInformation : Command (code = IDENTITY_ADDRESS_INFORMATION) {
[all …]
/system/extras/simpleperf/
Dcmd_help.cpp27 class HelpCommand : public Command {
30 : Command("help", "print help information for simpleperf", in HelpCommand()
42 void PrintLongHelpForOneCommand(const Command& cmd);
49 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run()
80 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()
85 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand()
93 [] { return std::unique_ptr<Command>(new HelpCommand); }); in RegisterHelpCommand()
Dcmd_api.cpp43 class PrepareCommand : public Command {
46 : Command("api-prepare", "Prepare recording via app api", in PrepareCommand()
66 class CollectCommand : public Command {
69 : Command("api-collect", "Collect recording data generated by app api", in CollectCommand()
226 []{ return std::unique_ptr<Command>(new PrepareCommand()); }); in RegisterAPICommands()
228 []{ return std::unique_ptr<Command>(new CollectCommand()); }); in RegisterAPICommands()
Dcommand.cpp34 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { in NextArgumentOrError()
44 bool Command::PreprocessOptions(const std::vector<std::string>& args, in PreprocessOptions()
127 bool Command::GetDoubleOption(const std::vector<std::string>& args, size_t* pi, double* value, in GetDoubleOption()
139 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) { in ReportUnknownOption()
144 typedef std::function<std::unique_ptr<Command>(void)> callback_t;
154 const std::function<std::unique_ptr<Command>(void)>& callback) { in RegisterCommand()
162 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance()
268 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in RunSimpleperfCmd()
Dcommand.h141 class Command {
143 Command(const std::string& name, const std::string& short_help_string, in Command() function
148 virtual ~Command() { in ~Command()
197 DISALLOW_COPY_AND_ASSIGN(Command);
201 const std::function<std::unique_ptr<Command>(void)>& callback);
203 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
Dcommand_test.cpp23 class MockCommand : public Command {
25 MockCommand() : Command("mock", "mock_short_help", "mock_long_help") { in MockCommand()
35 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); }); in TEST()
43 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); }); in TEST()
Dcmd_list.cpp125 class ListCommand : public Command {
128 : Command("list", "list available event types", in ListCommand()
228 RegisterCommand("list", [] { return std::unique_ptr<Command>(new ListCommand); }); in RegisterListCommand()
Dcmd_list_test.cpp31 std::unique_ptr<Command> list_cmd;
Dcmd_trace_sched_test.cpp42 static std::unique_ptr<Command> TraceSchedCmd() { in TraceSchedCmd()
/system/teeui/libteeui/src/
Dgeneric_messages.cpp29 std::tuple<ReadStream, Command> readCommand(ReadStream in) { in readCommand()
30 return readCmd<Command>(in); in readCommand()
33 Command peakCommand(ReadStream in) { in peakCommand()
/system/netd/netutils_wrappers/
DNetUtilsWrapperTest-1.0.cpp30 struct Command { struct
35 std::vector<Command> COMMANDS = { argument
61 for (const Command& cmd : COMMANDS) { in TEST()
/system/connectivity/wifilogd/
Dprotocol.h53 struct Command { struct
54 Command& set_opcode(Opcode new_opcode) { in set_opcode() argument
59 Command& set_payload_len(uint16_t new_payload_len) { in set_payload_len() argument
Dcommand_processor.cpp137 if (n_bytes_read < sizeof(protocol::Command)) { in ProcessCommand()
143 CopyFromBufferOrDie<protocol::Command>(input_buffer, n_bytes_read); in ProcessCommand()
217 buffer_reader.CopyOutOrDie<protocol::Command>(); in Dump()
/system/core/init/
Daction.h36 class Command {
38 Command(BuiltinFunction f, bool execute_in_subcontext, std::vector<std::string>&& args,
84 void ExecuteCommand(const Command& command) const;
90 std::vector<Command> commands_;
Daction.cpp48 Command::Command(BuiltinFunction f, bool execute_in_subcontext, std::vector<std::string>&& args, in Command() function in android::init::Command
55 Result<void> Command::InvokeFunc(Subcontext* subcontext) const { in InvokeFunc()
71 Result<void> Command::CheckCommand() const { in CheckCommand()
95 std::string Command::BuildCommandString() const { in BuildCommandString()
149 Command cmd = commands_[command]; in ExecuteOneCommand()
159 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
/system/teeui/libteeui/include/teeui/
Dgeneric_messages.h31 enum class Command : uint32_t { enum
46 #define DECLARE_GENERIC_COMMAND(cmd) using Cmd##cmd = Cmd<kProtoGeneric, Command, Command::cmd>
107 std::tuple<ReadStream, Command> readCommand(ReadStream in);
108 Command peakCommand(ReadStream in);
Dgeneric_operation.h201 case Command::PromptUserConfirmation: in dispatchCommandMessage()
203 case Command::FetchConfirmationResult: in dispatchCommandMessage()
205 case Command::DeliverTestCommand: in dispatchCommandMessage()
207 case Command::Abort: in dispatchCommandMessage()
/system/core/adb/daemon/
Dshell_service.h51 using Command = int(std::string_view args, borrowed_fd in, borrowed_fd out, borrowed_fd err); variable
52 unique_fd StartCommandInProcess(std::string name, Command command, SubprocessProtocol protocol);
/system/nvram/messages/include/nvram/messages/
Dnvram_messages.h30 enum Command { enum
143 Command,
162 Command,
/system/bt/gd/hci/
Dle_address_manager.cc202 Command command = {CommandType::ROTATE_RANDOM_ADDRESS, nullptr}; in prepare_to_rotate()
326 Command command = {CommandType::ADD_DEVICE_TO_CONNECT_LIST, std::move(packet_builder)}; in AddDeviceToConnectList()
338 Command command = {CommandType::ADD_DEVICE_TO_RESOLVING_LIST, std::move(packet_builder)}; in AddDeviceToResolvingList()
346 Command command = {CommandType::REMOVE_DEVICE_FROM_CONNECT_LIST, std::move(packet_builder)}; in RemoveDeviceFromConnectList()
355 Command command = {CommandType::REMOVE_DEVICE_FROM_RESOLVING_LIST, std::move(packet_builder)}; in RemoveDeviceFromResolvingList()
362 Command command = {CommandType::CLEAR_CONNECT_LIST, std::move(packet_builder)}; in ClearConnectList()
369 Command command = {CommandType::CLEAR_RESOLVING_LIST, std::move(packet_builder)}; in ClearResolvingList()
/system/sepolicy/build/soong/
Dselinux_contexts.go283 rule.Command().
295 rule.Command().
308 rule.Command().
343 rule.Command().
394 rule.Command().
403 rule.Command().Text("cp -f").Input(builtCtxFile).Output(out)
/system/tools/aidl/build/
Daidl_interface.go53 Command: `rm -rf "${outDir}" && mkdir -p "${outDir}" && ` +
59 Command: `mkdir -p "${headerDir}" && ` +
69 Command: `${aidlCmd} --lang=java ${optionalFlags} --structured --ninja -d ${out}.d ` +
78 Command: `rm -rf "${outDir}" && mkdir -p "${outDir}" && ` +
85 Command: `rm -f ${out} && { ` +
97 Command: `rm -rf "${outDir}" && mkdir -p "${outDir}" && ` +
104 Command: `(${aidlCmd} ${optionalFlags} --checkapi ${old} ${new} && touch ${out}) || ` +
111Command: `if diff -r -B -I '//.*' -x '${hashFile}' '${old}' '${new}'; then touch '${out}'; else ` +
117Command: `if [ $$(cd '${apiDir}' && { find ./ -name "*.aidl" -print0 | LC_ALL=C sort -z | xargs -0…
125 Command: "rm -rf ${out} && " +
[all …]
/system/libufdt/utils/
DREADME.md64 #### `create` Command
138 #### `cfg_create` Command
183 #### `dump` Command
214 #### `help` Command

123