Home
last modified time | relevance | path

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

12345678910>>...163

/external/kernel-headers/original/uapi/linux/
Dcec-funcs.h43 static inline void cec_msg_active_source(struct cec_msg *msg, __u16 phys_addr) in cec_msg_active_source() argument
45 msg->len = 4; in cec_msg_active_source()
46 msg->msg[0] |= 0xf; /* broadcast */ in cec_msg_active_source()
47 msg->msg[1] = CEC_MSG_ACTIVE_SOURCE; in cec_msg_active_source()
48 msg->msg[2] = phys_addr >> 8; in cec_msg_active_source()
49 msg->msg[3] = phys_addr & 0xff; in cec_msg_active_source()
52 static inline void cec_ops_active_source(const struct cec_msg *msg, in cec_ops_active_source() argument
55 *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; in cec_ops_active_source()
58 static inline void cec_msg_image_view_on(struct cec_msg *msg) in cec_msg_image_view_on() argument
60 msg->len = 2; in cec_msg_image_view_on()
[all …]
/external/protobuf/objectivec/Tests/
DGPBMessageTests+Runtime.m311 //% Message2 *msg = [[Message2 alloc] init];
312 //% XCTAssertFalse(msg.hasOptional##FIELD);
313 //% XCTAssertFalse(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD));
314 //% msg.optional##FIELD = NON_ZERO_VALUE;
315 //% XCTAssertTrue(msg.hasOptional##FIELD);
316 //% XCTAssertTrue(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD));
317 //% [msg release];
320 //% Message2 *msg = [[Message2 alloc] init];
321 //% XCTAssertFalse(msg.hasOptional##FIELD);
322 //% XCTAssertFalse(GPBMessageHasFieldNumberSet(msg, Message2_FieldNumber_Optional##FIELD));
[all …]
DGPBSwiftTests.swift39 let msg = Message2() in testProto2Basics() variable
43 msg.optionalInt32 = 100 in testProto2Basics()
44 msg.optionalString = "abc" in testProto2Basics()
45 msg.optionalEnum = .Bar in testProto2Basics()
47 msg.optionalMessage = msg2 in testProto2Basics()
49 msg.optionalGroup = msg3 in testProto2Basics()
50 msg.repeatedInt32Array.addValue(300) in testProto2Basics()
51 msg.repeatedInt32Array.addValue(301) in testProto2Basics()
52 msg.repeatedStringArray.addObject("mno") in testProto2Basics()
53 msg.repeatedStringArray.addObject("pqr") in testProto2Basics()
[all …]
/external/syslinux/core/lwip/src/api/
Dnetifapi.c45 do_netifapi_netif_add(struct netifapi_msg_msg *msg) in do_netifapi_netif_add() argument
47 if (!netif_add( msg->netif, in do_netifapi_netif_add()
48 msg->msg.add.ipaddr, in do_netifapi_netif_add()
49 msg->msg.add.netmask, in do_netifapi_netif_add()
50 msg->msg.add.gw, in do_netifapi_netif_add()
51 msg->msg.add.state, in do_netifapi_netif_add()
52 msg->msg.add.init, in do_netifapi_netif_add()
53 msg->msg.add.input)) { in do_netifapi_netif_add()
54 msg->err = ERR_IF; in do_netifapi_netif_add()
56 msg->err = ERR_OK; in do_netifapi_netif_add()
[all …]
Dtcpip.c76 struct tcpip_msg *msg; in tcpip_thread() local
88 sys_timeouts_mbox_fetch(&mbox, (void **)&msg); in tcpip_thread()
90 switch (msg->type) { in tcpip_thread()
93 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API message %p\n", (void *)msg)); in tcpip_thread()
94 msg->msg.apimsg->function(&(msg->msg.apimsg->msg)); in tcpip_thread()
100 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg)); in tcpip_thread()
102 if (msg->msg.inp.netif->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { in tcpip_thread()
103 ethernet_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread()
107 ip_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread()
109 memp_free(MEMP_TCPIP_MSG_INPKT, msg); in tcpip_thread()
[all …]
Dapi_msg.c482 pcb_new(struct api_msg_msg *msg) argument
484 LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL);
487 switch(NETCONNTYPE_GROUP(msg->conn->type)) {
490 msg->conn->pcb.raw = raw_new(msg->msg.n.proto);
491 if(msg->conn->pcb.raw == NULL) {
492 msg->err = ERR_MEM;
495 raw_recv(msg->conn->pcb.raw, recv_raw, msg->conn);
500 msg->conn->pcb.udp = udp_new();
501 if(msg->conn->pcb.udp == NULL) {
502 msg->err = ERR_MEM;
[all …]
Dapi_lib.c71 struct api_msg msg; in netconn_new_with_proto_and_callback() local
75 msg.function = do_newconn; in netconn_new_with_proto_and_callback()
76 msg.msg.msg.n.proto = proto; in netconn_new_with_proto_and_callback()
77 msg.msg.conn = conn; in netconn_new_with_proto_and_callback()
78 if (TCPIP_APIMSG(&msg) != ERR_OK) { in netconn_new_with_proto_and_callback()
105 struct api_msg msg; in netconn_delete() local
112 msg.function = do_delconn; in netconn_delete()
113 msg.msg.conn = conn; in netconn_delete()
114 tcpip_apimsg(&msg); in netconn_delete()
137 struct api_msg msg; in netconn_getaddr() local
[all …]
/external/protobuf/js/
Dproto3_test.js73 var msg = new proto.jspb.test.TestProto3();
75 assertEquals(msg.getOptionalInt32(), 0);
76 assertEquals(msg.getOptionalInt64(), 0);
77 assertEquals(msg.getOptionalUint32(), 0);
78 assertEquals(msg.getOptionalUint64(), 0);
79 assertEquals(msg.getOptionalSint32(), 0);
80 assertEquals(msg.getOptionalSint64(), 0);
81 assertEquals(msg.getOptionalFixed32(), 0);
82 assertEquals(msg.getOptionalFixed64(), 0);
83 assertEquals(msg.getOptionalSfixed32(), 0);
[all …]
/external/libnl/lib/netfilter/
Dlog_msg_obj.c40 struct nfnl_log_msg *msg = (struct nfnl_log_msg *) c; in log_msg_free_data() local
42 if (msg == NULL) in log_msg_free_data()
45 free(msg->log_msg_payload); in log_msg_free_data()
46 free(msg->log_msg_prefix); in log_msg_free_data()
75 struct nfnl_log_msg *msg = (struct nfnl_log_msg *) a; in log_msg_dump() local
83 if (msg->ce_mask & LOG_MSG_ATTR_PREFIX) in log_msg_dump()
84 nl_dump(p, "%s", msg->log_msg_prefix); in log_msg_dump()
86 if (msg->ce_mask & LOG_MSG_ATTR_INDEV) { in log_msg_dump()
90 msg->log_msg_indev, in log_msg_dump()
93 nl_dump(p, "IN=%d ", msg->log_msg_indev); in log_msg_dump()
[all …]
Dqueue_msg_obj.c37 struct nfnl_queue_msg *msg = (struct nfnl_queue_msg *) c; in nfnl_queue_msg_free_data() local
39 if (msg == NULL) in nfnl_queue_msg_free_data()
42 free(msg->queue_msg_payload); in nfnl_queue_msg_free_data()
65 struct nfnl_queue_msg *msg = (struct nfnl_queue_msg *) a; in nfnl_queue_msg_dump() local
73 if (msg->ce_mask & QUEUE_MSG_ATTR_GROUP) in nfnl_queue_msg_dump()
74 nl_dump(p, "GROUP=%u ", msg->queue_msg_group); in nfnl_queue_msg_dump()
76 if (msg->ce_mask & QUEUE_MSG_ATTR_INDEV) { in nfnl_queue_msg_dump()
80 msg->queue_msg_indev, in nfnl_queue_msg_dump()
83 nl_dump(p, "IN=%d ", msg->queue_msg_indev); in nfnl_queue_msg_dump()
86 if (msg->ce_mask & QUEUE_MSG_ATTR_PHYSINDEV) { in nfnl_queue_msg_dump()
[all …]
/external/libnl/lib/idiag/
Didiag_msg_obj.c31 void idiagnl_msg_get(struct idiagnl_msg *msg) in idiagnl_msg_get() argument
33 nl_object_get((struct nl_object *) msg); in idiagnl_msg_get()
36 void idiagnl_msg_put(struct idiagnl_msg *msg) in idiagnl_msg_put() argument
38 nl_object_put((struct nl_object *) msg); in idiagnl_msg_put()
46 struct idiagnl_msg *msg = NULL; in idiagnl_msg_parser() local
49 if ((err = idiagnl_msg_parse(nlh, &msg)) < 0) in idiagnl_msg_parser()
52 err = pp->pp_cb((struct nl_object *) msg, pp); in idiagnl_msg_parser()
53 idiagnl_msg_put(msg); in idiagnl_msg_parser()
134 uint8_t idiagnl_msg_get_family(const struct idiagnl_msg *msg) in idiagnl_msg_get_family() argument
136 return msg->idiag_family; in idiagnl_msg_get_family()
[all …]
/external/protobuf/js/binary/
Dproto_test.js102 function fillAllFields(msg) { argument
103 msg.setOptionalInt32(-42);
106 msg.setOptionalInt64(-0x7fffffff00000000);
107 msg.setOptionalUint32(0x80000000);
108 msg.setOptionalUint64(0xf000000000000000);
109 msg.setOptionalSint32(-100);
110 msg.setOptionalSint64(-0x8000000000000000);
111 msg.setOptionalFixed32(1234);
112 msg.setOptionalFixed64(0x1234567800000000);
113 msg.setOptionalSfixed32(-1234);
[all …]
/external/libevent/test/
Dregress.gen.c41 struct msg *
47 struct msg *
50 struct msg *tmp; in msg_new_with_arg()
51 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new_with_arg()
78 msg_run_expand_to_hold_more(struct msg *msg) in msg_run_expand_to_hold_more() argument
80 int tobe_allocated = msg->run_num_allocated; in msg_run_expand_to_hold_more()
83 new_data = (struct run**) realloc(msg->run_data, in msg_run_expand_to_hold_more()
87 msg->run_data = new_data; in msg_run_expand_to_hold_more()
88 msg->run_num_allocated = tobe_allocated; in msg_run_expand_to_hold_more()
92 msg_run_add(struct msg *msg) in msg_run_add() argument
[all …]
/external/wpa_supplicant_8/src/p2p/
Dp2p_parse.c37 struct p2p_message *msg) in p2p_parse_attribute() argument
50 msg->capability = data; in p2p_parse_attribute()
61 msg->device_id = data; in p2p_parse_attribute()
63 MAC2STR(msg->device_id)); in p2p_parse_attribute()
71 msg->go_intent = data; in p2p_parse_attribute()
81 msg->status = data; in p2p_parse_attribute()
95 msg->listen_channel = data; in p2p_parse_attribute()
112 msg->operating_channel = data; in p2p_parse_attribute()
124 msg->channel_list = data; in p2p_parse_attribute()
125 msg->channel_list_len = len; in p2p_parse_attribute()
[all …]
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py66 msg = email.message_from_file(fp)
69 return msg
77 msg = self._msgobj('msg_20.txt')
78 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org'])
79 eq(msg.get_all('xx', 'n/a'), 'n/a')
83 msg = Message()
84 eq(msg.get_charset(), None)
86 msg.set_charset(charset)
87 eq(msg['mime-version'], '1.0')
88 eq(msg.get_content_type(), 'text/plain')
[all …]
Dtest_email.py71 msg = email.message_from_file(fp)
74 return msg
82 msg = self._msgobj('msg_20.txt')
83 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org'])
84 eq(msg.get_all('xx', 'n/a'), 'n/a')
88 msg = Message()
89 eq(msg.get_charset(), None)
91 msg.set_charset(charset)
92 eq(msg['mime-version'], '1.0')
93 eq(msg.get_content_type(), 'text/plain')
[all …]
/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument
80 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key()
81 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key()
82 wpabuf_put_buf(msg, pubkey); in wps_build_public_key()
96 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type() argument
99 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type()
100 wpabuf_put_be16(msg, 1); in wps_build_req_type()
101 wpabuf_put_u8(msg, type); in wps_build_req_type()
106 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type() argument
109 wpabuf_put_be16(msg, ATTR_RESPONSE_TYPE); in wps_build_resp_type()
[all …]
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py59 msg = self._msgobj('msg_20.txt')
60 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org'])
61 eq(msg.get_all('xx', 'n/a'), 'n/a')
65 msg = Message()
66 eq(msg.get_charset(), None)
68 msg.set_charset(charset)
69 eq(msg['mime-version'], '1.0')
70 eq(msg.get_content_type(), 'text/plain')
71 eq(msg['content-type'], 'text/plain; charset="iso-8859-1"')
72 eq(msg.get_param('charset'), 'iso-8859-1')
[all …]
/external/e2fsprogs/po/
Dat-expand.pl70 my $msg;
75 $msg =~ s/\@a/extended attribute/g;
76 $msg =~ s/\@A/error allocating/g;
77 $msg =~ s/\@b/block/g;
78 $msg =~ s/\@B/bitmap/g;
79 $msg =~ s/\@c/compress/g;
80 $msg =~ s/\@C/conflicts with some other fs block/g;
81 $msg =~ s/\@i/inode/g;
82 $msg =~ s/\@I/illegal/g;
83 $msg =~ s/\@j/journal/g;
[all …]
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java70 SimpleMessageNano msg = new SimpleMessageNano(); in testSimpleMessageNano() local
71 assertEquals(123, msg.d); in testSimpleMessageNano()
72 assertEquals(null, msg.nestedMsg); in testSimpleMessageNano()
73 assertEquals(SimpleMessageNano.BAZ, msg.defaultNestedEnum); in testSimpleMessageNano()
75 msg.d = 456; in testSimpleMessageNano()
76 assertEquals(456, msg.d); in testSimpleMessageNano()
81 msg.nestedMsg = nestedMsg; in testSimpleMessageNano()
82 assertEquals(2, msg.nestedMsg.bb); in testSimpleMessageNano()
84 msg.defaultNestedEnum = SimpleMessageNano.BAR; in testSimpleMessageNano()
85 assertEquals(SimpleMessageNano.BAR, msg.defaultNestedEnum); in testSimpleMessageNano()
[all …]
/external/strace/tests-m32/
Dnlattr.c47 static const struct msg { in test_nlattr() struct
52 .nlmsg_len = sizeof(struct msg), in test_nlattr()
62 struct msg *msg; in test_nlattr() local
68 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + 2; in test_nlattr()
69 msg = tail_memdup(&c_msg, msg_len); in test_nlattr()
70 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
71 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr()
73 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr()
83 msg = tail_memdup(&c_msg, msg_len - 1); in test_nlattr()
[all …]
/external/strace/tests/
Dnlattr.c47 static const struct msg { in test_nlattr() struct
52 .nlmsg_len = sizeof(struct msg), in test_nlattr()
62 struct msg *msg; in test_nlattr() local
68 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + 2; in test_nlattr()
69 msg = tail_memdup(&c_msg, msg_len); in test_nlattr()
70 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
71 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr()
73 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr()
83 msg = tail_memdup(&c_msg, msg_len - 1); in test_nlattr()
[all …]
/external/strace/tests-mx32/
Dnlattr.c47 static const struct msg { in test_nlattr() struct
52 .nlmsg_len = sizeof(struct msg), in test_nlattr()
62 struct msg *msg; in test_nlattr() local
68 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + 2; in test_nlattr()
69 msg = tail_memdup(&c_msg, msg_len); in test_nlattr()
70 memcpy(&msg->nlh.nlmsg_len, &msg_len, sizeof(msg_len)); in test_nlattr()
71 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr()
73 rc = sendto(fd, msg, msg_len, MSG_DONTWAIT, NULL, 0); in test_nlattr()
82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr()
83 msg = tail_memdup(&c_msg, msg_len - 1); in test_nlattr()
[all …]
/external/ipsec-tools/src/racoon/
Dprivsep.c707 struct privsep_com_msg *msg; local
713 len = sizeof(*msg) + strlen(path) + 1;
714 if ((msg = racoon_malloc(len)) == NULL) {
719 bzero(msg, len);
720 msg->hdr.ac_cmd = PRIVSEP_EAY_GET_PKCS1PRIVKEY;
721 msg->hdr.ac_len = len;
722 msg->bufs.buflen[0] = len - sizeof(*msg);
723 memcpy(msg + 1, path, msg->bufs.buflen[0]);
725 if (privsep_send(privsep_sock[1], msg, len) != 0)
728 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
[all …]
/external/adhd/cras/src/server/
Dcras_rclient.c37 const struct cras_connect_message *msg, in handle_client_stream_connect() argument
47 unpack_cras_audio_format(&remote_fmt, &msg->format); in handle_client_stream_connect()
59 stream_config.stream_id = msg->stream_id; in handle_client_stream_connect()
60 stream_config.stream_type = msg->stream_type; in handle_client_stream_connect()
61 stream_config.direction = msg->direction; in handle_client_stream_connect()
62 stream_config.dev_idx = msg->dev_idx; in handle_client_stream_connect()
63 stream_config.flags = msg->flags; in handle_client_stream_connect()
65 stream_config.buffer_frames = msg->buffer_frames; in handle_client_stream_connect()
66 stream_config.cb_threshold = msg->cb_threshold; in handle_client_stream_connect()
77 syslog(LOG_DEBUG, "Send connected for stream %x\n", msg->stream_id); in handle_client_stream_connect()
[all …]

12345678910>>...163