/system/extras/simpleperf/ |
H A D | cmd_help.cpp | 25 class HelpCommand : public Command { 28 : Command("help", "print help information for simpleperf", 40 void PrintLongHelpForOneCommand(const Command& cmd); 47 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); 75 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); 80 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { 86 [] { return std::unique_ptr<Command>(new HelpCommand); });
|
H A D | command_test.cpp | 21 class MockCommand : public Command { 23 MockCommand() : Command("mock", "mock_short_help", "mock_long_help") { 33 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); }); 41 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); });
|
H A D | command.h | 27 class Command { class 29 Command(const std::string& name, const std::string& short_help_string, function in class:Command 34 virtual ~Command() { 60 DISALLOW_COPY_AND_ASSIGN(Command); 64 const std::function<std::unique_ptr<Command>(void)>& callback); 66 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
|
H A D | cmd_dumprecord_test.cpp | 22 static std::unique_ptr<Command> DumpCmd() {
|
H A D | cmd_list_test.cpp | 28 std::unique_ptr<Command> list_cmd;
|
H A D | command.cpp | 29 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { 39 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) { 44 typedef std::function<std::unique_ptr<Command>(void)> callback_t; 47 // commands is used in the constructor of Command. Defining it as a static 54 const std::function<std::unique_ptr<Command>(void)>& callback) { 62 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { 142 std::unique_ptr<Command> command = CreateCommandInstance(args[0]);
|
H A D | cmd_list.cpp | 92 class ListCommand : public Command { 95 : Command("list", "list available event types", 174 RegisterCommand("list", [] { return std::unique_ptr<Command>(new ListCommand); });
|
H A D | cmd_dumprecord.cpp | 37 class DumpRecordCommand : public Command { 40 : Command("dump", "dump perf record file", 267 RegisterCommand("dump", [] { return std::unique_ptr<Command>(new DumpRecordCommand); });
|
H A D | cmd_debug_unwind_test.cpp | 33 static std::unique_ptr<Command> DebugUnwindCmd() {
|
H A D | cmd_debug_unwind.cpp | 78 class DebugUnwindCommand : public Command { 81 : Command("debug-unwind", "Debug/test offline unwinding.", 417 []{ return std::unique_ptr<Command>(new DebugUnwindCommand()); });
|
H A D | cmd_kmem.cpp | 274 class KmemCommand : public Command { 277 : Command( 468 std::unique_ptr<Command> record_cmd = CreateCommandInstance("record"); 714 [] { return std::unique_ptr<Command>(new KmemCommand()); });
|
H A D | cmd_kmem_test.cpp | 31 static std::unique_ptr<Command> KmemCmd() {
|
H A D | cmd_report_sample_test.cpp | 25 static std::unique_ptr<Command> ReportSampleCmd() {
|
H A D | cmd_report_sample.cpp | 61 class ReportSampleCommand : public Command { 64 : Command( 669 return std::unique_ptr<Command>(new ReportSampleCommand());
|
/system/connectivity/wifilogd/tests/ |
H A D | protocol_unittest.cpp | 74 using protocol::Command; 75 ASSERT_TRUE(std::is_standard_layout<Command>::value); 77 EXPECT_EQ(0U, offsetof(Command, src_boottime_nsec)); 78 EXPECT_EQ(8U, sizeof(Command::src_boottime_nsec)); 80 EXPECT_EQ(8U, offsetof(Command, sequence_num)); 81 EXPECT_EQ(2U, sizeof(Command::sequence_num)); 83 EXPECT_EQ(10U, offsetof(Command, opcode)); 84 EXPECT_EQ(2U, sizeof(Command::opcode)); 86 EXPECT_EQ(12U, offsetof(Command, payload_len)); 87 EXPECT_EQ(2U, sizeof(Command [all...] |
H A D | main_loop_unittest.cpp | 81 Return(std::tuple<size_t, Os::Errno>{sizeof(protocol::Command), 0})); 83 ProcessCommand(_, sizeof(protocol::Command), _));
|
H A D | command_processor_unittest.cpp | 63 sizeof(protocol::Command) - 107 protocol::Command() 111 GetMaxVal<decltype(protocol::Command::payload_len)>())); 146 const auto command = protocol::Command() 168 // If the buffer given to ProcessCommand() is shorter than a protocol::Command, 175 command_buffer.data(), sizeof(protocol::Command) - 1, Os::kInvalidFd)); 219 using opcode_enum_t = decltype(protocol::Command::opcode); 224 protocol::Command()
|
/system/connectivity/wifilogd/ |
H A D | protocol.h | 53 struct Command { struct in namespace:android::wifilogd::protocol 54 Command& set_opcode(Opcode new_opcode) { 59 Command& set_payload_len(uint16_t new_payload_len) {
|
H A D | command_processor.cpp | 137 if (n_bytes_read < sizeof(protocol::Command)) { 143 CopyFromBufferOrDie<protocol::Command>(input_buffer, n_bytes_read); 217 buffer_reader.CopyOutOrDie<protocol::Command>();
|
/system/netd/netutils_wrappers/ |
H A D | NetUtilsWrapperTest-1.0.cpp | 30 struct Command { struct 35 std::vector<Command> COMMANDS = { 61 for (const Command& cmd : COMMANDS) {
|
/system/core/init/ |
H A D | action.h | 37 class Command { class in namespace:android::init 39 Command(BuiltinFunction f, bool execute_in_subcontext, const std::vector<std::string>& args, 83 void ExecuteCommand(const Command& command) const; 89 std::vector<Command> commands_;
|
H A D | action.cpp | 52 Command::Command(BuiltinFunction f, bool execute_in_subcontext, function in class:android::init::Command 56 Result<Success> Command::InvokeFunc(Subcontext* subcontext) const { 72 std::string Command::BuildCommandString() const { 109 // We need a copy here since some Command execution may result in 111 Command cmd = commands_[command]; 121 void Action::ExecuteCommand(const Command& command) const { 142 LOG(INFO) << "Command '" << cmd_str << "' action=" << trigger_name << " (" << filename_
|
/system/sepolicy/ |
H A D | definitions.mk | 0 # Command to turn collection of policy files into a policy.conf file to be
|
/system/nvram/messages/include/nvram/messages/ |
H A D | nvram_messages.h | 30 enum Command { enum in namespace:nvram 143 Command, 162 Command,
|
/system/iot/attestation/at-factory-tool/ |
H A D | fastbootsh.py | 43 fastboot_command = sh.Command(os.path.join(current_path, 'fastboot'))
|