Home
last modified time | relevance | path

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

12

/system/bt/vendor_libs/test_vendor_lib/model/setup/
Ddevice_boutique.cc34 bool DeviceBoutique::Register(const std::string& device_type, in Register() argument
36 LOG_INFO(LOG_TAG, "Registering %s", device_type.c_str()); in Register()
37 GetMap()[device_type] = device_constructor; in Register()
Ddevice_boutique.h35 …static bool Register(const std::string& device_type, const std::function<std::shared_ptr<Device>()…
/system/bt/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
/system/bt/tools/bdtool/
Dadapter.c221 bt_device_type_t device_type = property_as_device_type(property); in parse_properties() local
222 if (device_type) { in parse_properties()
224 const char* device_type; in parse_properties() member
231 int idx = (int)device_type; in parse_properties()
234 device_type_lookup[idx].device_type); in parse_properties()
/system/extras/tests/bootloader/
Dbootloadertest.py24 device_type = "phone" variable
210 if device_type == "iot":
220 if args.device_type.lower() not in ("phone", "iot"):
221 raise ValueError("Unsupported device type '%s'." % args.device_type)
222 device_type = args.device_type.lower() variable
/system/bt/stack/btm/
Dbtm_dev.cc147 p_dev_rec->device_type |= BT_DEVICE_TYPE_BREDR; in BTM_SecAddDevice()
251 p_dev_rec->device_type = p_inq_info->results.device_type; in btm_sec_alloc_dev()
401 p_target_rec->device_type |= temp_rec.device_type; in btm_consolidate_dev()
419 p_target_rec->device_type |= p_dev_rec->device_type; in btm_consolidate_dev()
Dbtm_ble_addr.cc202 if ((p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) && in btm_ble_addr_resolvable()
224 p_dev_rec->device_type); in btm_ble_match_random_bda()
226 if (!(p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) || in btm_ble_match_random_bda()
Dbtm_ble.cc100 p_dev_rec->device_type |= dev_type; in BTM_SecAddBleDevice()
108 p_info->results.device_type = p_dev_rec->device_type; in BTM_SecAddBleDevice()
110 p_info->results.device_type, p_info->results.ble_addr_type); in BTM_SecAddBleDevice()
573 *p_dev_type = p_inq_info->results.device_type; in BTM_ReadDevInfo()
583 p_dev_rec->device_type = p_inq_info->results.device_type; in BTM_ReadDevInfo()
588 *p_dev_type = p_dev_rec->device_type; in BTM_ReadDevInfo()
629 } else if (p_dev_rec->device_type & BT_DEVICE_TYPE_BREDR) { in BTM_ReadConnectedTransportAddress()
1867 p_dev_rec->device_type |= BT_DEVICE_TYPE_BLE; in btm_ble_connected()
Dbtm_ble_bgconn.cc169 if (p_dev_rec == NULL || (p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) == 0) in BTM_BackgroundConnectAddressKnown()
198 if (p_dev_rec != NULL && p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) { in btm_add_dev_to_controller()
Dbtm_inq.cc1671 (p_i->inq_info.results.device_type & BT_DEVICE_TYPE_BREDR) != 0))) { in btm_process_inq_results()
1689 (p_i->inq_info.results.device_type & BT_DEVICE_TYPE_BREDR) != 0)) { in btm_process_inq_results()
1721 (p_i->inq_info.results.device_type == BT_DEVICE_TYPE_BREDR)) in btm_process_inq_results()
1748 p_cur->device_type = BT_DEVICE_TYPE_BREDR; in btm_process_inq_results()
1751 p_cur->device_type |= BT_DEVICE_TYPE_BREDR; in btm_process_inq_results()
1761 p_cur->device_type == BT_DEVICE_TYPE_DUMO && p_i->scan_rsp) || in btm_process_inq_results()
Dbtm_ble_gap.cc1656 p_cur->device_type = BT_DEVICE_TYPE_BLE; in btm_ble_update_inq_result()
1658 p_cur->device_type |= BT_DEVICE_TYPE_BLE; in btm_ble_update_inq_result()
1707 p_cur->device_type |= BT_DEVICE_TYPE_DUMO; in btm_ble_update_inq_result()
1734 (p_ent->inq_info.results.device_type == BT_DEVICE_TYPE_BLE) && in btm_clear_all_pending_le_entry()
1960 if (p_i && (!(p_i->inq_info.results.device_type & BT_DEVICE_TYPE_BLE) || in btm_ble_process_adv_pkt_cont()
2007 (p_i->inq_info.results.device_type & BT_DEVICE_TYPE_BLE) == in btm_ble_process_adv_pkt_cont()
/system/bt/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
Dmetrics.h134 uint32_t device_class, device_type_t device_type);
203 device_type_t device_type);
Dmetrics.cc296 device_type_t device_type) { in LogPairEvent() argument
300 info->set_device_type(get_device_type(device_type)); in LogPairEvent()
391 uint32_t device_class, device_type_t device_type) { in LogBluetoothSessionDeviceInfo() argument
/system/bt/btif/src/
Dbtif_gatt_client.cc258 int device_type = 0; in btif_gattc_open_impl() local
262 btif_get_device_type(address, &device_type) && in btif_gattc_open_impl()
263 device_type != BT_DEVICE_TYPE_BREDR) { in btif_gattc_open_impl()
264 BTA_DmAddBleDevice(address, addr_type, device_type); in btif_gattc_open_impl()
288 switch (device_type) { in btif_gattc_open_impl()
308 transport, device_type, initiating_phys); in btif_gattc_open_impl()
582 int device_type = 0; in btif_gattc_get_device_type() local
584 if (btif_config_get_int(bd_addr.ToString().c_str(), "DevType", &device_type)) in btif_gattc_get_device_type()
585 return device_type; in btif_gattc_get_device_type()
Dbtif_ble_scanner.cc104 void bta_scan_results_cb_impl(RawAddress bd_addr, tBT_DEVICE_TYPE device_type, in bta_scan_results_cb_impl() argument
143 __func__, bdname.name, remote_name_len, device_type); in bta_scan_results_cb_impl()
144 btif_dm_update_ble_remote_properties(bd_addr, bdname.name, device_type); in bta_scan_results_cb_impl()
149 dev_type = (bt_device_type_t)device_type; in bta_scan_results_cb_impl()
186 do_in_jni_thread(Bind(bta_scan_results_cb_impl, r->bd_addr, r->device_type, in bta_scan_results_cb()
Dbtif_gatt_server.cc285 int device_type = 0; in btif_gatts_open_impl() local
289 btif_get_device_type(address, &device_type) && in btif_gatts_open_impl()
290 device_type != BT_DEVICE_TYPE_BREDR) { in btif_gatts_open_impl()
291 BTA_DmAddBleDevice(address, addr_type, device_type); in btif_gatts_open_impl()
298 switch (device_type) { in btif_gatts_open_impl()
Dbtif_dm.cc558 tBT_DEVICE_TYPE device_type) { in btif_update_remote_properties() argument
610 dev_type = (bt_device_type_t)(remote_dev_type | device_type); in btif_update_remote_properties()
612 dev_type = (bt_device_type_t)device_type; in btif_update_remote_properties()
666 int device_type; in btif_dm_cb_create_bond() local
671 if (!btif_config_get_int(bdstr, "DevType", &device_type)) { in btif_dm_cb_create_bond()
686 if ((btif_config_get_int(bdstr, "DevType", &device_type) && in btif_dm_cb_create_bond()
689 (device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE) || in btif_dm_cb_create_bond()
691 BTA_DmAddBleDevice(bd_addr, addr_type, device_type); in btif_dm_cb_create_bond()
694 if (is_hid && (device_type & BT_DEVICE_TYPE_BLE) == 0) { in btif_dm_cb_create_bond()
1264 p_search_data->inq_res.device_type); in btif_dm_search_devices_evt()
[all …]
Dbtif_storage.cc453 int device_type; in btif_in_fetch_bonded_devices() local
479 if (btif_config_get_int(name, "DevType", &device_type) && in btif_in_fetch_bonded_devices()
480 (device_type == BT_DEVICE_TYPE_DUMO)) { in btif_in_fetch_bonded_devices()
1249 int device_type; in btif_in_fetch_bonded_ble_device() local
1254 if (!btif_config_get_int(remote_bd_addr, "DevType", &device_type)) in btif_in_fetch_bonded_ble_device()
1257 if ((device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE || in btif_in_fetch_bonded_ble_device()
/system/bt/btcore/include/
Dproperty.h47 bt_property_t* property_new_device_type(bt_device_type_t device_type);
/system/bt/service/
Dadapter.cc53 int32_t device_type = 0; in ParseRemoteDeviceProps() local
104 device_type = *reinterpret_cast<const int32_t*>(property->val); in ParseRemoteDeviceProps()
123 device_type, rssi); in ParseRemoteDeviceProps()
/system/bt/btcore/test/
Dproperty_test.cc65 TEST_F(PropertyTest, device_type) { in TEST_F() argument
/system/bt/bta/include/
Dbta_api.h734 tBT_DEVICE_TYPE device_type; member
757 tBT_DEVICE_TYPE device_type; /* device type in case it is BLE device */ member
/system/bt/proto/bluetooth/metrics/
Dbluetooth.proto81 optional DeviceType device_type = 2; field

12