Home
last modified time | relevance | path

Searched refs:scanner_id (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Bluetooth/floss/pandora/floss/
Dscanner_client.py32 def on_scanner_registered(self, uuid, scanner_id, status): argument
50 def on_advertisement_found(self, scanner_id, scan_result): argument
59 def on_advertisement_lost(self, scanner_id, scan_result): argument
83 def __init__(self, scanner_id, uuid, status): argument
91 self.scanner_id = scanner_id
196 def OnScannerRegistered(self, uuid, scanner_id, status): argument
205 observer.on_scanner_registered(uuid, scanner_id, status)
216 def OnAdvertisementFound(self, scanner_id, scan_result): argument
224 observer.on_advertisement_found(scanner_id, scan_result)
226 def OnAdvertisementLost(self, scanner_id, scan_result): argument
[all …]
Dgatt_client.py29 def on_client_registered(self, status, scanner_id): argument
284 def OnClientRegistered(self, status, scanner_id): argument
292 observer.on_client_registered(status, scanner_id)
474 def on_client_registered(self, status, scanner_id): argument
481 logging.debug('on_client_registered: status: %s, scanner_id: %s', status, scanner_id)
484 logging.error('Failed to register client with id: %s, status = %s', scanner_id, status)
486 self.client_id = scanner_id
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/
Dgatt_ble_scanner_shim.cc170 .scanner_id = ati.scanner_id, in OnTrackAdvFoundLost()
207 void BleScannerIntf::Unregister(uint8_t scanner_id) { in Unregister() argument
208 scanner_intf_->Unregister(scanner_id); in Unregister()
216 uint8_t scanner_id, in ScanFilterParamSetup() argument
223 scanner_id, in ScanFilterParamSetup()
227 base::Bind(&BleScannerIntf::OnFilterParamSetupCallback, base::Unretained(this), scanner_id)); in ScanFilterParamSetup()
281 uint8_t scanner_id, in SetScanParameters() argument
287 scanner_id, in SetScanParameters()
292 base::Bind(&BleScannerIntf::OnStatusCallback, base::Unretained(this), scanner_id)); in SetScanParameters()
296 uint8_t scanner_id, in BatchscanConfigStorage() argument
[all …]
Dgatt_ble_scanner_shim.h84 void Unregister(uint8_t scanner_id);
92 uint8_t scanner_id,
122 uint8_t scanner_id,
130 uint8_t scanner_id,
146 void BatchscanReadReports(uint8_t scanner_id, int32_t scan_mode);
178 void OnRegisterCallback(bluetooth::Uuid uuid, uint8_t scanner_id, uint8_t btm_status);
179 void OnStatusCallback(uint8_t scanner_id, uint8_t btm_status);
181 …void OnFilterParamSetupCallback(uint8_t scanner_id, uint8_t avbl_space, uint8_t action_type, uint8…
/packages/modules/Bluetooth/system/gd/hci/
Dle_scanning_manager.cc568 void unregister_scanner(ScannerId scanner_id) { in unregister_scanner()
569 if (scanner_id <= 0 || scanner_id > kMaxAppNum) { in unregister_scanner()
574 if (scanners_[scanner_id].in_use) { in unregister_scanner()
575 scanners_[scanner_id].in_use = false; in unregister_scanner()
576 scanners_[scanner_id].app_uuid = Uuid::kEmpty; in unregister_scanner()
577 log::debug("Unregister scanner successful, scannerId={}", scanner_id); in unregister_scanner()
667 ScannerId scanner_id, in set_scan_parameters()
682 scanner_id, ScanningCallback::ScanningStatus::ILLEGAL_PARAMETER); in set_scan_parameters()
688 scanner_id, ScanningCallback::ScanningStatus::ILLEGAL_PARAMETER); in set_scan_parameters()
694 scanner_id, ScanningCallback::ScanningStatus::ILLEGAL_PARAMETER); in set_scan_parameters()
[all …]
Dle_scanning_manager.h51 virtual void Unregister(ScannerId scanner_id);
56 ScannerId scanner_id,
77 ScannerId scanner_id);
84 virtual void BatchScanReadReport(ScannerId scanner_id, BatchScanMode scan_mode);
108 virtual void TrackAdvertiser(uint8_t filter_index, ScannerId scanner_id);
Dle_scanning_callback.h36 uint8_t scanner_id; variable
60 const bluetooth::hci::Uuid app_uuid, ScannerId scanner_id, ScanningStatus status) = 0;
61 virtual void OnSetScannerParameterComplete(ScannerId scanner_id, ScanningStatus status) = 0;
Dle_scanning_manager_mock.h32 MOCK_METHOD(void, OnSetScannerParameterComplete, (ScannerId scanner_id, ScanningStatus status));
Dle_periodic_sync_manager_test.cc172 (const bluetooth::hci::Uuid app_uuid, ScannerId scanner_id, ScanningStatus status),
174 …MOCK_METHOD(void, OnSetScannerParameterComplete, (ScannerId scanner_id, ScanningStatus status), (o…
Dle_scanning_manager_test.cc245 (const bluetooth::hci::Uuid app_uuid, ScannerId scanner_id, ScanningStatus status),
247 …MOCK_METHOD(void, OnSetScannerParameterComplete, (ScannerId scanner_id, ScanningStatus status), (o…
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_gatt.rs385 fn unregister_scanner(&mut self, scanner_id: u8) -> bool; in unregister_scanner()
390 scanner_id: u8, in start_scan()
396 fn stop_scan(&mut self, scanner_id: u8) -> BtStatus; in stop_scan()
1124 fn on_scanner_registered(&mut self, uuid: Uuid, scanner_id: u8, status: GattStatus); in on_scanner_registered()
1134 fn on_advertisement_found(&mut self, scanner_id: u8, scan_result: ScanResult); in on_advertisement_found()
1140 fn on_advertisement_lost(&mut self, scanner_id: u8, scan_result: ScanResult); in on_advertisement_lost()
1395 async fn update_scan(&mut self, scanner_id: u8) { in update_scan()
1422 scanner_id, in update_scan()
1618 if let Some(scanner_id) = scanner.scanner_id { in remove_scanner_callback()
1619 Some(scanner_id) in remove_scanner_callback()
[all …]
Dbluetooth.rs1202 DelayedActions::BleDiscoveryScannerRegistered(uuid, scanner_id, status) => { in handle_delayed_actions()
1206 self.ble_scanner_id = Some(scanner_id); in handle_delayed_actions()
1759 if let Some(scanner_id) = self.ble_scanner_id { in discovery_state()
1761 self.bluetooth_gatt.lock().unwrap().start_active_scan(scanner_id); in discovery_state()
1763 self.bluetooth_gatt.lock().unwrap().stop_active_scan(scanner_id); in discovery_state()
2124 fn on_scanner_registered(&mut self, uuid: Uuid, scanner_id: u8, status: GattStatus) { in on_scanner_registered()
2129 DelayedActions::BleDiscoveryScannerRegistered(uuid, scanner_id, status), in on_scanner_registered()
/packages/modules/Bluetooth/system/main/shim/
Dle_scanning_manager.cc172 void BleScannerInterfaceImpl::Unregister(int scanner_id) { in Unregister() argument
173 log::info("in shim layer, scannerId={}", scanner_id); in Unregister()
174 bluetooth::shim::GetScanning()->Unregister(scanner_id); in Unregister()
352 void BleScannerInterfaceImpl::SetScanParameters(int scanner_id, in SetScanParameters() argument
357 log::info("in shim layer, scannerId={}", scanner_id); in SetScanParameters()
369 scanner_id, static_cast<bluetooth::hci::LeScanType>(scan_type), in SetScanParameters()
410 auto scanner_id = static_cast<bluetooth::hci::ScannerId>(client_if); in BatchscanReadReports() local
411 bluetooth::shim::GetScanning()->BatchScanReadReport(scanner_id, in BatchscanReadReports()
503 const bluetooth::hci::Uuid app_uuid, bluetooth::hci::ScannerId scanner_id, in OnScannerRegistered() argument
508 scanner_id, status)); in OnScannerRegistered()
[all …]
Dble_scanner_interface_impl.h62 void Unregister(int scanner_id) override;
81 void SetScanParameters(int scanner_id, uint8_t scan_type, int scan_interval,
105 bluetooth::hci::ScannerId scanner_id,
107 void OnSetScannerParameterComplete(bluetooth::hci::ScannerId scanner_id,
/packages/modules/Bluetooth/system/gd/hci/facade/
Dle_scanning_manager_facade.cc70 le_scanning_manager_->Unregister(request->scanner_id()); in Unregister()
88 request->scanner_id(), in SetScanParameters()
119 void OnSetScannerParameterComplete(ScannerId scanner_id, ScanningStatus status) { in OnSetScannerParameterComplete() argument
123 msg.set_data(static_cast<uint32_t>(scanner_id)); in OnSetScannerParameterComplete()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dgatt.rs40 scanner_id: u8, field
148 fn Unregister(self: Pin<&mut BleScannerIntf>, scanner_id: u8); in Unregister()
152 scanner_id: u8, in ScanFilterParamSetup()
174 scanner_id: u8, in SetScanParameters()
183 scanner_id: u8, in BatchscanConfigStorage()
197 fn BatchscanReadReports(self: Pin<&mut BleScannerIntf>, scanner_id: u8, scan_mode: i32); in BatchscanReadReports()
263 unsafe fn gdscan_register_callback(uuid: Uuid, scanner_id: u8, btm_status: u8); in gdscan_register_callback()
264 unsafe fn gdscan_status_callback(scanner_id: u8, btm_status: u8); in gdscan_status_callback()
267 scanner_id: u8, in gdscan_filter_param_setup_callback()
1480 pub fn unregister(&mut self, scanner_id: u8) { in unregister()
[all …]
/packages/modules/Bluetooth/floss/pandora/server/
Dhost.py455 def on_scanner_registered(self, uuid, scanner_id, status): argument
462 scanner_id = None
465 future.get_loop().call_soon_threadsafe(future.set_result, scanner_id)
471 scanner_id = None
485 scanner_id = await asyncio.wait_for(scan['register_scanner'], timeout=10)
487 self.bluetooth.start_scan(scanner_id)
538 if scanner_id is not None:
539 self.bluetooth.stop_scan(scanner_id)
Dbluetooth.py314 def start_scan(self, scanner_id, settings=None, scan_filter=None): argument
318 return self.scanner_client.start_scan(scanner_id, settings, scan_filter)
320 def stop_scan(self, scanner_id): argument
321 if not self.scanner_client.remove_monitor(scanner_id):
/packages/modules/Bluetooth/system/blueberry/facade/hci/
Dle_scanning_manager_facade.proto46 uint32 scanner_id = 1; field
54 uint32 scanner_id = 1; field
/packages/modules/Bluetooth/system/include/hardware/
Dble_scanner.h63 uint8_t scanner_id; variable
151 virtual void Unregister(int scanner_id) = 0;
190 virtual void SetScanParameters(int scanner_id, uint8_t scan_type,
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/
Diface_bluetooth_gatt.rs38 fn on_client_registered(&mut self, status: GattStatus, scanner_id: i32) { in on_client_registered()
291 fn on_scanner_registered(&mut self, uuid: Uuid, scanner_id: u8, status: GattStatus) { in on_scanner_registered()
301 fn on_advertisement_found(&mut self, scanner_id: u8, scan_result: ScanResult) { in on_advertisement_found()
306 fn on_advertisement_lost(&mut self, scanner_id: u8, scan_result: ScanResult) { in on_advertisement_lost()
621 fn unregister_scanner(&mut self, scanner_id: u8) -> bool { in unregister_scanner()
628 scanner_id: u8, in start_scan()
636 fn stop_scan(&mut self, scanner_id: u8) -> BtStatus { in stop_scan()
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/
Dle_scanning_manager_test.py144 scanner_id=0x01,
158 scanner_id=0x01,
186 scanner_id=0x01,
217 scanner_id=0x01,
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/
Dcallbacks.rs419 fn on_scanner_registered(&mut self, uuid: Uuid, scanner_id: u8, status: GattStatus) { in on_scanner_registered()
425 print_info!("Scanner callback registered, uuid = {}, id = {}", uuid, scanner_id); in on_scanner_registered()
434 fn on_advertisement_found(&mut self, scanner_id: u8, scan_result: ScanResult) { in on_advertisement_found()
436 print_info!("Advertisement found for scanner_id {} : {:#?}", scanner_id, scan_result); in on_advertisement_found()
440 fn on_advertisement_lost(&mut self, scanner_id: u8, scan_result: ScanResult) { in on_advertisement_lost()
442 print_info!("Advertisement lost for scanner_id {} : {:#?}", scanner_id, scan_result); in on_advertisement_lost()
Dcommand_handler.rs1558 let scanner_id = String::from(get_arg(args, 1)?) in cmd_le_scan() localVariable
1562 self.lock_context().gatt_dbus.as_mut().unwrap().unregister_scanner(scanner_id); in cmd_le_scan()
1565 let scanner_id = String::from(get_arg(args, 1)?) in cmd_le_scan() localVariable
1570 scanner_id, in cmd_le_scan()
1583 self.lock_context().active_scanner_ids.insert(scanner_id); in cmd_le_scan()
1586 let scanner_id = String::from(get_arg(args, 1)?) in cmd_le_scan() localVariable
1590 self.lock_context().gatt_dbus.as_mut().unwrap().stop_scan(scanner_id); in cmd_le_scan()
1591 self.lock_context().active_scanner_ids.remove(&scanner_id); in cmd_le_scan()
Ddbus_iface.rs689 fn on_scanner_registered(&mut self, uuid: Uuid, scanner_id: u8, status: GattStatus) { in on_scanner_registered()
699 fn on_advertisement_found(&mut self, scanner_id: u8, scan_result: ScanResult) { in on_advertisement_found()
704 fn on_advertisement_lost(&mut self, scanner_id: u8, scan_result: ScanResult) { in on_advertisement_lost()
1480 fn unregister_scanner(&mut self, scanner_id: u8) -> bool { in unregister_scanner()

12