Home
last modified time | relevance | path

Searched refs:attr_id (Results 1 – 25 of 51) sorted by relevance

123

/system/bt/bta/test/
Dbta_dip_test.cc53 g_attr_service_class_id_list.attr_id = ATTR_ID_SERVICE_CLASS_ID_LIST; in SetUp()
60 g_attr_spec_id.attr_id = ATTR_ID_SPECIFICATION_ID; in SetUp()
65 g_attr_vendor_id.attr_id = ATTR_ID_VENDOR_ID; in SetUp()
71 g_attr_vendor_id_src.attr_id = ATTR_ID_VENDOR_ID_SOURCE; in SetUp()
76 g_attr_vendor_product_id.attr_id = ATTR_ID_PRODUCT_ID; in SetUp()
81 g_attr_vendor_product_version.attr_id = ATTR_ID_PRODUCT_VERSION; in SetUp()
86 g_attr_vendor_product_primary_record.attr_id = ATTR_ID_PRIMARY_RECORD; in SetUp()
Dbta_hf_client_add_record_test.cc46 bool SDP_AddAttribute(uint32_t handle, uint16_t attr_id, uint8_t attr_type, in SDP_AddAttribute() argument
50 bool SDP_AddUuidSequence(uint32_t handle, uint16_t attr_id, uint16_t num_uuids, in SDP_AddUuidSequence() argument
/system/bt/bta/gatt/
Dbta_gatts_utils.cc124 uint16_t attr_id) { in bta_gatts_find_srvc_cb_by_attr_id() argument
131 attr_id >= p_cb->srvc_cb[i].service_id && in bta_gatts_find_srvc_cb_by_attr_id()
132 attr_id < p_cb->srvc_cb[i + 1].service_id) || in bta_gatts_find_srvc_cb_by_attr_id()
136 attr_id >= p_cb->srvc_cb[i].service_id) || in bta_gatts_find_srvc_cb_by_attr_id()
139 attr_id >= p_cb->srvc_cb[i].service_id)) { in bta_gatts_find_srvc_cb_by_attr_id()
Dbta_gatts_api.cc240 void BTA_GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_id, in BTA_GATTS_HandleValueIndication() argument
248 p_buf->attr_id = attr_id; in BTA_GATTS_HandleValueIndication()
Dbta_gatts_int.h86 uint16_t attr_id; member
189 tBTA_GATTS_CB* p_cb, uint16_t attr_id);
/system/bt/test/mock/
Dmock_stack_sdp_db.cc43 bool SDP_AddAttribute(uint32_t handle, uint16_t attr_id, uint8_t attr_type, in SDP_AddAttribute() argument
63 bool SDP_AddSequence(uint32_t handle, uint16_t attr_id, uint16_t num_elem, in SDP_AddSequence() argument
73 bool SDP_AddUuidSequence(uint32_t handle, uint16_t attr_id, uint16_t num_uuids, in SDP_AddUuidSequence() argument
78 bool SDP_DeleteAttribute(uint32_t handle, uint16_t attr_id) { in SDP_DeleteAttribute() argument
Dmock_stack_hidh.cc78 void hidh_get_str_attr(tSDP_DISC_REC* p_rec, uint16_t attr_id, uint16_t max_len, in hidh_get_str_attr() argument
Dmock_bta_gatts_api.cc65 void BTA_GATTS_HandleValueIndication(uint16_t conn_id, uint16_t attr_id, in BTA_GATTS_HandleValueIndication() argument
/system/bt/stack/sdp/
Dsdp_db.cc347 bool SDP_AddAttribute(uint32_t handle, uint16_t attr_id, uint8_t attr_type, in SDP_AddAttribute() argument
369 handle, attr_id, attr_type, attr_len, p_val, num_array); in SDP_AddAttribute()
374 handle, attr_id, attr_type, attr_len, p_val, *p_val); in SDP_AddAttribute()
381 handle, attr_id, attr_type, attr_len, p_val, (char*)p_val); in SDP_AddAttribute()
385 handle, attr_id, attr_type, attr_len, p_val); in SDP_AddAttribute()
390 handle, attr_id, attr_type, attr_len, p_val); in SDP_AddAttribute()
402 if (p_attr->id == attr_id) { in SDP_AddAttribute()
403 SDP_DeleteAttribute(handle, attr_id); in SDP_AddAttribute()
406 if (p_attr->id > attr_id) break; in SDP_AddAttribute()
420 p_attr->id = attr_id; in SDP_AddAttribute()
[all …]
Dsdp_api.cc220 tSDP_DISC_ATTR* SDP_FindAttributeInRec(tSDP_DISC_REC* p_rec, uint16_t attr_id) { in SDP_FindAttributeInRec() argument
225 if (p_attr->attr_id == attr_id) return (p_attr); in SDP_FindAttributeInRec()
253 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceUUIDInRec()
294 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceUUIDInRec()
323 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceUUIDInRec_128bit()
338 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceUUIDInRec_128bit()
380 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceInDb()
433 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceInDb()
482 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceInDb_128bit()
493 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceInDb_128bit()
[all …]
Dsdp_discovery.cc57 tSDP_DISC_REC* p_rec, uint16_t attr_id,
688 uint16_t attr_id; in save_attr_seq() local
726 BE_STREAM_TO_UINT16(attr_id, p); in save_attr_seq()
729 p = add_attr(p, p_seq_end, p_ccb->p_db, p_rec, attr_id, NULL, 0); in save_attr_seq()
790 tSDP_DISC_REC* p_rec, uint16_t attr_id, in add_attr() argument
832 p_attr->attr_id = attr_id; in add_attr()
935 attr_id == ATTR_ID_ADDITION_PROTO_DESC_LISTS) in add_attr()
/system/extras/simpleperf/
Dcmd_merge.cpp266 for (size_t attr_id = 0; attr_id < attrs.size(); attr_id++) { in CheckAttrSection() local
267 if (memcmp(attrs[attr_id].attr, attrs0[attr_id].attr, sizeof(perf_event_attr)) != 0) { in CheckAttrSection()
305 for (size_t attr_id = 0; attr_id < attrs.size(); attr_id++) { in WriteGapInDataSection() local
306 for (size_t event_id : attrs[attr_id].ids) { in WriteGapInDataSection()
307 if (auto it = cur_map.find(event_id); it == cur_map.end() || it->second != attr_id) { in WriteGapInDataSection()
308 event_id_data.push_back(attr_id); in WriteGapInDataSection()
Drecord_file_test.cpp47 EventAttrWithId attr_id; in AddEventType() local
48 attr_id.attr = attrs_.back().get(); in AddEventType()
49 attr_id.ids.push_back(attrs_.size()); // Fake id. in AddEventType()
50 attr_ids_.push_back(attr_id); in AddEventType()
Drecord_file_writer.cpp92 for (auto& attr_id : attr_ids) { in WriteAttrSection() local
93 if (!Write(attr_id.ids.data(), attr_id.ids.size() * sizeof(uint64_t))) { in WriteAttrSection()
103 for (auto& attr_id : attr_ids) { in WriteAttrSection() local
105 file_attr.attr = *attr_id.attr; in WriteAttrSection()
107 file_attr.ids.size = attr_id.ids.size() * sizeof(uint64_t); in WriteAttrSection()
/system/bt/stack/include/
Dsdp_api.h135 uint16_t attr_id; /* Attribute ID */ member
283 tSDP_DISC_ATTR* SDP_FindAttributeInRec(tSDP_DISC_REC* p_rec, uint16_t attr_id);
428 bool SDP_AddAttribute(uint32_t handle, uint16_t attr_id, uint8_t attr_type,
445 bool SDP_AddSequence(uint32_t handle, uint16_t attr_id, uint16_t num_elem,
460 bool SDP_AddUuidSequence(uint32_t handle, uint16_t attr_id, uint16_t num_uuids,
548 bool SDP_DeleteAttribute(uint32_t handle, uint16_t attr_id);
/system/bt/service/common/android/bluetooth/
DIBluetoothAvrcpTargetCallback.aidl26 void OnListPlayerAppValues(String addr, int attr_id); in OnListPlayerAppValues() argument
29 void OnGetPlayerAppValuesText(String addr, int attr_id, in int[] values); in OnGetPlayerAppValuesText() argument
/system/bt/service/
Davrcp_target.h49 int32_t attr_id) = 0;
55 const std::string& addr, int32_t attr_id,
124 void ListPlayerAppValuesCallback(btrc_player_attr_t attr_id,
131 void GetPlayerAppValuesTextCallback(uint8_t attr_id, uint8_t num_val,
Davrcp_target.cc81 btrc_attrs[i].attr_id = attrs[i].id(); in StringValueToElementAttrVal()
266 void AvrcpTarget::ListPlayerAppValuesCallback(btrc_player_attr_t attr_id, in ListPlayerAppValuesCallback() argument
271 delegate_->OnListPlayerAppValues(str_addr, static_cast<int32_t>(attr_id)); in ListPlayerAppValuesCallback()
302 void AvrcpTarget::GetPlayerAppValuesTextCallback(uint8_t attr_id, in GetPlayerAppValuesTextCallback() argument
314 delegate_->OnGetPlayerAppValuesText(str_addr, attr_id, val_vec); in GetPlayerAppValuesTextCallback()
/system/bt/stack/test/gatt/
Dmock_gatt_utils_ref.cc85 bool SDP_AddAttribute(uint32_t handle, uint16_t attr_id, uint8_t attr_type, in SDP_AddAttribute() argument
97 bool SDP_AddUuidSequence(uint32_t handle, uint16_t attr_id, uint16_t num_uuids, in SDP_AddUuidSequence() argument
/system/bt/stack/avrc/
Davrc_pars_tg.cc164 p_result->list_app_values.attr_id = *p++; in avrc_pars_vendor_cmd()
165 if (!AVRC_IS_VALID_ATTRIBUTE(p_result->list_app_values.attr_id)) in avrc_pars_vendor_cmd()
207 p_app_set[xx].attr_id = *p++; in avrc_pars_vendor_cmd()
209 if (!avrc_is_valid_player_attrib_value(p_app_set[xx].attr_id, in avrc_pars_vendor_cmd()
232 BE_STREAM_TO_UINT8(p_result->get_app_val_txt.attr_id, p); in avrc_pars_vendor_cmd()
233 if (!AVRC_IS_VALID_ATTRIBUTE(p_result->get_app_val_txt.attr_id)) in avrc_pars_vendor_cmd()
250 p_result->get_app_val_txt.attr_id, p_u8[xx])) { in avrc_pars_vendor_cmd()
Davrc_bld_tg.cc236 if (avrc_is_valid_player_attrib_value(p_rsp->p_vals[xx].attr_id, in avrc_bld_get_cur_app_setting_value_rsp()
239 UINT8_TO_BE_STREAM(p_data, p_rsp->p_vals[xx].attr_id); in avrc_bld_get_cur_app_setting_value_rsp()
323 UINT8_TO_BE_STREAM(p_data, p_rsp->p_attrs[xx].attr_id); in avrc_bld_app_setting_text_rsp()
419 p_attrs[index].attr_id); in avrc_build_attribute_entries()
420 CHECK(AVRC_IS_VALID_MEDIA_ATTRIBUTE(p_attrs[index].attr_id)); in avrc_build_attribute_entries()
430 __func__, index, p_attrs[index].attr_id, num_attrs - index); in avrc_build_attribute_entries()
437 __func__, index, p_attrs[index].attr_id); in avrc_build_attribute_entries()
442 UINT32_TO_BE_STREAM(p_data, p_attrs[index].attr_id); in avrc_build_attribute_entries()
627 p_rsp->param.player_setting.attr_id[xx], in avrc_bld_notify_rsp()
629 UINT8_TO_BE_STREAM(p_data, p_rsp->param.player_setting.attr_id[xx]); in avrc_bld_notify_rsp()
[all …]
/system/bt/include/hardware/
Dbt_rc.h196 uint8_t attr_id; member
205 uint8_t attr_id; member
242 uint32_t attr_id; member
298 typedef void (*btrc_list_player_app_values_callback)(btrc_player_attr_t attr_id,
318 uint8_t attr_id, uint8_t num_val, uint8_t* p_vals,
/system/bt/service/ipc/binder/
Dbluetooth_avrcp_target_binder_server.cc237 const std::string& addr, int32_t attr_id) { in OnListPlayerAppValues() argument
240 cb->OnListPlayerAppValues(String16(addr.data(), addr.size()), attr_id); in OnListPlayerAppValues()
258 const std::string& addr, int32_t attr_id, in OnGetPlayerAppValuesText() argument
262 cb->OnGetPlayerAppValuesText(String16(addr.data(), addr.size()), attr_id, in OnGetPlayerAppValuesText()
Dbluetooth_avrcp_target_binder_server.h97 void OnListPlayerAppValues(const std::string& addr, int32_t attr_id) override;
102 void OnGetPlayerAppValuesText(const std::string& addr, int32_t attr_id,
/system/bt/service/hal/
Dbluetooth_avrcp_interface.h40 virtual void ListPlayerAppValuesCallback(btrc_player_attr_t attr_id,
48 virtual void GetPlayerAppValuesTextCallback(uint8_t attr_id,

123