Home
last modified time | relevance | path

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

12

/system/bt/service/hal/
Dbluetooth_avrcp_interface.h42 virtual void GetPlayerAppValueCallback(uint8_t num_attr,
45 virtual void GetPlayerAppAttrsTextCallback(uint8_t num_attr,
54 virtual void GetElementAttrCallback(uint8_t num_attr,
69 uint32_t end_item, uint8_t num_attr,
75 uint16_t uid_counter, uint8_t num_attr,
103 const RawAddress& bd_addr, uint8_t num_attr,
113 uint8_t num_attr,
Dbluetooth_avrcp_interface.cc107 void GetPlayerAppValueCallback(uint8_t num_attr, btrc_player_attr_t* p_attrs, in GetPlayerAppValueCallback() argument
113 observer.GetPlayerAppValueCallback(num_attr, p_attrs, bd_addr); in GetPlayerAppValueCallback()
117 void GetPlayerAppAttrsTextCallback(uint8_t num_attr, in GetPlayerAppAttrsTextCallback() argument
124 observer.GetPlayerAppAttrsTextCallback(num_attr, p_attrs, bd_addr); in GetPlayerAppAttrsTextCallback()
149 void GetElementAttrCallback(uint8_t num_attr, btrc_media_attr_t* p_attrs, in GetElementAttrCallback() argument
155 observer.GetElementAttrCallback(num_attr, p_attrs, bd_addr); in GetElementAttrCallback()
207 uint32_t end_item, uint8_t num_attr, in GetFolderItemsCallback() argument
213 observer.GetFolderItemsCallback(scope, start_item, end_item, num_attr, in GetFolderItemsCallback()
229 uint8_t num_attr, btrc_media_attr_t* p_attrs, in GetItemAttrCallback() argument
235 observer.GetItemAttrCallback(scope, uid, uid_counter, num_attr, p_attrs, in GetItemAttrCallback()
[all …]
/system/bt/service/
Davrcp_target.cc166 btrc_values.num_attr = values.size(); in GetPlayerAppValueResponse()
274 void AvrcpTarget::GetPlayerAppValueCallback(uint8_t num_attr, in GetPlayerAppValueCallback() argument
279 attr_vec.reserve(num_attr); in GetPlayerAppValueCallback()
280 for (auto* it = p_attrs; it != p_attrs + num_attr; ++it) { in GetPlayerAppValueCallback()
288 void AvrcpTarget::GetPlayerAppAttrsTextCallback(uint8_t num_attr, in GetPlayerAppAttrsTextCallback() argument
293 attr_vec.reserve(num_attr); in GetPlayerAppAttrsTextCallback()
294 for (auto* it = p_attrs; it != p_attrs + num_attr; ++it) { in GetPlayerAppAttrsTextCallback()
321 values.reserve(p_vals->num_attr); in SetPlayerAppValueCallback()
322 for (size_t i = 0; i < p_vals->num_attr; ++i) { in SetPlayerAppValueCallback()
330 void AvrcpTarget::GetElementAttrCallback(uint8_t num_attr, in GetElementAttrCallback() argument
[all …]
Davrcp_target.h126 void GetPlayerAppValueCallback(uint8_t num_attr, btrc_player_attr_t* p_attrs,
128 void GetPlayerAppAttrsTextCallback(uint8_t num_attr,
136 void GetElementAttrCallback(uint8_t num_attr, btrc_media_attr_t* p_attrs,
Davrcp_control.cc161 uint8_t num_attr, in CtrlTrackChangedCallback() argument
173 for (size_t i = 0; i < num_attr; ++i) { in CtrlTrackChangedCallback()
Davrcp_control.h96 void CtrlTrackChangedCallback(const RawAddress& bd_addr, uint8_t num_attr,
/system/bt/include/hardware/
Dbt_rc.h183 uint8_t num_attr; member
304 typedef void (*btrc_get_player_app_value_callback)(uint8_t num_attr,
312 uint8_t num_attr, btrc_player_attr_t* p_attrs, const RawAddress& bd_addr);
328 typedef void (*btrc_get_element_attr_callback)(uint8_t num_attr,
362 uint8_t scope, uint32_t start_item, uint32_t end_item, uint8_t num_attr,
375 uint8_t num_attr,
449 int num_attr,
468 const RawAddress& bd_addr, int num_attr,
485 uint8_t num_attr,
542 btrc_status_t rsp_status, uint8_t num_attr,
[all …]
/system/bt/stack/avrc/
Davrc_pars_ct.cc164 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.num_attr, p_stream); in avrc_parse_notification_rsp()
165 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) { in avrc_parse_notification_rsp()
167 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_parse_notification_rsp()
169 min_len += p_rsp->param.player_setting.num_attr * 2; in avrc_parse_notification_rsp()
171 for (int index = 0; index < p_rsp->param.player_setting.num_attr; in avrc_parse_notification_rsp()
605 p_result->list_app_attr.num_attr = 0; in avrc_ctrl_pars_vendor_rsp()
609 BE_STREAM_TO_UINT8(p_result->list_app_attr.num_attr, p); in avrc_ctrl_pars_vendor_rsp()
611 p_result->list_app_attr.num_attr); in avrc_ctrl_pars_vendor_rsp()
613 if (p_result->list_app_attr.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_ctrl_pars_vendor_rsp()
615 p_result->list_app_attr.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_ctrl_pars_vendor_rsp()
[all …]
Davrc_pars_tg.cc174 BE_STREAM_TO_UINT8(p_result->get_cur_app_val.num_attr, p); in avrc_pars_vendor_cmd()
175 if (len != (p_result->get_cur_app_val.num_attr + 1)) { in avrc_pars_vendor_cmd()
180 if (p_result->get_cur_app_val.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_pars_vendor_cmd()
182 p_result->get_cur_app_val.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_pars_vendor_cmd()
186 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd()
191 p_result->get_cur_app_val.num_attr = yy; in avrc_pars_vendor_cmd()
296 BE_STREAM_TO_UINT8(p_result->get_elem_attrs.num_attr, p); in avrc_pars_vendor_cmd()
298 (p_result->get_elem_attrs.num_attr * 4)) in avrc_pars_vendor_cmd()
302 if (p_result->get_elem_attrs.num_attr > AVRC_MAX_ELEM_ATTR_SIZE) in avrc_pars_vendor_cmd()
303 p_result->get_elem_attrs.num_attr = AVRC_MAX_ELEM_ATTR_SIZE; in avrc_pars_vendor_cmd()
[all …]
Davrc_sdp.cc125 if (p_db->p_attrs == NULL || p_db->num_attr == 0) { in AVRC_FindService()
127 p_db->num_attr = AVRC_NUM_ATTR; in AVRC_FindService()
132 p_db->num_attr, p_db->p_attrs); in AVRC_FindService()
Davrc_bld_ct.cc254 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd()
257 UINT8_TO_BE_STREAM(p_data, p_cmd->num_attr); in avrc_bld_get_player_app_setting_attr_text_cmd()
258 for (int count = 0; count < p_cmd->num_attr; count++) { in avrc_bld_get_player_app_setting_attr_text_cmd()
633 p_pkt, p_cmd->get_cur_app_val.num_attr, p_cmd->get_cur_app_val.attrs); in AVRC_BldCommand()
649 p_pkt, p_cmd->get_elem_attrs.num_attr, p_cmd->get_elem_attrs.attrs); in AVRC_BldCommand()
/system/bt/stack/sdp/
Dsdp_utils.cc690 p_seq->num_attr = 0; in sdpu_extract_attr_seq()
763 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq()
764 p_seq->attr_entry[p_seq->num_attr].end = in sdpu_extract_attr_seq()
765 p_seq->attr_entry[p_seq->num_attr].start; in sdpu_extract_attr_seq()
767 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq()
768 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].end, p); in sdpu_extract_attr_seq()
773 if (++p_seq->num_attr >= MAX_ATTR_PER_SEQ) return (NULL); in sdpu_extract_attr_seq()
966 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db) { in sdpu_sort_attr_list() argument
971 if (num_attr <= 1) { in sdpu_sort_attr_list()
973 } else if (num_attr > SDP_MAX_ATTR_FILTERS) { in sdpu_sort_attr_list()
[all …]
Dsdpint.h80 uint16_t num_attr; member
220 extern void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db);
Dsdp_api.cc64 uint16_t num_attr, uint16_t* p_attr_list) { in SDP_InitDiscoveryDb() argument
69 num_attr > SDP_MAX_ATTR_FILTERS || num_uuid > SDP_MAX_UUID_FILTERS) { in SDP_InitDiscoveryDb()
73 PTR_TO_UINT(p_db), len, num_uuid, num_attr); in SDP_InitDiscoveryDb()
89 for (xx = 0; xx < num_attr; xx++) p_db->attr_filters[xx] = *p_attr_list++; in SDP_InitDiscoveryDb()
92 sdpu_sort_attr_list(num_attr, p_db); in SDP_InitDiscoveryDb()
94 p_db->num_attr_filters = num_attr; in SDP_InitDiscoveryDb()
Dsdp_server.cc343 if ((!p_req) || (!attr_seq.num_attr) || in process_service_attr_req()
402 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req()
466 if (xx == attr_seq.num_attr) p_ccb->cont_info.next_attr_index = 0; in process_service_attr_req()
579 if ((!p_req) || (!attr_seq.num_attr) || in process_service_search_attr_req()
649 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_search_attr_req()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.cc302 uint8_t num_attr; in bta_hf_client_do_disc() local
311 num_attr = 4; in bta_hf_client_do_disc()
319 num_attr = 3; in bta_hf_client_do_disc()
328 num_uuid, uuid_list, num_attr, attr_list); in bta_hf_client_do_disc()
/system/bt/bta/ag/
Dbta_ag_sdp.cc426 uint8_t num_attr; in bta_ag_do_disc() local
434 num_attr = 4; in bta_ag_do_disc()
442 num_attr = 3; in bta_ag_do_disc()
451 num_attr = 4; in bta_ag_do_disc()
467 num_attr = 4; in bta_ag_do_disc()
487 uuid_list, num_attr, attr_list)) { in bta_ag_do_disc()
/system/bt/stack/test/fuzzers/a2dp/
Da2dpFuzzHelpers.h38 db_params.num_attr = attr_list.size(); in generateDBParams()
/system/bt/stack/a2dp/
Da2dp_api.cc297 if (p_db->p_attrs == NULL || p_db->num_attr == 0) { in A2DP_FindService()
299 p_db->num_attr = A2DP_NUM_ATTR; in A2DP_FindService()
307 p_db->num_attr, p_db->p_attrs); in A2DP_FindService()
/system/bt/btif/test/
Dbtif_rc_test.cc127 uint8_t num_attr = BTRC_MAX_ELEM_ATTR_SIZE + 1; in TEST_F() local
129 CHECK(get_element_attr_rsp(bd_addr, num_attr, p_attrs) == BT_STATUS_SUCCESS); in TEST_F()
/system/bt/stack/include/
Da2dp_api.h57 uint16_t num_attr; /* The number of attributes in p_attrs */ member
/system/bt/bta/gatt/
Dbta_gattc_cache.cc947 uint16_t num_attr = 0; in bta_gattc_cache_load() local
959 if (fread(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_load()
966 std::vector<StoredAttribute> attr(num_attr); in bta_gattc_cache_load()
968 if (fread(attr.data(), sizeof(StoredAttribute), num_attr, fd) != num_attr) { in bta_gattc_cache_load()
1012 uint16_t num_attr = attr.size(); in bta_gattc_cache_write() local
1013 if (fwrite(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_write()
1020 if (fwrite(attr.data(), sizeof(StoredAttribute), num_attr, fd) != num_attr) { in bta_gattc_cache_write()
Dbta_gattc_api.cc452 p_buf->num_attr = p_read_multi->num_attr; in BTA_GATTC_ReadMultiple()
454 if (p_buf->num_attr > 0) in BTA_GATTC_ReadMultiple()
456 sizeof(uint16_t) * p_read_multi->num_attr); in BTA_GATTC_ReadMultiple()
/system/bt/btif/src/
Dbtif_rc.cc1517 uint8_t num_attr = fill_attribute_id_array( in btif_rc_upstreams_evt() local
1518 pavrc_cmd->get_elem_attrs.num_attr, pavrc_cmd->get_elem_attrs.attrs, in btif_rc_upstreams_evt()
1520 if (num_attr == 0) { in btif_rc_upstreams_evt()
1529 HAL_CBACK(bt_rc_callbacks, get_element_attr_cb, num_attr, element_attrs, in btif_rc_upstreams_evt()
1563 uint8_t num_attr; in btif_rc_upstreams_evt() local
1564 num_attr = pavrc_cmd->get_items.attr_count; in btif_rc_upstreams_evt()
1569 __func__, num_attr, pavrc_cmd->get_items.start_item, in btif_rc_upstreams_evt()
1577 if ((num_attr != 0xFF && num_attr > BTRC_MAX_ELEM_ATTR_SIZE)) { in btif_rc_upstreams_evt()
1585 if ((num_attr != 0xFF) && (num_attr != 0x00)) { in btif_rc_upstreams_evt()
1587 sizeof(uint32_t) * num_attr); in btif_rc_upstreams_evt()
[all …]
/system/bt/test/mock/
Dmock_stack_sdp.cc33 uint16_t num_attr, uint16_t* p_attr_list) { in SDP_InitDiscoveryDb() argument

12