/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | MicroTest.java | 66 SimpleMessageMicro msg = new SimpleMessageMicro(); in testSimpleMessageMicro() local 67 assertFalse(msg.hasD()); in testSimpleMessageMicro() 68 assertEquals(123, msg.getD()); in testSimpleMessageMicro() 69 assertFalse(msg.hasNestedMsg()); in testSimpleMessageMicro() 70 assertEquals(null, msg.getNestedMsg()); in testSimpleMessageMicro() 71 assertFalse(msg.hasDefaultNestedEnum()); in testSimpleMessageMicro() 72 assertEquals(SimpleMessageMicro.BAZ, msg.getDefaultNestedEnum()); in testSimpleMessageMicro() 74 msg.setD(456); in testSimpleMessageMicro() 75 assertTrue(msg.hasD()); in testSimpleMessageMicro() 76 assertEquals(456, msg.getD()); in testSimpleMessageMicro() [all …]
|
D | NanoTest.java | 84 SimpleMessageNano msg = new SimpleMessageNano(); in testSimpleMessageNano() local 85 assertEquals(123, msg.d); in testSimpleMessageNano() 86 assertEquals(null, msg.nestedMsg); in testSimpleMessageNano() 87 assertEquals(SimpleMessageNano.BAZ, msg.defaultNestedEnum); in testSimpleMessageNano() 89 msg.d = 456; in testSimpleMessageNano() 90 assertEquals(456, msg.d); in testSimpleMessageNano() 95 msg.nestedMsg = nestedMsg; in testSimpleMessageNano() 96 assertEquals(2, msg.nestedMsg.bb); in testSimpleMessageNano() 98 msg.defaultNestedEnum = SimpleMessageNano.BAR; in testSimpleMessageNano() 99 assertEquals(SimpleMessageNano.BAR, msg.defaultNestedEnum); in testSimpleMessageNano() [all …]
|
/external/libnl/lib/netfilter/ |
D | log_msg_obj.c | 40 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 …]
|
D | queue_msg_obj.c | 37 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 …]
|
D | log.c | 37 struct nl_msg *msg; in build_log_cmd_request() local 40 msg = nfnlmsg_alloc_simple(NFNL_SUBSYS_ULOG, NFULNL_MSG_CONFIG, 0, in build_log_cmd_request() 42 if (msg == NULL) in build_log_cmd_request() 46 if (nla_put(msg, NFULA_CFG_CMD, sizeof(cmd), &cmd) < 0) in build_log_cmd_request() 49 *result = msg; in build_log_cmd_request() 53 nlmsg_free(msg); in build_log_cmd_request() 57 static int send_log_request(struct nl_sock *sk, struct nl_msg *msg) in send_log_request() argument 61 err = nl_send_auto_complete(sk, msg); in send_log_request() 62 nlmsg_free(msg); in send_log_request() 76 struct nl_msg *msg; in nfnl_log_pf_bind() local [all …]
|
D | queue.c | 37 static int send_queue_request(struct nl_sock *sk, struct nl_msg *msg) in send_queue_request() argument 41 err = nl_send_auto_complete(sk, msg); in send_queue_request() 42 nlmsg_free(msg); in send_queue_request() 57 struct nl_msg *msg; in build_queue_cmd_request() local 60 msg = nfnlmsg_alloc_simple(NFNL_SUBSYS_QUEUE, NFQNL_MSG_CONFIG, 0, in build_queue_cmd_request() 62 if (msg == NULL) in build_queue_cmd_request() 68 if (nla_put(msg, NFQA_CFG_CMD, sizeof(cmd), &cmd) < 0) in build_queue_cmd_request() 71 *result = msg; in build_queue_cmd_request() 75 nlmsg_free(msg); in build_queue_cmd_request() 86 struct nl_msg *msg; in nfnl_queue_pf_bind() local [all …]
|
/external/e2fsprogs/po/ |
D | at-expand.pl | 66 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/p2p/ |
D | p2p_parse.c | 19 struct p2p_message *msg) in p2p_parse_attribute() argument 32 msg->capability = data; in p2p_parse_attribute() 43 msg->device_id = data; in p2p_parse_attribute() 45 MAC2STR(msg->device_id)); in p2p_parse_attribute() 53 msg->go_intent = data; in p2p_parse_attribute() 63 msg->status = data; in p2p_parse_attribute() 77 msg->listen_channel = data; in p2p_parse_attribute() 94 msg->operating_channel = data; in p2p_parse_attribute() 106 msg->channel_list = data; in p2p_parse_attribute() 107 msg->channel_list_len = len; in p2p_parse_attribute() [all …]
|
D | p2p_pd.c | 406 struct p2p_message msg; in p2p_process_prov_disc_req() local 422 if (p2p_parse(data, len, &msg)) in p2p_process_prov_disc_req() 427 MAC2STR(sa), msg.wps_config_methods, rx_freq); in p2p_process_prov_disc_req() 439 } else if (msg.wfd_subelems) { in p2p_process_prov_disc_req() 441 dev->info.wfd_subelems = wpabuf_dup(msg.wfd_subelems); in p2p_process_prov_disc_req() 444 if (!(msg.wps_config_methods & in p2p_process_prov_disc_req() 452 if (!msg.adv_id && msg.group_id) { in p2p_process_prov_disc_req() 456 msg.group_id, in p2p_process_prov_disc_req() 457 msg.group_id_len)) in p2p_process_prov_disc_req() 475 msg.persistent_dev, in p2p_process_prov_disc_req() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 21 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 …]
|
D | wps_dev_attr.c | 16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument 20 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer() 29 wpabuf_put_be16(msg, 1); in wps_build_manufacturer() 30 wpabuf_put_u8(msg, ' '); in wps_build_manufacturer() 34 wpabuf_put_be16(msg, len); in wps_build_manufacturer() 35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer() 40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument 44 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name() 53 wpabuf_put_be16(msg, 1); in wps_build_model_name() 54 wpabuf_put_u8(msg, ' '); in wps_build_model_name() [all …]
|
D | wps_enrollee.c | 19 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) in wps_build_wps_state() argument 28 wpabuf_put_be16(msg, ATTR_WPS_STATE); in wps_build_wps_state() 29 wpabuf_put_be16(msg, 1); in wps_build_wps_state() 30 wpabuf_put_u8(msg, state); in wps_build_wps_state() 35 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) in wps_build_e_hash() argument 54 wpabuf_put_be16(msg, ATTR_E_HASH1); in wps_build_e_hash() 55 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash() 56 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash() 70 wpabuf_put_be16(msg, ATTR_E_HASH2); in wps_build_e_hash() 71 wpabuf_put_be16(msg, SHA256_MAC_LEN); in wps_build_e_hash() [all …]
|
D | wps_common.c | 271 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, in wps_fail_event() argument 280 data.fail.msg = msg; in wps_fail_event() 436 struct wpabuf msg; in wps_oob_use_cred() local 444 wpabuf_set(&msg, attr->cred[i], attr->cred_len[i]); in wps_oob_use_cred() 445 if (wps_parse_msg(&msg, &cattr) < 0 || in wps_oob_use_cred() 576 struct wpabuf *msg; in wps_build_wsc_ack() local 580 msg = wpabuf_alloc(1000); in wps_build_wsc_ack() 581 if (msg == NULL) in wps_build_wsc_ack() 584 if (wps_build_version(msg) || in wps_build_wsc_ack() 585 wps_build_msg_type(msg, WPS_WSC_ACK) || in wps_build_wsc_ack() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | privsep.c | 707 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/wpa_supplicant_8/src/radius/ |
D | radius.c | 52 struct radius_hdr * radius_msg_get_hdr(struct radius_msg *msg) in radius_msg_get_hdr() argument 54 return msg->hdr; in radius_msg_get_hdr() 58 struct wpabuf * radius_msg_get_buf(struct radius_msg *msg) in radius_msg_get_buf() argument 60 return msg->buf; in radius_msg_get_buf() 65 radius_get_attr_hdr(struct radius_msg *msg, int idx) in radius_get_attr_hdr() argument 68 (wpabuf_mhead_u8(msg->buf) + msg->attr_pos[idx]); in radius_get_attr_hdr() 72 static void radius_msg_set_hdr(struct radius_msg *msg, u8 code, u8 identifier) in radius_msg_set_hdr() argument 74 msg->hdr->code = code; in radius_msg_set_hdr() 75 msg->hdr->identifier = identifier; in radius_msg_set_hdr() 79 static int radius_msg_initialize(struct radius_msg *msg) in radius_msg_initialize() argument [all …]
|
/external/openssh/ |
D | sftp-client.c | 163 struct sshbuf *msg; in send_string_request() local 166 if ((msg = sshbuf_new()) == NULL) in send_string_request() 168 if ((r = sshbuf_put_u8(msg, code)) != 0 || in send_string_request() 169 (r = sshbuf_put_u32(msg, id)) != 0 || in send_string_request() 170 (r = sshbuf_put_string(msg, s, len)) != 0) in send_string_request() 172 send_msg(conn, msg); in send_string_request() 174 sshbuf_free(msg); in send_string_request() 181 struct sshbuf *msg; in send_string_attrs_request() local 184 if ((msg = sshbuf_new()) == NULL) in send_string_attrs_request() 186 if ((r = sshbuf_put_u8(msg, code)) != 0 || in send_string_attrs_request() [all …]
|
D | authfd.c | 185 struct sshbuf *msg; in ssh_lock_agent() local 187 if ((msg = sshbuf_new()) == NULL) in ssh_lock_agent() 189 if ((r = sshbuf_put_u8(msg, type)) != 0 || in ssh_lock_agent() 190 (r = sshbuf_put_cstring(msg, password)) != 0) in ssh_lock_agent() 192 if ((r = ssh_request_reply(sock, msg, msg)) != 0) in ssh_lock_agent() 194 if ((r = sshbuf_get_u8(msg, &type)) != 0) in ssh_lock_agent() 198 sshbuf_free(msg); in ssh_lock_agent() 271 struct sshbuf *msg; in ssh_fetch_identitylist() local 293 if ((msg = sshbuf_new()) == NULL) in ssh_fetch_identitylist() 295 if ((r = sshbuf_put_u8(msg, code1)) != 0) in ssh_fetch_identitylist() [all …]
|
D | ssh-pkcs11-client.c | 113 Buffer msg; in pkcs11_rsa_private_encrypt() local 121 buffer_init(&msg); in pkcs11_rsa_private_encrypt() 122 buffer_put_char(&msg, SSH2_AGENTC_SIGN_REQUEST); in pkcs11_rsa_private_encrypt() 123 buffer_put_string(&msg, blob, blen); in pkcs11_rsa_private_encrypt() 124 buffer_put_string(&msg, from, flen); in pkcs11_rsa_private_encrypt() 125 buffer_put_int(&msg, 0); in pkcs11_rsa_private_encrypt() 127 send_msg(&msg); in pkcs11_rsa_private_encrypt() 128 buffer_clear(&msg); in pkcs11_rsa_private_encrypt() 130 if (recv_msg(&msg) == SSH2_AGENT_SIGN_RESPONSE) { in pkcs11_rsa_private_encrypt() 131 signature = buffer_get_string(&msg, &slen); in pkcs11_rsa_private_encrypt() [all …]
|
/external/libnl/lib/ |
D | nl.c | 205 int nl_sendmsg(struct nl_sock *sk, struct nl_msg *msg, struct msghdr *hdr) in nl_sendmsg() argument 210 nlmsg_set_src(msg, &sk->s_local); in nl_sendmsg() 214 if (nl_cb_call(cb, NL_CB_MSG_OUT, msg) != NL_OK) in nl_sendmsg() 235 int nl_send_iovec(struct nl_sock *sk, struct nl_msg *msg, struct iovec *iov, unsigned iovlen) in nl_send_iovec() argument 249 dst = nlmsg_get_dst(msg); in nl_send_iovec() 254 creds = nlmsg_get_creds(msg); in nl_send_iovec() 269 return nl_sendmsg(sk, msg, &hdr); in nl_send_iovec() 281 int nl_send(struct nl_sock *sk, struct nl_msg *msg) in nl_send() argument 284 .iov_base = (void *) nlmsg_hdr(msg), in nl_send() 285 .iov_len = nlmsg_hdr(msg)->nlmsg_len, in nl_send() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowLog.java | 17 public static void e(String tag, String msg) { in e() argument 18 e(tag, msg, null); in e() 22 public static void e(String tag, String msg, Throwable throwable) { in e() argument 23 addLog(Log.ERROR, tag, msg, throwable); in e() 27 public static void d(String tag, String msg) { in d() argument 28 d(tag, msg, null); in d() 32 public static void d(String tag, String msg, Throwable throwable) { in d() argument 33 addLog(Log.DEBUG, tag, msg, throwable); in d() 37 public static void i(String tag, String msg) { in i() argument 38 i(tag, msg, null); in i() [all …]
|
/external/svox/pico/lib/ |
D | picodbg.h | 228 #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/google-breakpad/src/testing/scripts/ |
D | gmock_doctor.py | 144 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/selinux/sepolgen/tests/ |
D | audit.txt | 1 type=AVC msg=audit(1158584779.745:708): avc: denied { dac_read_search } for pid=8132 comm="sh" c… 2 type=SYSCALL msg=audit(1158584779.745:708): arch=40000003 syscall=195 success=no exit=-13 a0=80d243… 3 type=AVC msg=audit(1158584779.753:709): avc: denied { dac_override } for pid=8133 comm="vpnc-scr… 4 type=AVC msg=audit(1158584779.753:709): avc: denied { dac_read_search } for pid=8133 comm="vpnc-… 5 type=SYSCALL msg=audit(1158584779.753:709): arch=40000003 syscall=195 success=no exit=-13 a0=80d243… 6 type=AVC msg=audit(1158584779.825:710): avc: denied { dac_override } for pid=8134 comm="vpnc-scr… 7 type=AVC msg=audit(1158584779.825:710): avc: denied { dac_read_search } for pid=8134 comm="vpnc-… 8 type=SYSCALL msg=audit(1158584779.825:710): arch=40000003 syscall=195 success=no exit=-13 a0=80d243… 9 type=AVC msg=audit(1158584780.793:711): avc: denied { dac_override } for pid=8144 comm="sh" capa… 10 type=AVC msg=audit(1158584780.793:711): avc: denied { dac_read_search } for pid=8144 comm="sh" c… [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | message_factory_test.py | 55 msg = cls() 56 msg.mandatory = 42 57 msg.nested_factory_2_enum = 0 58 msg.nested_factory_2_message.value = 'nested message value' 59 msg.factory_1_message.factory_1_enum = 1 60 msg.factory_1_message.nested_factory_1_enum = 0 61 msg.factory_1_message.nested_factory_1_message.value = ( 63 msg.factory_1_message.scalar_value = 22 64 msg.factory_1_message.list_value.extend([u'one', u'two', u'three']) 65 msg.factory_1_message.list_value.append(u'four') [all …]
|
/external/messageformat/javatests/com/android/messageformat/ |
D | SimpleMessageFormatTest.java | 21 String msg = "{gender,select,female{her book}male{his book}other{their book}}"; in testSelect() local 23 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "female")); in testSelect() 25 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "male")); in testSelect() 27 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "unknown")); in testSelect() 34 String msg = in testPlural() local 39 MessageFormat.formatNamedArgs(sr, msg, "num", 1, "name", "Peter")); in testPlural() 41 MessageFormat.formatNamedArgs(sr, msg, "num", 2, "name", "Paul")); in testPlural() 43 MessageFormat.formatNamedArgs(sr, msg, "num", 22, "name", "Mary")); in testPlural() 45 MessageFormat.formatNamedArgs(sr, msg, "num", 33, "name", "John")); in testPlural() 47 MessageFormat.formatNamedArgs(sr, msg, "num", 6, "name", "Yoko")); in testPlural() [all …]
|