/system/bt/service/hal/ |
D | bluetooth_avrcp_interface.h | 42 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,
|
D | bluetooth_avrcp_interface.cc | 106 void GetPlayerAppValueCallback(uint8_t num_attr, btrc_player_attr_t* p_attrs, in GetPlayerAppValueCallback() argument 112 observer.GetPlayerAppValueCallback(num_attr, p_attrs, bd_addr); in GetPlayerAppValueCallback() 116 void GetPlayerAppAttrsTextCallback(uint8_t num_attr, in GetPlayerAppAttrsTextCallback() argument 123 observer.GetPlayerAppAttrsTextCallback(num_attr, p_attrs, bd_addr); in GetPlayerAppAttrsTextCallback() 148 void GetElementAttrCallback(uint8_t num_attr, btrc_media_attr_t* p_attrs, in GetElementAttrCallback() argument 154 observer.GetElementAttrCallback(num_attr, p_attrs, bd_addr); in GetElementAttrCallback() 206 uint32_t end_item, uint8_t num_attr, in GetFolderItemsCallback() argument 212 observer.GetFolderItemsCallback(scope, start_item, end_item, num_attr, in GetFolderItemsCallback() 228 uint8_t num_attr, btrc_media_attr_t* p_attrs, in GetItemAttrCallback() argument 234 observer.GetItemAttrCallback(scope, uid, uid_counter, num_attr, p_attrs, in GetItemAttrCallback() [all …]
|
/system/bt/service/ |
D | avrcp_target.cc | 165 btrc_values.num_attr = values.size(); in GetPlayerAppValueResponse() 273 void AvrcpTarget::GetPlayerAppValueCallback(uint8_t num_attr, in GetPlayerAppValueCallback() argument 278 attr_vec.reserve(num_attr); in GetPlayerAppValueCallback() 279 for (auto* it = p_attrs; it != p_attrs + num_attr; ++it) { in GetPlayerAppValueCallback() 287 void AvrcpTarget::GetPlayerAppAttrsTextCallback(uint8_t num_attr, in GetPlayerAppAttrsTextCallback() argument 292 attr_vec.reserve(num_attr); in GetPlayerAppAttrsTextCallback() 293 for (auto* it = p_attrs; it != p_attrs + num_attr; ++it) { in GetPlayerAppAttrsTextCallback() 320 values.reserve(p_vals->num_attr); in SetPlayerAppValueCallback() 321 for (size_t i = 0; i < p_vals->num_attr; ++i) { in SetPlayerAppValueCallback() 329 void AvrcpTarget::GetElementAttrCallback(uint8_t num_attr, in GetElementAttrCallback() argument [all …]
|
D | avrcp_target.h | 126 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,
|
D | avrcp_control.cc | 161 uint8_t num_attr, in CtrlTrackChangedCallback() argument 173 for (size_t i = 0; i < num_attr; ++i) { in CtrlTrackChangedCallback()
|
D | avrcp_control.h | 96 void CtrlTrackChangedCallback(const RawAddress& bd_addr, uint8_t num_attr,
|
/system/bt/include/hardware/ |
D | bt_rc.h | 181 uint8_t num_attr; member 302 typedef void (*btrc_get_player_app_value_callback)(uint8_t num_attr, 310 uint8_t num_attr, btrc_player_attr_t* p_attrs, const RawAddress& bd_addr); 326 typedef void (*btrc_get_element_attr_callback)(uint8_t num_attr, 360 uint8_t scope, uint32_t start_item, uint32_t end_item, uint8_t num_attr, 373 uint8_t num_attr, 447 int num_attr, 466 const RawAddress& bd_addr, int num_attr, 483 uint8_t num_attr, 540 btrc_status_t rsp_status, uint8_t num_attr, [all …]
|
/system/bt/stack/avrc/ |
D | avrc_pars_ct.cc | 164 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() 574 p_result->list_app_attr.num_attr = 0; in avrc_ctrl_pars_vendor_rsp() 578 BE_STREAM_TO_UINT8(p_result->list_app_attr.num_attr, p); in avrc_ctrl_pars_vendor_rsp() 580 p_result->list_app_attr.num_attr); in avrc_ctrl_pars_vendor_rsp() 582 if (p_result->list_app_attr.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_ctrl_pars_vendor_rsp() 584 p_result->list_app_attr.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_ctrl_pars_vendor_rsp() [all …]
|
D | avrc_pars_tg.cc | 158 BE_STREAM_TO_UINT8(p_result->get_cur_app_val.num_attr, p); in avrc_pars_vendor_cmd() 159 if (len != (p_result->get_cur_app_val.num_attr + 1)) { in avrc_pars_vendor_cmd() 164 if (p_result->get_cur_app_val.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_pars_vendor_cmd() 166 p_result->get_cur_app_val.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_pars_vendor_cmd() 170 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd() 175 p_result->get_cur_app_val.num_attr = yy; in avrc_pars_vendor_cmd() 280 BE_STREAM_TO_UINT8(p_result->get_elem_attrs.num_attr, p); in avrc_pars_vendor_cmd() 282 (p_result->get_elem_attrs.num_attr * 4)) in avrc_pars_vendor_cmd() 286 if (p_result->get_elem_attrs.num_attr > AVRC_MAX_ELEM_ATTR_SIZE) in avrc_pars_vendor_cmd() 287 p_result->get_elem_attrs.num_attr = AVRC_MAX_ELEM_ATTR_SIZE; in avrc_pars_vendor_cmd() [all …]
|
D | avrc_sdp.cc | 125 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()
|
D | avrc_bld_ct.cc | 254 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() 616 p_pkt, p_cmd->get_cur_app_val.num_attr, p_cmd->get_cur_app_val.attrs); in AVRC_BldCommand() 632 p_pkt, p_cmd->get_elem_attrs.num_attr, p_cmd->get_elem_attrs.attrs); in AVRC_BldCommand()
|
D | avrc_bld_tg.cc | 140 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_list_app_settings_attr_rsp() 311 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_app_setting_text_rsp() 315 p_rsp->num_attr = num_added; in avrc_bld_app_setting_text_rsp() 619 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) in avrc_bld_notify_rsp() 620 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_bld_notify_rsp() 622 if (p_rsp->param.player_setting.num_attr > 0) { in avrc_bld_notify_rsp() 623 UINT8_TO_BE_STREAM(p_data, p_rsp->param.player_setting.num_attr); in avrc_bld_notify_rsp() 625 for (xx = 0; xx < p_rsp->param.player_setting.num_attr; xx++) { in avrc_bld_notify_rsp()
|
/system/bt/stack/sdp/ |
D | sdp_utils.cc | 689 p_seq->num_attr = 0; in sdpu_extract_attr_seq() 762 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq() 763 p_seq->attr_entry[p_seq->num_attr].end = in sdpu_extract_attr_seq() 764 p_seq->attr_entry[p_seq->num_attr].start; in sdpu_extract_attr_seq() 766 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq() 767 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].end, p); in sdpu_extract_attr_seq() 772 if (++p_seq->num_attr >= MAX_ATTR_PER_SEQ) return (NULL); in sdpu_extract_attr_seq() 965 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db) { in sdpu_sort_attr_list() argument 970 if (num_attr <= 1) { in sdpu_sort_attr_list() 972 } else if (num_attr > SDP_MAX_ATTR_FILTERS) { in sdpu_sort_attr_list() [all …]
|
D | sdp_api.cc | 72 uint16_t num_attr, uint16_t* p_attr_list) { in SDP_InitDiscoveryDb() argument 77 num_attr > SDP_MAX_ATTR_FILTERS || num_uuid > SDP_MAX_UUID_FILTERS) { in SDP_InitDiscoveryDb() 81 PTR_TO_UINT(p_db), len, num_uuid, num_attr); in SDP_InitDiscoveryDb() 97 for (xx = 0; xx < num_attr; xx++) p_db->attr_filters[xx] = *p_attr_list++; in SDP_InitDiscoveryDb() 100 sdpu_sort_attr_list(num_attr, p_db); in SDP_InitDiscoveryDb() 102 p_db->num_attr_filters = num_attr; in SDP_InitDiscoveryDb()
|
D | sdpint.h | 107 uint16_t num_attr; member 276 extern void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db);
|
D | sdp_server.cc | 347 if ((!p_req) || (!attr_seq.num_attr) || in process_service_attr_req() 406 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req() 470 if (xx == attr_seq.num_attr) p_ccb->cont_info.next_attr_index = 0; in process_service_attr_req() 582 if ((!p_req) || (!attr_seq.num_attr) || in process_service_search_attr_req() 652 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/ |
D | bta_hf_client_sdp.cc | 298 uint8_t num_attr; in bta_hf_client_do_disc() local 307 num_attr = 4; in bta_hf_client_do_disc() 315 num_attr = 3; in bta_hf_client_do_disc() 324 num_uuid, uuid_list, num_attr, attr_list); in bta_hf_client_do_disc()
|
/system/bt/bta/ag/ |
D | bta_ag_sdp.cc | 429 uint8_t num_attr; in bta_ag_do_disc() local 437 num_attr = 4; in bta_ag_do_disc() 445 num_attr = 3; in bta_ag_do_disc() 454 num_attr = 4; in bta_ag_do_disc() 470 num_attr = 4; in bta_ag_do_disc() 484 uuid_list, num_attr, attr_list)) { in bta_ag_do_disc()
|
/system/bt/bta/gatt/ |
D | bta_gattc_cache.cc | 724 uint16_t num_attr = 0; in bta_gattc_cache_load() local 736 if (fread(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_load() 743 std::vector<StoredAttribute> attr(num_attr); in bta_gattc_cache_load() 745 if (fread(attr.data(), sizeof(StoredAttribute), num_attr, fd) != num_attr) { in bta_gattc_cache_load() 789 uint16_t num_attr = attr.size(); in bta_gattc_cache_write() local 790 if (fwrite(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_write() 797 if (fwrite(attr.data(), sizeof(StoredAttribute), num_attr, fd) != num_attr) { in bta_gattc_cache_write()
|
D | bta_gattc_api.cc | 445 p_buf->num_attr = p_read_multi->num_attr; in BTA_GATTC_ReadMultiple() 447 if (p_buf->num_attr > 0) in BTA_GATTC_ReadMultiple() 449 sizeof(uint16_t) * p_read_multi->num_attr); in BTA_GATTC_ReadMultiple()
|
/system/bt/stack/a2dp/ |
D | a2dp_api.cc | 297 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/stack/include/ |
D | a2dp_api.h | 57 uint16_t num_attr; /* The number of attributes in p_attrs */ member
|
D | avrc_defs.h | 1116 uint8_t num_attr; member 1134 uint8_t num_attr; member 1170 uint8_t num_attr; member 1338 uint8_t num_attr; member 1368 uint8_t num_attr; member 1395 uint8_t num_attr; member
|
D | avrc_api.h | 152 uint16_t num_attr; /* The number of attributes in p_attrs */ member
|
/system/bt/btif/src/ |
D | btif_rc.cc | 1440 uint8_t num_attr = fill_attribute_id_array( in btif_rc_upstreams_evt() local 1441 pavrc_cmd->get_elem_attrs.num_attr, in btif_rc_upstreams_evt() 1444 if (num_attr == 0) { in btif_rc_upstreams_evt() 1453 HAL_CBACK(bt_rc_callbacks, get_element_attr_cb, num_attr, element_attrs, in btif_rc_upstreams_evt() 1487 uint8_t num_attr; in btif_rc_upstreams_evt() local 1488 num_attr = pavrc_cmd->get_items.attr_count; in btif_rc_upstreams_evt() 1493 __func__, num_attr, pavrc_cmd->get_items.start_item, in btif_rc_upstreams_evt() 1501 if ((num_attr != 0xFF && num_attr > BTRC_MAX_ELEM_ATTR_SIZE)) { in btif_rc_upstreams_evt() 1509 if ((num_attr != 0xFF) && (num_attr != 0x00)) { in btif_rc_upstreams_evt() 1511 sizeof(uint32_t) * num_attr); in btif_rc_upstreams_evt() [all …]
|