/aosp12/system/bt/stack/btm/ |
H A D | btm_ble_gap.cc | 1462 dev_class[0] = 0; in btm_ble_appearance_to_cod() 1466 dev_class[1] = BTM_COD_MAJOR_PHONE; in btm_ble_appearance_to_cod() 1479 dev_class[1] = BTM_COD_MAJOR_HEALTH; in btm_ble_appearance_to_cod() 1484 dev_class[1] = BTM_COD_MAJOR_HEALTH; in btm_ble_appearance_to_cod() 1490 dev_class[1] = BTM_COD_MAJOR_HEALTH; in btm_ble_appearance_to_cod() 1496 dev_class[1] = BTM_COD_MAJOR_HEALTH; in btm_ble_appearance_to_cod() 1500 dev_class[1] = BTM_COD_MAJOR_HEALTH; in btm_ble_appearance_to_cod() 1504 dev_class[1] = BTM_COD_MAJOR_HEALTH; in btm_ble_appearance_to_cod() 1528 dev_class[1] = BTM_COD_MAJOR_AUDIO; in btm_ble_appearance_to_cod() 1653 p_cur->dev_class[0] = 0; in btm_ble_update_inq_result() [all …]
|
H A D | btm_dev.cc | 63 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, in BTM_SecAddDevice() argument 93 if (dev_class) memcpy(p_dev_rec->dev_class, dev_class, DEV_CLASS_LEN); in BTM_SecAddDevice() 225 memcpy(p_dev_rec->dev_class, p_inq_info->results.dev_class, DEV_CLASS_LEN); in btm_sec_alloc_dev() 230 memcpy(p_dev_rec->dev_class, btm_cb.connecting_dc, DEV_CLASS_LEN); in btm_sec_alloc_dev()
|
H A D | btm_devctl.cc | 414 tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS dev_class) { in BTM_SetDeviceClass() argument 415 if (!memcmp(btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN)) in BTM_SetDeviceClass() 418 memcpy(btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN); in BTM_SetDeviceClass() 422 btsnd_hcic_write_dev_class(dev_class); in BTM_SetDeviceClass() 437 return ((uint8_t*)btm_cb.devcb.dev_class); in BTM_ReadDeviceClass()
|
H A D | btm_sec.cc | 812 if (((p_dev_rec->dev_class[1] & BTM_COD_MAJOR_CLASS_MASK) == in btm_sec_bond_by_transport() 814 (p_dev_rec->dev_class[2] & BTM_COD_MINOR_KEYBOARD) && in btm_sec_bond_by_transport() 2195 DEV_CLASS dev_class; in btm_sec_rmt_name_request_complete() local 2260 dev_class[0] = 0; in btm_sec_rmt_name_request_complete() 2261 dev_class[1] = 0; in btm_sec_rmt_name_request_complete() 2262 dev_class[2] = 0; in btm_sec_rmt_name_request_complete() 2288 p_dev_rec->bd_addr, p_dev_rec->dev_class, p_bd_name, in btm_sec_rmt_name_request_complete() 2715 memcpy(evt_data.cfm_req.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN); in btm_proc_sp_req_evt() 2913 memcpy(evt_data.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN); in btm_rem_oob_req() 3892 p_dev_rec->dev_class[1]) in btm_sec_link_key_notification() [all …]
|
H A D | security_device_record.h | 215 DEV_CLASS dev_class; /* DEV_CLASS of the device */ member 223 friend bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, 435 class_of_device_text(dev_class).c_str(), in ToString()
|
H A D | btm_dev.h | 42 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class,
|
/aosp12/system/bt/btif/src/ |
H A D | btif_util.cc | 64 uint32_t devclass2uint(DEV_CLASS dev_class) { in devclass2uint() argument 67 if (dev_class != NULL) { in devclass2uint() 70 cod = (dev_class[2]) | (dev_class[1] << 8) | (dev_class[0] << 16); in devclass2uint() 74 void uint2devclass(uint32_t cod, DEV_CLASS dev_class) { in uint2devclass() argument 75 dev_class[2] = (uint8_t)cod; in uint2devclass() 76 dev_class[1] = (uint8_t)(cod >> 8); in uint2devclass() 77 dev_class[0] = (uint8_t)(cod >> 16); in uint2devclass()
|
H A D | btif_core.cc | 691 DEV_CLASS dev_class; in btif_set_adapter_property() local 692 memcpy(dev_class, property->val, DEV_CLASS_LEN); in btif_set_adapter_property() 694 BTIF_TRACE_EVENT("set property dev_class : 0x%02x%02x%02x", dev_class[0], in btif_set_adapter_property() 695 dev_class[1], dev_class[2]); in btif_set_adapter_property() 697 BTM_SetDeviceClass(dev_class); in btif_set_adapter_property()
|
H A D | btif_dm.cc | 209 BD_NAME bd_name, DEV_CLASS dev_class, 537 cod = devclass2uint(dev_class); in btif_update_remote_properties() 703 p_pin_req->dev_class, in btif_dm_pin_req_evt() 719 cod = devclass2uint(p_pin_req->dev_class); in btif_dm_pin_req_evt() 795 p_ssp_cfm_req->dev_class, in btif_dm_ssp_cfm_req_evt() 844 cod = devclass2uint(p_ssp_cfm_req->dev_class); in btif_dm_ssp_cfm_req_evt() 876 p_ssp_key_notif->dev_class, (tBT_DEVICE_TYPE)dev_type); in btif_dm_ssp_key_notif_evt() 884 cod = devclass2uint(p_ssp_key_notif->dev_class); in btif_dm_ssp_key_notif_evt() 1189 uint32_t cod = devclass2uint(p_search_data->inq_res.dev_class); in btif_dm_search_devices_evt() 2178 DEV_CLASS dev_class = BTA_DM_COD; in btif_dm_get_adapter_property() local [all …]
|
/aosp12/system/bt/stack/include/ |
H A D | security_client_callbacks.h | 39 DEV_CLASS dev_class, tBTM_BD_NAME bd_name, 48 DEV_CLASS dev_class, 66 DEV_CLASS dev_class,
|
H A D | btm_api_types.h | 317 DEV_CLASS dev_class; member 446 DEV_CLASS dev_class; member 678 DEV_CLASS dev_class; /* peer CoD */ member 692 DEV_CLASS dev_class; /* peer CoD */ member 699 DEV_CLASS dev_class; /* peer CoD */ member 714 DEV_CLASS dev_class; /* peer CoD */ member
|
H A D | btm_api.h | 85 tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS dev_class); 632 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class,
|
H A D | sco_hci_link_interface.h | 34 extern void btm_sco_conn_req(const RawAddress& bda, const DEV_CLASS& dev_class,
|
H A D | btm_client_interface.h | 118 bool (*BTM_SecAddDevice)(const RawAddress& bd_addr, DEV_CLASS dev_class, 204 tBTM_STATUS (*BTM_SetDeviceClass)(DEV_CLASS dev_class);
|
/aosp12/system/bt/bta/sys/ |
H A D | utl.cc | 164 DEV_CLASS dev_class; in utl_set_device_class() local 206 FIELDS_TO_COD(dev_class, minor, major, service); in utl_set_device_class() 208 if (BTM_SetDeviceClass(dev_class) == BTM_SUCCESS) return true; in utl_set_device_class()
|
/aosp12/system/bt/btif/include/ |
H A D | btif_util.h | 62 uint32_t devclass2uint(DEV_CLASS dev_class); 63 void uint2devclass(uint32_t dev, DEV_CLASS dev_class);
|
/aosp12/system/bt/bta/include/ |
H A D | bta_api.h | 228 DEV_CLASS dev_class; /* Class of Device */ member 332 DEV_CLASS dev_class; /* peer CoD */ member 348 DEV_CLASS dev_class; /* peer CoD */ member 359 DEV_CLASS dev_class; /* peer CoD */ member 411 DEV_CLASS dev_class; /* Device class of peer device. */ member 835 extern void BTA_DmAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class,
|
/aosp12/system/bt/bta/dm/ |
H A D | bta_dm_act.cc | 329 DEV_CLASS dev_class; in BTA_dm_on_hw_on() local 360 memcpy(dev_class, p_bta_dm_cfg->dev_class, sizeof(dev_class)); in BTA_dm_on_hw_on() 362 bluetooth::shim::BTM_SetDeviceClass(dev_class); in BTA_dm_on_hw_on() 364 BTM_SetDeviceClass(dev_class); in BTA_dm_on_hw_on() 1821 memcpy(result.inq_res.dev_class, p_inq->dev_class, DEV_CLASS_LEN); in bta_dm_inq_results_cb() 1822 BTM_COD_SERVICE_CLASS(service_class, p_inq->dev_class); in bta_dm_inq_results_cb() 2048 BTA_COPY_DEVICE_CLASS(sec_event.pin_req.dev_class, dev_class); in bta_dm_pin_cback() 2224 p_data->cfm_req.dev_class); in bta_dm_sp_cback() 2237 p_data->cfm_req.dev_class); in bta_dm_sp_cback() 2250 p_data->key_notif.dev_class); in bta_dm_sp_cback() [all …]
|
H A D | bta_dm_api.cc | 236 void BTA_DmAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, in BTA_DmAddDevice() argument 248 if (dev_class) { in BTA_DmAddDevice() 250 memcpy(msg->dc, dev_class, DEV_CLASS_LEN); in BTA_DmAddDevice()
|
/aosp12/system/bt/main/shim/ |
H A D | btm_api.cc | 96 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result() 97 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result() 98 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result() 153 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result_with_rssi() 154 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result_with_rssi() 155 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result_with_rssi() 207 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_extended_inquiry_result() 208 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_extended_inquiry_result() 209 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_extended_inquiry_result() 1250 DEV_CLASS dev_class, BD_NAME bd_name, in BTM_SecAddDevice() argument [all …]
|
/aosp12/system/core/fastboot/ |
H A D | usb.h | 38 unsigned char dev_class; member
|
/aosp12/system/bt/test/mock/ |
H A D | mock_stack_btm_dev.cc | 48 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, in BTM_SecAddDevice() argument
|
H A D | mock_stack_btm_devctl.cc | 85 tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS dev_class) { in BTM_SetDeviceClass() argument
|
H A D | mock_stack_btm_sco.cc | 104 void btm_sco_conn_req(const RawAddress& bda, const DEV_CLASS& dev_class, in btm_sco_conn_req() argument
|
H A D | mock_bta_dm_api.cc | 65 void BTA_DmAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, in BTA_DmAddDevice() argument
|