/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 | 183 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/ |
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() 598 p_result->list_app_attr.num_attr = 0; in avrc_ctrl_pars_vendor_rsp() 602 BE_STREAM_TO_UINT8(p_result->list_app_attr.num_attr, p); in avrc_ctrl_pars_vendor_rsp() 604 p_result->list_app_attr.num_attr); in avrc_ctrl_pars_vendor_rsp() 606 if (p_result->list_app_attr.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_ctrl_pars_vendor_rsp() 608 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() 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()
|
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 | 694 p_seq->num_attr = 0; 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 p_seq->attr_entry[p_seq->num_attr].end = in sdpu_extract_attr_seq() 769 p_seq->attr_entry[p_seq->num_attr].start; in sdpu_extract_attr_seq() 771 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq() 772 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].end, p); in sdpu_extract_attr_seq() 777 if (++p_seq->num_attr >= MAX_ATTR_PER_SEQ) return (NULL); in sdpu_extract_attr_seq() 970 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db) { in sdpu_sort_attr_list() argument 975 if (num_attr <= 1) { in sdpu_sort_attr_list() 977 } else if (num_attr > SDP_MAX_ATTR_FILTERS) { in sdpu_sort_attr_list() [all …]
|
D | sdpint.h | 80 uint16_t num_attr; member 229 extern void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db);
|
D | sdp_api.cc | 64 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()
|
D | sdp_server.cc | 339 if ((!p_req) || (!attr_seq.num_attr) || in process_service_attr_req() 398 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req() 462 if (xx == attr_seq.num_attr) p_ccb->cont_info.next_attr_index = 0; in process_service_attr_req() 574 if ((!p_req) || (!attr_seq.num_attr) || in process_service_search_attr_req() 644 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 | 302 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/ |
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/btif/test/ |
D | btif_rc_test.cc | 127 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/ |
D | a2dp_api.h | 57 uint16_t num_attr; /* The number of attributes in p_attrs */ member
|
D | avrc_defs.h | 1117 uint8_t num_attr; member 1135 uint8_t num_attr; member 1171 uint8_t num_attr; member 1339 uint8_t num_attr; member 1369 uint8_t num_attr; member 1396 uint8_t num_attr; member
|
/system/bt/btif/src/ |
D | btif_rc.cc | 1518 uint8_t num_attr = fill_attribute_id_array( in btif_rc_upstreams_evt() local 1519 pavrc_cmd->get_elem_attrs.num_attr, pavrc_cmd->get_elem_attrs.attrs, in btif_rc_upstreams_evt() 1521 if (num_attr == 0) { in btif_rc_upstreams_evt() 1530 HAL_CBACK(bt_rc_callbacks, get_element_attr_cb, num_attr, element_attrs, in btif_rc_upstreams_evt() 1564 uint8_t num_attr; in btif_rc_upstreams_evt() local 1565 num_attr = pavrc_cmd->get_items.attr_count; in btif_rc_upstreams_evt() 1570 __func__, num_attr, pavrc_cmd->get_items.start_item, in btif_rc_upstreams_evt() 1578 if ((num_attr != 0xFF && num_attr > BTRC_MAX_ELEM_ATTR_SIZE)) { in btif_rc_upstreams_evt() 1586 if ((num_attr != 0xFF) && (num_attr != 0x00)) { in btif_rc_upstreams_evt() 1588 sizeof(uint32_t) * num_attr); in btif_rc_upstreams_evt() [all …]
|