/external/bluetooth/bluedroid/stack/sdp/ |
D | sdp_discovery.c | 786 UINT32 seq_len, attr_len; in save_attr_seq() local 820 p = sdpu_get_len_from_type (p, type, &attr_len); in save_attr_seq() 821 if (((type >> 3) != UINT_DESC_TYPE) || (attr_len != 2)) in save_attr_seq() 823 SDP_TRACE_WARNING2 ("SDP - Bad type: 0x%02x or len: %d in attr_rsp", type, attr_len); in save_attr_seq() 899 UINT32 attr_len; in add_attr() local 910 p = sdpu_get_len_from_type (p, type, &attr_len); in add_attr() 912 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr() 916 if (attr_len > 4) in add_attr() 917 total_len = attr_len - 4 + (UINT16)sizeof (tSDP_DISC_ATTR); in add_attr() 930 p_attr->attr_len_type = (UINT16)attr_len | (attr_type << 12); in add_attr() [all …]
|
D | sdp_db.c | 399 UINT32 attr_len, UINT8 *p_val) in SDP_AddAttribute() argument 416 UINT32 len = (attr_len > 200) ? 200 : attr_len; in SDP_AddAttribute() 424 handle,attr_id,attr_type,attr_len,p_val,num_array); in SDP_AddAttribute() 429 handle,attr_id,attr_type,attr_len,p_val,*p_val); in SDP_AddAttribute() 434 handle,attr_id,attr_type,attr_len,p_val,p_val); in SDP_AddAttribute() 474 p_attr->len = attr_len; in SDP_AddAttribute() 476 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN) in SDP_AddAttribute() 482 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr ); in SDP_AddAttribute() 484 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr; in SDP_AddAttribute() 489 attr_len = 0; in SDP_AddAttribute() [all …]
|
D | sdp_utils.c | 487 UINT32 list_len, attr_len; in sdpu_extract_attr_seq() local 536 attr_len = 2; in sdpu_extract_attr_seq() 539 attr_len = 4; in sdpu_extract_attr_seq() 542 BE_STREAM_TO_UINT8 (attr_len, p); in sdpu_extract_attr_seq() 545 BE_STREAM_TO_UINT16 (attr_len, p); in sdpu_extract_attr_seq() 548 BE_STREAM_TO_UINT32 (attr_len, p); in sdpu_extract_attr_seq() 556 if (attr_len == 2) in sdpu_extract_attr_seq() 561 else if (attr_len == 4) in sdpu_extract_attr_seq() 774 UINT16 attr_len = SDP_DISC_ATTR_LEN (p_attr->attr_len_type); in sdpu_compare_uuid_with_attr() local 777 if (p_btuuid->len != attr_len) in sdpu_compare_uuid_with_attr() [all …]
|
D | sdp_server.c | 316 UINT16 attr_len; in process_service_attr_req() local 418 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req() 426 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_attr_req() 431 else if (rem_len < attr_len) /* Not enough space for attr... so add partially */ in process_service_attr_req() 433 if (attr_len >= MAX_ATTR_LEN) in process_service_attr_req() 435 … SDP_TRACE_ERROR2("SDP attr too big: max_list_len=%d,attr_len=%d", max_list_len, attr_len); in process_service_attr_req() 567 UINT16 seq_len, attr_len; in process_service_search_attr_req() local 682 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_search_attr_req() 690 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_search_attr_req() 698 else if (rem_len < attr_len) /* Not enough space for attr... so add partially */ in process_service_search_attr_req() [all …]
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_parse.c | 298 u16 attr_len; in p2p_parse_p2p_ie() local 303 attr_len = WPA_GET_LE16(pos + 1); in p2p_parse_p2p_ie() 305 pos[0], attr_len); in p2p_parse_p2p_ie() 306 if (pos + 3 + attr_len > end) { in p2p_parse_p2p_ie() 309 attr_len, (int) (end - pos - 3)); in p2p_parse_p2p_ie() 313 if (p2p_parse_attribute(pos[0], pos + 3, attr_len, msg)) in p2p_parse_p2p_ie() 315 pos += 3 + attr_len; in p2p_parse_p2p_ie()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_sim_common.c | 1054 int attr_len = 2 + len; in eap_sim_msg_add_full() local 1061 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full() 1062 attr_len += pad_len; in eap_sim_msg_add_full() 1063 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add_full() 1067 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add_full() 1078 int attr_len = 4 + len; in eap_sim_msg_add() local 1085 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add() 1086 attr_len += pad_len; in eap_sim_msg_add() 1087 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add() 1091 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add()
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
D | eap_sim_common.c | 1059 int attr_len = 2 + len; in eap_sim_msg_add_full() local 1066 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full() 1067 attr_len += pad_len; in eap_sim_msg_add_full() 1068 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add_full() 1072 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add_full() 1083 int attr_len = 4 + len; in eap_sim_msg_add() local 1090 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add() 1091 attr_len += pad_len; in eap_sim_msg_add() 1092 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add() 1096 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add()
|
/external/e2fsprogs/lib/blkid/ |
D | probe.c | 691 int mft_record_size, attr_off, attr_len; in probe_ntfs() local 754 attr_len = blkid_le16(attr->len); in probe_ntfs() 759 attr_off += attr_len; in probe_ntfs() 762 (attr_len == 0)) in probe_ntfs()
|
/external/bluetooth/bluedroid/stack/include/ |
D | sdp_api.h | 484 UINT8 attr_type, UINT32 attr_len,
|
/external/javassist/src/main/javassist/bytecode/ |
D | CodeAttribute.java | 100 int attr_len = in.readInt(); in CodeAttribute() local
|
/external/wpa_supplicant_8/src/ap/ |
D | wps_hostapd.c | 269 size_t attr_len) in hapd_new_ap_event() argument 271 size_t blen = attr_len * 2 + 1; in hapd_new_ap_event() 274 wpa_snprintf_hex(buf, blen, attr, attr_len); in hapd_new_ap_event()
|