Searched defs:p_attr (Results 1 - 22 of 22) sorted by relevance

/system/bt/bta/gatt/
H A Dbta_gattc_ci.c84 tBTA_GATTC_NV_ATTR *p_attr, tBTA_GATT_STATUS status,
100 if (p_evt->num_attr > 0 && p_attr != NULL)
102 memcpy(p_evt->attr, p_attr, p_evt->num_attr * sizeof(tBTA_GATTC_NV_ATTR));
83 bta_gattc_ci_cache_load(BD_ADDR server_bda, UINT16 evt, UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_attr, tBTA_GATT_STATUS status, UINT16 conn_id) argument
H A Dbta_gattc_cache.c74 tBTA_GATTC_CACHE_ATTR *p_attr; local
87 p_attr = p_cur_srvc->p_attr;
89 for (j = 0; p_attr; j ++ )
92 j + 1, p_attr->attr_handle, p_attr->p_uuid->uuid16, p_attr->inst_id,
93 bta_gattc_attr_type[p_attr->attr_type], p_attr->property);
95 p_attr
243 tBTA_GATTC_CACHE_ATTR *p_attr; local
357 tBTA_GATTC_CACHE_ATTR *p_attr; local
1070 tBTA_GATTC_CACHE_ATTR *p_attr; local
1168 tBTA_GATTC_CACHE_ATTR *p_attr, *p_char = NULL; local
1301 tBTA_GATTC_CACHE_ATTR *p_attr; local
1492 bta_gattc_rebuild_cache(tBTA_GATTC_SERV *p_srvc_cb, UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_attr, UINT16 attr_index) argument
1549 bta_gattc_fill_nv_attr(tBTA_GATTC_NV_ATTR *p_attr, UINT8 type, UINT16 s_handle, UINT16 e_handle, UINT8 id, tBT_UUID uuid, UINT8 prop, BOOLEAN is_primary) argument
1577 tBTA_GATTC_CACHE_ATTR *p_attr; local
[all...]
H A Dbta_gattc_utils.c461 void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid) argument
463 UINT8 *pp = (UINT8 *)p_attr->p_uuid;
467 p_uuid->len = p_attr->uuid_len;
469 if (p_attr->uuid_len == LEN_UUID_16)
633 tGATT_VALUE *p_attr,
636 UINT8 i = 0, *pp = p_attr->value;
644 while (p_attr->len >= 2 && i < BTA_GATTC_MULTI_MAX)
659 p_attr->len -= 2;
666 p_value->unformat.len = p_attr->len;
667 p_value->unformat.p_value = p_attr
631 bta_gattc_pack_read_cb_data(tBTA_GATTC_SERV *p_srcb, tBT_UUID *p_descr_uuid, tGATT_VALUE *p_attr, tBTA_GATT_READ_VAL *p_value) argument
[all...]
H A Dbta_gattc_int.h271 tBTA_GATTC_CACHE_ATTR *p_attr; member in struct:gattc_svc_cache
523 extern void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid);
525 extern tBTA_GATT_STATUS bta_gattc_pack_read_cb_data(tBTA_GATTC_SERV *p_srcb, tBT_UUID *p_descr_uuid, tGATT_VALUE *p_attr, tBTA_GATT_READ_VAL *p_value);
545 extern void bta_gattc_rebuild_cache(tBTA_GATTC_SERV *p_srcv, UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_attr, UINT16 attr_index);
/system/bt/bta/mce/
H A Dbta_mce_act.c80 tSDP_DISC_ATTR *p_attr; local
95 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) == NULL)
98 evt_data.mas[found].p_srv_name = (char *) p_attr->attr_value.v.array;
99 evt_data.mas[found].srv_name_len= SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
101 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) == NULL)
104 evt_data.mas[found].instance_id = p_attr->attr_value.v.u8;
106 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE)) == NULL)
109 evt_data.mas[found].msg_type = p_attr->attr_value.v.u8;
/system/bt/bta/hf_client/
H A Dbta_hf_client_sdp.c225 tSDP_DISC_ATTR *p_attr; local
257 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL)
264 bta_hf_client_cb.scb.peer_features = p_attr->attr_value.v.u16;
274 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_NETWORK)) != NULL)
276 if (p_attr->attr_value.v.u16 == 0x01)
/system/bt/stack/a2dp/
H A Da2d_api.c57 tSDP_DISC_ATTR *p_attr; local
78 if ((p_attr = SDP_FindAttributeInRec(p_rec,
81 a2d_svc.p_service_name = (char *) p_attr->attr_value.v.array;
82 a2d_svc.service_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
86 if ((p_attr = SDP_FindAttributeInRec(p_rec,
89 a2d_svc.p_provider_name = (char *) p_attr->attr_value.v.array;
90 a2d_svc.provider_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
94 if ((p_attr = SDP_FindAttributeInRec(p_rec,
97 a2d_svc.features = p_attr->attr_value.v.u16;
/system/bt/bta/ag/
H A Dbta_ag_sdp.c310 tSDP_DISC_ATTR *p_attr; local
368 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL)
374 p_scb->peer_features = p_attr->attr_value.v.u16;
379 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_REMOTE_AUDIO_VOLUME_CONTROL)) != NULL)
382 if (p_attr->attr_value.v.u8)
/system/bt/bta/hl/
H A Dbta_hl_sdp.c38 BOOLEAN bta_hl_fill_sup_feature_list( const tSDP_DISC_ATTR *p_attr, argument
46 for (p_attr = p_attr->attr_value.v.p_sub_attr; p_attr; p_attr = p_attr->p_next_attr)
49 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE)
53 SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
56 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr && (item_cnt < 4) ; p_sattr = p_sattr->p_next_attr)
584 tSDP_DISC_ATTR *p_attr, *p_satt local
[all...]
H A Dbta_hl_act.c1690 tSDP_DISC_ATTR *p_attr; local
1742 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL)
1744 if (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) < BT_MAX_SERVICE_NAME_LEN)
1745 name_len = (UINT16)SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
1748 memcpy(p_hdp_rec->srv_name, p_attr->attr_value.v.array, name_len);
1752 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_DESCRIPTION)) != NULL)
1754 if (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) < BT_MAX_SERVICE_NAME_LEN)
1755 name_len = (UINT16)SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
1758 memcpy(p_hdp_rec->srv_desp, p_attr->attr_value.v.array, name_len);
1763 if ((p_attr
[all...]
/system/bt/bta/sdp/
H A Dbta_sdp_act.c98 tSDP_DISC_ATTR *p_attr; local
110 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL)
112 record->mns.supported_features = p_attr->attr_value.v.u32;
115 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL)
117 record->mns.hdr.service_name_length = SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
118 record->mns.hdr.service_name = (char *)p_attr->attr_value.v.array;
131 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL)
133 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16;
140 tSDP_DISC_ATTR *p_attr; local
154 if ((p_attr
194 tSDP_DISC_ATTR *p_attr; local
241 tSDP_DISC_ATTR *p_attr, *p_sattr; local
323 tSDP_DISC_ATTR *p_attr; local
354 tSDP_DISC_ATTR *p_attr; local
[all...]
/system/bt/stack/gatt/
H A Dgatt_auth.c46 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
55 p_data = (UINT8 *)GKI_getbuf((UINT16)(p_attr->len + 3)); /* 3 = 2 byte handle + opcode */
61 UINT16_TO_STREAM(p, p_attr->handle);
62 ARRAY_TO_STREAM(p, p_attr->value, p_attr->len);
65 if ((payload_size - GATT_AUTH_SIGN_LEN - 3) < p_attr->len)
66 p_attr->len = payload_size - GATT_AUTH_SIGN_LEN - 3;
68 p_signature = p_attr->value + p_attr->len;
71 (UINT16)(p_attr
[all...]
H A Dgatt_cl.c229 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
231 if (p_attr)
236 p_clcb->s_handle = p_attr->handle;
241 p_attr->handle,
242 p_attr->len,
244 p_attr->value);
248 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE))
250 p_clcb->s_handle = p_attr->handle;
255 p_attr->handle,
256 p_attr
322 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
365 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
563 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
[all...]
H A Dgatt_db.c43 static BOOLEAN deallocate_attr_in_db(tGATT_SVC_DB *p_db, void *p_attr);
118 static tGATT_STATUS gatts_check_attr_readability(tGATT_ATTR16 *p_attr, argument
125 tGATT_PERM perm = p_attr->permission;
168 switch (p_attr->uuid)
195 ** Parameter p_attr: pointer to the attribute to read.
207 static tGATT_STATUS read_attr_value (void *p_attr, argument
219 tGATT_ATTR16 *p_attr16 = (tGATT_ATTR16 *)p_attr;
228 status = gatts_check_attr_readability((tGATT_ATTR16 *)p_attr, offset, read_long, sec_flag, key_size);
335 tGATT_ATTR16 *p_attr; local
345 p_attr
449 tGATT_ATTR16 *p_attr; local
644 tGATT_ATTR16 *p_attr; local
698 tGATT_ATTR16 *p_attr; local
742 tGATT_ATTR16 *p_attr; local
1025 deallocate_attr_in_db(tGATT_SVC_DB *p_db, void *p_attr) argument
1184 tGATT_ATTR16 *p_attr; local
[all...]
H A Dgatt_sr.c623 tGATT_ATTR16 *p_attr = NULL; local
630 p_attr = (tGATT_ATTR16 *) p_rcb->p_db->p_attr_list;
634 while (p_attr)
636 if (p_attr->handle > e_hdl)
641 if (p_attr->handle >= s_hdl)
644 p_msg->offset = (p_attr->uuid_type == GATT_ATTR_UUID_TYPE_16) ? GATT_INFO_TYPE_PAIR_16 : GATT_INFO_TYPE_PAIR_128;
648 if (p_msg->offset == GATT_INFO_TYPE_PAIR_16 && p_attr->uuid_type == GATT_ATTR_UUID_TYPE_16)
650 UINT16_TO_STREAM(p, p_attr->handle);
651 UINT16_TO_STREAM(p, p_attr->uuid);
653 else if (p_msg->offset == GATT_INFO_TYPE_PAIR_128 && p_attr
1261 tGATT_ATTR16 *p_attr; local
[all...]
/system/bt/stack/hid/
H A Dhidh_api.c79 tSDP_DISC_ATTR *p_attr; local
82 if ((p_attr = SDP_FindAttributeInRec(p_rec, attr_id)) != NULL)
84 if((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len )
86 memcpy( str, (char *) p_attr->attr_value.v.array, name_len );
91 memcpy( str, (char *) p_attr->attr_value.v.array, max_len-1 );
104 tSDP_DISC_ATTR *p_attr, *p_subattr1, *p_subattr2, *p_repdesc; local
129 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_DESCRIPTOR_LIST)) == NULL)
130 || (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE)
131 || ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL)
144 if (((p_attr
[all...]
/system/bt/stack/sdp/
H A Dsdp_discovery.c864 tSDP_DISC_ATTR *p_attr; local
894 p_attr = (tSDP_DISC_ATTR *) p_db->p_free_mem;
895 p_attr->attr_id = attr_id;
896 p_attr->attr_len_type = (UINT16)attr_len | (attr_type << 12);
897 p_attr->p_next_attr = NULL;
924 p = add_attr (p, p_db, p_rec, ATTR_ID_PROTOCOL_DESC_LIST, p_attr, (UINT8)(nest_level + 1));
935 p_attr->attr_value.v.u8 = *p++;
938 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p);
941 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p);
944 BE_STREAM_TO_ARRAY (p, p_attr
[all...]
H A Dsdp_server.c328 tSDP_ATTRIBUTE *p_attr; local
435 p_attr = sdp_db_find_attr_in_rec (p_rec, attr_seq.attr_entry[xx].start, attr_seq.attr_entry[xx].end);
437 if (p_attr)
446 p_ccb->cont_info.next_attr_start_id = p_attr->id;
450 attr_len = sdpu_get_attrib_entry_len(p_attr);
454 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len,
473 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len,
477 p_ccb->cont_info.next_attr_start_id = p_attr->id;
481 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr);
487 attr_seq.attr_entry[xx].start = p_attr
595 tSDP_ATTRIBUTE *p_attr; local
[all...]
H A Dsdp_api.c263 tSDP_DISC_ATTR *p_attr; local
276 p_attr = p_rec->p_first_attr;
277 while (p_attr)
279 if (p_attr->attr_id == attr_id)
282 p_attr = p_attr->p_next_attr;
306 tSDP_DISC_ATTR *p_attr; local
308 p_attr = p_rec->p_first_attr;
309 while (p_attr)
311 if (p_attr
337 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; local
428 tSDP_DISC_ATTR *p_attr, *p_sattr; local
485 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; local
593 tSDP_DISC_ATTR *p_attr, *p_sattr; local
659 tSDP_DISC_ATTR *p_attr, *p_sattr; local
718 sdp_fill_proto_elem( tSDP_DISC_ATTR *p_attr, UINT16 layer_uuid, tSDP_PROTOCOL_ELEM *p_elem) argument
781 tSDP_DISC_ATTR *p_attr; local
814 tSDP_DISC_ATTR *p_attr, *p_sattr; local
860 tSDP_DISC_ATTR *p_attr, *p_sattr; local
985 SDP_AttrStringCopy(char *dst, tSDP_DISC_ATTR *p_attr, UINT16 dst_size) argument
[all...]
H A Dsdp_db.c62 tSDP_ATTRIBUTE *p_attr; local
77 p_attr = &p_rec->attribute[0];
78 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
80 if (p_attr->type == UUID_DESC_TYPE)
82 if (sdpu_compare_uuid_arrays (p_attr->value_ptr, p_attr->len,
87 else if (p_attr->type == DATA_ELE_SEQ_DESC_TYPE)
89 if (find_uuid_in_seq (p_attr->value_ptr, p_attr->len,
441 tSDP_ATTRIBUTE *p_attr local
900 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0]; local
969 tSDP_ATTRIBUTE *p_attr; local
[all...]
H A Dsdp_utils.c178 UINT8 *sdpu_build_attrib_seq (UINT8 *p_out, UINT16 *p_attr, UINT16 num_attrs) argument
184 if (!p_attr)
201 if (!p_attr)
210 for (xx = 0; xx < num_attrs; xx++, p_attr++)
213 UINT16_TO_BE_STREAM (p_out, *p_attr);
232 UINT8 *sdpu_build_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr) argument
236 UINT16_TO_BE_STREAM (p_out, p_attr->id);
240 switch(p_attr->type)
247 if(p_attr->len > 0xFFFF)
249 UINT8_TO_BE_STREAM (p_out, (p_attr
783 sdpu_compare_uuid_with_attr(tBT_UUID *p_btuuid, tSDP_DISC_ATTR *p_attr) argument
894 tSDP_ATTRIBUTE *p_attr; local
940 sdpu_get_attrib_entry_len(tSDP_ATTRIBUTE *p_attr) argument
1011 sdpu_build_partial_attrib_entry(UINT8 *p_out, tSDP_ATTRIBUTE *p_attr, UINT16 len, UINT16 *offset) argument
[all...]
/system/bt/bta/av/
H A Dbta_av_act.c1636 tSDP_DISC_ATTR *p_attr; local
1676 if ((p_attr = SDP_FindAttributeInRec(p_rec,
1679 categories = p_attr->attr_value.v.u16;

Completed in 132 milliseconds