/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 | 87 SimpleMessageNano msg = new SimpleMessageNano(); in testSimpleMessageNano() local 88 assertEquals(123, msg.d); in testSimpleMessageNano() 89 assertEquals(null, msg.nestedMsg); in testSimpleMessageNano() 90 assertEquals(SimpleMessageNano.BAZ, msg.defaultNestedEnum); in testSimpleMessageNano() 92 msg.d = 456; in testSimpleMessageNano() 93 assertEquals(456, msg.d); in testSimpleMessageNano() 98 msg.nestedMsg = nestedMsg; in testSimpleMessageNano() 99 assertEquals(2, msg.nestedMsg.bb); in testSimpleMessageNano() 101 msg.defaultNestedEnum = SimpleMessageNano.BAR; in testSimpleMessageNano() 102 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/wpa_supplicant_8/src/p2p/ |
D | p2p_parse.c | 37 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 …]
|
D | p2p_pd.c | 444 static int p2ps_validate_pd_req(struct p2p_data *p2p, struct p2p_message *msg, in p2ps_validate_pd_req() argument 456 if ((_val) && !msg->_attr) { \ in p2ps_validate_pd_req() 475 if (msg->status && *msg->status != P2P_SC_SUCCESS_DEFERRED) in p2ps_validate_pd_req() 490 if (msg->feature_cap_len < sizeof(struct p2ps_feature_capab)) { in p2ps_validate_pd_req() 495 switch (*msg->conn_cap) { in p2ps_validate_pd_req() 532 if (msg->persistent_dev) { in p2ps_validate_pd_req() 535 if (os_memcmp(msg->persistent_dev, addr, ETH_ALEN) == 0) { in p2ps_validate_pd_req() 557 struct p2p_message msg; in p2p_process_prov_disc_req() local 578 if (p2p_parse(data, len, &msg)) in p2p_process_prov_disc_req() 583 MAC2STR(sa), msg.wps_config_methods, rx_freq); in p2p_process_prov_disc_req() [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/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 …]
|
/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/webrtc/webrtc/p2p/base/ |
D | stun_unittest.cc | 26 void CheckStunHeader(const StunMessage& msg, StunMessageType expected_type, in CheckStunHeader() argument 28 ASSERT_EQ(expected_type, msg.type()); in CheckStunHeader() 29 ASSERT_EQ(expected_length, msg.length()); in CheckStunHeader() 32 void CheckStunTransactionID(const StunMessage& msg, in CheckStunTransactionID() argument 34 ASSERT_EQ(length, msg.transaction_id().size()); in CheckStunTransactionID() 35 ASSERT_EQ(length == kStunTransactionIdLength + 4, msg.IsLegacy()); in CheckStunTransactionID() 36 ASSERT_EQ(length == kStunTransactionIdLength, !msg.IsLegacy()); in CheckStunTransactionID() 37 ASSERT_EQ(0, memcmp(msg.transaction_id().c_str(), expectedID, length)); in CheckStunTransactionID() 61 size_t ReadStunMessageTestCase(StunMessage* msg, in ReadStunMessageTestCase() argument 66 if (msg->Read(&buf)) { in ReadStunMessageTestCase() [all …]
|
/external/autotest/tko/perf_upload/ |
D | perf_uploader_unittest.py | 84 self.assertEqual(len(result), 3, msg='Expected results for 3 metrics.') 88 msg='Parsed metrics not as expected.') 89 msg = 'Perf values for metric not aggregated properly.' 90 self.assertEqual(result[('metric1', None)]['value'], [1], msg=msg) 91 self.assertEqual(result[('metric2', 'graph1')]['value'], [10], msg=msg) 92 self.assertEqual(result[('metric2', 'graph2')]['value'], [100], msg=msg) 93 msg = 'Standard deviation values not retained properly.' 94 self.assertEqual(result[('metric1', None)]['stddev'], 0.0, msg=msg) 95 self.assertEqual(result[('metric2', 'graph1')]['stddev'], 0.0, msg=msg) 96 self.assertEqual(result[('metric2', 'graph2')]['stddev'], 1.7, msg=msg) [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/icu/icu4j/samples/src/com/ibm/icu/samples/text/messagepattern/ |
D | MiniMessageFormatter.java | 29 this.msg=new MessagePattern(); in MiniMessageFormatter() 32 public MiniMessageFormatter(MessagePattern msg) { in MiniMessageFormatter() argument 33 this.msg=(MessagePattern)msg.clone(); in MiniMessageFormatter() 36 public MiniMessageFormatter(String msg) { in MiniMessageFormatter() argument 37 this.msg=new MessagePattern(msg); in MiniMessageFormatter() 40 public MiniMessageFormatter applyPattern(String msg) { in applyPattern() argument 41 this.msg.parse(msg); in applyPattern() 46 return msg.getPatternString(); in getPatternString() 50 return msg.hasNamedArguments(); in hasNamedArguments() 54 return msg.hasNumberedArguments(); in hasNumberedArguments() [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/v1/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/curl/lib/ |
D | smb.c | 286 static CURLcode smb_recv_message(struct connectdata *conn, void **msg) in smb_recv_message() argument 327 *msg = buf; in smb_recv_message() 407 const void *msg, size_t msg_len) in smb_send_message() argument 412 msg, msg_len); in smb_send_message() 419 const char *msg = "\x00\x0c\x00\x02NT LM 0.12"; in smb_send_negotiate() local 421 return smb_send_message(conn, SMB_COM_NEGOTIATE, msg, 15); in smb_send_negotiate() 427 struct smb_setup msg; in smb_send_setup() local 428 char *p = msg.bytes; in smb_send_setup() 437 if(byte_count > sizeof(msg.bytes)) in smb_send_setup() 449 memset(&msg, 0, sizeof(msg)); in smb_send_setup() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/test/ |
D | debug_dump_test.cc | 244 void OnInitEvent(const audioproc::Init& msg); 245 void OnStreamEvent(const audioproc::Stream& msg); 246 void OnReverseStreamEvent(const audioproc::ReverseStream& msg); 247 void OnConfigEvent(const audioproc::Config& msg); 249 void MaybeRecreateApm(const audioproc::Config& msg); 250 void ConfigureApm(const audioproc::Config& msg); 299 void DebugDumpTest::OnInitEvent(const audioproc::Init& msg) { in OnInitEvent() argument 300 ASSERT_TRUE(msg.has_num_input_channels()); in OnInitEvent() 301 ASSERT_TRUE(msg.has_output_sample_rate()); in OnInitEvent() 302 ASSERT_TRUE(msg.has_num_output_channels()); in OnInitEvent() [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/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/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/iproute2/include/ |
D | bpf_scm.h | 34 static inline int *bpf_map_set_init(struct bpf_map_set_msg *msg, in bpf_map_set_init() argument 41 msg->iov.iov_base = &msg->aux; in bpf_map_set_init() 42 msg->iov.iov_len = sizeof(msg->aux); in bpf_map_set_init() 44 msg->hdr.msg_iov = &msg->iov; in bpf_map_set_init() 45 msg->hdr.msg_iovlen = 1; in bpf_map_set_init() 47 msg->hdr.msg_name = (struct sockaddr *)addr; in bpf_map_set_init() 48 msg->hdr.msg_namelen = addr_len; in bpf_map_set_init() 50 BUILD_BUG_ON(sizeof(msg->msg_buf) < cmsg_ctl_len); in bpf_map_set_init() 51 msg->hdr.msg_control = &msg->msg_buf; in bpf_map_set_init() 52 msg->hdr.msg_controllen = cmsg_ctl_len; in bpf_map_set_init() [all …]
|