Home
last modified time | relevance | path

Searched refs:device_type (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/Bluetooth/system/gd/storage/
Ddevice.cc96 auto device_type = GetDeviceType(); in Le() local
97 ASSERT(device_type); in Le()
98 ASSERT(device_type == DeviceType::LE || device_type == DeviceType::DUAL); in Le()
103 auto device_type = GetDeviceType(); in Classic() local
104 ASSERT(device_type); in Classic()
105 ASSERT(device_type == DeviceType::BR_EDR || device_type == DeviceType::DUAL); in Classic()
Dconfig_cache.cc436 hci::DeviceType device_type = hci::DeviceType::BR_EDR; in FixDeviceTypeInconsistencyInSection() local
446 device_type = hci::DeviceType::DUAL; in FixDeviceTypeInconsistencyInSection()
448 device_type = hci::DeviceType::BR_EDR; in FixDeviceTypeInconsistencyInSection()
450 device_type = hci::DeviceType::LE; in FixDeviceTypeInconsistencyInSection()
453 std::string device_type_str = std::to_string(device_type); in FixDeviceTypeInconsistencyInSection()
/packages/modules/Bluetooth/system/tools/bdtool/
Dadapter.c224 bt_device_type_t device_type = property_as_device_type(property); in parse_properties() local
225 if (device_type) { in parse_properties()
227 const char* device_type; in parse_properties() member
234 int idx = (int)device_type; in parse_properties()
237 device_type_lookup[idx].device_type); in parse_properties()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_gatt_client.cc312 int device_type = 0; in btif_gattc_open_impl() local
316 btif_get_device_type(address, &device_type) && in btif_gattc_open_impl()
317 device_type != BT_DEVICE_TYPE_BREDR) { in btif_gattc_open_impl()
318 BTA_DmAddBleDevice(address, addr_type, device_type); in btif_gattc_open_impl()
342 switch (device_type) { in btif_gattc_open_impl()
358 LOG_ERROR("Unknown device type %d", +device_type); in btif_gattc_open_impl()
365 device_type, addr_type, initiating_phys); in btif_gattc_open_impl()
677 int device_type = 0; in btif_gattc_get_device_type() local
679 if (btif_config_get_int(bd_addr.ToString().c_str(), "DevType", &device_type)) in btif_gattc_get_device_type()
680 return device_type; in btif_gattc_get_device_type()
Dbtif_dm.cc601 tBT_DEVICE_TYPE device_type) { in btif_update_remote_properties() argument
659 dev_type = (bt_device_type_t)(remote_dev_type | device_type); in btif_update_remote_properties()
661 dev_type = (bt_device_type_t)device_type; in btif_update_remote_properties()
726 int device_type = 0; in btif_dm_cb_create_bond() local
731 if (!btif_config_get_int(bdstr, "DevType", &device_type)) { in btif_dm_cb_create_bond()
746 if ((btif_config_get_int(bdstr, "DevType", &device_type) && in btif_dm_cb_create_bond()
749 (device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE) || in btif_dm_cb_create_bond()
752 static_cast<tBT_DEVICE_TYPE>(device_type)); in btif_dm_cb_create_bond()
755 if (is_hid && (device_type & BT_DEVICE_TYPE_BLE) == 0) { in btif_dm_cb_create_bond()
760 BTA_DmBond(bd_addr, addr_type, transport, device_type); in btif_dm_cb_create_bond()
[all …]
Dbtif_gatt_server.cc289 int device_type = 0; in btif_gatts_open_impl() local
293 btif_get_device_type(address, &device_type) && in btif_gatts_open_impl()
294 device_type != BT_DEVICE_TYPE_BREDR) { in btif_gatts_open_impl()
295 BTA_DmAddBleDevice(address, addr_type, device_type); in btif_gatts_open_impl()
302 switch (device_type) { in btif_gatts_open_impl()
Dbtif_sock.cc333 int device_type = 0; in btsock_connect() local
336 btif_get_device_type(*bd_addr, &device_type) && in btsock_connect()
337 device_type != BT_DEVICE_TYPE_BREDR) { in btsock_connect()
338 BTA_DmAddBleDevice(*bd_addr, addr_type, device_type); in btsock_connect()
Dbtif_ble_scanner.cc108 void bta_scan_results_cb_impl(RawAddress bd_addr, tBT_DEVICE_TYPE device_type, in bta_scan_results_cb_impl() argument
146 bdname.name, remote_name_len, device_type); in bta_scan_results_cb_impl()
147 btif_dm_update_ble_remote_properties(bd_addr, bdname.name, device_type); in bta_scan_results_cb_impl()
152 dev_type = (bt_device_type_t)device_type; in bta_scan_results_cb_impl()
191 Bind(bta_scan_results_cb_impl, r->bd_addr, r->device_type, r->rssi, in bta_scan_results_cb()
Dbtif_storage.cc473 int device_type; in btif_in_fetch_bonded_devices() local
494 if (btif_config_get_int(name, "DevType", &device_type) && in btif_in_fetch_bonded_devices()
495 (device_type == BT_DEVICE_TYPE_DUMO)) { in btif_in_fetch_bonded_devices()
1368 int device_type; in btif_in_fetch_bonded_ble_device() local
1373 if (!btif_config_get_int(remote_bd_addr, "DevType", &device_type)) in btif_in_fetch_bonded_ble_device()
1376 if ((device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE || in btif_in_fetch_bonded_ble_device()
1439 const tBT_DEVICE_TYPE& device_type) { in btif_storage_set_remote_device_type() argument
1441 static_cast<int>(device_type))) in btif_storage_set_remote_device_type()
1477 tBT_DEVICE_TYPE& device_type) { in btif_storage_get_remote_device_type() argument
1481 device_type = static_cast<tBT_DEVICE_TYPE>(val); in btif_storage_get_remote_device_type()
/packages/modules/Bluetooth/system/stack/btm/
Dsecurity_device_record.h410 tBT_DEVICE_TYPE device_type; member
412 return device_type == BT_DEVICE_TYPE_BREDR; in is_device_type_br_edr()
414 bool is_device_type_ble() const { return device_type == BT_DEVICE_TYPE_BLE; } in is_device_type_ble()
416 return device_type == BT_DEVICE_TYPE_DUMO; in is_device_type_dual_mode()
420 return device_type & BT_DEVICE_TYPE_BLE; in is_device_type_has_ble()
444 PRIVATE_ADDRESS(bd_addr), DeviceTypeText(device_type).c_str(), in ToString()
Dbtm_dev.cc129 p_dev_rec->device_type |= BT_DEVICE_TYPE_BREDR; in BTM_SecAddDevice()
249 p_dev_rec->device_type = p_inq_info->results.device_type; in btm_sec_alloc_dev()
433 p_target_rec->device_type |= temp_rec.device_type; in btm_consolidate_dev()
450 p_target_rec->device_type |= p_dev_rec->device_type; in btm_consolidate_dev()
Dbtm_ble_bgconn.cc156 if (p_dev_rec == NULL || (p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) == 0) in BTM_BackgroundConnectAddressKnown()
210 if (p_dev_rec != NULL && p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) { in BTM_AcceptlistAdd()
227 if (p_dev_rec != NULL && p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) { in BTM_AcceptlistRemove()
Dbtm_ble.cc112 p_dev_rec->device_type |= dev_type; in BTM_SecAddBleDevice()
124 p_info->results.device_type = p_dev_rec->device_type; in BTM_SecAddBleDevice()
126 p_info->results.device_type, p_info->results.ble_addr_type); in BTM_SecAddBleDevice()
499 *p_dev_type = p_inq_info->results.device_type; in BTM_ReadDevInfo()
509 p_dev_rec->device_type |= p_inq_info->results.device_type; in BTM_ReadDevInfo()
520 *p_dev_type = p_dev_rec->device_type; in BTM_ReadDevInfo()
526 if (p_dev_rec->device_type != BT_DEVICE_TYPE_UNKNOWN) { in BTM_ReadDevInfo()
527 *p_dev_type = p_dev_rec->device_type; in BTM_ReadDevInfo()
569 } else if (p_dev_rec->device_type & BT_DEVICE_TYPE_BREDR) { in BTM_ReadConnectedTransportAddress()
1801 p_dev_rec->device_type |= BT_DEVICE_TYPE_BLE; in btm_ble_connected()
/packages/modules/Bluetooth/system/gd/metrics/
Dmetrics.h25 void LogMetricsBondCreateAttempt(RawAddress* addr, uint32_t device_type);
27 …RawAddress* addr, uint32_t device_type, uint32_t status, uint32_t bond_state, int32_t fail_reason);
30 uint32_t device_type,
/packages/modules/Bluetooth/system/main/shim/
Dbtm_api.cc78 static bool is_classic_device(tBT_DEVICE_TYPE device_type) { in is_classic_device() argument
79 return device_type == BT_DEVICE_TYPE_BREDR; in is_classic_device()
82 static bool has_classic_device(tBT_DEVICE_TYPE device_type) { in has_classic_device() argument
83 return device_type & BT_DEVICE_TYPE_BREDR; in has_classic_device()
96 is_classic_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result()
115 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result()
119 p_i->inq_info.results.device_type |= BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result()
140 has_classic_device(p_i->inq_info.results.device_type))) { in btm_api_process_inquiry_result_with_rssi()
150 is_classic_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result_with_rssi()
171 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result_with_rssi()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Ddevice_boutique.cc36 const std::string& device_type, in Register() argument
39 LOG_INFO("Registering %s", device_type.c_str()); in Register()
40 GetMap()[device_type] = method; in Register()
/packages/modules/Bluetooth/system/service/common/bluetooth/
Dremote_device_props.cc28 int32_t device_class, int32_t device_type, in RemoteDeviceProps() argument
34 device_type_(device_type), in RemoteDeviceProps()
Dremote_device_props.h32 int32_t device_class, int32_t device_type, int32_t rssi);
41 int32_t device_type() const { return device_type_; } in device_type() function
/packages/modules/Bluetooth/system/test/mock/
Dmock_bta_dm_api.h234 tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type)>
236 tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type) {}};
238 tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type) { in operator()
239 body(bd_addr, addr_type, transport, device_type); in operator()
Dmock_bta_dm_act.h354 tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type)>
356 tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type) {}};
358 tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type) { in operator()
359 body(bd_addr, addr_type, transport, device_type); in operator()
Dmock_common_metrics.cc78 uint32_t device_class, device_type_t device_type) { in LogBluetoothSessionDeviceInfo() argument
96 device_type_t device_type) { in LogPairEvent() argument
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/
DCustomizedMetadataEntity.java40 public byte[] device_type; field in CustomizedMetadataEntity
90 .append(metadataToString(device_type)) in toString()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_storage.h366 tBT_DEVICE_TYPE& device_type);
368 const tBT_DEVICE_TYPE& device_type);
/packages/modules/Bluetooth/system/common/
Dmetrics_linux.cc48 device_type_t device_type) {} in LogPairEvent() argument
67 uint32_t device_class, device_type_t device_type) {} in LogBluetoothSessionDeviceInfo() argument
/packages/modules/Bluetooth/system/bta/include/
Dbta_api.h451 tBT_DEVICE_TYPE device_type; member
468 tBT_DEVICE_TYPE device_type; /* device type in case it is BLE device */ member
786 tBT_TRANSPORT transport, tBT_DEVICE_TYPE device_type);

123