Home
last modified time | relevance | path

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

12345678910>>...12

/system/media/camera/src/
Dcamera_metadata_tag_info.c834 const char *msg = "error: not an enum"; in camera_metadata_enum_snprint() local
841 msg = "TRANSFORM_MATRIX"; in camera_metadata_enum_snprint()
845 msg = "FAST"; in camera_metadata_enum_snprint()
849 msg = "HIGH_QUALITY"; in camera_metadata_enum_snprint()
853 msg = "error: enum value out of range"; in camera_metadata_enum_snprint()
866 msg = "OFF"; in camera_metadata_enum_snprint()
870 msg = "FAST"; in camera_metadata_enum_snprint()
874 msg = "HIGH_QUALITY"; in camera_metadata_enum_snprint()
878 msg = "error: enum value out of range"; in camera_metadata_enum_snprint()
889 msg = "OFF"; in camera_metadata_enum_snprint()
[all …]
/system/netd/server/
DWakeupControllerTest.cpp111 } msg = {}; in TEST_F() local
113 msg.uidAttr.nla_type = NFULA_UID; in TEST_F()
114 msg.uidAttr.nla_len = sizeof(msg.uidAttr) + sizeof(msg.uid); in TEST_F()
115 msg.uid = htonl(kUid); in TEST_F()
117 msg.gidAttr.nla_type = NFULA_GID; in TEST_F()
118 msg.gidAttr.nla_len = sizeof(msg.gidAttr) + sizeof(msg.gid); in TEST_F()
119 msg.gid = htonl(kGid); in TEST_F()
121 msg.tsAttr.nla_type = NFULA_TIMESTAMP; in TEST_F()
122 msg.tsAttr.nla_len = sizeof(msg.tsAttr) + sizeof(msg.ts); in TEST_F()
123 msg.ts.tv_sec = htonl(kTsNs / kNsPerS); in TEST_F()
[all …]
DNFLogListener.cpp52 const nfgenmsg& nfmsg, const Slice msg) { in __anone8b324600202() argument
54 ss << nlmsg << " " << nfmsg << " " << msg << " " << netdutils::toHex(msg, 32); in __anone8b324600202()
58 using SendFn = std::function<Status(const Slice msg)>;
67 } __attribute__((packed)) msg = {}; in cfgCmdPfUnbind() local
69 msg.nlhdr.nlmsg_len = sizeof(msg); in cfgCmdPfUnbind()
70 msg.nlhdr.nlmsg_type = kNFLogConfigMsgType; in cfgCmdPfUnbind()
71 msg.nlhdr.nlmsg_flags = NLM_F_REQUEST; in cfgCmdPfUnbind()
72 msg.nfhdr.nfgen_family = AF_UNSPEC; in cfgCmdPfUnbind()
73 msg.attr.nfa_len = sizeof(msg.attr) + sizeof(msg.cmd); in cfgCmdPfUnbind()
74 msg.attr.nfa_type = NFULA_CFG_CMD; in cfgCmdPfUnbind()
[all …]
DSockDiagTest.cpp38 static bool isLoopbackSocket(const inet_diag_msg *msg) { in isLoopbackSocket() argument
39 return SockDiag::isLoopbackSocket(msg); in isLoopbackSocket()
110 auto checkIPv4Dump = [&] (uint8_t /* proto */, const inet_diag_msg *msg) { in TEST_F() argument
111 EXPECT_EQ(htonl(INADDR_LOOPBACK), msg->id.idiag_src[0]); in TEST_F()
113 seenclient46 |= (msg->id.idiag_sport == client46.sin6_port); in TEST_F()
114 inet_ntop(AF_INET, msg->id.idiag_src, src, sizeof(src)); in TEST_F()
115 inet_ntop(AF_INET, msg->id.idiag_src, dst, sizeof(dst)); in TEST_F()
117 src, htons(msg->id.idiag_sport), in TEST_F()
118 dst, htons(msg->id.idiag_dport), in TEST_F()
119 tcpStateName(msg->idiag_state)); in TEST_F()
[all …]
/system/bt/stack/test/
Dstack_avrcp_test.cc31 tAVRC_MSG msg{}; in TEST_F() local
35 msg.hdr.opcode = AVRC_OP_BROWSE; in TEST_F()
36 msg.browse.p_browse_data = browse_cmd_buf; in TEST_F()
37 msg.browse.browse_len = 2; in TEST_F()
38 EXPECT_EQ(AVRC_ParsCommand(&msg, &result, scratch_buf, sizeof(scratch_buf)), in TEST_F()
43 msg.browse.browse_len = 3; in TEST_F()
44 EXPECT_EQ(AVRC_ParsCommand(&msg, &result, scratch_buf, sizeof(scratch_buf)), in TEST_F()
47 msg.browse.browse_len = 5; in TEST_F()
48 EXPECT_EQ(AVRC_ParsCommand(&msg, &result, scratch_buf, sizeof(scratch_buf)), in TEST_F()
53 msg.browse.browse_len = 3; in TEST_F()
[all …]
/system/core/trusty/storage/lib/
Dstorage.c57 static ssize_t check_response(struct storage_msg *msg, ssize_t res) in check_response() argument
62 if ((size_t)res < sizeof(*msg)) { in check_response()
63 ALOGE("invalid msg length (%zd < %zd)\n", res, sizeof(*msg)); in check_response()
67 ALOGV("cmd 0x%x: server returned %u\n", msg->cmd, msg->result); in check_response()
69 switch(msg->result) { in check_response()
71 return res - sizeof(*msg); in check_response()
83 ALOGE("cmd 0x%x: is unhandles command\n", msg->cmd); in check_response()
93 ALOGE("cmd 0x%x: internal server error\n", msg->cmd); in check_response()
98 msg->cmd, msg->result); in check_response()
146 struct storage_msg msg = { .cmd = STORAGE_FILE_OPEN, .flags = _to_msg_flags(opflags)}; in storage_open_file() local
[all …]
/system/keymaster/tests/
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/init/
Duevent_listener.cpp32 static void ParseEvent(const char* msg, Uevent* uevent) { in ParseEvent() argument
44 while (*msg) { in ParseEvent()
45 if (!strncmp(msg, "ACTION=", 7)) { in ParseEvent()
46 msg += 7; in ParseEvent()
47 uevent->action = msg; in ParseEvent()
48 } else if (!strncmp(msg, "DEVPATH=", 8)) { in ParseEvent()
49 msg += 8; in ParseEvent()
50 uevent->path = msg; in ParseEvent()
51 } else if (!strncmp(msg, "SUBSYSTEM=", 10)) { in ParseEvent()
52 msg += 10; in ParseEvent()
[all …]
/system/core/adb/daemon/
Dfile_sync_service.cpp143 syncmsg msg = {}; in do_lstat_v1() local
144 msg.stat_v1.id = ID_LSTAT_V1; in do_lstat_v1()
148 msg.stat_v1.mode = st.st_mode; in do_lstat_v1()
149 msg.stat_v1.size = st.st_size; in do_lstat_v1()
150 msg.stat_v1.mtime = st.st_mtime; in do_lstat_v1()
151 return WriteFdExactly(s, &msg.stat_v1, sizeof(msg.stat_v1)); in do_lstat_v1()
155 syncmsg msg = {}; in do_stat_v2() local
156 msg.stat_v2.id = id; in do_stat_v2()
168 msg.stat_v2.error = errno_to_wire(errno); in do_stat_v2()
170 msg.stat_v2.dev = st.st_dev; in do_stat_v2()
[all …]
/system/core/adb/client/
Dtransport_usb.cpp44 static int UsbReadMessage(usb_handle* h, amessage* msg) { in UsbReadMessage() argument
49 CHECK_GE(usb_packet_size, sizeof(*msg)); in UsbReadMessage()
54 if (n != sizeof(*msg)) { in UsbReadMessage()
55 D("usb_read returned unexpected length %d (expected %zu)", n, sizeof(*msg)); in UsbReadMessage()
58 memcpy(msg, buffer, sizeof(*msg)); in UsbReadMessage()
61 return usb_read(h, msg, sizeof(*msg)); in UsbReadMessage()
68 D("UsbReadPayload(%d)", p->msg.data_length); in UsbReadPayload()
70 if (p->msg.data_length > MAX_PAYLOAD) { in UsbReadPayload()
80 size_t len = p->msg.data_length; in UsbReadPayload()
88 if (rc != static_cast<int>(p->msg.data_length)) { in UsbReadPayload()
[all …]
/system/core/libnetutils/
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 …]
Ddhcpclient.c164 int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) in decode_dhcp_msg() argument
175 if (msg->options[0] != OPT_COOKIE1) return -1; in decode_dhcp_msg()
176 if (msg->options[1] != OPT_COOKIE2) return -1; in decode_dhcp_msg()
177 if (msg->options[2] != OPT_COOKIE3) return -1; in decode_dhcp_msg()
178 if (msg->options[3] != OPT_COOKIE4) return -1; in decode_dhcp_msg()
180 x = msg->options + 4; in decode_dhcp_msg()
230 info->ipaddr = msg->yiaddr; in decode_dhcp_msg()
247 void dump_dhcp_msg(dhcp_msg *msg, int len) in dump_dhcp_msg() argument
263 if (msg->op == OP_BOOTREQUEST) in dump_dhcp_msg()
265 else if (msg->op == OP_BOOTREPLY) in dump_dhcp_msg()
[all …]
/system/core/fs_mgr/libsnapshot/
Dsnapuserd.cpp61 struct dm_user_message* msg = (struct dm_user_message*)buf.get(); in daemon_main() local
75 LOG(DEBUG) << android::base::StringPrintf(" msg->seq: 0x%016llx", msg->seq); in daemon_main()
76 LOG(DEBUG) << android::base::StringPrintf(" msg->type: 0x%016llx", msg->type); in daemon_main()
77 LOG(DEBUG) << android::base::StringPrintf(" msg->flags: 0x%016llx", msg->flags); in daemon_main()
78 LOG(DEBUG) << android::base::StringPrintf(" msg->sector: 0x%016llx", msg->sector); in daemon_main()
79 LOG(DEBUG) << android::base::StringPrintf(" msg->len: 0x%016llx", msg->len); in daemon_main()
81 switch (msg->type) { in daemon_main()
84 "Responding to read of sector %lld with %lld bytes data", msg->sector, in daemon_main()
85 msg->len); in daemon_main()
87 if ((sizeof(*msg) + msg->len) > buf_size) { in daemon_main()
[all …]
/system/core/trusty/storage/proxy/
Dproxy.c112 static int handle_req(struct storage_msg* msg, const void* req, size_t req_len) { in handle_req() argument
115 if ((msg->flags & STORAGE_MSG_FLAG_POST_COMMIT) && (msg->cmd != STORAGE_RPMB_SEND)) { in handle_req()
120 ALOGE("cmd 0x%x: post commit option is not implemented\n", msg->cmd); in handle_req()
121 msg->result = STORAGE_ERR_UNIMPLEMENTED; in handle_req()
122 return ipc_respond(msg, NULL, 0); in handle_req()
125 if (msg->flags & STORAGE_MSG_FLAG_PRE_COMMIT) { in handle_req()
128 msg->result = STORAGE_ERR_GENERIC; in handle_req()
129 return ipc_respond(msg, NULL, 0); in handle_req()
133 switch (msg->cmd) { in handle_req()
135 rc = storage_file_delete(msg, req, req_len); in handle_req()
[all …]
Dipc.c67 ssize_t ipc_get_msg(struct storage_msg *msg, void *req_buf, size_t req_buf_len) in ipc_get_msg() argument
70 struct iovec iovs[2] = {{msg, sizeof(*msg)}, {req_buf, req_buf_len}}; in ipc_get_msg()
81 if ((size_t)rc < sizeof(*msg)) { in ipc_get_msg()
87 if (msg->size != (uint32_t)rc) { in ipc_get_msg()
89 msg->cmd, msg->size, (uint32_t)rc); in ipc_get_msg()
93 return rc - sizeof(*msg); in ipc_get_msg()
96 int ipc_respond(struct storage_msg *msg, void *out, size_t out_size) in ipc_respond() argument
99 struct iovec iovs[2] = {{msg, sizeof(*msg)}, {out, out_size}}; in ipc_respond()
103 msg->cmd |= STORAGE_RESP_BIT; in ipc_respond()
108 msg->cmd, strerror(errno)); in ipc_respond()
Dstorage.c162 int storage_file_delete(struct storage_msg *msg, in storage_file_delete() argument
171 msg->result = STORAGE_ERR_NOT_VALID; in storage_file_delete()
179 msg->result = STORAGE_ERR_NOT_VALID; in storage_file_delete()
186 msg->result = STORAGE_ERR_GENERIC; in storage_file_delete()
201 msg->result = translate_errno(rc); in storage_file_delete()
206 msg->result = STORAGE_NO_ERROR; in storage_file_delete()
211 return ipc_respond(msg, NULL, 0); in storage_file_delete()
215 int storage_file_open(struct storage_msg *msg, in storage_file_open() argument
225 msg->result = STORAGE_ERR_NOT_VALID; in storage_file_open()
233 msg->result = STORAGE_ERR_NOT_VALID; in storage_file_open()
[all …]
Dstorage.h21 int storage_file_delete(struct storage_msg *msg,
24 int storage_file_open(struct storage_msg *msg,
27 int storage_file_close(struct storage_msg *msg,
30 int storage_file_write(struct storage_msg *msg,
33 int storage_file_read(struct storage_msg *msg,
36 int storage_file_get_size(struct storage_msg *msg,
39 int storage_file_set_size(struct storage_msg *msg,
/system/gatekeeper/tests/
Dgatekeeper_messages_test.cpp52 EnrollRequest msg(USER_ID, {}, make_buffer(password_size), {}); in TEST() local
54 std::vector<uint8_t> serialized_msg(msg.GetSerializedSize()); in TEST()
55 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
67 …ASSERT_EQ(0, memcmp(msg.provided_password.Data<uint8_t>(), deserialized_password->Data<uint8_t>(),… in TEST()
76 EnrollRequest msg(USER_ID, {}, make_buffer(password_size), {}); in TEST() local
77 std::vector<uint8_t> serialized_msg(msg.GetSerializedSize()); in TEST()
78 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
90 …ASSERT_EQ(0, memcmp(msg.provided_password.Data<uint8_t>(), deserialized_password->Data<uint8_t>(),… in TEST()
104 …EnrollRequest msg(USER_ID, move(password_handle), move(provided_password), move(enrolled_password)… in TEST() local
105 std::vector<uint8_t> serialized_msg(msg.GetSerializedSize()); in TEST()
[all …]
/system/bt/stack/avdt/
Davdt_ccb_act.cc150 p_data->msg.discover_rsp.p_sep_info = sep_info; in avdt_ccb_hdl_discover_cmd()
151 p_data->msg.discover_rsp.num_seps = 0; in avdt_ccb_hdl_discover_cmd()
157 sep_info[p_data->msg.discover_rsp.num_seps].in_use = p_scb->in_use; in avdt_ccb_hdl_discover_cmd()
158 sep_info[p_data->msg.discover_rsp.num_seps].seid = p_scb->ScbHandle(); in avdt_ccb_hdl_discover_cmd()
159 sep_info[p_data->msg.discover_rsp.num_seps].media_type = in avdt_ccb_hdl_discover_cmd()
161 sep_info[p_data->msg.discover_rsp.num_seps].tsep = in avdt_ccb_hdl_discover_cmd()
164 p_data->msg.discover_rsp.num_seps++; in avdt_ccb_hdl_discover_cmd()
190 (tAVDT_CTRL*)(&p_data->msg.discover_rsp), in avdt_ccb_hdl_discover_rsp()
211 p_scb = avdt_scb_by_hdl(p_data->msg.single.seid); in avdt_ccb_hdl_getcap_cmd()
213 p_data->msg.svccap.p_cfg = &p_scb->stream_config.cfg; in avdt_ccb_hdl_getcap_cmd()
[all …]
/system/timezone/input_tools/android/common/src/main/java/com/android/libcore/timezone/util/
DErrors.java54 public HaltExecutionException addFatalAndHalt(String msg) throws HaltExecutionException { in addFatalAndHalt() argument
55 addInternal(msg, null, LEVEL_FATAL); in addFatalAndHalt()
60 public HaltExecutionException addFatalAndHalt(String msg, Throwable t) in addFatalAndHalt() argument
62 addInternal(msg, t, LEVEL_FATAL); in addFatalAndHalt()
66 public void addError(String msg) { in addError() argument
67 addInternal(msg, null, LEVEL_ERROR); in addError()
70 public void addError(String msg, Throwable t) { in addError() argument
71 addInternal(msg, t, LEVEL_ERROR); in addError()
74 public void addWarning(String msg) { in addWarning() argument
75 addInternal(msg, null, LEVEL_WARNING); in addWarning()
[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/libbase/
Dlogging_splitters.h32 static void SplitByLines(const char* msg, const F& log_function, Args&&... args) { in SplitByLines() argument
33 const char* newline = strchr(msg, '\n'); in SplitByLines()
35 log_function(msg, newline - msg, args...); in SplitByLines()
36 msg = newline + 1; in SplitByLines()
37 newline = strchr(msg, '\n'); in SplitByLines()
40 log_function(msg, -1, args...); in SplitByLines()
49 unsigned int line, const char* msg, const F& log_function) { in SplitByLogdChunks() argument
97 const char* newline = strchr(msg, '\n'); in SplitByLogdChunks()
100 if (chunk_position != 0 && chunk_position + (newline - msg) + 1 + file_header_size > max_size) { in SplitByLogdChunks()
106 write_to_logd_chunk(msg, newline - msg); in SplitByLogdChunks()
[all …]
/system/chre/apps/chqts/src/echo_message/
Decho_message.cc45 auto *msg = static_cast<const chreMessageFromHostData *>(eventData); in nanoappHandleEvent() local
52 static_cast<uint8_t*>(chreHeapAlloc(msg->messageSize)); in nanoappHandleEvent()
53 if (msg->messageSize != 0 && messageBuffer == nullptr) { in nanoappHandleEvent()
57 std::memcpy(static_cast<void*>(messageBuffer), const_cast<void*>(msg->message), in nanoappHandleEvent()
58 msg->messageSize); in nanoappHandleEvent()
61 static_cast<void*>(messageBuffer), msg->messageSize, in nanoappHandleEvent()
62 msg->messageType, msg->hostEndpoint, messageFreeCallback)) { in nanoappHandleEvent()
/system/core/logd/
DRecordingLogBuffer.cpp21 static void WriteLogMessage(int fd, const RecordedLogMessage& meta, const std::string& msg) { in WriteLogMessage() argument
23 android::base::WriteFully(fd, msg.c_str(), meta.msg_len); in WriteLogMessage()
27 pid_t tid, const char* msg, uint16_t len) { in RecordLogMessage() argument
46 since_boot_messages_.emplace_back(recorded_log_message, std::string(msg, len)); in RecordLogMessage()
49 for (const auto& [meta, msg] : since_boot_messages_) { in RecordLogMessage()
50 WriteLogMessage(fd_.get(), meta, msg); in RecordLogMessage()
55 WriteLogMessage(fd_.get(), recorded_log_message, std::string(msg, len)); in RecordLogMessage()
59 const char* msg, uint16_t len) { in Log() argument
60 RecordLogMessage(log_id, realtime, uid, pid, tid, msg, len); in Log()
61 return SimpleLogBuffer::Log(log_id, realtime, uid, pid, tid, msg, len); in Log()
/system/bt/btif/src/
Dbtif_sock_util.cc95 struct msghdr msg; in sock_send_fd() local
97 memset(&msg, 0, sizeof(msg)); in sock_send_fd()
105 msg.msg_control = msgbuf; in sock_send_fd()
106 msg.msg_controllen = sizeof msgbuf; in sock_send_fd()
107 cmsg = CMSG_FIRSTHDR(&msg); in sock_send_fd()
122 msg.msg_iov = &iv; in sock_send_fd()
123 msg.msg_iovlen = 1; in sock_send_fd()
126 OSI_NO_INTR(ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL)); in sock_send_fd()
138 memset(&msg, 0, sizeof(msg)); in sock_send_fd()

12345678910>>...12