Home
last modified time | relevance | path

Searched refs:addr_type (Results 1 – 25 of 81) sorted by relevance

1234

/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/hci/
Dle_advanced_scanning_test.py196 addr_type = ble_address_types["public"]
198 (PUBLIC_ADDRESS, addr_type, self.__get_test_irk().decode("utf-8")))
206 self.dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrk(PUBLIC_ADDRESS, int(addr_type),
230 addr_type = ble_address_types["public"]
232 (PUBLIC_ADDRESS, addr_type, self.__get_test_irk().decode("utf-8")))
243 self.dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrk(PUBLIC_ADDRESS, int(addr_type),
267 addr_type = ble_address_types["public"]
269 (PUBLIC_ADDRESS, addr_type, self.__get_test_irk().decode("utf-8")))
278 self.dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrk(PUBLIC_ADDRESS, int(addr_type),
381 addr_type = ble_address_types["random"]
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/lib/
Dle_scanner.py49 def scan_for_address_expect_none(self, address, addr_type): argument
54 logging.info("Start scanning for identity address {} or type {}".format(address, addr_type))
61 self.device.sl4a.bleSetScanFilterDeviceAddressAndType(address, addr_type)
71 def scan_for_address(self, address, addr_type): argument
76 logging.info("Start scanning for identity address {} or type {}".format(address, addr_type))
83 self.device.sl4a.bleSetScanFilterDeviceAddressAndType(address, addr_type)
93 def scan_for_address_with_irk(self, address, addr_type, irk): argument
98 …o("Start scanning for identity address {} or type {} using irk {}".format(address, addr_type, irk))
105 self.device.sl4a.bleSetScanFilterDeviceAddressTypeAndIrkHexString(address, addr_type, irk)
115 def scan_for_address_with_irk_pending_intent(self, address, addr_type, irk): argument
[all …]
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_ble_batchscan.cc96 STREAM_TO_UINT8(adv_data.addr_type, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
144 STREAM_TO_UINT8(adv_data.addr_type, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
150 adv_data.filt_index, adv_data.addr_type, in btm_ble_batchscan_filter_track_adv_vse_cback()
155 to_ble_addr_type(adv_data.addr_type)); in btm_ble_batchscan_filter_track_adv_vse_cback()
362 tBLE_ADDR_TYPE addr_type, in btm_ble_set_batchscan_param() argument
367 addr_type = btm_cb.ble_ctr_cb.addr_mgnt_cb.own_addr_type; in btm_ble_set_batchscan_param()
378 UINT8_TO_STREAM(p, addr_type); in btm_ble_set_batchscan_param()
456 tBLE_ADDR_TYPE addr_type, in BTM_BleEnableBatchScan() argument
460 scan_interval, scan_window, addr_type, discard_rule); in BTM_BleEnableBatchScan()
498 ble_batchscan_cb.addr_type = addr_type; in BTM_BleEnableBatchScan()
[all …]
Dbtm_ble_gap.cc88 const std::vector<uint8_t>& Set(uint8_t addr_type, const RawAddress& addr, in Set() argument
90 auto it = Find(addr_type, addr); in Set()
100 items.emplace_front(addr_type, addr, std::move(data)); in Set()
104 bool Exist(uint8_t addr_type, const RawAddress& addr) { in Exist() argument
105 auto it = Find(addr_type, addr); in Exist()
113 const std::vector<uint8_t>& Append(uint8_t addr_type, const RawAddress& addr, in Append() argument
115 auto it = Find(addr_type, addr); in Append()
125 items.emplace_front(addr_type, addr, std::move(data)); in Append()
130 void Clear(uint8_t addr_type, const RawAddress& addr) { in Clear() argument
131 auto it = Find(addr_type, addr); in Clear()
[all …]
Dbtm_ble_addr.cc197 const RawAddress& bd_addr, uint8_t addr_type) { in btm_find_dev_by_identity_addr() argument
207 (~BLE_ADDR_TYPE_ID_BIT)) != (addr_type & (~BLE_ADDR_TYPE_ID_BIT))) in btm_find_dev_by_identity_addr()
211 addr_type); in btm_find_dev_by_identity_addr()
Dbtm_ble.cc85 tBLE_ADDR_TYPE addr_type) { in BTM_SecAddBleDevice() argument
87 return bluetooth::shim::BTM_SecAddBleDevice(bd_addr, dev_type, addr_type); in BTM_SecAddBleDevice()
113 if (is_ble_addr_type_known(addr_type)) { in BTM_SecAddBleDevice()
114 p_dev_rec->ble.SetAddressType(addr_type); in BTM_SecAddBleDevice()
684 tBLE_ADDR_TYPE addr_type; in BTM_UseLeLink() local
685 BTM_ReadDevInfo(bd_addr, &dev_type, &addr_type); in BTM_UseLeLink()
1777 uint8_t role, tBLE_ADDR_TYPE addr_type, in btm_ble_connected() argument
1793 if (is_ble_addr_type_known(addr_type)) in btm_ble_connected()
1794 p_dev_rec->ble.SetAddressType(addr_type); in btm_ble_connected()
/packages/modules/Bluetooth/system/test/mock/
Dmock_bta_dm_api.h62 std::function<void(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
64 body{[](const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
66 void operator()(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in operator()
68 body(bd_addr, addr_type, dev_type); in operator()
233 std::function<void(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
235 body{[](const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
237 void operator()(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in operator()
239 body(bd_addr, addr_type, transport, device_type); in operator()
Dmock_bta_dm_act.h162 std::function<void(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
164 body{[](const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
166 void operator()(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in operator()
168 body(bd_addr, addr_type, dev_type); in operator()
353 std::function<void(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
355 body{[](const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
357 void operator()(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in operator()
359 body(bd_addr, addr_type, transport, device_type); in operator()
Dmock_stack_btm_ble_gap.cc165 void btm_ble_process_adv_addr(RawAddress& bda, tBLE_ADDR_TYPE* addr_type) { in btm_ble_process_adv_addr() argument
171 void btm_ble_process_adv_pkt_cont(uint16_t evt_type, tBLE_ADDR_TYPE addr_type, in btm_ble_process_adv_pkt_cont() argument
181 uint16_t evt_type, tBLE_ADDR_TYPE addr_type, const RawAddress& bda, in btm_ble_process_adv_pkt_cont_for_inquiry() argument
211 void btm_ble_update_inq_result(tINQ_DB_ENT* p_i, uint8_t addr_type, in btm_ble_update_inq_result() argument
Dmock_bta_dm_api.cc82 void BTA_DmAddBleDevice(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in BTA_DmAddBleDevice() argument
85 test::mock::bta_dm_api::BTA_DmAddBleDevice(bd_addr, addr_type, dev_type); in BTA_DmAddBleDevice()
146 void BTA_DmBond(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in BTA_DmBond() argument
149 test::mock::bta_dm_api::BTA_DmBond(bd_addr, addr_type, transport, in BTA_DmBond()
Dmock_bta_dm_act.cc144 void bta_dm_add_ble_device(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in bta_dm_add_ble_device() argument
147 test::mock::bta_dm_act::bta_dm_add_ble_device(bd_addr, addr_type, dev_type); in bta_dm_add_ble_device()
210 void bta_dm_bond(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in bta_dm_bond() argument
213 test::mock::bta_dm_act::bta_dm_bond(bd_addr, addr_type, transport, in bta_dm_bond()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_ble_scanner.cc77 void btif_address_cache_add(const RawAddress& p_bda, uint8_t addr_type) { in btif_address_cache_add() argument
109 int8_t rssi, tBLE_ADDR_TYPE addr_type, in bta_scan_results_cb_impl() argument
127 if ((addr_type != BLE_ADDR_RANDOM) || (p_eir_remote_name)) { in bta_scan_results_cb_impl()
129 btif_address_cache_add(bd_addr, addr_type); in bta_scan_results_cb_impl()
157 btif_storage_set_remote_addr_type(&bd_addr, addr_type); in bta_scan_results_cb_impl()
158 HAL_CBACK(bt_gatt_callbacks, scanner->scan_result_cb, ble_evt_type, addr_type, in bta_scan_results_cb_impl()
317 int addr_type, int discard_rule, Callback cb) override { in BatchscanEnable() argument
321 static_cast<tBLE_ADDR_TYPE>(addr_type), in BatchscanEnable()
Dbtif_storage.cc518 RawAddress bd_addr, const tBLE_ADDR_TYPE addr_type, in btif_read_le_key() argument
531 BTA_DmAddBleDevice(bd_addr, addr_type, BT_DEVICE_TYPE_BLE); in btif_read_le_key()
1369 tBLE_ADDR_TYPE addr_type; in btif_in_fetch_bonded_ble_device() local
1384 if (btif_storage_get_remote_addr_type(&bd_addr, &addr_type) != in btif_in_fetch_bonded_ble_device()
1386 addr_type = BLE_ADDR_PUBLIC; in btif_in_fetch_bonded_ble_device()
1391 addr_type, add, &device_added, &key_found); in btif_in_fetch_bonded_ble_device()
1394 addr_type, add, &device_added, &key_found); in btif_in_fetch_bonded_ble_device()
1397 addr_type, add, &device_added, &key_found); in btif_in_fetch_bonded_ble_device()
1400 addr_type, add, &device_added, &key_found); in btif_in_fetch_bonded_ble_device()
1403 addr_type, add, &device_added, &key_found); in btif_in_fetch_bonded_ble_device()
[all …]
Dbtif_gatt_client.cc311 tBLE_ADDR_TYPE addr_type = BLE_ADDR_PUBLIC; in btif_gattc_open_impl() local
315 if (btif_get_address_type(address, &addr_type) && in btif_gattc_open_impl()
318 BTA_DmAddBleDevice(address, addr_type, device_type); in btif_gattc_open_impl()
327 (addr_type == BLE_ADDR_RANDOM) && BTM_BLE_IS_RESOLVE_BDA(address)) { in btif_gattc_open_impl()
352 if (addr_type == BLE_ADDR_RANDOM) in btif_gattc_open_impl()
365 device_type, addr_type, initiating_phys); in btif_gattc_open_impl()
Dbtif_sock.cc332 tBLE_ADDR_TYPE addr_type = BLE_ADDR_PUBLIC; in btsock_connect() local
335 if (btif_get_address_type(*bd_addr, &addr_type) && in btsock_connect()
338 BTA_DmAddBleDevice(*bd_addr, addr_type, device_type); in btsock_connect()
Dbtif_dm.cc694 tBLE_ADDR_TYPE addr_type = BLE_ADDR_PUBLIC; in is_device_le_audio_capable() local
695 BTM_ReadDevInfo(bd_addr, &tmp_dev_type, &addr_type); in is_device_le_audio_capable()
727 tBLE_ADDR_TYPE addr_type = BLE_ADDR_PUBLIC; in btif_dm_cb_create_bond() local
734 if (btif_storage_get_remote_addr_type(&bd_addr, &addr_type) != in btif_dm_cb_create_bond()
741 addr_type = tmp_addr_type; in btif_dm_cb_create_bond()
743 btif_storage_set_remote_addr_type(&bd_addr, addr_type); in btif_dm_cb_create_bond()
747 (btif_storage_get_remote_addr_type(&bd_addr, &addr_type) == in btif_dm_cb_create_bond()
751 BTA_DmAddBleDevice(bd_addr, addr_type, in btif_dm_cb_create_bond()
760 BTA_DmBond(bd_addr, addr_type, transport, device_type); in btif_dm_cb_create_bond()
1087 btif_storage_set_remote_addr_type(&bd_addr, p_auth_cmpl->addr_type); in btif_dm_auth_cmpl_evt()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/
Dgatt_connect_low_layer_test.py178 addr_type = ble_address_types["random"]
179 scan_callback_token = self._start_dut_scanning_for_address(addr_type, RANDOM_ADDRESS)
236 addr_type = ble_address_types["random"]
237 scan_callback_token = self._start_dut_scanning_for_address(addr_type, RANDOM_ADDRESS)
312 addr_type = ble_address_types["random"]
313 scan_callback_token = self._start_dut_scanning_for_address(addr_type, RANDOM_ADDRESS)
381 addr_type = ble_address_types["random"]
382 scan_callback_token = self._start_dut_scanning_for_address(addr_type, RANDOM_ADDRESS)
472 addr_type = ble_address_types["random"]
473 scan_callback_token = self._start_dut_scanning_for_address(addr_type, RANDOM_ADDRESS)
/packages/modules/Bluetooth/system/btif/include/
Dbtif_storage.h356 tBLE_ADDR_TYPE* addr_type);
359 tBLE_ADDR_TYPE addr_type);
362 tBLE_ADDR_TYPE& addr_type);
364 const tBLE_ADDR_TYPE& addr_type);
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/l2cap/
Dle_l2cap_coc_test.py97 addr_type=ble_address_types["random"]): argument
102 … self.dut_security_.create_bond_out_of_band(oob_data[1], addr, addr_type, wait_for_device_bonded)
109 addr_type=ble_address_types["random"]): argument
112 … self.__create_le_bond_oob_single_sided(wait_for_oob_data, wait_for_device_bonded, addr, addr_type)
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/
Dgatt_ble_scanner_shim.cc56 .addr_type = command.addr_type, in ConvertApcfFromRust()
111 uint8_t addr_type, in OnScanResult() argument
123 addr_type, in OnScanResult()
236 …int32_t scan_mode, uint16_t scan_interval, uint16_t scan_window, int32_t addr_type, int32_t discar… in BatchscanEnable() argument
241 addr_type, in BatchscanEnable()
Dgatt_ble_scanner_shim.h46 uint8_t addr_type,
119 …int32_t scan_mode, uint16_t scan_interval, uint16_t scan_window, int32_t addr_type, int32_t discar…
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_api.cc149 void BTA_DmBond(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in BTA_DmBond() argument
151 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_bond, bd_addr, addr_type, in BTA_DmBond()
389 void BTA_DmAddBleDevice(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, in BTA_DmAddBleDevice() argument
392 addr_type, dev_type)); in BTA_DmAddBleDevice()
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/gatt/
Dgatt_connect_with_irk_test.py113 addr_type = ble_address_types["public"]
115addr_type, irk))
122 …dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrkHexString(cert_public_address, int(addr_type), irk)
/packages/modules/Bluetooth/system/include/hardware/
Dble_scanner.h44 typedef void (*scan_result_callback)(uint16_t event_type, uint8_t addr_type,
87 virtual void OnScanResult(uint16_t event_type, uint8_t addr_type,
170 int scan_window, int addr_type, int discard_rule,
Dbt_common_types.h38 uint8_t addr_type; member
98 uint8_t addr_type; member

1234