Searched refs:command (Results 1 - 25 of 128) sorted by relevance

123456

/system/tpm/trunks/aidl/android/trunks/
H A DITrunks.aidl22 oneway void SendCommand(in byte[] command, in ITrunksClient client);
23 byte[] SendCommandAndWait(in byte[] command);
/system/weaved/buffet/
H A Dbinder_command_proxy.cc39 const std::weak_ptr<weave::Command>& command) : command_{command} {}
42 auto command = command_.lock(); local
43 if (!command)
45 *id = ToString16(command->GetID());
50 auto command = command_.lock(); local
51 if (!command)
53 *name = ToString16(command->GetName());
59 auto command = command_.lock(); local
60 if (!command)
38 BinderCommandProxy( const std::weak_ptr<weave::Command>& command) argument
67 auto command = command_.lock(); local
76 auto command = command_.lock(); local
85 auto command = command_.lock(); local
94 auto command = command_.lock(); local
103 auto command = command_.lock(); local
112 auto command = command_.lock(); local
126 auto command = command_.lock(); local
141 auto command = command_.lock(); local
152 auto command = command_.lock(); local
160 auto command = command_.lock(); local
170 auto command = command_.lock(); local
[all...]
/system/core/crash_reporter/
H A Dcrash_reporter_logs_test.cc38 std::string command; local
39 EXPECT_TRUE(store.GetString(kUserCollectorSignature, &command));
40 EXPECT_FALSE(command.empty());
/system/tpm/trunks/
H A Dtpm_handle.h36 // std::string response = handle.SendCommandAndWait(command);
47 void SendCommand(const std::string& command,
49 std::string SendCommandAndWait(const std::string& command) override;
52 // Writes a |command| to /dev/tpm0 and reads the |response|. Returns
54 TPM_RC SendCommandInternal(const std::string& command, std::string* response);
H A Dtpm_handle.cc60 void TpmHandle::SendCommand(const std::string& command, argument
62 callback.Run(SendCommandAndWait(command));
65 std::string TpmHandle::SendCommandAndWait(const std::string& command) { argument
67 TPM_RC result = SendCommandInternal(command, &response);
74 TPM_RC TpmHandle::SendCommandInternal(const std::string& command, argument
77 int result = HANDLE_EINTR(write(fd_, command.data(), command.length()));
82 if (static_cast<size_t>(result) != command.length()) {
84 << command.length();
H A Dbackground_command_transceiver.cc60 const std::string& command,
72 command,
76 next_transceiver_->SendCommand(command, callback);
81 const std::string& command) {
93 command,
99 return next_transceiver_->SendCommandAndWait(command);
104 const std::string& command,
106 next_transceiver_->SendCommand(command, callback);
59 SendCommand( const std::string& command, const ResponseCallback& callback) argument
80 SendCommandAndWait( const std::string& command) argument
103 SendCommandTask( const std::string& command, const ResponseCallback& callback) argument
H A Dcommand_transceiver.h34 // Sends a TPM |command| asynchronously. When a |response| is received,
39 const std::string& command,
42 // Sends a TPM |command| synchronously (i.e. waits for a response) and returns
45 virtual std::string SendCommandAndWait(const std::string& command) = 0;
H A Dtpm_simulator_handle.h29 // Sends command requests to an in-process software TPM. All commands are
37 // std::string response = handle.SendCommandAndWait(command);
48 void SendCommand(const std::string& command,
50 std::string SendCommandAndWait(const std::string& command) override;
H A Dtrunks_binder_proxy.h41 void SendCommand(const std::string& command,
43 std::string SendCommandAndWait(const std::string& command) override;
H A Dresource_manager_test.cc80 // Builds a well-formed command.
122 // Builds a well-formed command authorization section.
154 std::string command = CreateCommand(TPM_CC_Load, local
163 EXPECT_CALL(transceiver_, SendCommandAndWait(command))
165 std::string actual_response = resource_manager_.SendCommandAndWait(command);
175 std::string command = CreateCommand(TPM_CC_Startup, local
191 resource_manager_.SendCommandAndWait(command);
197 std::string command = CreateCommand(TPM_CC_StartAuthSession, local
206 EXPECT_CALL(transceiver_, SendCommandAndWait(command))
208 std::string actual_response = resource_manager_.SendCommandAndWait(command);
214 std::string command = CreateCommand(TPM_CC_Startup, local
254 std::string command = CreateCommand(TPM_CC_Startup, local
269 std::string command = CreateCommand(TPM_CC_Startup, local
288 std::string command = CreateCommand(TPM_CC_Load, local
314 std::string command = CreateCommand(TPM_CC_Sign, local
340 std::string command = CreateCommand(TPM_CC_FlushContext, local
386 std::string command = CreateCommand(TPM_CC_Sign, local
409 std::string command = CreateCommand(TPM_CC_Sign, local
422 std::string command = CreateCommand(TPM_CC_StartAuthSession, local
449 std::string command = CreateCommand(TPM_CC_StartAuthSession, local
484 std::string command = CreateCommand(TPM_CC_Startup, local
504 std::string command = CreateCommand(TPM_CC_Startup, local
528 std::string command = CreateCommand(TPM_CC_Startup, local
551 std::string command = CreateCommand(TPM_CC_FlushContext, local
581 std::string command = CreateCommand(TPM_CC_Sign, local
605 std::string command = CreateCommand(TPM_CC_Startup, local
645 std::string command = CreateCommand(TPM_CC_Sign, local
667 std::string command = CreateCommand(TPM_CC_Startup, local
682 std::string command = CreateCommand(TPM_CC_Startup, local
692 std::string command = CreateCommand(TPM_CC_Startup, local
716 std::string command = CreateCommand(TPM_CC_Startup, local
767 std::string command = CreateCommand(TPM_CC_Startup, local
834 std::string command = CreateCommand(TPM_CC_Startup, local
846 std::string command = CreateCommand(TPM_CC_Startup, local
870 std::string command = CreateCommand(TPM_CC_Startup, local
879 std::string command = CreateCommand(TPM_CC_Startup, local
[all...]
H A Dtrunks_binder_service.cc31 // If |command| is a valid command protobuf, provides the |command_data| and
33 bool ParseCommandProto(const std::vector<uint8_t>& command, argument
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 dat
77 SendCommand( const std::vector<uint8_t>& command, const android::sp<android::trunks::ITrunksClient>& client) argument
106 SendCommandAndWait( const std::vector<uint8_t>& command, std::vector<uint8_t>* response) argument
[all...]
H A Dtpm_simulator_handle.cc58 void TpmSimulatorHandle::SendCommand(const std::string& command, argument
60 callback.Run(SendCommandAndWait(command));
63 std::string TpmSimulatorHandle::SendCommandAndWait(const std::string& command) { argument
67 std::string mutable_command(command);
68 ExecuteCommand(command.size(), reinterpret_cast<unsigned char*>(
H A Dbackground_command_transceiver.h56 void SendCommand(const std::string& command,
58 std::string SendCommandAndWait(const std::string& command) override;
61 // Sends a |command| to the |next_transceiver_| and invokes a |callback| with
62 // the command response.
63 void SendCommandTask(const std::string& command,
H A Dtrunks_ftdi_spi.h42 void SendCommand(const std::string& command,
44 std::string SendCommandAndWait(const std::string& command) override;
94 void SendCommand(const std::string& command,
96 std::string SendCommandAndWait(const std::string& command) {
/system/connectivity/shill/net/
H A Dgeneric_netlink_message.h33 // haven't seen one, yet). The genlmsghdr contains a command id that, when
70 GenericNetlinkMessage(uint16_t my_message_type, uint8_t command, argument
74 command_(command),
80 uint8_t command() const { return command_; } function in class:shill::GenericNetlinkMessage
108 ControlNetlinkMessage(uint8_t command, const char* command_string) argument
109 : GenericNetlinkMessage(kMessageType, command, command_string) {}
146 explicit UnknownControlMessage(uint8_t command) argument
147 : ControlNetlinkMessage(command, "<UNKNOWN CONTROL MESSAGE>"),
148 command_(command) {}
H A Dnetlink_message_matchers.h29 // further that it is the specified command.
30 MATCHER_P2(IsNl80211Command, nl80211_message_type, command, "") {
40 if (msg->command() != command) {
41 LOG(INFO) << "Not a message of type " << command
42 << " (it's a " << +msg->command() << ")";
56 if (msg->command() != NL80211_CMD_SET_WOWLAN) {
87 if (msg->command() != NL80211_CMD_TRIGGER_SCAN) {
135 if (msg->command() != NL80211_CMD_TRIGGER_SCAN) {
/system/netd/client/
H A DNetdClient.cpp67 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0}; local
68 if (int error = FwmarkClient().send(&command, acceptedSocket)) {
77 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0}; local
78 if (int error = FwmarkClient().send(&command, sockfd)) {
187 FwmarkCommand command = {FwmarkCommand::SELECT_NETWORK, netId, 0}; local
188 return FwmarkClient().send(&command, socketFd);
203 FwmarkCommand command = {FwmarkCommand::PROTECT_FROM_VPN, 0, 0}; local
204 return FwmarkClient().send(&command, socketFd);
211 FwmarkCommand command = {FwmarkCommand::SELECT_FOR_USER, 0, uid}; local
212 return FwmarkClient().send(&command, socketF
216 FwmarkCommand command = {FwmarkCommand::QUERY_USER_ACCESS, netId, uid}; local
[all...]
/system/netd/server/
H A DFwmarkServer.cpp49 FwmarkCommand command; local
52 iov.iov_base = &command;
53 iov.iov_len = sizeof(command);
74 if (messageLength != sizeof(command)) {
80 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) {
84 return mNetworkController->checkUserNetworkAccess(command.uid, command.netId);
103 switch (command.cmdId) {
156 fwmark.netId = command.netId;
157 if (command
[all...]
/system/bt/vendor_libs/test_vendor_lib/test/
H A Dhci_transport_unittest.cc63 void CommandCallback(std::unique_ptr<CommandPacket> command) { argument
65 // Ensure that the received packet matches the stub command.
66 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType());
67 EXPECT_EQ(HCI_RESET, command->GetOpcode());
68 EXPECT_EQ(0, command->GetPayloadSize());
72 void MultiCommandCallback(std::unique_ptr<CommandPacket> command) { argument
74 // Ensure that the received packet matches the stub command.
75 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType());
76 EXPECT_EQ(HCI_RESET, command->GetOpcode());
77 EXPECT_EQ(0, command
[all...]
/system/extras/simpleperf/
H A Dcommand_test.cpp19 #include "command.h"
31 TEST(command, CreateCommandInstance) {
39 TEST(command, GetAllCommands) {
/system/weaved/brillo/android/weave/
H A DIWeaveClient.aidl26 in IWeaveCommand command);
H A DIWeaveService.aidl21 void registerCommandHandler(in String component, in String command);
/system/bt/hci/include/
H A Dhci_layer.h74 typedef void (*command_status_cb)(uint8_t status, BT_HDR *command, void *context);
77 // Send a low power command, if supported and the low power manager is enabled.
78 void (*send_low_power_command)(low_power_command_t command);
89 // Send a command through the HCI layer
91 BT_HDR *command,
97 future_t *(*transmit_command_futured)(BT_HDR *command);
H A Dlow_power_manager.h33 // Performs |command| synchronized on the thread that was provided
35 void (*post_command)(low_power_command_t command);
/system/update_engine/
H A Dweave_service.cc114 void WeaveService::OnCheckForUpdates(std::unique_ptr<weaved::Command> command) { argument
117 command->AbortWithCustomError(error.get(), nullptr);
120 command->Complete({}, nullptr);
123 void WeaveService::OnTrackChannel(std::unique_ptr<weaved::Command> command) { argument
124 string channel = command->GetParameter<string>("channel");
127 command->AbortWithCustomError(error.get(), nullptr);
130 command->Complete({}, nullptr);

Completed in 697 milliseconds

123456