Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 170) sorted by relevance

1234567

/system/media/camera/src/
Dcamera_metadata_tag_info.c710 const char *msg = "error: not an enum"; in camera_metadata_enum_snprint() local
717 msg = "TRANSFORM_MATRIX"; in camera_metadata_enum_snprint()
721 msg = "FAST"; in camera_metadata_enum_snprint()
725 msg = "HIGH_QUALITY"; in camera_metadata_enum_snprint()
729 msg = "error: enum value out of range"; in camera_metadata_enum_snprint()
742 msg = "OFF"; in camera_metadata_enum_snprint()
746 msg = "FAST"; in camera_metadata_enum_snprint()
750 msg = "HIGH_QUALITY"; in camera_metadata_enum_snprint()
754 msg = "error: enum value out of range"; in camera_metadata_enum_snprint()
765 msg = "OFF"; in camera_metadata_enum_snprint()
[all …]
/system/keymaster/
Dandroid_keymaster_messages_test.cpp68 EmptyKeymasterResponse msg(ver); in TEST() local
69 msg.error = KM_ERROR_OK; in TEST()
71 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 5)); in TEST()
77 EmptyKeymasterResponse msg(ver); in TEST() local
78 msg.error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in TEST()
80 UniquePtr<EmptyKeymasterResponse> deserialized(round_trip(ver, msg, 4)); in TEST()
185 GetKeyCharacteristicsResponse msg(ver); in TEST() local
186 msg.error = KM_ERROR_OK; in TEST()
187 msg.enforced.Reinitialize(params, array_length(params)); in TEST()
188 msg.unenforced.Reinitialize(params, array_length(params)); in TEST()
[all …]
/system/connectivity/shill/net/
Drtnl_message_unittest.cc397 RTNLMessage msg; in TestParseLink() local
398 EXPECT_TRUE(msg.Decode(packet)); in TestParseLink()
400 EXPECT_EQ(RTNLMessage::kTypeLink, msg.type()); in TestParseLink()
401 EXPECT_EQ(mode, msg.mode()); in TestParseLink()
402 EXPECT_EQ(interface_index, msg.interface_index()); in TestParseLink()
404 RTNLMessage::LinkStatus status = msg.link_status(); in TestParseLink()
408 EXPECT_TRUE(msg.HasAttribute(IFLA_ADDRESS)); in TestParseLink()
409 EXPECT_EQ(address.GetLength(), msg.GetAttribute(IFLA_ADDRESS).GetLength()); in TestParseLink()
410 EXPECT_TRUE(msg.GetAttribute(IFLA_ADDRESS).Equals(address)); in TestParseLink()
412 EXPECT_TRUE(msg.HasAttribute(IFLA_IFNAME)); in TestParseLink()
[all …]
Dnetlink_message_matchers.h39 const Nl80211Message* msg = static_cast<const Nl80211Message*>(arg); variable
40 if (msg->command() != command) {
42 << " (it's a " << +msg->command() << ")";
55 const Nl80211Message* msg = static_cast<const Nl80211Message*>(arg); variable
56 if (msg->command() != NL80211_CMD_SET_WOWLAN) {
61 if (!msg->const_attributes()->GetU32AttributeValue(NL80211_ATTR_WIPHY,
67 if (msg->const_attributes()->ConstGetNestedAttributeList(
86 const Nl80211Message* msg = reinterpret_cast<const Nl80211Message*>(arg); variable
87 if (msg->command() != NL80211_CMD_TRIGGER_SCAN) {
92 if (!msg->const_attributes()->ConstGetNestedAttributeList(
[all …]
Drtnl_handler.cc160 RTNLMessage msg( in SetInterfaceFlags() local
169 msg.set_link_status(RTNLMessage::LinkStatus(ARPHRD_VOID, flags, change)); in SetInterfaceFlags()
176 SendMessageWithErrorMask(&msg, error_mask); in SetInterfaceFlags()
180 RTNLMessage msg( in SetInterfaceMTU() local
189 msg.SetAttribute( in SetInterfaceMTU()
193 CHECK(SendMessage(&msg)); in SetInterfaceMTU()
215 void RTNLHandler::DispatchEvent(int type, const RTNLMessage& msg) { in DispatchEvent() argument
217 listener->NotifyEvent(type, msg); in DispatchEvent()
257 RTNLMessage msg( in NextRequest() local
265 CHECK(SendMessage(&msg)); in NextRequest()
[all …]
/system/core/adb/
Dfile_sync_service.cpp83 syncmsg msg; in do_stat() local
84 msg.stat.id = ID_STAT; in do_stat()
90 msg.stat.mode = st.st_mode; in do_stat()
91 msg.stat.size = st.st_size; in do_stat()
92 msg.stat.time = st.st_mtime; in do_stat()
94 return WriteFdExactly(s, &msg.stat, sizeof(msg.stat)); in do_stat()
100 syncmsg msg; in do_list() local
101 msg.dent.id = ID_DENT; in do_list()
112 msg.dent.mode = st.st_mode; in do_list()
113 msg.dent.size = st.st_size; in do_list()
[all …]
Dadb_auth.cpp47 p->msg.command = A_AUTH; in send_auth_request()
48 p->msg.arg0 = ADB_AUTH_TOKEN; in send_auth_request()
49 p->msg.data_length = ret; in send_auth_request()
66 p->msg.command = A_AUTH; in send_auth_response()
67 p->msg.arg0 = ADB_AUTH_SIGNATURE; in send_auth_response()
68 p->msg.data_length = ret; in send_auth_response()
85 p->msg.command = A_AUTH; in send_auth_publickey()
86 p->msg.arg0 = ADB_AUTH_RSAPUBLICKEY; in send_auth_publickey()
87 p->msg.data_length = ret; in send_auth_publickey()
Dadb.cpp128 switch(p->msg.command){ in print_packet()
140 label, tag, p->msg.arg0, p->msg.arg1, p->msg.data_length); in print_packet()
141 count = p->msg.data_length; in print_packet()
165 p->msg.command = A_OKAY; in send_ready()
166 p->msg.arg0 = local; in send_ready()
167 p->msg.arg1 = remote; in send_ready()
175 p->msg.command = A_CLSE; in send_close()
176 p->msg.arg0 = local; in send_close()
177 p->msg.arg1 = remote; in send_close()
210 cp->msg.command = A_CNXN; in send_connect()
[all …]
Dfile_sync_client.cpp258 syncmsg msg; in SendLargeFile() local
259 msg.data.id = ID_DONE; in SendLargeFile()
260 msg.data.size = mtime; in SendLargeFile()
262 return WriteOrDie(lpath, rpath, &msg.data, sizeof(msg.data)); in SendLargeFile()
266 syncmsg msg; in CopyDone() local
267 if (!ReadFdExactly(fd, &msg.status, sizeof(msg.status))) { in CopyDone()
271 if (msg.status.id == ID_OKAY) { in CopyDone()
280 if (msg.status.id != ID_FAIL) { in CopyDone()
281 Error("failed to copy '%s' to '%s': unknown reason %d", from, to, msg.status.id); in CopyDone()
284 return ReportCopyFailure(from, to, msg); in CopyDone()
[all …]
/system/core/libnetutils/
Ddhcpclient.c166 int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) in decode_dhcp_msg() argument
177 if (msg->options[0] != OPT_COOKIE1) return -1; in decode_dhcp_msg()
178 if (msg->options[1] != OPT_COOKIE2) return -1; in decode_dhcp_msg()
179 if (msg->options[2] != OPT_COOKIE3) return -1; in decode_dhcp_msg()
180 if (msg->options[3] != OPT_COOKIE4) return -1; in decode_dhcp_msg()
182 x = msg->options + 4; in decode_dhcp_msg()
232 info->ipaddr = msg->yiaddr; in decode_dhcp_msg()
249 void dump_dhcp_msg(dhcp_msg *msg, int len) in dump_dhcp_msg() argument
265 if (msg->op == OP_BOOTREQUEST) in dump_dhcp_msg()
267 else if (msg->op == OP_BOOTREPLY) in dump_dhcp_msg()
[all …]
Ddhcpmsg.c24 static void *init_dhcp_msg(dhcp_msg *msg, int type, void *hwaddr, uint32_t xid) in init_dhcp_msg() argument
28 memset(msg, 0, sizeof(dhcp_msg)); in init_dhcp_msg()
30 msg->op = OP_BOOTREQUEST; in init_dhcp_msg()
31 msg->htype = HTYPE_ETHER; in init_dhcp_msg()
32 msg->hlen = 6; in init_dhcp_msg()
33 msg->hops = 0; in init_dhcp_msg()
35 msg->flags = htons(FLAGS_BROADCAST); in init_dhcp_msg()
37 msg->xid = xid; in init_dhcp_msg()
39 memcpy(msg->chaddr, hwaddr, 6); in init_dhcp_msg()
41 x = msg->options; in init_dhcp_msg()
[all …]
/system/connectivity/dhcp_client/
Ddhcp_message_unittest.cc181 DHCPMessage msg; in TEST_F() local
184 &msg)); in TEST_F()
185 EXPECT_EQ(kDHCPMessageTypeOffer, msg.message_type()); in TEST_F()
187 msg.transaction_id()); in TEST_F()
189 msg.server_identifier()); in TEST_F()
191 msg.lease_time()); in TEST_F()
193 msg.your_ip_address()); in TEST_F()
195 msg.client_hardware_address().GetConstData(), in TEST_F()
196 msg.client_hardware_address().GetLength())); in TEST_F()
200 DHCPMessage msg; in TEST_F() local
[all …]
/system/gatekeeper/tests/
Dgatekeeper_messages_test.cpp54 EnrollRequest msg(USER_ID, NULL, provided_password, NULL); in TEST() local
55 SizedBuffer serialized_msg(msg.GetSerializedSize()); in TEST()
56 msg.Serialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() + serialized_msg.length); in TEST()
68 …ASSERT_EQ(0, memcmp(msg.provided_password.buffer.get(), deserialized_password->buffer.get(), passw… in TEST()
83 EnrollRequest msg(USER_ID, &handle, provided_password, &enrolled); in TEST() local
84 SizedBuffer serialized_msg(msg.GetSerializedSize()); in TEST()
85 msg.Serialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() + serialized_msg.length); in TEST()
97 …ASSERT_EQ(0, memcmp(msg.provided_password.buffer.get(), deserialized_password->buffer.get(), passw… in TEST()
114 EnrollRequest msg(USER_ID, password_handle, provided_password, enrolled_password); in TEST() local
115 SizedBuffer serialized_msg(msg.GetSerializedSize()); in TEST()
[all …]
/system/bt/stack/avdt/
Davdt_ccb_act.c164 p_data->msg.discover_rsp.p_sep_info = sep_info; in avdt_ccb_hdl_discover_cmd()
165 p_data->msg.discover_rsp.num_seps = 0; in avdt_ccb_hdl_discover_cmd()
173 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd()
174 sep_info[p_data->msg.discover_rsp.num_seps].seid = i + 1; in avdt_ccb_hdl_discover_cmd()
175 sep_info[p_data->msg.discover_rsp.num_seps].media_type = p_scb->cs.media_type; in avdt_ccb_hdl_discover_cmd()
176 sep_info[p_data->msg.discover_rsp.num_seps].tsep = p_scb->cs.tsep; in avdt_ccb_hdl_discover_cmd()
178 p_data->msg.discover_rsp.num_seps++; in avdt_ccb_hdl_discover_cmd()
205 (tAVDT_CTRL *)(&p_data->msg.discover_rsp)); in avdt_ccb_hdl_discover_rsp()
226 p_scb = avdt_scb_by_hdl(p_data->msg.single.seid); in avdt_ccb_hdl_getcap_cmd()
228 p_data->msg.svccap.p_cfg = &p_scb->cs.cfg; in avdt_ccb_hdl_getcap_cmd()
[all …]
/system/core/fingerprintd/
DFingerprintDaemonProxy.cpp44 void FingerprintDaemonProxy::hal_notify_callback(const fingerprint_msg_t *msg) { in hal_notify_callback() argument
52 switch (msg->type) { in hal_notify_callback()
54 ALOGD("onError(%d)", msg->data.error); in hal_notify_callback()
55 callback->onError(device, msg->data.error); in hal_notify_callback()
58 ALOGD("onAcquired(%d)", msg->data.acquired.acquired_info); in hal_notify_callback()
59 callback->onAcquired(device, msg->data.acquired.acquired_info); in hal_notify_callback()
63 msg->data.authenticated.finger.fid, in hal_notify_callback()
64 msg->data.authenticated.finger.gid); in hal_notify_callback()
65 if (msg->data.authenticated.finger.fid != 0) { in hal_notify_callback()
66 … const uint8_t* hat = reinterpret_cast<const uint8_t *>(&msg->data.authenticated.hat); in hal_notify_callback()
[all …]
/system/extras/tests/uevents/
Duevents.c25 char msg[UEVENT_MSG_LEN+2]; in main() local
33 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) { in main()
34 msg[n] = '\0'; in main()
35 msg[n+1] = '\0'; in main()
38 if (msg[i] == '\0') in main()
39 msg[i] = ' '; in main()
41 printf("%s\n", msg); in main()
/system/core/debuggerd/
Dsignal_sender.cpp88 signal_message msg; in start_signal_sender() local
89 int rc = TEMP_FAILURE_RETRY(read(sfd[0], &msg, sizeof(msg))); in start_signal_sender()
93 } else if (rc != sizeof(msg)) { in start_signal_sender()
100 if (msg.tid > 0) { in start_signal_sender()
101 if (syscall(SYS_tgkill, msg.pid, msg.tid, msg.signal) != 0) { in start_signal_sender()
105 if (kill(msg.pid, msg.signal) != 0) { in start_signal_sender()
155 signal_message msg = {.pid = pid, .tid = tid, .signal = signal }; in send_signal() local
156 if (TEMP_FAILURE_RETRY(write(signal_fd, &msg, sizeof(msg))) < 0) { in send_signal()
/system/connectivity/apmanager/
Ddevice_info.cc106 void DeviceInfo::OnWiFiPhyInfoReceived(const shill::Nl80211Message& msg) { in OnWiFiPhyInfoReceived() argument
108 if (msg.command() != shill::NewWiphyMessage::kCommand) { in OnWiFiPhyInfoReceived()
110 << msg.command(); in OnWiFiPhyInfoReceived()
115 if (!msg.const_attributes()->GetStringAttributeValue(NL80211_ATTR_WIPHY_NAME, in OnWiFiPhyInfoReceived()
128 device->ParseWiphyCapability(msg); in OnWiFiPhyInfoReceived()
134 void DeviceInfo::LinkMsgHandler(const RTNLMessage& msg) { in LinkMsgHandler() argument
135 DCHECK(msg.type() == RTNLMessage::kTypeLink); in LinkMsgHandler()
138 if (!msg.HasAttribute(IFLA_IFNAME)) { in LinkMsgHandler()
142 ByteString b(msg.GetAttribute(IFLA_IFNAME)); in LinkMsgHandler()
145 int dev_index = msg.interface_index(); in LinkMsgHandler()
[all …]
/system/core/libsysutils/src/
DFrameworkClient.cpp16 int FrameworkClient::sendMsg(const char *msg) { in sendMsg() argument
24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1)); in sendMsg()
26 SLOGW("Unable to send msg '%s' (%s)", msg, strerror(errno)); in sendMsg()
32 int FrameworkClient::sendMsg(const char *msg, const char *data) { in sendMsg() argument
33 size_t bufflen = strlen(msg) + strlen(data) + 1; in sendMsg()
39 snprintf(buffer, bufflen, "%s%s", msg, data); in sendMsg()
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper_ipc.c50 struct gatekeeper_message *msg = malloc(msg_size); in trusty_gatekeeper_call() local
51 msg->cmd = cmd; in trusty_gatekeeper_call()
52 memcpy(msg->payload, in, in_size); in trusty_gatekeeper_call()
54 ssize_t rc = write(handle_, msg, msg_size); in trusty_gatekeeper_call()
55 free(msg); in trusty_gatekeeper_call()
75 msg = (struct gatekeeper_message *) out; in trusty_gatekeeper_call()
77 if ((cmd | GK_RESP_BIT) != msg->cmd) { in trusty_gatekeeper_call()
78 ALOGE("invalid command (%d)\n", msg->cmd); in trusty_gatekeeper_call()
/system/core/logd/tests/
Dlogd_test.cpp206 log_msg *msg, unsigned int version, int lid) { in dump_log_msg() argument
211 switch(msg->entry.hdr_size) { in dump_log_msg()
216 case sizeof(msg->entry_v2): in dump_log_msg()
223 fprintf(stderr, "%s: v%u[%u] ", prefix, version, msg->len()); in dump_log_msg()
225 fprintf(stderr, "hdr_size=%u ", msg->entry.hdr_size); in dump_log_msg()
228 msg->entry.pid, msg->entry.tid, msg->entry.sec, msg->entry.nsec); in dump_log_msg()
233 fprintf(stderr, "euid=%u ", msg->entry_v2.euid); in dump_log_msg()
237 lid = msg->entry.lid; in dump_log_msg()
269 unsigned int len = msg->entry.len; in dump_log_msg()
271 unsigned char *cp = reinterpret_cast<unsigned char *>(msg->msg()); in dump_log_msg()
[all …]
/system/bt/bta/av/
Dbta_av_api.c427 p_buf->msg.op_id = rc_id; in BTA_AvRemoteCmd()
428 p_buf->msg.state = key_state; in BTA_AvRemoteCmd()
429 p_buf->msg.p_pass_data = NULL; in BTA_AvRemoteCmd()
430 p_buf->msg.pass_len = 0; in BTA_AvRemoteCmd()
458 p_buf->msg.op_id = AVRC_ID_VENDOR; in BTA_AvRemoteVendorUniqueCmd()
459 p_buf->msg.state = key_state; in BTA_AvRemoteVendorUniqueCmd()
460 p_buf->msg.pass_len = buf_len; in BTA_AvRemoteVendorUniqueCmd()
462 p_buf->msg.p_pass_data = NULL; in BTA_AvRemoteVendorUniqueCmd()
464 p_buf->msg.p_pass_data = (UINT8 *)(p_buf + 1); in BTA_AvRemoteVendorUniqueCmd()
465 memcpy(p_buf->msg.p_pass_data, p_msg, buf_len); in BTA_AvRemoteVendorUniqueCmd()
[all …]
/system/core/base/
Derrors_windows.cpp49 std::string msg; in SystemErrorCodeToString() local
50 if (!android::base::WideToUTF8(msgbuf, &msg)) { in SystemErrorCodeToString()
57 msg = android::base::Trim(msg); in SystemErrorCodeToString()
63 android::base::StringAppendF(&msg, " (%lu)", error_code); in SystemErrorCodeToString()
64 return msg; in SystemErrorCodeToString()
/system/netd/server/
DMDnsSdListener.cpp103 char *msg; in MDnsSdListenerDiscoverCallback() local
107 asprintf(&msg, "%d %d", refNumber, errorCode); in MDnsSdListenerDiscoverCallback()
108 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback()
126 asprintf(&msg, "%d %s %s %s", refNumber, quotedServiceName, regType, replyDomain); in MDnsSdListenerDiscoverCallback()
128 context->mListener->sendBroadcast(respCode, msg, false); in MDnsSdListenerDiscoverCallback()
130 free(msg); in MDnsSdListenerDiscoverCallback()
135 char *msg; in stop() local
136 asprintf(&msg, "Invalid number of arguments to %s", str); in stop()
137 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop()
138 free(msg); in stop()
[all …]
DSockDiagTest.cpp98 auto checkIPv4Dump = [&] (uint8_t /* proto */, const inet_diag_msg *msg) { in TEST_F() argument
99 if (msg == nullptr) { in TEST_F()
104 EXPECT_EQ(htonl(INADDR_LOOPBACK), msg->id.idiag_src[0]); in TEST_F()
106 seenclient46 |= (msg->id.idiag_sport == client46.sin6_port); in TEST_F()
107 inet_ntop(AF_INET, msg->id.idiag_src, src, sizeof(src)); in TEST_F()
108 inet_ntop(AF_INET, msg->id.idiag_src, dst, sizeof(dst)); in TEST_F()
110 src, htons(msg->id.idiag_sport), in TEST_F()
111 dst, htons(msg->id.idiag_dport), in TEST_F()
112 tcpStateName(msg->idiag_state)); in TEST_F()
119 auto checkIPv6Dump = [&] (uint8_t /* proto */, const inet_diag_msg *msg) { in TEST_F() argument
[all …]

1234567