Home
last modified time | relevance | path

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

12

/system/weaved/libweaved/
Dcommand.cc55 Command::Command(const android::sp<android::weave::IWeaveCommand>& proxy) in Command() function in weaved::Command
58 Command::~Command() {} in ~Command()
60 std::string Command::GetID() const { in GetID()
68 std::string Command::GetName() const { in GetName()
76 std::string Command::GetComponent() const { in GetComponent()
84 Command::State Command::GetState() const { in GetState()
90 return Command::State::kQueued; in GetState()
92 return Command::State::kInProgress; in GetState()
94 return Command::State::kPaused; in GetState()
96 return Command::State::kError; in GetState()
[all …]
Dcommand.h37 class LIBWEAVED_EXPORT Command final {
52 ~Command();
64 Command::State GetState() const;
67 Command::Origin GetOrigin() const;
140 explicit Command(const android::sp<android::weave::IWeaveCommand>& proxy);
147 DISALLOW_COPY_AND_ASSIGN(Command);
/system/extras/simpleperf/
Dcmd_help.cpp25 class HelpCommand : public Command {
28 : Command("help", "print help information for simpleperf", in HelpCommand()
38 void PrintLongHelpForOneCommand(const Command& cmd);
45 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run()
67 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()
72 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand()
77 RegisterCommand("help", [] { return std::unique_ptr<Command>(new HelpCommand); }); in RegisterHelpCommand()
Dcommand.h27 class Command {
29 Command(const std::string& name, const std::string& short_help_string, in Command() function
34 virtual ~Command() { in ~Command()
60 DISALLOW_COPY_AND_ASSIGN(Command);
64 std::function<std::unique_ptr<Command>(void)> callback);
66 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
Dcommand_test.cpp21 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()
Dcommand.cpp26 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { in NextArgumentOrError()
36 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) { in ReportUnknownOption()
41 typedef std::function<std::unique_ptr<Command>(void)> callback_t;
51 std::function<std::unique_ptr<Command>(void)> callback) { in RegisterCommand()
59 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance()
Dcmd_list.cpp47 class ListCommand : public Command {
50 : Command("list", "list available event types", in ListCommand()
96 RegisterCommand("list", [] { return std::unique_ptr<Command>(new ListCommand); }); in RegisterListCommand()
Dcmd_dumprecord_test.cpp22 static std::unique_ptr<Command> DumpCmd() { in DumpCmd()
Dcmd_dumprecord.cpp36 class DumpRecordCommand : public Command {
39 : Command("dump", "dump perf record file", in DumpRecordCommand()
214 RegisterCommand("dump", [] { return std::unique_ptr<Command>(new DumpRecordCommand); }); in RegisterDumpRecordCommand()
Dcmd_list_test.cpp28 std::unique_ptr<Command> list_cmd;
Dmain.cpp55 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in main()
Dcmd_stat.cpp52 class StatCommand : public Command {
55 : Command("stat", "gather performance counter information", in StatCommand()
419 RegisterCommand("stat", [] { return std::unique_ptr<Command>(new StatCommand); }); in RegisterStatCommand()
/system/weaved/buffet/
Dbinder_command_proxy_unittest.cc70 .WillRepeatedly(Return(weave::Command::State::kQueued)); in SetUp()
72 .WillRepeatedly(Return(weave::Command::Origin::kLocal)); in SetUp()
81 new BinderCommandProxy{std::weak_ptr<weave::Command>{command_}}); in SetUp()
86 weave::Command::State GetCommandState() const { in GetCommandState()
87 weave::Command::State state; in GetCommandState()
94 weave::Command::Origin GetCommandOrigin() const { in GetCommandOrigin()
95 weave::Command::Origin origin; in GetCommandOrigin()
111 EXPECT_EQ(weave::Command::State::kQueued, GetCommandState()); in TEST_F()
112 EXPECT_EQ(weave::Command::Origin::kLocal, GetCommandOrigin()); in TEST_F()
Dbinder_weave_service.h29 class Command; variable
60 const std::weak_ptr<weave::Command>& command);
Dbinder_command_proxy.h32 explicit BinderCommandProxy(const std::weak_ptr<weave::Command>& command);
55 std::weak_ptr<weave::Command> command_;
/system/core/init/
Daction.h29 class Command {
31 Command(BuiltinFunction f, const std::vector<std::string>& args,
74 void ExecuteCommand(const Command& command) const;
81 std::vector<Command> commands_;
Daction.cpp34 Command::Command(BuiltinFunction f, const std::vector<std::string>& args, in Command() function in Command
39 int Command::InvokeFunc() const { in InvokeFunc()
53 std::string Command::BuildCommandString() const { in BuildCommandString()
57 std::string Command::BuildSourceString() const { in BuildSourceString()
117 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
/system/update_engine/
Dweave_service.h55 void OnCheckForUpdates(std::unique_ptr<weaved::Command> cmd);
56 void OnTrackChannel(std::unique_ptr<weaved::Command> cmd);
Dweave_service.cc114 void WeaveService::OnCheckForUpdates(std::unique_ptr<weaved::Command> command) { in OnCheckForUpdates()
123 void WeaveService::OnTrackChannel(std::unique_ptr<weaved::Command> command) { in OnTrackChannel()
/system/tpm/trunks/generator/
Draw_commands_fixed.txt113 Command Processing ................................................................................…
127 Command Header Validation .........................................................................…
134 Command Post Processing ...........................................................................…
388 Command Audit .....................................................................................…
598 Table 1 — Command Modifiers and Decoration ........................................................…
601 Table 4 — Command-Independent Response Codes ......................................................…
602 Table 5 — TPM2_Startup Command ....................................................................…
604 Table 7 — TPM2_Shutdown Command ...................................................................…
606 Table 9 — TPM2_SelfTest Command ...................................................................…
608 Table 11 — TPM2_IncrementalSelfTest Command .......................................................…
[all …]
Draw_commands.txt113 Command Processing ................................................................................…
127 Command Header Validation .........................................................................…
134 Command Post Processing ...........................................................................…
388 Command Audit .....................................................................................…
598 Table 1 — Command Modifiers and Decoration ........................................................…
601 Table 4 — Command-Independent Response Codes ......................................................…
602 Table 5 — TPM2_Startup Command ....................................................................…
604 Table 7 — TPM2_Shutdown Command ...................................................................…
606 Table 9 — TPM2_SelfTest Command ...................................................................…
608 Table 11 — TPM2_IncrementalSelfTest Command .......................................................…
[all …]
/system/core/metricsd/
Dmetrics_collector.h116 void OnEnableMetrics(std::unique_ptr<weaved::Command> command);
119 void OnDisableMetrics(std::unique_ptr<weaved::Command> command);
/system/connectivity/shill/cellular/
Dmock_mm1_modem_proxy.cc41 ON_CALL(*this, Command(_, _, _, _, _)) in MockModemProxy()
Dmock_mm1_modem_proxy.h70 MOCK_METHOD5(Command, void(const std::string& cmd,
Dmm1_modem_proxy_interface.h73 virtual void Command(const std::string& cmd,

12