Searched refs:msg (Results 26 - 50 of 65) sorted by relevance

123

/system/core/adb/
H A Dadb.c188 char msg[1024]; local
191 vsnprintf(msg, sizeof(msg), fmt, args);
192 adb_write(adb_debug_qemu, msg, strlen(msg));
232 switch(p->msg.command){
244 label, tag, p->msg.arg0, p->msg.arg1, p->msg.data_length);
245 count = p->msg
[all...]
H A Dadb_auth_client.c177 char msg[MAX_PAYLOAD]; local
190 ret = snprintf(msg, sizeof(msg), "PK%s", key);
191 if (ret >= (signed)sizeof(msg)) {
195 D("Sending '%s'\n", msg);
197 ret = unix_write(framework_fd, msg, ret);
H A Dtransport.c100 unsigned command = p->msg.command;
101 int len = p->msg.data_length;
120 if (p->msg.arg0 < 256U)
121 snprintf(arg0, sizeof arg0, "%d", p->msg.arg0);
123 snprintf(arg0, sizeof arg0, "0x%x", p->msg.arg0);
125 if (p->msg.arg1 < 256U)
126 snprintf(arg1, sizeof arg1, "%d", p->msg.arg1);
128 snprintf(arg1, sizeof arg1, "0x%x", p->msg.arg1);
218 p->msg.magic = p->msg
[all...]
H A Djdwp_service.c320 struct msghdr msg; local
328 msg.msg_name = NULL;
329 msg.msg_namelen = 0;
330 msg.msg_iov = &iov;
331 msg.msg_iovlen = 1;
332 msg.msg_flags = 0;
333 msg.msg_control = buffer;
334 msg.msg_controllen = sizeof(buffer);
336 cmsg = CMSG_FIRSTHDR(&msg);
337 cmsg->cmsg_len = msg
[all...]
H A Dtest_track_devices.c10 panic( const char* msg )
12 fprintf(stderr, "PANIC: %s: %s\n", msg, strerror(errno));
H A Dtest_track_jdwp.c10 panic( const char* msg )
12 fprintf(stderr, "PANIC: %s: %s\n", msg, strerror(errno));
H A Dlog_service.c65 entry->msg[entry->len] = '\0';
/system/core/include/sysutils/
H A DSocketListener.h42 void sendBroadcast(int code, const char *msg, bool addErrno);
/system/core/init/
H A Dproperty_service.c411 prop_msg msg; local
432 r = TEMP_FAILURE_RETRY(recv(s, &msg, sizeof(msg), 0));
434 ERROR("sys_prop: mis-match msg size recieved: %d expected: %d errno: %d\n",
440 switch(msg.cmd) {
442 msg.name[PROP_NAME_MAX-1] = 0;
443 msg.value[PROP_VALUE_MAX-1] = 0;
449 if(memcmp(msg.name,"ctl.",4) == 0) {
453 if (check_control_perms(msg.value, cr.uid, cr.gid, source_ctx)) {
454 handle_control_message((char*) msg
[all...]
/system/core/libnl_2/
H A DAndroid.mk17 msg.c \
/system/core/libnetutils/
H A Ddhcpmsg.h101 int init_dhcp_discover_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid);
103 int init_dhcp_request_msg(dhcp_msg *msg, void *hwaddr, uint32_t xid,
H A Dpacket.c89 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, argument
130 udpsum = checksum(msg, size, udpsum);
137 iov[2].iov_base = (char *)msg;
156 int receive_packet(int s, struct dhcp_msg *msg) argument
237 memcpy(msg, &packet.dhcp, dhcp_size);
/system/netd/
H A DCommandListener.cpp258 char *msg; local
259 asprintf(&msg, "%lu", rx);
260 cli->sendMsg(ResponseCode::InterfaceRxCounterResult, msg, false);
261 free(msg);
276 char *msg = NULL; local
277 asprintf(&msg, "%lu", tx);
278 cli->sendMsg(ResponseCode::InterfaceTxCounterResult, msg, false);
279 free(msg);
300 char *msg = NULL; local
301 asprintf(&msg, "
429 char *msg = NULL; local
984 char *msg; local
1044 char *msg; local
1063 char *msg; local
1089 char *msg; local
1111 char *msg; local
1263 char *msg = tetherStats.getStatsLine(); local
[all...]
/system/core/libion/
H A Dion_test.c113 struct msghdr msg = { local
134 cmsg = CMSG_FIRSTHDR(&msg);
141 printf("master sending msg 1\n");
142 sendmsg(sd[0], &msg, 0);
143 if (recvmsg(sd[0], &msg, 0) < 0)
144 perror("master recv msg 2");
148 sendmsg(sd[0], &msg, 0);
150 if (recvmsg(sd[0], &msg, 0) < 0)
153 struct msghdr msg; local
172 perror("child recv msg
[all...]
/system/core/charger/
H A Dcharger.c355 static void parse_uevent(const char *msg, struct uevent *uevent) argument
365 while (*msg) {
367 LOGV("uevent str: %s\n", msg);
369 if (!strncmp(msg, "ACTION=", 7)) {
370 msg += 7;
371 uevent->action = msg;
372 } else if (!strncmp(msg, "DEVPATH=", 8)) {
373 msg += 8;
374 uevent->path = msg;
375 } else if (!strncmp(msg, "SUBSYSTE
490 char msg[UEVENT_MSG_LEN+2]; local
[all...]
/system/core/logwrapper/
H A Dlogwrapper.c30 void fatal(const char *msg) { argument
31 fprintf(stderr, "%s", msg);
32 ALOG(LOG_ERROR, "logwrapper", "%s", msg);
/system/core/fastboot/
H A Dfastboot.h58 void fb_queue_command(const char *cmd, const char *msg);
H A Dengine.c95 const char *msg; member in struct:Action
228 a->msg = mkmsg("erasing '%s'", ptn);
402 a->msg = mkmsg("formatting '%s' partition", partition);
412 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024);
415 a->msg = mkmsg("writing '%s'", ptn);
425 a->msg = mkmsg("sending sparse '%s' (%d KB)", ptn, sz / 1024);
428 a->msg = mkmsg("writing '%s'", ptn);
518 a->msg = mkmsg("checking %s", var);
571 a->msg = "rebooting";
574 void fb_queue_command(const char *cmd, const char *msg) argument
[all...]
/system/core/liblog/
H A Dlogd_write.c133 int __android_log_write(int prio, const char *tag, const char *msg) argument
157 vec[2].iov_base = (void *) msg;
158 vec[2].iov_len = strlen(msg) + 1;
163 int __android_log_buf_write(int bufID, int prio, const char *tag, const char *msg) argument
186 vec[2].iov_base = (void *) msg;
187 vec[2].iov_len = strlen(msg) + 1;
H A Dfake_log_device.c347 int logPrio, const char* tag, const char* msg)
359 TRACE("LOG %d: %s %s", logPrio, tag, msg);
434 const char* end = msg + strlen(msg);
436 const char* p = msg;
440 if (p > msg && *(p-1) != '\n') numLines++;
459 msg = "LOG: write failed, no memory";
469 p = msg;
572 const char* msg = (const char*) vector[2].iov_base; local
589 showLog(state, logPrio, tag, msg);
346 showLog(LogState *state, int logPrio, const char* tag, const char* msg) argument
[all...]
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.cpp60 static void heap_error(const char* msg, const char* function, void* p);
68 static void heap_error(const char* msg, const char* function, void* p) { argument
70 msg, function, p);
/system/vold/
H A DCommandListener.cpp247 char msg[1024]; local
248 snprintf(msg, sizeof(msg), "%d %s", pid, processName);
249 cli->sendMsg(ResponseCode::StorageUsersListResult, msg, false);
518 char msg[255]; local
526 snprintf(msg, sizeof(msg), "%s %u %u", (r ? "ready" : "not-ready"), mirrorPos, maxSize);
527 cli->sendMsg(ResponseCode::XwarpStatusResult, msg, false);
602 char msg[255]; local
603 snprintf(msg, sizeo
[all...]
/system/core/debuggerd/
H A Ddebuggerd.c209 debugger_msg_t msg; local
210 status = TEMP_FAILURE_RETRY(read(fd, &msg, sizeof(msg)));
215 if (status != sizeof(msg)) {
220 out_request->action = msg.action;
221 out_request->tid = msg.tid;
226 if (msg.action == DEBUGGER_ACTION_CRASH) {
237 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) {
/system/core/libcutils/
H A Dmq.c474 struct msghdr msg; local
484 msg.msg_control = control_un.control;
485 msg.msg_controllen = sizeof(control_un.control);
486 cmptr = CMSG_FIRSTHDR(&msg);
494 msg.msg_name = NULL;
495 msg.msg_namelen = 0;
498 msg.msg_iov = iov;
499 msg.msg_iovlen = 1;
501 ssize_t result = sendmsg(peerProxy->fd->fd, &msg, 0);
720 struct msghdr msg; local
[all...]
/system/core/toolbox/
H A Dlsof.c144 char msg[BUF_MAX]; local
145 snprintf(msg, sizeof(msg), "%s (opendir: %s)", info->path, strerror(errno));
148 "", "", "", "", msg);

Completed in 111 milliseconds

123