/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() 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 …]
|
D | avrc_pars_tg.cc | 166 BE_STREAM_TO_UINT8(p_result->get_cur_app_val.num_attr, p); in avrc_pars_vendor_cmd() 167 if (len != (p_result->get_cur_app_val.num_attr + 1)) { in avrc_pars_vendor_cmd() 172 if (p_result->get_cur_app_val.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_pars_vendor_cmd() 174 p_result->get_cur_app_val.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_pars_vendor_cmd() 178 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd() 183 p_result->get_cur_app_val.num_attr = yy; in avrc_pars_vendor_cmd() 288 BE_STREAM_TO_UINT8(p_result->get_elem_attrs.num_attr, p); in avrc_pars_vendor_cmd() 290 (p_result->get_elem_attrs.num_attr * 4)) in avrc_pars_vendor_cmd() 294 if (p_result->get_elem_attrs.num_attr > AVRC_MAX_ELEM_ATTR_SIZE) in avrc_pars_vendor_cmd() 295 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 | 695 p_seq->num_attr = 0; in sdpu_extract_attr_seq() 768 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq() 769 p_seq->attr_entry[p_seq->num_attr].end = in sdpu_extract_attr_seq() 770 p_seq->attr_entry[p_seq->num_attr].start; in sdpu_extract_attr_seq() 772 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq() 773 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].end, p); in sdpu_extract_attr_seq() 778 if (++p_seq->num_attr >= MAX_ATTR_PER_SEQ) return (NULL); in sdpu_extract_attr_seq() 971 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db) { in sdpu_sort_attr_list() argument 976 if (num_attr <= 1) { in sdpu_sort_attr_list() 978 } 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 | 345 if ((!p_req) || (!attr_seq.num_attr) || in process_service_attr_req() 404 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req() 468 if (xx == attr_seq.num_attr) p_ccb->cont_info.next_attr_index = 0; in process_service_attr_req() 581 if ((!p_req) || (!attr_seq.num_attr) || in process_service_search_attr_req() 651 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 | 303 uint8_t num_attr; in bta_hf_client_do_disc() local 312 num_attr = 4; in bta_hf_client_do_disc() 320 num_attr = 3; in bta_hf_client_do_disc() 329 num_uuid, uuid_list, num_attr, attr_list); in bta_hf_client_do_disc()
|
/system/bt/bta/ag/ |
D | bta_ag_sdp.cc | 430 uint8_t num_attr; in bta_ag_do_disc() local 438 num_attr = 4; in bta_ag_do_disc() 446 num_attr = 3; in bta_ag_do_disc() 455 num_attr = 4; in bta_ag_do_disc() 471 num_attr = 4; in bta_ag_do_disc() 491 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, in btif_rc_upstreams_evt() 1522 if (num_attr == 0) { in btif_rc_upstreams_evt() 1531 HAL_CBACK(bt_rc_callbacks, get_element_attr_cb, num_attr, element_attrs, in btif_rc_upstreams_evt() 1565 uint8_t num_attr; in btif_rc_upstreams_evt() local 1566 num_attr = pavrc_cmd->get_items.attr_count; in btif_rc_upstreams_evt() 1571 __func__, num_attr, pavrc_cmd->get_items.start_item, in btif_rc_upstreams_evt() 1579 if ((num_attr != 0xFF && num_attr > BTRC_MAX_ELEM_ATTR_SIZE)) { in btif_rc_upstreams_evt() 1587 if ((num_attr != 0xFF) && (num_attr != 0x00)) { in btif_rc_upstreams_evt() 1589 sizeof(uint32_t) * num_attr); in btif_rc_upstreams_evt() [all …]
|