Home
last modified time | relevance | path

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

12345678910>>...65

/external/protobuf/java/src/test/java/com/google/protobuf/
DMicroTest.java59 SimpleMessageMicro msg = new SimpleMessageMicro(); in testSimpleMessageMicro() local
60 assertFalse(msg.hasD()); in testSimpleMessageMicro()
61 assertEquals(123, msg.getD()); in testSimpleMessageMicro()
62 assertFalse(msg.hasNestedMsg()); in testSimpleMessageMicro()
63 assertEquals(null, msg.getNestedMsg()); in testSimpleMessageMicro()
64 assertFalse(msg.hasDefaultNestedEnum()); in testSimpleMessageMicro()
65 assertEquals(SimpleMessageMicro.BAZ, msg.getDefaultNestedEnum()); in testSimpleMessageMicro()
67 msg.setD(456); in testSimpleMessageMicro()
68 assertTrue(msg.hasD()); in testSimpleMessageMicro()
69 assertEquals(456, msg.getD()); in testSimpleMessageMicro()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/wps/
Dwps_attr_build.c24 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument
37 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key()
38 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key()
39 wpabuf_put_buf(msg, pubkey); in wps_build_public_key()
53 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type() argument
56 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type()
57 wpabuf_put_be16(msg, 1); in wps_build_req_type()
58 wpabuf_put_u8(msg, type); in wps_build_req_type()
63 int wps_build_config_methods(struct wpabuf *msg, u16 methods) in wps_build_config_methods() argument
66 wpabuf_put_be16(msg, ATTR_CONFIG_METHODS); in wps_build_config_methods()
[all …]
Dwps_enrollee.c23 static int wps_build_mac_addr(struct wps_data *wps, struct wpabuf *msg) in wps_build_mac_addr() argument
26 wpabuf_put_be16(msg, ATTR_MAC_ADDR); in wps_build_mac_addr()
27 wpabuf_put_be16(msg, ETH_ALEN); in wps_build_mac_addr()
28 wpabuf_put_data(msg, wps->mac_addr_e, ETH_ALEN); in wps_build_mac_addr()
33 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) in wps_build_wps_state() argument
42 wpabuf_put_be16(msg, ATTR_WPS_STATE); in wps_build_wps_state()
43 wpabuf_put_be16(msg, 1); in wps_build_wps_state()
44 wpabuf_put_u8(msg, state); in wps_build_wps_state()
49 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) in wps_build_e_hash() argument
68 wpabuf_put_be16(msg, ATTR_E_HASH1); in wps_build_e_hash()
[all …]
Dwps_dev_attr.c23 struct wpabuf *msg) in wps_build_manufacturer() argument
27 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer()
35 wpabuf_put_be16(msg, 1); in wps_build_manufacturer()
36 wpabuf_put_u8(msg, '\0'); in wps_build_manufacturer()
38 wpabuf_put_be16(msg, len); in wps_build_manufacturer()
39 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
46 struct wpabuf *msg) in wps_build_model_name() argument
50 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name()
58 wpabuf_put_be16(msg, 1); in wps_build_model_name()
59 wpabuf_put_u8(msg, '\0'); in wps_build_model_name()
[all …]
/external/e2fsprogs/po/
Dat-expand.pl66 my $msg;
71 $msg =~ s/\@a/extended attribute/g;
72 $msg =~ s/\@A/error allocating/g;
73 $msg =~ s/\@b/block/g;
74 $msg =~ s/\@B/bitmap/g;
75 $msg =~ s/\@c/compress/g;
76 $msg =~ s/\@C/conflicts with some other fs block/g;
77 $msg =~ s/\@i/inode/g;
78 $msg =~ s/\@I/illegal/g;
79 $msg =~ s/\@j/journal/g;
[all …]
/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c27 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument
55 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key()
56 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key()
57 wpabuf_put_buf(msg, pubkey); in wps_build_public_key()
71 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type() argument
74 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type()
75 wpabuf_put_be16(msg, 1); in wps_build_req_type()
76 wpabuf_put_u8(msg, type); in wps_build_req_type()
81 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type() argument
84 wpabuf_put_be16(msg, ATTR_RESPONSE_TYPE); in wps_build_resp_type()
[all …]
Dwps_enrollee.c25 static int wps_build_mac_addr(struct wps_data *wps, struct wpabuf *msg) in wps_build_mac_addr() argument
28 wpabuf_put_be16(msg, ATTR_MAC_ADDR); in wps_build_mac_addr()
29 wpabuf_put_be16(msg, ETH_ALEN); in wps_build_mac_addr()
30 wpabuf_put_data(msg, wps->mac_addr_e, ETH_ALEN); in wps_build_mac_addr()
35 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) in wps_build_wps_state() argument
44 wpabuf_put_be16(msg, ATTR_WPS_STATE); in wps_build_wps_state()
45 wpabuf_put_be16(msg, 1); in wps_build_wps_state()
46 wpabuf_put_u8(msg, state); in wps_build_wps_state()
51 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) in wps_build_e_hash() argument
70 wpabuf_put_be16(msg, ATTR_E_HASH1); in wps_build_e_hash()
[all …]
Dwps_dev_attr.c22 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
26 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer()
35 wpabuf_put_be16(msg, 1); in wps_build_manufacturer()
36 wpabuf_put_u8(msg, ' '); in wps_build_manufacturer()
40 wpabuf_put_be16(msg, len); in wps_build_manufacturer()
41 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
46 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
50 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name()
59 wpabuf_put_be16(msg, 1); in wps_build_model_name()
60 wpabuf_put_u8(msg, ' '); in wps_build_model_name()
[all …]
/external/chromium/third_party/libevent/test/
Dregress.gen.c44 struct msg *
47 struct msg *tmp; in msg_new()
48 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new()
75 msg_run_add(struct msg *msg) in msg_run_add() argument
77 if (++msg->run_length >= msg->run_num_allocated) { in msg_run_add()
78 int tobe_allocated = msg->run_num_allocated; in msg_run_add()
81 new_data = (struct run **) realloc(msg->run_data, in msg_run_add()
85 msg->run_data = new_data; in msg_run_add()
86 msg->run_num_allocated = tobe_allocated; in msg_run_add()
88 msg->run_data[msg->run_length - 1] = run_new(); in msg_run_add()
[all …]
Dregress.gen.h12 #define EVTAG_HAS(msg, member) ((msg)->member##_set == 1) argument
14 #define EVTAG_ASSIGN(msg, member, args...) (*(msg)->base->member##_assign)(msg, ## args) argument
15 #define EVTAG_GET(msg, member, args...) (*(msg)->base->member##_get)(msg, ## args) argument
17 #define EVTAG_ASSIGN(msg, member, ...) (*(msg)->base->member##_assign)(msg, ## __VA_ARGS__) argument
18 #define EVTAG_GET(msg, member, ...) (*(msg)->base->member##_get)(msg, ## __VA_ARGS__) argument
20 #define EVTAG_ADD(msg, member) (*(msg)->base->member##_add)(msg) argument
21 #define EVTAG_LEN(msg, member) ((msg)->member##_length) argument
23 struct msg;
38 int (*from_name_assign)(struct msg *, const char *);
39 int (*from_name_get)(struct msg *, char * *);
[all …]
/external/wpa_supplicant_8/src/p2p/
Dp2p_parse.c25 struct p2p_message *msg) in p2p_parse_attribute() argument
38 msg->capability = data; in p2p_parse_attribute()
49 msg->device_id = data; in p2p_parse_attribute()
51 MAC2STR(msg->device_id)); in p2p_parse_attribute()
59 msg->go_intent = data; in p2p_parse_attribute()
69 msg->status = data; in p2p_parse_attribute()
83 msg->listen_channel = data; in p2p_parse_attribute()
100 msg->operating_channel = data; in p2p_parse_attribute()
112 msg->channel_list = data; in p2p_parse_attribute()
113 msg->channel_list_len = len; in p2p_parse_attribute()
[all …]
/external/ipsec-tools/src/racoon/
Dprivsep.c894 struct privsep_com_msg *msg; local
900 len = sizeof(*msg) + strlen(path) + 1;
901 if ((msg = racoon_malloc(len)) == NULL) {
906 bzero(msg, len);
907 msg->hdr.ac_cmd = PRIVSEP_EAY_GET_PKCS1PRIVKEY;
908 msg->hdr.ac_len = len;
909 msg->bufs.buflen[0] = len - sizeof(*msg);
910 memcpy(msg + 1, path, msg->bufs.buflen[0]);
912 if (privsep_send(privsep_sock[1], msg, len) != 0)
915 if (privsep_recv(privsep_sock[1], &msg, &len) != 0)
[all …]
/external/wpa_supplicant/
Dradius.c25 struct radius_msg *msg; in radius_msg_new() local
27 msg = os_malloc(sizeof(*msg)); in radius_msg_new()
28 if (msg == NULL) in radius_msg_new()
31 if (radius_msg_initialize(msg, RADIUS_DEFAULT_MSG_SIZE)) { in radius_msg_new()
32 os_free(msg); in radius_msg_new()
36 radius_msg_set_hdr(msg, code, identifier); in radius_msg_new()
38 return msg; in radius_msg_new()
42 int radius_msg_initialize(struct radius_msg *msg, size_t init_len) in radius_msg_initialize() argument
44 if (msg == NULL || init_len < sizeof(struct radius_hdr)) in radius_msg_initialize()
47 os_memset(msg, 0, sizeof(*msg)); in radius_msg_initialize()
[all …]
Deap_sim_common.c206 void eap_sim_add_mac(const u8 *k_aut, u8 *msg, size_t msg_len, u8 *mac, in eap_sim_add_mac() argument
213 addr[0] = msg; in eap_sim_add_mac()
220 wpa_hexdump(MSG_MSGDUMP, "EAP-SIM: Add MAC - msg", msg, msg_len); in eap_sim_add_mac()
610 struct eap_sim_msg *msg; in eap_sim_msg_init() local
614 msg = os_zalloc(sizeof(*msg)); in eap_sim_msg_init()
615 if (msg == NULL) in eap_sim_msg_init()
618 msg->buf = os_zalloc(EAP_SIM_INIT_LEN); in eap_sim_msg_init()
619 if (msg->buf == NULL) { in eap_sim_msg_init()
620 os_free(msg); in eap_sim_msg_init()
623 msg->buf_len = EAP_SIM_INIT_LEN; in eap_sim_msg_init()
[all …]
/external/bluetooth/bluez/src/
Derror.c34 DBusMessage *btd_error_invalid_args(DBusMessage *msg) in btd_error_invalid_args() argument
36 return g_dbus_create_error(msg, ERROR_INTERFACE ".InvalidArguments", in btd_error_invalid_args()
40 DBusMessage *btd_error_busy(DBusMessage *msg) in btd_error_busy() argument
42 return g_dbus_create_error(msg, ERROR_INTERFACE ".InProgress", in btd_error_busy()
46 DBusMessage *btd_error_already_exists(DBusMessage *msg) in btd_error_already_exists() argument
48 return g_dbus_create_error(msg, ERROR_INTERFACE ".AlreadyExists", in btd_error_already_exists()
52 DBusMessage *btd_error_not_supported(DBusMessage *msg) in btd_error_not_supported() argument
54 return g_dbus_create_error(msg, ERROR_INTERFACE ".NotSupported", in btd_error_not_supported()
58 DBusMessage *btd_error_not_connected(DBusMessage *msg) in btd_error_not_connected() argument
60 return g_dbus_create_error(msg, ERROR_INTERFACE ".NotConnected", in btd_error_not_connected()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/radius/
Dradius.c24 radius_get_attr_hdr(struct radius_msg *msg, int idx) in radius_get_attr_hdr() argument
26 return (struct radius_attr_hdr *) (msg->buf + msg->attr_pos[idx]); in radius_get_attr_hdr()
32 struct radius_msg *msg; in radius_msg_new() local
34 msg = os_malloc(sizeof(*msg)); in radius_msg_new()
35 if (msg == NULL) in radius_msg_new()
38 if (radius_msg_initialize(msg, RADIUS_DEFAULT_MSG_SIZE)) { in radius_msg_new()
39 os_free(msg); in radius_msg_new()
43 radius_msg_set_hdr(msg, code, identifier); in radius_msg_new()
45 return msg; in radius_msg_new()
49 int radius_msg_initialize(struct radius_msg *msg, size_t init_len) in radius_msg_initialize() argument
[all …]
/external/chromium/net/tools/dump_cache/
Dupgrade.cc73 Message msg; member
122 bool SendMsg(const Message& msg);
164 bool BaseSM::SendMsg(const Message& msg) { in SendMsg() argument
170 output_->msg = msg; in SendMsg()
172 if (!WriteFile(channel_, output_, sizeof(msg) + msg.buffer_bytes, &written, in SendMsg()
358 Message msg; in SendGetPrevEntry() local
359 msg.command = GET_PREV_ENTRY; in SendGetPrevEntry()
360 msg.long_arg1 = remote_entry_; in SendGetPrevEntry()
361 SendMsg(msg); in SendGetPrevEntry()
367 DCHECK(input_->msg.command == GET_PREV_ENTRY); in DoGetEntry()
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius.c58 struct radius_hdr * radius_msg_get_hdr(struct radius_msg *msg) in radius_msg_get_hdr() argument
60 return msg->hdr; in radius_msg_get_hdr()
64 struct wpabuf * radius_msg_get_buf(struct radius_msg *msg) in radius_msg_get_buf() argument
66 return msg->buf; in radius_msg_get_buf()
71 radius_get_attr_hdr(struct radius_msg *msg, int idx) in radius_get_attr_hdr() argument
74 (wpabuf_mhead_u8(msg->buf) + msg->attr_pos[idx]); in radius_get_attr_hdr()
78 static void radius_msg_set_hdr(struct radius_msg *msg, u8 code, u8 identifier) in radius_msg_set_hdr() argument
80 msg->hdr->code = code; in radius_msg_set_hdr()
81 msg->hdr->identifier = identifier; in radius_msg_set_hdr()
85 static int radius_msg_initialize(struct radius_msg *msg) in radius_msg_initialize() argument
[all …]
/external/v8/src/
Dlog.cc371 LogMessageBuilder msg(this); in ProfilerBeginEvent() local
372 msg.Append("profiler,\"begin\",%d\n", kSamplingIntervalMs); in ProfilerBeginEvent()
373 msg.WriteToLogFile(); in ProfilerBeginEvent()
389 LogMessageBuilder msg(this); in UncheckedStringEvent() local
390 msg.Append("%s,\"%s\"\n", name, value); in UncheckedStringEvent()
391 msg.WriteToLogFile(); in UncheckedStringEvent()
413 LogMessageBuilder msg(this); in UncheckedIntEvent() local
414 msg.Append("%s,%d\n", name, value); in UncheckedIntEvent()
415 msg.WriteToLogFile(); in UncheckedIntEvent()
423 LogMessageBuilder msg(this); in UncheckedIntPtrTEvent() local
[all …]
/external/bluetooth/hcidump/parser/
Dcmtp.c44 struct frame msg[16]; member
50 struct frame *msg; in add_segment() local
72 msg = &table[pos].msg[bid]; in add_segment()
74 data = malloc(msg->data_len + len); in add_segment()
78 if (msg->data_len > 0) in add_segment()
79 memcpy(data, msg->data, msg->data_len); in add_segment()
81 memcpy(data + msg->data_len, frm->ptr, len); in add_segment()
82 free(msg->data); in add_segment()
83 msg->data = data; in add_segment()
84 msg->data_len += len; in add_segment()
[all …]
/external/qemu/android/
Dcore-init-utils.c37 android_core_send_init_response(const char* msg) in android_core_send_init_response() argument
56 socket_send(fd, msg, strlen(msg) + 1); in android_core_send_init_response()
66 char msg[32]; in android_core_init_completed() local
67 snprintf(msg, sizeof(msg), "ok:port=%d", android_base_port); in android_core_init_completed()
68 android_core_send_init_response(msg); in android_core_init_completed()
75 char msg[4096]; in android_core_init_failure() local
78 snprintf(msg, sizeof(msg), "ko:"); in android_core_init_failure()
81 vbufprint(msg + strlen(msg), msg + sizeof(msg), fmt, args); in android_core_init_failure()
86 android_core_send_init_response(msg); in android_core_init_failure()
87 fprintf(stderr, "%s\n", msg); in android_core_init_failure()
[all …]
/external/bluetooth/bluez/test/
Dagent.c51 DBusMessage *msg, void *data) in agent_filter() argument
55 if (!dbus_message_is_signal(msg, DBUS_INTERFACE_DBUS, in agent_filter()
59 if (!dbus_message_get_args(msg, NULL, in agent_filter()
77 DBusMessage *msg, void *data) in request_pincode_message() argument
85 if (!dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path, in request_pincode_message()
92 reply = dbus_message_new_error(msg, "org.bluez.Error.Rejected", ""); in request_pincode_message()
96 reply = dbus_message_new_method_return(msg); in request_pincode_message()
123 DBusMessage *msg, void *data) in request_passkey_message() argument
132 if (!dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path, in request_passkey_message()
139 reply = dbus_message_new_error(msg, "org.bluez.Error.Rejected", ""); in request_passkey_message()
[all …]
/external/svox/pico/lib/
Dpicodbg.h228 #define PICODBG_LOG(level, msg) \ argument
229 picodbg_log(level, 1, __FILE__, __LINE__, __FUNCTION__, picodbg_varargs msg)
231 #define PICODBG_ERROR(msg) \ argument
232 PICODBG_LOG(PICODBG_LOG_LEVEL_ERROR, msg)
234 #define PICODBG_WARN(msg) \ argument
235 PICODBG_LOG(PICODBG_LOG_LEVEL_WARN, msg)
237 #define PICODBG_INFO(msg) \ argument
238 PICODBG_LOG(PICODBG_LOG_LEVEL_INFO, msg)
240 #define PICODBG_DEBUG(msg) \ argument
241 PICODBG_LOG(PICODBG_LOG_LEVEL_DEBUG, msg)
[all …]
/external/chromium/testing/gmock/scripts/
Dgmock_doctor.py144 def _GenericDiagnoser(short_name, long_name, diagnoses, msg): argument
160 if re.search(regex, msg):
162 for m in _FindAllMatches(regex, msg):
166 def _NeedToReturnReferenceDiagnoser(msg): argument
184 msg)
187 def _NeedToReturnSomethingDiagnoser(msg): argument
211 msg)
214 def _NeedToReturnNothingDiagnoser(msg): argument
248 msg)
251 def _IncompleteByReferenceArgumentDiagnoser(msg): argument
[all …]
/external/wpa_supplicant_8/src/ap/
Daccounting.c43 struct radius_msg *msg; in accounting_msg() local
49 msg = radius_msg_new(RADIUS_CODE_ACCOUNTING_REQUEST, in accounting_msg()
51 if (msg == NULL) { in accounting_msg()
57 radius_msg_make_authenticator(msg, (u8 *) sta, sizeof(*sta)); in accounting_msg()
61 if (!radius_msg_add_attr(msg, RADIUS_ATTR_ACCT_SESSION_ID, in accounting_msg()
67 radius_msg_make_authenticator(msg, (u8 *) hapd, sizeof(*hapd)); in accounting_msg()
70 if (!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_STATUS_TYPE, in accounting_msg()
76 if (!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_AUTHENTIC, in accounting_msg()
93 if (!radius_msg_add_attr(msg, RADIUS_ATTR_USER_NAME, val, in accounting_msg()
101 !radius_msg_add_attr(msg, RADIUS_ATTR_NAS_IP_ADDRESS, in accounting_msg()
[all …]

12345678910>>...65