/packages/modules/Bluetooth/system/stack/avrc/ |
D | avrc_pars_ct.cc | 156 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.num_attr, p_stream); in avrc_parse_notification_rsp() 157 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) { in avrc_parse_notification_rsp() 158 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_parse_notification_rsp() 160 min_len += p_rsp->param.player_setting.num_attr * 2; in avrc_parse_notification_rsp() 162 for (int index = 0; index < p_rsp->param.player_setting.num_attr; in avrc_parse_notification_rsp() 586 p_result->list_app_attr.num_attr = 0; in avrc_ctrl_pars_vendor_rsp() 590 BE_STREAM_TO_UINT8(p_result->list_app_attr.num_attr, p); in avrc_ctrl_pars_vendor_rsp() 591 log::verbose("attr count = {}", p_result->list_app_attr.num_attr); in avrc_ctrl_pars_vendor_rsp() 593 if (p_result->list_app_attr.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_ctrl_pars_vendor_rsp() 594 p_result->list_app_attr.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_ctrl_pars_vendor_rsp() [all …]
|
D | avrc_pars_tg.cc | 177 BE_STREAM_TO_UINT8(p_result->get_cur_app_val.num_attr, p); in avrc_pars_vendor_cmd() 178 if (len != (p_result->get_cur_app_val.num_attr + 1)) { in avrc_pars_vendor_cmd() 183 if (p_result->get_cur_app_val.num_attr > AVRC_MAX_APP_ATTR_SIZE) { in avrc_pars_vendor_cmd() 184 p_result->get_cur_app_val.num_attr = AVRC_MAX_APP_ATTR_SIZE; in avrc_pars_vendor_cmd() 188 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd() 193 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 …]
|
D | avrc_bld_ct.cc | 262 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd() 265 UINT8_TO_BE_STREAM(p_data, p_cmd->num_attr); in avrc_bld_get_player_app_setting_attr_text_cmd() 266 for (int count = 0; count < p_cmd->num_attr; count++) { in avrc_bld_get_player_app_setting_attr_text_cmd() 643 p_pkt, p_cmd->get_cur_app_val.num_attr, p_cmd->get_cur_app_val.attrs); in AVRC_BldCommand() 659 p_pkt, p_cmd->get_elem_attrs.num_attr, p_cmd->get_elem_attrs.attrs); in AVRC_BldCommand()
|
D | avrc_sdp.cc | 138 if (p_db->p_attrs == NULL || p_db->num_attr == 0) { in AVRC_FindService() 140 p_db->num_attr = AVRC_NUM_ATTR; in AVRC_FindService() 145 p_db->p_db, p_db->db_len, 1, &uuid_list, p_db->num_attr, p_db->p_attrs); in AVRC_FindService()
|
D | avrc_bld_tg.cc | 148 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_list_app_settings_attr_rsp() 319 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_app_setting_text_rsp() 323 p_rsp->num_attr = num_added; in avrc_bld_app_setting_text_rsp() 626 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) in avrc_bld_notify_rsp() 627 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_bld_notify_rsp() 629 if (p_rsp->param.player_setting.num_attr > 0) { in avrc_bld_notify_rsp() 630 UINT8_TO_BE_STREAM(p_data, p_rsp->param.player_setting.num_attr); in avrc_bld_notify_rsp() 632 for (xx = 0; xx < p_rsp->param.player_setting.num_attr; xx++) { in avrc_bld_notify_rsp()
|
/packages/modules/Bluetooth/system/include/hardware/ |
D | bt_rc.h | 184 uint8_t num_attr; member 305 typedef void (*btrc_get_player_app_value_callback)(uint8_t num_attr, 313 uint8_t num_attr, btrc_player_attr_t* p_attrs, const RawAddress& bd_addr); 329 typedef void (*btrc_get_element_attr_callback)(uint8_t num_attr, 363 uint8_t scope, uint32_t start_item, uint32_t end_item, uint8_t num_attr, 376 uint8_t num_attr, 450 int num_attr, 469 const RawAddress& bd_addr, int num_attr, 486 uint8_t num_attr, 543 btrc_status_t rsp_status, uint8_t num_attr, [all …]
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | bta_gattc_db_storage.cc | 100 uint16_t num_attr = 0; in bta_gattc_load_db() local 112 if (fread(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_load_db() 118 std::vector<StoredAttribute> attr(num_attr); in bta_gattc_load_db() 120 if (fread(attr.data(), sizeof(StoredAttribute), num_attr, fd) != num_attr) { in bta_gattc_load_db() 254 uint16_t num_attr = attr.size(); in bta_gattc_store_db() local 255 if (fwrite(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_store_db() 262 db_bytes.reserve(num_attr * StoredAttribute::kSizeOnDisk); in bta_gattc_store_db()
|
/packages/modules/Bluetooth/system/stack/sdp/ |
D | sdp_utils.cc | 879 p_seq->num_attr = 0; in sdpu_extract_attr_seq() 952 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq() 953 p_seq->attr_entry[p_seq->num_attr].end = in sdpu_extract_attr_seq() 954 p_seq->attr_entry[p_seq->num_attr].start; in sdpu_extract_attr_seq() 956 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].start, p); in sdpu_extract_attr_seq() 957 BE_STREAM_TO_UINT16(p_seq->attr_entry[p_seq->num_attr].end, p); in sdpu_extract_attr_seq() 962 if (++p_seq->num_attr >= MAX_ATTR_PER_SEQ) return (NULL); in sdpu_extract_attr_seq() 1187 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db) { in sdpu_sort_attr_list() argument 1192 if (num_attr <= 1) { in sdpu_sort_attr_list() 1194 } else if (num_attr > SDP_MAX_ATTR_FILTERS) { in sdpu_sort_attr_list() [all …]
|
D | sdp_api.cc | 72 uint16_t num_attr, const 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 fmt::ptr(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 | sdp_server.cc | 477 if ((!p_req) || (!attr_seq.num_attr) || in process_service_attr_req() 558 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req() 642 if (xx == attr_seq.num_attr) p_ccb->cont_info.next_attr_index = 0; in process_service_attr_req() 762 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq->num_attr; in sdp_pbap_pse_dynamic_attributes_len_update() 767 xx, attr_seq->num_attr, attr_seq->attr_entry[xx].start, in sdp_pbap_pse_dynamic_attributes_len_update() 852 if ((!p_req) || (!attr_seq.num_attr) || in process_service_search_attr_req() 946 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_search_attr_req()
|
D | sdpint.h | 89 uint16_t num_attr; member 280 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db);
|
/packages/modules/Bluetooth/system/bta/ag/ |
D | bta_ag_sdp.cc | 481 uint8_t num_attr; in bta_ag_do_disc() local 489 num_attr = 4; in bta_ag_do_disc() 497 num_attr = 3; in bta_ag_do_disc() 506 num_attr = 4; in bta_ag_do_disc() 522 num_attr = 4; in bta_ag_do_disc() 541 p_scb->p_disc_db, BTA_AG_DISC_BUF_SIZE, num_uuid, uuid_list, num_attr, in bta_ag_do_disc()
|
/packages/modules/Bluetooth/system/bta/hf_client/ |
D | bta_hf_client_sdp.cc | 329 uint8_t num_attr; in bta_hf_client_do_disc() local 338 num_attr = 4; in bta_hf_client_do_disc() 346 num_attr = 3; in bta_hf_client_do_disc() 356 num_attr, attr_list); in bta_hf_client_do_disc()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_rc.cc | 1671 uint8_t num_attr = fill_attribute_id_array( in btif_rc_upstreams_evt() local 1672 pavrc_cmd->get_elem_attrs.num_attr, pavrc_cmd->get_elem_attrs.attrs, in btif_rc_upstreams_evt() 1674 if (num_attr == 0) { in btif_rc_upstreams_evt() 1681 HAL_CBACK(bt_rc_callbacks, get_element_attr_cb, num_attr, element_attrs, in btif_rc_upstreams_evt() 1713 uint8_t num_attr; in btif_rc_upstreams_evt() local 1714 num_attr = pavrc_cmd->get_items.attr_count; in btif_rc_upstreams_evt() 1719 num_attr, pavrc_cmd->get_items.start_item, in btif_rc_upstreams_evt() 1727 if ((num_attr != 0xFF && num_attr > BTRC_MAX_ELEM_ATTR_SIZE)) { in btif_rc_upstreams_evt() 1735 if ((num_attr != 0xFF) && (num_attr != 0x00)) { in btif_rc_upstreams_evt() 1737 sizeof(uint32_t) * num_attr); in btif_rc_upstreams_evt() [all …]
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_sdp_api.h | 110 const bluetooth::Uuid* p_uuid_list, uint16_t num_attr, 117 const bluetooth::Uuid* p_uuid_list, uint16_t num_attr, in operator() 119 return body(p_db, len, num_uuid, p_uuid_list, num_attr, p_attr_list); in operator()
|
D | mock_stack_sdp_api.cc | 93 uint16_t num_attr, const uint16_t* p_attr_list) { in SDP_InitDiscoveryDb() argument 96 p_db, len, num_uuid, p_uuid_list, num_attr, p_attr_list); in SDP_InitDiscoveryDb()
|
/packages/modules/Bluetooth/system/stack/a2dp/ |
D | a2dp_api.cc | 325 if (p_db->p_attrs == NULL || p_db->num_attr == 0) { in A2DP_FindService() 327 p_db->num_attr = A2DP_NUM_ATTR; in A2DP_FindService() 334 a2dp_cb.find.p_db, p_db->db_len, 1, &uuid_list, p_db->num_attr, in A2DP_FindService()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_avrcp_controller.cpp | 100 const RawAddress& bd_addr, uint8_t num_attr, in btavrcp_playerapplicationsetting_callback() argument 124 for (int i = 0; i < num_attr; i++) { in btavrcp_playerapplicationsetting_callback() 137 for (int i = 0, k = 0; (i < num_attr) && (k < arraylen); i++) { in btavrcp_playerapplicationsetting_callback() 173 int arraylen = vals.num_attr * 2; in btavrcp_playerapplicationsetting_changed_callback() 183 for (int i = 0, k = 0; (i < vals.num_attr) && (k < arraylen); i++) { in btavrcp_playerapplicationsetting_changed_callback() 246 uint8_t num_attr, in btavrcp_track_changed_callback() argument 269 sCallbackEnv->NewIntArray(num_attr)); in btavrcp_track_changed_callback() 280 sCallbackEnv->NewObjectArray((jint)num_attr, strclazz, 0)); in btavrcp_track_changed_callback() 286 for (jint i = 0; i < num_attr; i++) { in btavrcp_track_changed_callback() 300 addr.get(), (jbyte)(num_attr), attribIds.get(), in btavrcp_track_changed_callback()
|
/packages/modules/Bluetooth/system/btif/test/ |
D | btif_rc_test.cc | 144 uint8_t num_attr = BTRC_MAX_ELEM_ATTR_SIZE + 1; in TEST_F() local 146 ASSERT_EQ(get_element_attr_rsp(kDeviceAddress, num_attr, p_attrs), in TEST_F() 440 uint8_t num_attr, btrc_element_attr_val_t* p_attrs) { in SetUp() argument 448 uint8_t num_attr, btrc_element_attr_val_t* p_attrs) {}; in TearDown() argument
|
/packages/modules/Bluetooth/system/stack/test/fuzzers/avrc/ |
D | fuzz_avrc.cc | 44 for (int i = 0; i < result.get_app_attr_txt.num_attr; i++) { in free_avrc_response() 51 for (int i = 0; i < result.get_app_val_txt.num_attr; i++) { in free_avrc_response()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | avrc_defs.h | 1122 uint8_t num_attr; member 1140 uint8_t num_attr; member 1176 uint8_t num_attr; member 1344 uint8_t num_attr; member 1374 uint8_t num_attr; member 1401 uint8_t num_attr; member
|
D | a2dp_api.h | 60 uint16_t num_attr; /* The number of attributes in p_attrs */ member
|
/packages/modules/Bluetooth/system/stack/test/fuzzers/a2dp/ |
D | a2dpFuzzHelpers.h | 41 db_params.num_attr = attr_list.size(); in generateDBParams()
|
/packages/modules/Bluetooth/system/stack/fuzzers/ |
D | sdp_fuzzer.cc | 205 uint8_t num_attr = in FuzzAsClient() local 213 for (uint8_t i = 0; i < num_attr; i++) { in FuzzAsClient()
|
/packages/modules/Bluetooth/system/stack/sdp/internal/ |
D | sdp_api.h | 42 uint16_t num_attr, const uint16_t* p_attr_list);
|