Home
last modified time | relevance | path

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

12345

/system/media/camera/src/
Dcamera_metadata_tag_info.c698 const char *msg = "error: not an enum"; in camera_metadata_enum_snprint() local
705 msg = "TRANSFORM_MATRIX"; in camera_metadata_enum_snprint()
709 msg = "FAST"; in camera_metadata_enum_snprint()
713 msg = "HIGH_QUALITY"; in camera_metadata_enum_snprint()
717 msg = "error: enum value out of range"; in camera_metadata_enum_snprint()
730 msg = "OFF"; in camera_metadata_enum_snprint()
734 msg = "FAST"; in camera_metadata_enum_snprint()
738 msg = "HIGH_QUALITY"; in camera_metadata_enum_snprint()
742 msg = "error: enum value out of range"; in camera_metadata_enum_snprint()
753 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/core/adb/
Dfile_sync_service.cpp82 syncmsg msg; in do_stat() local
85 msg.stat.id = ID_STAT; in do_stat()
88 msg.stat.mode = 0; in do_stat()
89 msg.stat.size = 0; in do_stat()
90 msg.stat.time = 0; in do_stat()
92 msg.stat.mode = htoll(st.st_mode); in do_stat()
93 msg.stat.size = htoll(st.st_size); in do_stat()
94 msg.stat.time = htoll(st.st_mtime); in do_stat()
97 return WriteFdExactly(s, &msg.stat, sizeof(msg.stat)) ? 0 : -1; in do_stat()
105 syncmsg msg; in do_list() local
[all …]
Dfile_sync_client.cpp84 syncmsg msg; in sync_quit() local
86 msg.req.id = ID_QUIT; in sync_quit()
87 msg.req.namelen = 0; in sync_quit()
89 WriteFdExactly(fd, &msg.req, sizeof(msg.req)); in sync_quit()
96 syncmsg msg; in sync_ls() local
103 msg.req.id = ID_LIST; in sync_ls()
104 msg.req.namelen = htoll(len); in sync_ls()
106 if(!WriteFdExactly(fd, &msg.req, sizeof(msg.req)) || in sync_ls()
112 if(!ReadFdExactly(fd, &msg.dent, sizeof(msg.dent))) break; in sync_ls()
113 if(msg.dent.id == ID_DONE) return 0; in sync_ls()
[all …]
Dadb.cpp238 switch(p->msg.command){ in print_packet()
250 label, tag, p->msg.arg0, p->msg.arg1, p->msg.data_length); in print_packet()
251 count = p->msg.data_length; in print_packet()
275 p->msg.command = A_OKAY; in send_ready()
276 p->msg.arg0 = local; in send_ready()
277 p->msg.arg1 = remote; in send_ready()
285 p->msg.command = A_CLSE; in send_close()
286 p->msg.arg0 = local; in send_close()
287 p->msg.arg1 = remote; in send_close()
325 cp->msg.command = A_CNXN; in send_connect()
[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()
Dqemu_tracing.cpp63 char msg[1024]; in adb_qemu_trace() local
66 vsnprintf(msg, sizeof(msg), fmt, args); in adb_qemu_trace()
67 adb_write(adb_debug_qemu, msg, strlen(msg)); in adb_qemu_trace()
Dtransport_usb.cpp30 if(usb_read(t->usb, &p->msg, sizeof(amessage))){ in remote_read()
40 if(p->msg.data_length) { in remote_read()
41 if(usb_read(t->usb, p->data, p->msg.data_length)){ in remote_read()
57 unsigned size = p->msg.data_length; in remote_write()
59 if(usb_write(t->usb, &p->msg, sizeof(amessage))) { in remote_write()
63 if(p->msg.data_length == 0) return 0; in remote_write()
/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/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.c167 p_data->msg.discover_rsp.p_sep_info = sep_info; in avdt_ccb_hdl_discover_cmd()
168 p_data->msg.discover_rsp.num_seps = 0; in avdt_ccb_hdl_discover_cmd()
176 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd()
177 sep_info[p_data->msg.discover_rsp.num_seps].seid = i + 1; in avdt_ccb_hdl_discover_cmd()
178 sep_info[p_data->msg.discover_rsp.num_seps].media_type = p_scb->cs.media_type; in avdt_ccb_hdl_discover_cmd()
179 sep_info[p_data->msg.discover_rsp.num_seps].tsep = p_scb->cs.tsep; in avdt_ccb_hdl_discover_cmd()
181 p_data->msg.discover_rsp.num_seps++; in avdt_ccb_hdl_discover_cmd()
208 (tAVDT_CTRL *)(&p_data->msg.discover_rsp)); in avdt_ccb_hdl_discover_rsp()
229 p_scb = avdt_scb_by_hdl(p_data->msg.single.seid); in avdt_ccb_hdl_getcap_cmd()
231 p_data->msg.svccap.p_cfg = &p_scb->cs.cfg; in avdt_ccb_hdl_getcap_cmd()
[all …]
Davdt_scb_act.c140 p_scb->close_code = p_data->msg.hdr.err_code; in avdt_scb_hdl_close_rsp()
156 p_data->msg.svccap.p_cfg = &p_scb->curr_cfg; in avdt_scb_hdl_getconfig_cmd()
706 p_data->msg.hdr.err_code = AVDT_ERR_NSC; in avdt_scb_hdl_reconfig_cmd()
707 p_data->msg.hdr.err_param = 0; in avdt_scb_hdl_reconfig_cmd()
713 memcpy(&p_scb->req_cfg, p_data->msg.reconfig_cmd.p_cfg, sizeof(tAVDT_CFG)); in avdt_scb_hdl_reconfig_cmd()
719 (tAVDT_CTRL *) &p_data->msg.reconfig_cmd); in avdt_scb_hdl_reconfig_cmd()
735 if (p_data->msg.hdr.err_code == 0) in avdt_scb_hdl_reconfig_rsp()
750 p_data->msg.svccap.p_cfg = &p_scb->curr_cfg; in avdt_scb_hdl_reconfig_rsp()
756 (tAVDT_CTRL *) &p_data->msg.svccap); in avdt_scb_hdl_reconfig_rsp()
775 p_data->msg.hdr.err_code = AVDT_ERR_NSC; in avdt_scb_hdl_security_cmd()
[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/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/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()
DSocketClient.cpp54 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg() argument
55 return sendMsg(code, msg, addErrno, mUseCmdNum); in sendMsg()
58 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg() argument
64 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno)); in sendMsg()
66 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno)); in sendMsg()
70 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg); in sendMsg()
72 ret = asprintf(&buf, "%d %s", code, msg); in sendMsg()
144 int SocketClient::sendMsg(const char *msg) { in sendMsg() argument
146 if (sendData(msg, strlen(msg) + 1) != 0) { in sendMsg()
147 SLOGW("Unable to send msg '%s'", msg); in sendMsg()
/system/netd/server/
DMDnsSdListener.cpp100 char *msg; in MDnsSdListenerDiscoverCallback() local
104 asprintf(&msg, "%d %d", refNumber, errorCode); in MDnsSdListenerDiscoverCallback()
105 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback()
123 asprintf(&msg, "%d %s %s %s", refNumber, quotedServiceName, regType, replyDomain); in MDnsSdListenerDiscoverCallback()
125 context->mListener->sendBroadcast(respCode, msg, false); in MDnsSdListenerDiscoverCallback()
127 free(msg); in MDnsSdListenerDiscoverCallback()
132 char *msg; in stop() local
133 asprintf(&msg, "Invalid number of arguments to %s", str); in stop()
134 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop()
135 free(msg); in stop()
[all …]
/system/core/logd/tests/
Dlogd_test.cpp190 log_msg *msg, unsigned int version, int lid) { in dump_log_msg() argument
191 switch(msg->entry.hdr_size) { in dump_log_msg()
196 case sizeof(msg->entry_v2): in dump_log_msg()
203 fprintf(stderr, "%s: v%u[%u] ", prefix, version, msg->len()); in dump_log_msg()
205 fprintf(stderr, "hdr_size=%u ", msg->entry.hdr_size); in dump_log_msg()
208 msg->entry.pid, msg->entry.tid, msg->entry.sec, msg->entry.nsec); in dump_log_msg()
213 fprintf(stderr, "euid=%u ", msg->entry_v2.euid); in dump_log_msg()
217 lid = msg->entry.lid; in dump_log_msg()
240 unsigned int len = msg->entry.len; in dump_log_msg()
242 unsigned char *cp = reinterpret_cast<unsigned char *>(msg->msg()); in dump_log_msg()
[all …]
/system/bt/btif/src/
Dbtif_sock_util.c111 struct msghdr msg; in sock_send_fd() local
113 memset(&msg, 0, sizeof(msg)); in sock_send_fd()
122 msg.msg_control = msgbuf; in sock_send_fd()
123 msg.msg_controllen = sizeof msgbuf; in sock_send_fd()
124 cmsg = CMSG_FIRSTHDR(&msg); in sock_send_fd()
139 msg.msg_iov = &iv; in sock_send_fd()
140 msg.msg_iovlen = 1; in sock_send_fd()
143 ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL); in sock_send_fd()
157 memset(&msg, 0, sizeof(msg)); in sock_send_fd()
/system/bt/bta/av/
Dbta_av_api.c412 p_buf->msg.op_id = rc_id; in BTA_AvRemoteCmd()
413 p_buf->msg.state = key_state; in BTA_AvRemoteCmd()
414 p_buf->msg.p_pass_data = NULL; in BTA_AvRemoteCmd()
415 p_buf->msg.pass_len = 0; in BTA_AvRemoteCmd()
440 p_buf->msg.hdr.ctype = cmd_code; in BTA_AvVendorCmd()
441 p_buf->msg.hdr.subunit_type = AVRC_SUB_PANEL; in BTA_AvVendorCmd()
442 p_buf->msg.hdr.subunit_id = 0; in BTA_AvVendorCmd()
443 p_buf->msg.company_id = p_bta_av_cfg->company_id; in BTA_AvVendorCmd()
445 p_buf->msg.vendor_len = len; in BTA_AvVendorCmd()
448 p_buf->msg.p_vendor_data = NULL; in BTA_AvVendorCmd()
[all …]
/system/core/init/
Ddevices.cpp357 static void parse_event(const char *msg, struct uevent *uevent) in parse_event() argument
370 while(*msg) { in parse_event()
371 if(!strncmp(msg, "ACTION=", 7)) { in parse_event()
372 msg += 7; in parse_event()
373 uevent->action = msg; in parse_event()
374 } else if(!strncmp(msg, "DEVPATH=", 8)) { in parse_event()
375 msg += 8; in parse_event()
376 uevent->path = msg; in parse_event()
377 } else if(!strncmp(msg, "SUBSYSTEM=", 10)) { in parse_event()
378 msg += 10; in parse_event()
[all …]
Dlog.cpp31 char msg[512]; in init_klog_vwrite() local
32 vsnprintf(msg, sizeof(msg), fmt, ap); in init_klog_vwrite()
37 iov[1].iov_base = msg; in init_klog_vwrite()
38 iov[1].iov_len = strlen(msg); in init_klog_vwrite()
Dproperty_service.cpp264 prop_msg msg; in handle_property_set_fd() local
301 r = TEMP_FAILURE_RETRY(recv(s, &msg, sizeof(msg), MSG_DONTWAIT)); in handle_property_set_fd()
309 switch(msg.cmd) { in handle_property_set_fd()
311 msg.name[PROP_NAME_MAX-1] = 0; in handle_property_set_fd()
312 msg.value[PROP_VALUE_MAX-1] = 0; in handle_property_set_fd()
314 if (!is_legal_property_name(msg.name, strlen(msg.name))) { in handle_property_set_fd()
315 ERROR("sys_prop: illegal property name. Got: \"%s\"\n", msg.name); in handle_property_set_fd()
322 if(memcmp(msg.name,"ctl.",4) == 0) { in handle_property_set_fd()
326 if (check_control_mac_perms(msg.value, source_ctx)) { in handle_property_set_fd()
327 handle_control_message((char*) msg.name + 4, (char*) msg.value); in handle_property_set_fd()
[all …]
/system/core/libcutils/
Ddebugger.c46 debugger_msg_t msg; in make_dump_request() local
47 memset(&msg, 0, sizeof(msg)); in make_dump_request()
48 msg.tid = tid; in make_dump_request()
49 msg.action = action; in make_dump_request()
70 if (send_request(sock_fd, &msg, sizeof(msg)) < 0) { in make_dump_request()

12345