Home
last modified time | relevance | path

Searched refs:num_attr (Results 1 – 25 of 33) sorted by relevance

12

/external/bluetooth/bluedroid/btif/co/
Dbta_gattc_co.c113 UINT16 num_attr = 0; in bta_gattc_co_cache_load() local
119 num_attr = fread(attr, sizeof(tBTA_GATTC_NV_ATTR), BTA_GATTC_NV_LOAD_MAX, sCacheFD); in bta_gattc_co_cache_load()
120 status = (num_attr < BTA_GATTC_NV_LOAD_MAX ? BTA_GATT_OK : BTA_GATT_MORE); in bta_gattc_co_cache_load()
124 __FUNCTION__, sCacheFD, start_index, num_attr, status); in bta_gattc_co_cache_load()
125 bta_gattc_ci_cache_load(server_bda, evt, num_attr, attr, status, conn_id); in bta_gattc_co_cache_load()
144 void bta_gattc_co_cache_save (BD_ADDR server_bda, UINT16 evt, UINT16 num_attr, in bta_gattc_co_cache_save() argument
152 int num = fwrite(p_attr_list, sizeof(tBTA_GATTC_NV_ATTR), num_attr, sCacheFD); in bta_gattc_co_cache_save()
/external/bluetooth/bluedroid/bta/gatt/
Dbta_gattc_ci.c84 void bta_gattc_ci_cache_load(BD_ADDR server_bda, UINT16 evt, UINT16 num_attr, in bta_gattc_ci_cache_load() argument
99 p_evt->num_attr = (num_attr > BTA_GATTC_NV_LOAD_MAX) ? BTA_GATTC_NV_LOAD_MAX : num_attr; in bta_gattc_ci_cache_load()
101 if (p_evt->num_attr > 0 && p_attr != NULL) in bta_gattc_ci_cache_load()
103 memcpy(p_evt->attr, p_attr, p_evt->num_attr * sizeof(tBTA_GATTC_NV_ATTR)); in bta_gattc_ci_cache_load()
Dbta_gattc_api.c641 p_read_multi->num_attr * sizeof(tBTA_GATTC_ATTR_ID)); in BTA_GATTC_ReadMultiple()
652 p_buf->num_attr = p_read_multi->num_attr; in BTA_GATTC_ReadMultiple()
654 if (p_buf->num_attr > 0) in BTA_GATTC_ReadMultiple()
658 for (i = 0; i < p_buf->num_attr; i ++, p_value ++) in BTA_GATTC_ReadMultiple()
Dbta_gattc_int.h181 UINT8 num_attr; member
545 extern void bta_gattc_rebuild_cache(tBTA_GATTC_SERV *p_srcv, UINT16 num_attr, tBTA_GATTC_NV_ATTR *p…
/external/bluetooth/bluedroid/stack/avrc/
Davrc_pars_tg.c98 BE_STREAM_TO_UINT8 (p_result->get_cur_app_val.num_attr, p); in avrc_pars_vendor_cmd()
99 if (len != (p_result->get_cur_app_val.num_attr+1)) in avrc_pars_vendor_cmd()
105 for (xx=0, yy=0; xx< p_result->get_cur_app_val.num_attr; xx++) in avrc_pars_vendor_cmd()
112 p_result->get_cur_app_val.num_attr = yy; in avrc_pars_vendor_cmd()
219 BE_STREAM_TO_UINT8 (p_result->get_elem_attrs.num_attr, p); in avrc_pars_vendor_cmd()
220 if ( (len - 9/* UID/8 and num_attr/1 */) != (p_result->get_elem_attrs.num_attr * 4)) in avrc_pars_vendor_cmd()
225 if (p_result->get_elem_attrs.num_attr > AVRC_MAX_ELEM_ATTR_SIZE) in avrc_pars_vendor_cmd()
226 p_result->get_elem_attrs.num_attr = AVRC_MAX_ELEM_ATTR_SIZE; in avrc_pars_vendor_cmd()
227 for (xx=0; xx< p_result->get_elem_attrs.num_attr; xx++) in avrc_pars_vendor_cmd()
Davrc_bld_tg.c143 for (xx=0; xx<p_rsp->num_attr; xx++) in avrc_bld_list_app_settings_attr_rsp()
330 for (xx=0; xx<p_rsp->num_attr; xx++) in avrc_bld_app_setting_text_rsp()
336 p_rsp->num_attr = num_added; in avrc_bld_app_setting_text_rsp()
478 for (xx=0; xx<p_rsp->num_attr; xx++) in avrc_bld_get_elem_attrs_rsp()
614 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) in avrc_bld_notify_rsp()
615 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_bld_notify_rsp()
617 if (p_rsp->param.player_setting.num_attr > 0) in avrc_bld_notify_rsp()
619 UINT8_TO_BE_STREAM(p_data, p_rsp->param.player_setting.num_attr); in avrc_bld_notify_rsp()
621 for (xx=0; xx<p_rsp->param.player_setting.num_attr; xx++) in avrc_bld_notify_rsp()
Davrc_sdp.c158 if(p_db->p_attrs == NULL || p_db->num_attr == 0) in AVRC_FindService()
161 p_db->num_attr = AVRC_NUM_ATTR; in AVRC_FindService()
164 result = SDP_InitDiscoveryDb(p_db->p_db, p_db->db_len, 1, &uuid_list, p_db->num_attr, in AVRC_FindService()
/external/bluetooth/bluedroid/stack/sdp/
Dsdp_utils.c490 p_seq->num_attr = 0; in sdpu_extract_attr_seq()
558 BE_STREAM_TO_UINT16 (p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq()
559 p_seq->attr_entry[p_seq->num_attr].end = p_seq->attr_entry[p_seq->num_attr].start; in sdpu_extract_attr_seq()
563 BE_STREAM_TO_UINT16 (p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq()
564 BE_STREAM_TO_UINT16 (p_seq->attr_entry[p_seq->num_attr].end, p); in sdpu_extract_attr_seq()
570 if (++p_seq->num_attr >= MAX_ATTR_PER_SEQ) in sdpu_extract_attr_seq()
808 void sdpu_sort_attr_list( UINT16 num_attr, tSDP_DISCOVERY_DB *p_db ) in sdpu_sort_attr_list() argument
814 if (num_attr <= 1) in sdpu_sort_attr_list()
818 else if (num_attr > SDP_MAX_ATTR_FILTERS) in sdpu_sort_attr_list()
820 num_attr = SDP_MAX_ATTR_FILTERS; in sdpu_sort_attr_list()
[all …]
Dsdp_server.c349 if ((!p_req) || (!attr_seq.num_attr) || (p_req > p_req_end)) in process_service_attr_req()
421 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) in process_service_attr_req()
483 if (xx == attr_seq.num_attr) in process_service_attr_req()
607 if ((!p_req) || (!attr_seq.num_attr)) in process_service_search_attr_req()
691 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) in process_service_search_attr_req()
Dsdpint.h115 UINT16 num_attr; member
294 extern void sdpu_sort_attr_list( UINT16 num_attr, tSDP_DISCOVERY_DB *p_db );
Dsdp_api.c73 tSDP_UUID *p_uuid_list, UINT16 num_attr, UINT16 *p_attr_list) in SDP_InitDiscoveryDb() argument
80 num_attr > SDP_MAX_ATTR_FILTERS || num_uuid > SDP_MAX_UUID_FILTERS) in SDP_InitDiscoveryDb()
83 (UINT32)p_db, len, num_uuid, num_attr); in SDP_InitDiscoveryDb()
100 for (xx = 0; xx < num_attr; xx++) in SDP_InitDiscoveryDb()
104 sdpu_sort_attr_list( num_attr, p_db ); in SDP_InitDiscoveryDb()
106 p_db->num_attr_filters = num_attr; in SDP_InitDiscoveryDb()
/external/bluetooth/bluedroid/bta/include/
Dbta_gattc_ci.h47 UINT16 num_attr; member
94 UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_atrr,
Dbta_gattc_co.h79 UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_attr,
/external/bluetooth/bluedroid/bta/hf_client/
Dbta_hf_client_sdp.c312 UINT8 num_attr; in bta_hf_client_do_disc() local
322 num_attr = 4; in bta_hf_client_do_disc()
331 num_attr = 3; in bta_hf_client_do_disc()
344 uuid_list, num_attr, attr_list); in bta_hf_client_do_disc()
/external/bluetooth/bluedroid/bta/ag/
Dbta_ag_sdp.c412 UINT8 num_attr; in bta_ag_do_disc() local
422 num_attr = 4; in bta_ag_do_disc()
431 num_attr = 3; in bta_ag_do_disc()
441 num_attr = 4; in bta_ag_do_disc()
465 uuid_list, num_attr, attr_list); in bta_ag_do_disc()
/external/bluetooth/bluedroid/btif/src/
Dbtif_rc.c1073 UINT8 num_attr; in btif_rc_upstreams_evt() local
1075 if (pavrc_cmd->get_elem_attrs.num_attr == 0) in btif_rc_upstreams_evt()
1079 num_attr = BTRC_MAX_ELEM_ATTR_SIZE; in btif_rc_upstreams_evt()
1085 else if (pavrc_cmd->get_elem_attrs.num_attr == 0xFF) in btif_rc_upstreams_evt()
1094 num_attr = pavrc_cmd->get_elem_attrs.num_attr; in btif_rc_upstreams_evt()
1096 *pavrc_cmd->get_elem_attrs.num_attr); in btif_rc_upstreams_evt()
1099 HAL_CBACK(bt_rc_callbacks, get_element_attr_cb, num_attr, element_attrs); in btif_rc_upstreams_evt()
1281 static bt_status_t get_element_attr_rsp(uint8_t num_attr, btrc_element_attr_val_t *p_attrs) in get_element_attr_rsp() argument
1288 memset(element_attrs, 0, sizeof(tAVRC_ATTR_ENTRY) * num_attr); in get_element_attr_rsp()
1290 if (num_attr == 0) in get_element_attr_rsp()
[all …]
/external/bluetooth/bluedroid/stack/a2dp/
Da2d_api.c293 if(p_db->p_attrs == NULL || p_db->num_attr == 0) in A2D_FindService()
296 p_db->num_attr = A2D_NUM_ATTR; in A2D_FindService()
299 result = SDP_InitDiscoveryDb(p_db->p_db, p_db->db_len, 1, &uuid_list, p_db->num_attr, in A2D_FindService()
/external/wpa_supplicant_8/src/tls/
Dx509v3.c21 for (i = 0; i < name->num_attr; i++) { in x509_free_name()
26 name->num_attr = 0; in x509_free_name()
158 if (a->num_attr < b->num_attr) in x509_name_compare()
160 if (a->num_attr > b->num_attr) in x509_name_compare()
163 for (i = 0; i < a->num_attr; i++) { in x509_name_compare()
440 if (name->num_attr == X509_MAX_NAME_ATTRIBUTES) { in x509_parse_name()
460 name->attr[name->num_attr].type = type; in x509_parse_name()
461 name->attr[name->num_attr].value = val; in x509_parse_name()
462 name->num_attr++; in x509_parse_name()
511 for (i = 0; i < name->num_attr; i++) { in x509_name_string()
Dx509v3.h36 size_t num_attr; member
/external/bluetooth/bluedroid/stack/include/
Davrc_defs.h987 UINT8 num_attr; member
1007 UINT8 num_attr; member
1047 UINT8 num_attr; member
1219 UINT8 num_attr; member
1249 UINT8 num_attr; member
1259 UINT8 num_attr; member
1288 UINT8 num_attr; member
Da2d_api.h104 UINT16 num_attr;/* The number of attributes in p_attrs */ member
Davrc_api.h125 UINT16 num_attr;/* The number of attributes in p_attrs */ member
Dsdp_api.h207 UINT16 num_attr,
/external/chromium_org/third_party/mesa/src/src/glsl/
Dlinker.cpp1325 unsigned num_attr = 0; in assign_attribute_or_color_locations() local
1427 to_assign[num_attr].slots = slots; in assign_attribute_or_color_locations()
1428 to_assign[num_attr].var = var; in assign_attribute_or_color_locations()
1429 num_attr++; in assign_attribute_or_color_locations()
1436 if (num_attr == 0) in assign_attribute_or_color_locations()
1439 qsort(to_assign, num_attr, sizeof(to_assign[0]), temp_attr::compare); in assign_attribute_or_color_locations()
1452 for (unsigned i = 0; i < num_attr; i++) { in assign_attribute_or_color_locations()
/external/mesa3d/src/glsl/
Dlinker.cpp1325 unsigned num_attr = 0; in assign_attribute_or_color_locations() local
1427 to_assign[num_attr].slots = slots; in assign_attribute_or_color_locations()
1428 to_assign[num_attr].var = var; in assign_attribute_or_color_locations()
1429 num_attr++; in assign_attribute_or_color_locations()
1436 if (num_attr == 0) in assign_attribute_or_color_locations()
1439 qsort(to_assign, num_attr, sizeof(to_assign[0]), temp_attr::compare); in assign_attribute_or_color_locations()
1452 for (unsigned i = 0; i < num_attr; i++) { in assign_attribute_or_color_locations()

12