/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 | 82 SimpleMessageNano msg = new SimpleMessageNano(); in testSimpleMessageNano() local 83 assertEquals(123, msg.d); in testSimpleMessageNano() 84 assertEquals(null, msg.nestedMsg); in testSimpleMessageNano() 85 assertEquals(SimpleMessageNano.BAZ, msg.defaultNestedEnum); in testSimpleMessageNano() 87 msg.d = 456; in testSimpleMessageNano() 88 assertEquals(456, msg.d); in testSimpleMessageNano() 93 msg.nestedMsg = nestedMsg; in testSimpleMessageNano() 94 assertEquals(2, msg.nestedMsg.bb); in testSimpleMessageNano() 96 msg.defaultNestedEnum = SimpleMessageNano.BAR; in testSimpleMessageNano() 97 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 …]
|
/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/chromium_org/third_party/libevent/test/ |
D | regress.gen.c | 44 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 …]
|
D | regress.gen.h | 12 #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/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/chromium_org/chromecast/media/cma/ipc_streamer/ |
D | video_decoder_config_marshaller.cc | 22 static void Write(const gfx::Size& size, MediaMessage* msg) { in Write() argument 23 CHECK(msg->WritePod(size.width())); in Write() 24 CHECK(msg->WritePod(size.height())); in Write() 27 static gfx::Size Read(MediaMessage* msg) { in Read() argument 29 CHECK(msg->ReadPod(&w)); in Read() 30 CHECK(msg->ReadPod(&h)); in Read() 37 static void Write(const gfx::Rect& rect, MediaMessage* msg) { in Write() argument 38 CHECK(msg->WritePod(rect.x())); in Write() 39 CHECK(msg->WritePod(rect.y())); in Write() 40 CHECK(msg->WritePod(rect.width())); in Write() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
D | stun_unittest.cc | 42 void CheckStunHeader(const StunMessage& msg, StunMessageType expected_type, in CheckStunHeader() argument 44 ASSERT_EQ(expected_type, msg.type()); in CheckStunHeader() 45 ASSERT_EQ(expected_length, msg.length()); in CheckStunHeader() 48 void CheckStunTransactionID(const StunMessage& msg, in CheckStunTransactionID() argument 50 ASSERT_EQ(length, msg.transaction_id().size()); in CheckStunTransactionID() 51 ASSERT_EQ(length == kStunTransactionIdLength + 4, msg.IsLegacy()); in CheckStunTransactionID() 52 ASSERT_EQ(length == kStunTransactionIdLength, !msg.IsLegacy()); in CheckStunTransactionID() 53 ASSERT_EQ(0, memcmp(msg.transaction_id().c_str(), expectedID, length)); in CheckStunTransactionID() 77 size_t ReadStunMessageTestCase(StunMessage* msg, in ReadStunMessageTestCase() argument 82 if (msg->Read(&buf)) { in ReadStunMessageTestCase() [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/chromium_org/ipc/ |
D | ipc_sync_message.cc | 70 bool SyncMessage::IsMessageReplyTo(const Message& msg, int request_id) { in IsMessageReplyTo() argument 71 if (!msg.is_reply()) in IsMessageReplyTo() 74 return GetMessageId(msg) == request_id; in IsMessageReplyTo() 77 PickleIterator SyncMessage::GetDataIterator(const Message* msg) { in GetDataIterator() argument 78 PickleIterator iter(*msg); in GetDataIterator() 85 int SyncMessage::GetMessageId(const Message& msg) { in GetMessageId() argument 86 if (!msg.is_sync() && !msg.is_reply()) in GetMessageId() 90 if (!ReadSyncHeader(msg, &header)) in GetMessageId() 96 Message* SyncMessage::GenerateReply(const Message* msg) { in GenerateReply() argument 97 DCHECK(msg->is_sync()); in GenerateReply() [all …]
|
/external/qemu/android/ |
D | core-init-utils.c | 37 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/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/chromium_org/chrome/browser/resources/gaia_auth_host/ |
D | gaia_auth_host.js | 281 var msg = { variable 285 this.frame_.contentWindow.postMessage(msg, AUTH_URL_BASE); 295 var msg = { variable 300 this.frame_.contentWindow.postMessage(msg, AUTH_URL_BASE); 331 var msg = e.data; 336 if (msg.method == 'loginUILoaded') { 341 if (/^complete(Login|Authentication)$|^offlineLogin$/.test(msg.method)) { 342 if (!msg.email && !this.email_ && !msg.skipForNow) { 343 var msg = {method: 'redirectToSignin'}; variable 344 this.frame_.contentWindow.postMessage(msg, AUTH_URL_BASE); [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/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/chromium_org/third_party/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(['one', 'two', 'three']) 65 msg.factory_1_message.list_value.append('four') [all …]
|
/external/chromium_org/third_party/sqlite/src/src/ |
D | test_server.c | 333 SqlMessage msg; in sqlite3_client_open() local 334 msg.op = MSG_Open; in sqlite3_client_open() 335 msg.zIn = zDatabaseName; in sqlite3_client_open() 336 sendToServer(&msg); in sqlite3_client_open() 337 *ppDb = msg.pDb; in sqlite3_client_open() 338 return msg.errCode; in sqlite3_client_open() 347 SqlMessage msg; in sqlite3_client_prepare() local 348 msg.op = MSG_Prepare; in sqlite3_client_prepare() 349 msg.pDb = pDb; in sqlite3_client_prepare() 350 msg.zIn = zSql; in sqlite3_client_prepare() [all …]
|