HomeSort by relevance Sort by last modified time
    Searched refs:p_attr (Results 1 - 24 of 24) sorted by null

  /external/bluetooth/bluedroid/stack/sdp/
sdp_api.c 270 tSDP_DISC_ATTR *p_attr; local
283 p_attr = p_rec->p_first_attr;
284 while (p_attr)
286 if (p_attr->attr_id == attr_id)
289 p_attr = p_attr->p_next_attr;
313 tSDP_DISC_ATTR *p_attr; local
315 p_attr = p_rec->p_first_attr;
316 while (p_attr)
318 if (p_attr->attr_id == attr_id
344 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; local
435 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; local
492 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; local
600 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; local
666 tSDP_DISC_ATTR *p_attr, *p_sattr; local
799 tSDP_DISC_ATTR *p_attr; local
832 tSDP_DISC_ATTR *p_attr, *p_sattr; local
878 tSDP_DISC_ATTR *p_attr, *p_sattr; local
1292 tSDP_ATTRIBUTE *p_attr; local
    [all...]
sdp_utils.c 178 UINT8 *sdpu_build_attrib_seq (UINT8 *p_out, UINT16 *p_attr, UINT16 num_attrs)
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)
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->type << 3) | SIZE_IN_NEXT_LONG)
883 tSDP_ATTRIBUTE *p_attr; local
    [all...]
sdp_db.c 63 tSDP_ATTRIBUTE *p_attr; local
78 p_attr = &p_rec->attribute[0];
79 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++)
81 if (p_attr->type == UUID_DESC_TYPE)
83 if (sdpu_compare_uuid_arrays (p_attr->value_ptr, p_attr->len,
88 else if (p_attr->type == DATA_ELE_SEQ_DESC_TYPE)
90 if (find_uuid_in_seq (p_attr->value_ptr, p_attr->len,
444 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0] local
909 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0]; local
978 tSDP_ATTRIBUTE *p_attr; local
    [all...]
sdp_server.c 327 tSDP_ATTRIBUTE *p_attr; local
423 p_attr = sdp_db_find_attr_in_rec (p_rec, attr_seq.attr_entry[xx].start, attr_seq.attr_entry[xx].end);
425 if (p_attr)
434 p_ccb->cont_info.next_attr_start_id = p_attr->id;
438 attr_len = sdpu_get_attrib_entry_len(p_attr);
442 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len,
461 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len,
465 p_ccb->cont_info.next_attr_start_id = p_attr->id;
469 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr);
475 attr_seq.attr_entry[xx].start = p_attr->id + 1
583 tSDP_ATTRIBUTE *p_attr; local
    [all...]
sdp_discovery.c 898 tSDP_DISC_ATTR *p_attr; local
928 p_attr = (tSDP_DISC_ATTR *) p_db->p_free_mem;
929 p_attr->attr_id = attr_id;
930 p_attr->attr_len_type = (UINT16)attr_len | (attr_type << 12);
931 p_attr->p_next_attr = NULL;
958 p = add_attr (p, p_db, p_rec, ATTR_ID_PROTOCOL_DESC_LIST, p_attr, (UINT8)(nest_level + 1));
969 p_attr->attr_value.v.u8 = *p++;
972 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p);
975 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p);
978 BE_STREAM_TO_ARRAY (p, p_attr->attr_value.v.array, (INT32)attr_len)
    [all...]
sdpint.h 281 extern UINT8 *sdpu_build_attrib_seq (UINT8 *p_out, UINT16 *p_attr, UINT16 num_attrs);
282 extern UINT8 *sdpu_build_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr);
292 extern BOOLEAN sdpu_compare_uuid_with_attr (tBT_UUID *p_btuuid, tSDP_DISC_ATTR *p_attr);
297 extern UINT16 sdpu_get_attrib_entry_len(tSDP_ATTRIBUTE *p_attr);
298 extern UINT8 *sdpu_build_partial_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr, UINT16 len, UINT16 *offset);
  /external/bluetooth/bluedroid/bta/gatt/
bta_gattc_cache.c 71 tBTA_GATTC_CACHE_ATTR *p_attr; local
84 p_attr = p_cur_srvc->p_attr;
86 for (j = 0; p_attr; j ++ )
89 j + 1, p_attr->attr_handle, p_attr->p_uuid->uuid16, p_attr->inst_id,
90 bta_gattc_attr_type[p_attr->attr_type], p_attr->property);
92 p_attr = p_attr->p_next
240 tBTA_GATTC_CACHE_ATTR *p_attr; local
354 tBTA_GATTC_CACHE_ATTR *p_attr; local
1069 tBTA_GATTC_CACHE_ATTR *p_attr; local
1167 tBTA_GATTC_CACHE_ATTR *p_attr, *p_char = NULL; local
1300 tBTA_GATTC_CACHE_ATTR *p_attr; local
1576 tBTA_GATTC_CACHE_ATTR *p_attr; local
    [all...]
bta_gattc_ci.c 85 tBTA_GATTC_NV_ATTR *p_attr, tBTA_GATT_STATUS status,
101 if (p_evt->num_attr > 0 && p_attr != NULL)
103 memcpy(p_evt->attr, p_attr, p_evt->num_attr * sizeof(tBTA_GATTC_NV_ATTR));
bta_gattc_utils.c 458 void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid)
460 UINT8 *pp = (UINT8 *)p_attr->p_uuid;
464 p_uuid->len = p_attr->uuid_len;
466 if (p_attr->uuid_len == LEN_UUID_16)
630 tGATT_VALUE *p_attr,
633 UINT8 i = 0, *pp = p_attr->value;
641 while (p_attr->len >= 2 && i < BTA_GATTC_MULTI_MAX)
656 p_attr->len -= 2;
663 p_value->unformat.len = p_attr->len;
664 p_value->unformat.p_value = p_attr->value
    [all...]
bta_gattc_int.h 271 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);
  /external/bluetooth/bluedroid/stack/hid/
hidh_api.c 79 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 = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_VIRTUAL_CABLE)) != NULL) &
    [all...]
  /external/bluetooth/bluedroid/stack/gatt/
gatt_db.c 43 static BOOLEAN deallocate_attr_in_db(tGATT_SVC_DB *p_db, void *p_attr);
116 static tGATT_STATUS gatts_check_attr_readability(tGATT_ATTR16 *p_attr,
123 tGATT_PERM perm = p_attr->permission;
166 switch (p_attr->uuid)
193 ** Parameter p_attr: pointer to the attribute to read.
205 static tGATT_STATUS read_attr_value (void *p_attr,
218 tGATT_ATTR16 *p_attr16 = (tGATT_ATTR16 *)p_attr;
227 status = gatts_check_attr_readability((tGATT_ATTR16 *)p_attr, offset, read_long, sec_flag, key_size);
340 tGATT_ATTR16 *p_attr; local
350 p_attr = (tGATT_ATTR16 *)p_db->p_attr_list
454 tGATT_ATTR16 *p_attr; local
649 tGATT_ATTR16 *p_attr; local
703 tGATT_ATTR16 *p_attr; local
747 tGATT_ATTR16 *p_attr; local
1189 tGATT_ATTR16 *p_attr; local
    [all...]
gatt_auth.c 46 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->len + 3), /* 3 = 2 byte handle + opcode *
    [all...]
gatt_cl.c 228 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
230 if (p_attr)
235 p_clcb->s_handle = p_attr->handle;
240 p_attr->handle,
241 p_attr->len,
243 p_attr->value);
247 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE))
249 p_clcb->s_handle = p_attr->handle;
254 p_attr->handle,
255 p_attr->len
321 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
364 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
562 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; local
    [all...]
gatt_sr.c 624 tGATT_ATTR16 *p_attr = NULL; local
631 p_attr = (tGATT_ATTR16 *) p_rcb->p_db->p_attr_list;
635 while (p_attr)
637 if (p_attr->handle > e_hdl)
642 if (p_attr->handle >= s_hdl)
645 p_msg->offset = (p_attr->uuid_type == GATT_ATTR_UUID_TYPE_16) ? GATT_INFO_TYPE_PAIR_16 : GATT_INFO_TYPE_PAIR_128;
649 if (p_msg->offset == GATT_INFO_TYPE_PAIR_16 && p_attr->uuid_type == GATT_ATTR_UUID_TYPE_16)
651 UINT16_TO_STREAM(p, p_attr->handle);
652 UINT16_TO_STREAM(p, p_attr->uuid);
654 else if (p_msg->offset == GATT_INFO_TYPE_PAIR_128 && p_attr->uuid_type == GATT_ATTR_UUID_TYPE_128
1257 tGATT_ATTR16 *p_attr; local
    [all...]
  /external/bluetooth/bluedroid/bta/mce/
bta_mce_act.c 81 tSDP_DISC_ATTR *p_attr; local
96 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) == NULL)
99 evt_data.mas[found].p_srv_name = (char *) p_attr->attr_value.v.array;
100 evt_data.mas[found].srv_name_len= SDP_DISC_ATTR_LEN(p_attr->attr_len_type);
102 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) == NULL)
105 evt_data.mas[found].instance_id = p_attr->attr_value.v.u8;
107 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE)) == NULL)
110 evt_data.mas[found].msg_type = p_attr->attr_value.v.u8;
  /external/bluetooth/bluedroid/bta/include/
bta_gattc_co.h 72 ** p_attr: pointer to the list of attributes to save.
79 UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_attr,
  /external/bluetooth/bluedroid/stack/a2dp/
a2d_api.c 57 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;
  /external/bluetooth/bluedroid/bta/hl/
bta_hl_sdp.c 38 BOOLEAN bta_hl_fill_sup_feature_list( const tSDP_DISC_ATTR *p_attr,
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 seq_len =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_sattr local
    [all...]
bta_hl_act.c 1691 tSDP_DISC_ATTR *p_attr; local
    [all...]
bta_hl_int.h 611 extern BOOLEAN bta_hl_fill_sup_feature_list( const tSDP_DISC_ATTR *p_attr,
    [all...]
  /external/bluetooth/bluedroid/bta/hf_client/
bta_hf_client_sdp.c 226 tSDP_DISC_ATTR *p_attr; local
258 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL)
265 bta_hf_client_cb.scb.peer_features = p_attr->attr_value.v.u16;
275 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_NETWORK)) != NULL)
277 if (p_attr->attr_value.v.u16 == 0x01)
  /external/bluetooth/bluedroid/bta/ag/
bta_ag_sdp.c 310 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)
  /external/bluetooth/bluedroid/bta/av/
bta_av_act.c 1627 tSDP_DISC_ATTR *p_attr; local
    [all...]

Completed in 1326 milliseconds