/system/connectivity/wifilogd/tests/ |
D | protocol_unittest.cpp | 74 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 …]
|
D | command_processor_unittest.cpp | 63 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()
|
D | main_loop_unittest.cpp | 81 Return(std::tuple<size_t, Os::Errno>{sizeof(protocol::Command), 0})); in TEST_F() 83 ProcessCommand(_, sizeof(protocol::Command), _)); in TEST_F()
|
/system/extras/simpleperf/ |
D | cmd_help.cpp | 25 class HelpCommand : public Command { 28 : Command("help", "print help information for simpleperf", in HelpCommand() 40 void PrintLongHelpForOneCommand(const Command& cmd); 47 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run() 78 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp() 83 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand() 89 [] { return std::unique_ptr<Command>(new HelpCommand); }); in RegisterHelpCommand()
|
D | command.h | 30 class Command { 32 Command(const std::string& name, const std::string& short_help_string, in Command() function 37 virtual ~Command() { in ~Command() 81 DISALLOW_COPY_AND_ASSIGN(Command); 85 const std::function<std::unique_ptr<Command>(void)>& callback); 87 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
|
D | command.cpp | 31 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { in NextArgumentOrError() 41 bool Command::GetDoubleOption(const std::vector<std::string>& args, size_t* pi, double* value, in GetDoubleOption() 53 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) { in ReportUnknownOption() 58 typedef std::function<std::unique_ptr<Command>(void)> callback_t; 68 const std::function<std::unique_ptr<Command>(void)>& callback) { in RegisterCommand() 76 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance() 166 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in RunSimpleperfCmd()
|
D | command_test.cpp | 21 class MockCommand : public Command { 23 MockCommand() : Command("mock", "mock_short_help", "mock_long_help") { in MockCommand() 33 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); }); in TEST() 41 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); }); in TEST()
|
D | cmd_api.cpp | 40 class PrepareCommand : public Command { 43 : Command("api-prepare", "Prepare recording via app api", in PrepareCommand() 63 class CollectCommand : public Command { 66 : Command("api-collect", "Collect recording data generated by app api", in CollectCommand() 220 []{ return std::unique_ptr<Command>(new PrepareCommand()); }); in RegisterAPICommands() 222 []{ return std::unique_ptr<Command>(new CollectCommand()); }); in RegisterAPICommands()
|
D | cmd_list.cpp | 92 class ListCommand : public Command { 95 : Command("list", "list available event types", in ListCommand() 174 RegisterCommand("list", [] { return std::unique_ptr<Command>(new ListCommand); }); in RegisterListCommand()
|
D | cmd_list_test.cpp | 28 std::unique_ptr<Command> list_cmd;
|
D | cmd_trace_sched_test.cpp | 41 static std::unique_ptr<Command> TraceSchedCmd() { in TraceSchedCmd()
|
D | cmd_dumprecord_test.cpp | 23 static std::unique_ptr<Command> DumpCmd() { in DumpCmd()
|
D | cmd_dumprecord.cpp | 37 class DumpRecordCommand : public Command { 40 : Command("dump", "dump perf record file", in DumpRecordCommand() 285 RegisterCommand("dump", [] { return std::unique_ptr<Command>(new DumpRecordCommand); }); in RegisterDumpRecordCommand()
|
D | cmd_trace_sched.cpp | 70 class TraceSchedCommand : public Command { 73 : Command("trace-sched", "Trace system-wide process runtime events.", in TraceSchedCommand() 173 std::unique_ptr<Command> record_cmd = CreateCommandInstance("record"); in RecordSchedEvents() 428 RegisterCommand("trace-sched", [] { return std::unique_ptr<Command>(new TraceSchedCommand()); }); in RegisterTraceSchedCommand()
|
/system/tools/aidl/build/ |
D | aidl_interface.go | 47 Command: `rm -rf "${outDir}" && mkdir -p "${outDir}" && ` + 53 Command: `mkdir -p "${headerDir}" && ` + 63 Command: `${aidlCmd} --lang=java ${optionalFlags} --structured --ninja -d ${out}.d ` + 72 Command: `rm -rf "${out}" && mkdir -p "${out}" && ` + 78 Command: `rm -rf "${outDir}" && mkdir -p "${outDir}" && ` + 86 Command: `mkdir -p ${to} && rm -rf ${to}/* && ` +
|
/system/netd/netutils_wrappers/ |
D | NetUtilsWrapperTest-1.0.cpp | 30 struct Command { struct 35 std::vector<Command> COMMANDS = { argument 61 for (const Command& cmd : COMMANDS) { in TEST()
|
/system/connectivity/wifilogd/ |
D | protocol.h | 53 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
|
D | command_processor.cpp | 137 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/ |
D | action.h | 37 class Command { 39 Command(BuiltinFunction f, bool execute_in_subcontext, std::vector<std::string>&& args, 83 void ExecuteCommand(const Command& command) const; 89 std::vector<Command> commands_;
|
D | action.cpp | 47 Command::Command(BuiltinFunction f, bool execute_in_subcontext, std::vector<std::string>&& args, in Command() function in android::init::Command 54 Result<Success> Command::InvokeFunc(Subcontext* subcontext) const { in InvokeFunc() 70 std::string Command::BuildCommandString() const { in BuildCommandString() 109 Command cmd = commands_[command]; in ExecuteOneCommand() 119 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
|
/system/core/adb/daemon/ |
D | shell_service.h | 51 using Command = int(std::string_view args, int in, int out, int err); variable 52 unique_fd StartCommandInProcess(std::string name, Command command, SubprocessProtocol protocol);
|
/system/nvram/messages/include/nvram/messages/ |
D | nvram_messages.h | 30 enum Command { enum 143 Command, 162 Command,
|
/system/libufdt/utils/ |
D | README.md | 64 #### `create` Command 138 #### `cfg_create` Command 183 #### `dump` Command 214 #### `help` Command
|
/system/tools/xsdc/build/ |
D | xsdc.go | 41 Command: `rm -rf "${out}.temp" && mkdir -p "${out}.temp" && ` + 50 Command: `rm -rf "${outDir}" && ` +
|
/system/core/adb/ |
D | protocol.txt | 58 Command constant: A_CNXN 85 Command constant: A_AUTH 105 Command constant: A_OPEN 129 Command constant: A_OKAY 148 Command constant: A_WRTE 166 Command constant: A_CLSE 184 Command constant: A_SYNC
|