/system/bt/stack/btm/ |
D | btm_ble_gap.cc | 1414 static void btm_ble_appearance_to_cod(uint16_t appearance, uint8_t* dev_class) { in btm_ble_appearance_to_cod() argument 1415 dev_class[0] = 0; in btm_ble_appearance_to_cod() 1419 dev_class[1] = BTM_COD_MAJOR_PHONE; in btm_ble_appearance_to_cod() 1420 dev_class[2] = BTM_COD_MINOR_UNCLASSIFIED; in btm_ble_appearance_to_cod() 1423 dev_class[1] = BTM_COD_MAJOR_COMPUTER; in btm_ble_appearance_to_cod() 1424 dev_class[2] = BTM_COD_MINOR_UNCLASSIFIED; in btm_ble_appearance_to_cod() 1427 dev_class[1] = BTM_COD_MAJOR_PERIPHERAL; in btm_ble_appearance_to_cod() 1428 dev_class[2] = BTM_COD_MINOR_REMOTE_CONTROL; in btm_ble_appearance_to_cod() 1432 dev_class[1] = BTM_COD_MAJOR_HEALTH; in btm_ble_appearance_to_cod() 1433 dev_class[2] = BTM_COD_MINOR_THERMOMETER; in btm_ble_appearance_to_cod() [all …]
|
D | btm_dev.cc | 63 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, in BTM_SecAddDevice() argument 95 if (dev_class) memcpy(p_dev_rec->dev_class, dev_class, DEV_CLASS_LEN); in BTM_SecAddDevice() 255 memcpy(p_dev_rec->dev_class, p_inq_info->results.dev_class, DEV_CLASS_LEN); in btm_sec_alloc_dev() 260 memcpy(p_dev_rec->dev_class, btm_cb.connecting_dc, DEV_CLASS_LEN); in btm_sec_alloc_dev()
|
D | btm_devctl.cc | 507 tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS dev_class) { in BTM_SetDeviceClass() argument 508 if (!memcmp(btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN)) in BTM_SetDeviceClass() 511 memcpy(btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN); in BTM_SetDeviceClass() 515 btsnd_hcic_write_dev_class(dev_class); in BTM_SetDeviceClass() 530 return ((uint8_t*)btm_cb.devcb.dev_class); in BTM_ReadDeviceClass()
|
D | btm_sec.cc | 776 p_dev_rec->bd_addr, p_dev_rec->dev_class, p_dev_rec->sec_bd_name, in BTM_PINCodeReply() 889 if (((p_dev_rec->dev_class[1] & BTM_COD_MAJOR_CLASS_MASK) == in btm_sec_bond_by_transport() 891 (p_dev_rec->dev_class[2] & BTM_COD_MINOR_KEYBOARD) && in btm_sec_bond_by_transport() 2588 DEV_CLASS dev_class; in btm_sec_rmt_name_request_complete() local 2648 (*btm_cb.p_rmt_name_callback[i])(*p_bd_addr, p_dev_rec->dev_class, in btm_sec_rmt_name_request_complete() 2652 dev_class[0] = 0; in btm_sec_rmt_name_request_complete() 2653 dev_class[1] = 0; in btm_sec_rmt_name_request_complete() 2654 dev_class[2] = 0; in btm_sec_rmt_name_request_complete() 2660 (*btm_cb.p_rmt_name_callback[i])(*p_bd_addr, dev_class, (uint8_t*)""); in btm_sec_rmt_name_request_complete() 2680 p_dev_rec->bd_addr, p_dev_rec->dev_class, p_bd_name, in btm_sec_rmt_name_request_complete() [all …]
|
D | btm_int_types.h | 161 DEV_CLASS dev_class; /* Local device class */ member 459 DEV_CLASS dev_class; /* DEV_CLASS of the device */ member
|
D | btm_sco.cc | 684 void btm_sco_conn_req(const RawAddress& bda, DEV_CLASS dev_class, in btm_sco_conn_req() argument 728 memcpy(evt_data.dev_class, dev_class, DEV_CLASS_LEN); in btm_sco_conn_req()
|
D | btm_acl.cc | 1423 ((p_dev_rec->dev_class[0] << 16) | (p_dev_rec->dev_class[1] << 8) | in btm_blacklist_role_change_device() 1424 p_dev_rec->dev_class[2]) & in btm_blacklist_role_change_device() 2437 memcpy(btm_cb.connecting_dc, p_dev_rec->dev_class, DEV_CLASS_LEN); in btm_acl_resubmit_page() 2487 memcpy(btm_cb.connecting_dc, p_dev_rec->dev_class, DEV_CLASS_LEN); in btm_acl_paging()
|
D | btm_int.h | 158 extern void btm_sco_conn_req(const RawAddress& bda, DEV_CLASS dev_class,
|
D | btm_inq.cc | 1308 memcpy(condition_buf, p_filt_cond->cod_cond.dev_class, DEV_CLASS_LEN); in btm_set_inq_event_filter() 1667 p_cur->dev_class[0] = dc[0]; in btm_process_inq_results() 1668 p_cur->dev_class[1] = dc[1]; in btm_process_inq_results() 1669 p_cur->dev_class[2] = dc[2]; in btm_process_inq_results()
|
/system/bt/btif/src/ |
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()
|
D | btif_core.cc | 953 DEV_CLASS dev_class; in btif_set_adapter_property() local 954 memcpy(dev_class, property->val, DEV_CLASS_LEN); in btif_set_adapter_property() 956 BTIF_TRACE_EVENT("set property dev_class : 0x%02x%02x%02x", dev_class[0], in btif_set_adapter_property() 957 dev_class[1], dev_class[2]); in btif_set_adapter_property() 959 BTM_SetDeviceClass(dev_class); in btif_set_adapter_property()
|
D | btif_dm.cc | 226 BD_NAME bd_name, DEV_CLASS dev_class, 618 BD_NAME bd_name, DEV_CLASS dev_class, in btif_update_remote_properties() argument 640 cod = devclass2uint(dev_class); in btif_update_remote_properties() 909 p_pin_req->dev_class, in btif_dm_pin_req_evt() 925 cod = devclass2uint(p_pin_req->dev_class); in btif_dm_pin_req_evt() 1000 p_ssp_cfm_req->dev_class, in btif_dm_ssp_cfm_req_evt() 1048 cod = devclass2uint(p_ssp_cfm_req->dev_class); in btif_dm_ssp_cfm_req_evt() 1075 p_ssp_key_notif->dev_class, (tBT_DEVICE_TYPE)dev_type); in btif_dm_ssp_key_notif_evt() 1082 cod = devclass2uint(p_ssp_key_notif->dev_class); in btif_dm_ssp_key_notif_evt() 1370 uint32_t cod = devclass2uint(p_search_data->inq_res.dev_class); in btif_dm_search_devices_evt() [all …]
|
D | btif_storage.cc | 462 DEV_CLASS dev_class = {0, 0, 0}; in btif_in_fetch_bonded_devices() local 466 uint2devclass((uint32_t)cod, dev_class); in btif_in_fetch_bonded_devices() 468 BTA_DmAddDevice(bd_addr, dev_class, link_key, 0, 0, in btif_in_fetch_bonded_devices()
|
/system/bt/btif/include/ |
D | btif_util.h | 62 uint32_t devclass2uint(DEV_CLASS dev_class); 63 void uint2devclass(uint32_t dev, DEV_CLASS dev_class);
|
/system/bt/bta/sys/ |
D | utl.cc | 163 DEV_CLASS dev_class; in utl_set_device_class() local 205 FIELDS_TO_COD(dev_class, minor, major, service); in utl_set_device_class() 207 if (BTM_SetDeviceClass(dev_class) == BTM_SUCCESS) return true; in utl_set_device_class()
|
/system/bt/stack/include/ |
D | btm_api_types.h | 444 DEV_CLASS dev_class; member 488 DEV_CLASS dev_class; member 841 DEV_CLASS dev_class; member 1038 const RawAddress& bd_addr, DEV_CLASS dev_class, tBTM_BD_NAME bd_name, 1048 DEV_CLASS dev_class, tBTM_BD_NAME bd_name, 1057 DEV_CLASS dev_class, 1075 DEV_CLASS dev_class, 1159 DEV_CLASS dev_class; /* peer CoD */ member 1173 DEV_CLASS dev_class; /* peer CoD */ member 1180 DEV_CLASS dev_class; /* peer CoD */ member [all …]
|
D | btm_api.h | 93 extern tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS dev_class); 1109 extern bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class,
|
/system/bt/bta/include/ |
D | bta_api.h | 264 DEV_CLASS dev_class; /* device class of interest */ member 393 DEV_CLASS dev_class; /* Class of Device */ member 519 DEV_CLASS dev_class; member 613 DEV_CLASS dev_class; /* peer CoD */ member 644 DEV_CLASS dev_class; /* peer CoD */ member 655 DEV_CLASS dev_class; /* peer CoD */ member 710 DEV_CLASS dev_class; /* Device class of peer device. */ member 1268 extern void BTA_DmAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class,
|
/system/core/fastboot/ |
D | usb.h | 38 unsigned char dev_class; member
|
D | usb_windows.cpp | 308 info.dev_class = device_desc.bDeviceClass; in recognized_device()
|
/system/bt/bta/dm/ |
D | bta_dm_act.cc | 72 DEV_CLASS dev_class, BD_NAME bd_name, 75 static uint8_t bta_dm_pin_cback(const RawAddress& bd_addr, DEV_CLASS dev_class, 78 DEV_CLASS dev_class, BD_NAME bd_name, 81 DEV_CLASS dev_class, 345 DEV_CLASS dev_class; in bta_dm_sys_hw_cback() local 406 memcpy(dev_class, p_bta_dm_cfg->dev_class, sizeof(dev_class)); in bta_dm_sys_hw_cback() 407 BTM_SetDeviceClass(dev_class); in bta_dm_sys_hw_cback() 2079 memcpy(result.inq_res.dev_class, p_inq->dev_class, DEV_CLASS_LEN); in bta_dm_inq_results_cb() 2080 BTM_COD_SERVICE_CLASS(service_class, p_inq->dev_class); in bta_dm_inq_results_cb() 2233 DEV_CLASS dev_class, BD_NAME bd_name, in bta_dm_authorize_cback() argument [all …]
|
D | bta_dm_api.cc | 294 void BTA_DmAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, in BTA_DmAddDevice() argument 310 if (dev_class) { in BTA_DmAddDevice() 312 memcpy(msg->dc, dev_class, DEV_CLASS_LEN); in BTA_DmAddDevice()
|
/system/bt/main/shim/ |
D | btm_api.cc | 124 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result() 125 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result() 126 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result() 187 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result_with_rssi() 188 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result_with_rssi() 189 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result_with_rssi() 247 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_extended_inquiry_result() 248 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_extended_inquiry_result() 249 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_extended_inquiry_result()
|
D | btm_api.h | 969 tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS dev_class); 1663 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class,
|
/system/bt/stack/hid/ |
D | hidh_api.cc | 529 if ((p_inq_info->results.dev_class[1] & BTM_COD_MAJOR_CLASS_MASK) == in hid_known_hid_device() 539 ((p_dev_rec->dev_class[1] & BTM_COD_MAJOR_CLASS_MASK) == in hid_known_hid_device()
|