/system/weaved/buffet/ |
D | binder_command_proxy.cc | 39 const std::weak_ptr<weave::Command>& command) : command_{command} {} in BinderCommandProxy() argument 42 auto command = command_.lock(); in getId() local 43 if (!command) in getId() 45 *id = ToString16(command->GetID()); in getId() 50 auto command = command_.lock(); in getName() local 51 if (!command) in getName() 53 *name = ToString16(command->GetName()); in getName() 59 auto command = command_.lock(); in getComponent() local 60 if (!command) in getComponent() 62 *component = ToString16(command->GetComponent()); in getComponent() [all …]
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 558 char command[sizeof(buf) + sizeof(comm)]; in TEST() local 559 snprintf(command, sizeof(command), comm, buf); in TEST() 562 EXPECT_FALSE((ret = system(command))); in TEST() 564 snprintf(command, sizeof(command), "ls -s %s 2>/dev/null", buf); in TEST() 567 EXPECT_TRUE(NULL != (fp = popen(command, "r"))); in TEST() 591 snprintf(command, sizeof(command), "rm -rf %s", buf); in TEST() 592 EXPECT_FALSE(system(command)); in TEST() 602 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd)]; in TEST() local 603 snprintf(command, sizeof(command), logcat_cmd, tmp_out_dir); in TEST() 606 EXPECT_FALSE((ret = system(command))); in TEST() [all …]
|
/system/tpm/trunks/ |
D | resource_manager_test.cc | 154 std::string command = CreateCommand(TPM_CC_Load, in LoadHandle() local 163 EXPECT_CALL(transceiver_, SendCommandAndWait(command)) in LoadHandle() 165 std::string actual_response = resource_manager_.SendCommandAndWait(command); in LoadHandle() 175 std::string command = CreateCommand(TPM_CC_Startup, in EvictObjects() local 191 resource_manager_.SendCommandAndWait(command); in EvictObjects() 197 std::string command = CreateCommand(TPM_CC_StartAuthSession, in StartSession() local 206 EXPECT_CALL(transceiver_, SendCommandAndWait(command)) in StartSession() 208 std::string actual_response = resource_manager_.SendCommandAndWait(command); in StartSession() 214 std::string command = CreateCommand(TPM_CC_Startup, in EvictSession() local 228 resource_manager_.SendCommandAndWait(command); in EvictSession() [all …]
|
D | tpm_handle.cc | 60 void TpmHandle::SendCommand(const std::string& command, in SendCommand() argument 62 callback.Run(SendCommandAndWait(command)); in SendCommand() 65 std::string TpmHandle::SendCommandAndWait(const std::string& command) { in SendCommandAndWait() argument 67 TPM_RC result = SendCommandInternal(command, &response); in SendCommandAndWait() 74 TPM_RC TpmHandle::SendCommandInternal(const std::string& command, in SendCommandInternal() argument 77 int result = HANDLE_EINTR(write(fd_, command.data(), command.length())); in SendCommandInternal() 82 if (static_cast<size_t>(result) != command.length()) { in SendCommandInternal() 84 << command.length(); in SendCommandInternal()
|
D | background_command_transceiver.cc | 60 const std::string& command, in SendCommand() argument 72 command, in SendCommand() 76 next_transceiver_->SendCommand(command, callback); in SendCommand() 81 const std::string& command) { in SendCommandAndWait() argument 93 command, in SendCommandAndWait() 99 return next_transceiver_->SendCommandAndWait(command); in SendCommandAndWait() 104 const std::string& command, in SendCommandTask() argument 106 next_transceiver_->SendCommand(command, callback); in SendCommandTask()
|
D | trunks_binder_service.cc | 33 bool ParseCommandProto(const std::vector<uint8_t>& command, in ParseCommandProto() argument 36 if (!request_proto.ParseFromArray(command.data(), command.size()) || in ParseCommandProto() 37 !request_proto.has_command() || request_proto.command().empty()) { in ParseCommandProto() 40 *command_data = request_proto.command(); in ParseCommandProto() 78 const std::vector<uint8_t>& command, in SendCommand() argument 84 if (!ParseCommandProto(command, &command_data)) { in SendCommand() 107 const std::vector<uint8_t>& command, in SendCommandAndWait() argument 110 if (!ParseCommandProto(command, &command_data)) { in SendCommandAndWait()
|
D | tpm_simulator_handle.cc | 58 void TpmSimulatorHandle::SendCommand(const std::string& command, in SendCommand() argument 60 callback.Run(SendCommandAndWait(command)); in SendCommand() 63 std::string TpmSimulatorHandle::SendCommandAndWait(const std::string& command) { in SendCommandAndWait() argument 67 std::string mutable_command(command); in SendCommandAndWait() 68 ExecuteCommand(command.size(), reinterpret_cast<unsigned char*>( in SendCommandAndWait()
|
D | trunks_ftdi_spi.h | 42 void SendCommand(const std::string& command, 44 std::string SendCommandAndWait(const std::string& command) override; 94 void SendCommand(const std::string& command, in SendCommand() argument 96 std::string SendCommandAndWait(const std::string& command) { in SendCommandAndWait() argument
|
D | tpm_handle.h | 47 void SendCommand(const std::string& command, 49 std::string SendCommandAndWait(const std::string& command) override; 54 TPM_RC SendCommandInternal(const std::string& command, std::string* response);
|
/system/extras/tests/net_test/ |
D | iproute.py | 193 def CommandVerb(command): argument 194 return ["NEW", "DEL", "GET", "SET"][command % 4] 197 def CommandSubject(command): argument 198 return ["LINK", "ADDR", "ROUTE", "NEIGH", "RULE"][(command - 16) / 4] 201 def CommandName(command): argument 203 return "RTM_%s%s" % (CommandVerb(command), CommandSubject(command)) 205 return "RTM_%d" % command 222 def _Decode(self, command, msg, nla_type, nla_data): argument 251 if command == -RTA_METRICS: 253 elif CommandSubject(command) == "ADDR": [all …]
|
/system/netd/server/ |
D | FwmarkServer.cpp | 49 FwmarkCommand command; in processClient() local 52 iov.iov_base = &command; in processClient() 53 iov.iov_len = sizeof(command); in processClient() 74 if (messageLength != sizeof(command)) { in processClient() 80 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) { in processClient() 84 return mNetworkController->checkUserNetworkAccess(command.uid, command.netId); in processClient() 103 switch (command.cmdId) { in processClient() 156 fwmark.netId = command.netId; in processClient() 157 if (command.netId == NETID_UNSET) { in processClient() 163 command.netId)) { in processClient() [all …]
|
/system/netd/client/ |
D | NetdClient.cpp | 67 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0}; in netdClientAccept4() local 68 if (int error = FwmarkClient().send(&command, acceptedSocket)) { in netdClientAccept4() 77 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0}; in netdClientConnect() local 78 if (int error = FwmarkClient().send(&command, sockfd)) { in netdClientConnect() 187 FwmarkCommand command = {FwmarkCommand::SELECT_NETWORK, netId, 0}; in setNetworkForSocket() local 188 return FwmarkClient().send(&command, socketFd); in setNetworkForSocket() 203 FwmarkCommand command = {FwmarkCommand::PROTECT_FROM_VPN, 0, 0}; in protectFromVpn() local 204 return FwmarkClient().send(&command, socketFd); in protectFromVpn() 211 FwmarkCommand command = {FwmarkCommand::SELECT_FOR_USER, 0, uid}; in setNetworkForUser() local 212 return FwmarkClient().send(&command, socketFd); in setNetworkForUser() [all …]
|
/system/connectivity/shill/net/ |
D | generic_netlink_message.h | 70 GenericNetlinkMessage(uint16_t my_message_type, uint8_t command, in GenericNetlinkMessage() argument 74 command_(command), in GenericNetlinkMessage() 80 uint8_t command() const { return command_; } in command() function 108 ControlNetlinkMessage(uint8_t command, const char* command_string) in ControlNetlinkMessage() argument 109 : GenericNetlinkMessage(kMessageType, command, command_string) {} in ControlNetlinkMessage() 146 explicit UnknownControlMessage(uint8_t command) in UnknownControlMessage() argument 147 : ControlNetlinkMessage(command, "<UNKNOWN CONTROL MESSAGE>"), in UnknownControlMessage() 148 command_(command) {} in UnknownControlMessage()
|
D | netlink_message_matchers.h | 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/bt/vendor_libs/test_vendor_lib/test/ |
D | hci_transport_unittest.cc | 63 void CommandCallback(std::unique_ptr<CommandPacket> command) { in CommandCallback() argument 66 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType()); in CommandCallback() 67 EXPECT_EQ(HCI_RESET, command->GetOpcode()); in CommandCallback() 68 EXPECT_EQ(0, command->GetPayloadSize()); in CommandCallback() 72 void MultiCommandCallback(std::unique_ptr<CommandPacket> command) { in MultiCommandCallback() argument 75 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType()); in MultiCommandCallback() 76 EXPECT_EQ(HCI_RESET, command->GetOpcode()); in MultiCommandCallback() 77 EXPECT_EQ(0, command->GetPayloadSize()); in MultiCommandCallback()
|
D | packet_stream_unittest.cc | 74 std::unique_ptr<CommandPacket> command = in CheckedReceiveCommand() local 77 const std::vector<uint8_t> received_payload = command->GetPayload(); in CheckedReceiveCommand() 81 EXPECT_EQ(packet.size(), command->GetPacketSize()); in CheckedReceiveCommand() 82 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType()); in CheckedReceiveCommand() 83 EXPECT_EQ(opcode, command->GetOpcode()); in CheckedReceiveCommand() 84 EXPECT_EQ(payload_size, command->GetPayloadSize()); in CheckedReceiveCommand()
|
/system/tools/aidl/tests/ |
D | integration-test.py | 70 def run(self, command, background=False, ignore_status=False): argument 85 command = '( %s ) </dev/null >/dev/null 2>&1 &' % command 86 return self.adb('shell %s' % pipes.quote(command), 102 def adb(self, command, ignore_status=False): argument 115 command = 'adb %s' % command 117 print(command) 118 p = subprocess.Popen(command, shell=True, close_fds=True, 123 raise subprocess.CalledProcessError(p.returncode, command)
|
/system/update_engine/ |
D | weave_service.cc | 114 void WeaveService::OnCheckForUpdates(std::unique_ptr<weaved::Command> command) { in OnCheckForUpdates() argument 117 command->AbortWithCustomError(error.get(), nullptr); in OnCheckForUpdates() 120 command->Complete({}, nullptr); in OnCheckForUpdates() 123 void WeaveService::OnTrackChannel(std::unique_ptr<weaved::Command> command) { in OnTrackChannel() argument 124 string channel = command->GetParameter<string>("channel"); in OnTrackChannel() 127 command->AbortWithCustomError(error.get(), nullptr); in OnTrackChannel() 130 command->Complete({}, nullptr); in OnTrackChannel()
|
D | fake_p2p_manager_configuration.h | 75 void SetInitctlStartCommand(const std::vector<std::string>& command) { in SetInitctlStartCommand() argument 76 initctl_start_args_ = command; in SetInitctlStartCommand() 81 void SetInitctlStopCommand(const std::vector<std::string>& command) { in SetInitctlStopCommand() argument 82 initctl_stop_args_ = command; in SetInitctlStopCommand()
|
/system/core/adb/ |
D | shell_service_test.cpp | 47 void StartTestSubprocess(const char* command, SubprocessType type, 64 const char* command, SubprocessType type, SubprocessProtocol protocol) { in StartTestSubprocess() argument 72 subprocess_fd_ = StartSubprocess(command, nullptr, type, protocol); in StartTestSubprocess() 231 for (std::string command : commands) { in TEST_F() local 233 command.push_back('\n'); in TEST_F() 234 memcpy(protocol->data(), command.data(), command.length()); in TEST_F() 235 ASSERT_TRUE(protocol->Write(ShellProtocol::kIdStdin, command.length())); in TEST_F() 243 for (const char* command : commands) { in TEST_F() local 244 EXPECT_FALSE(stdout.find(command) == std::string::npos); in TEST_F()
|
/system/core/crash_reporter/ |
D | crash_reporter_logs_test.cc | 38 std::string command; in TEST() local 39 EXPECT_TRUE(store.GetString(kUserCollectorSignature, &command)); in TEST() 40 EXPECT_FALSE(command.empty()); in TEST()
|
/system/connectivity/shill/test-scripts/ |
D | test-flimflam | 305 command = "" 311 command = sys.argv[3] 327 if command == "scan": 334 elif command in ["networks", "net"]: 339 elif command in ["connect", "conn"] and value != "": 344 elif command in ["connect", "conn"]: 346 elif command in ["disconnect", "disc"] and value != "": 351 elif command in ["discconnect", "disc"]: 356 elif command == "powered" and value != "": 359 elif command == "powered": [all …]
|
/system/bt/hci/include/ |
D | hci_layer.h | 74 typedef void (*command_status_cb)(uint8_t status, BT_HDR *command, void *context); 78 void (*send_low_power_command)(low_power_command_t command); 91 BT_HDR *command, 97 future_t *(*transmit_command_futured)(BT_HDR *command);
|
/system/bt/build/toolchain/gcc/ |
D | BUILD.gn | 22 …command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -c {{source}… 32 …command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{sourc… 42 command = "rm -f {{output}} && ar rcs {{output}} @$rspfile" 57 command = 80 …command = "$cxx {{ldflags}} -o $outfile -Wl,--start-group @$rspfile {{solibs}} -Wl,--end-group {{l… 89 command = "touch {{output}}" 94 command = "cp -af {{source}} {{output}}"
|
/system/bt/tools/hci/ |
D | main.c | 50 const command_t *command = find_command(argv[0]); in help() local 51 if (!command) { in help() 56 printf("%s %s\n", argv[0], command->help); in help() 156 const command_t *command = find_command(argv[1]); in main() local 157 if (!command) { in main() 162 if (!command->handler) { in main() 167 return command->handler(argc - 2, &argv[2]); in main()
|