/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/ |
D | gatt_ble_advertiser_shim.cc | 76 void BleAdvertiserIntf::Unregister(uint8_t adv_id) { in Unregister() argument 77 adv_intf_->Unregister(adv_id); in Unregister() 80 void BleAdvertiserIntf::GetOwnAddress(uint8_t adv_id) { in GetOwnAddress() argument 82 adv_id, base::Bind(&BleAdvertiserIntf::OnGetAddressCallback, base::Unretained(this), adv_id)); in GetOwnAddress() 85 void BleAdvertiserIntf::SetParameters(uint8_t adv_id, AdvertiseParameters params) { in SetParameters() argument 87 adv_id, in SetParameters() 89 base::Bind(&BleAdvertiserIntf::OnParametersCallback, base::Unretained(this), adv_id)); in SetParameters() 92 void BleAdvertiserIntf::SetData(uint8_t adv_id, bool set_scan_rsp, ::rust::Vec<uint8_t> data) { in SetData() argument 97 adv_id, in SetData() 100 base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(this), adv_id)); in SetData() [all …]
|
D | gatt_ble_advertiser_shim.h | 51 void Unregister(uint8_t adv_id); 53 void GetOwnAddress(uint8_t adv_id); 54 void SetParameters(uint8_t adv_id, AdvertiseParameters params); 55 void SetData(uint8_t adv_id, bool set_scan_rsp, ::rust::Vec<uint8_t> data); 56 void Enable(uint8_t adv_id, bool enable, uint16_t duration, uint8_t max_ext_adv_events); 58 uint8_t adv_id, 72 void SetPeriodicAdvertisingParameters(uint8_t adv_id, PeriodicAdvertisingParameters params); 73 void SetPeriodicAdvertisingData(uint8_t adv_id, ::rust::Vec<uint8_t> data); 74 void SetPeriodicAdvertisingEnable(uint8_t adv_id, bool enable, bool include_adi); 81 void OnIdStatusCallback(uint8_t adv_id, uint8_t status); [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | bluetooth_adv.rs | 407 adv_id: Option<AdvertiserId>, field 449 adv_id: None, in new() 473 self.adv_id = id; in set_adv_id() 477 fn adv_id(&self) -> u8 { in adv_id() method 479 self.adv_id.unwrap_or(INVALID_ADV_ID) as u8 in adv_id() 529 self.adv_id.is_some() in is_valid() 609 self.sets.iter().filter_map(|(_, s)| s.adv_id.map(|_| s)) in valid_sets() 622 fn find_reg_id(&self, adv_id: AdvertiserId) -> Option<RegId> { in find_reg_id() 624 if s.adv_id == Some(adv_id) { in find_reg_id() 644 adv_id: AdvertiserId, in get_mut_by_advertiser_id() [all …]
|
D | bluetooth_gatt.rs | 4166 fn on_advertising_enabled(&mut self, adv_id: u8, enabled: bool, status: AdvertisingStatus) { in on_advertising_enabled() 4167 self.adv_manager.get_impl().on_advertising_enabled(adv_id, enabled, status); in on_advertising_enabled() 4170 fn on_advertising_data_set(&mut self, adv_id: u8, status: AdvertisingStatus) { in on_advertising_data_set() 4171 self.adv_manager.get_impl().on_advertising_data_set(adv_id, status); in on_advertising_data_set() 4174 fn on_scan_response_data_set(&mut self, adv_id: u8, status: AdvertisingStatus) { in on_scan_response_data_set() 4175 self.adv_manager.get_impl().on_scan_response_data_set(adv_id, status); in on_scan_response_data_set() 4180 adv_id: u8, in on_advertising_parameters_updated() 4184 self.adv_manager.get_impl().on_advertising_parameters_updated(adv_id, tx_power, status); in on_advertising_parameters_updated() 4189 adv_id: u8, in on_periodic_advertising_parameters_updated() 4192 self.adv_manager.get_impl().on_periodic_advertising_parameters_updated(adv_id, status); in on_periodic_advertising_parameters_updated() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | bt_adv.rs | 16 pub(crate) adv_id: Option<AdvertiserId>, field 70 AdvSet { adv_id: None, params, data, scan_rsp } in new() 93 let adv_ids: Vec<_> = context.adv_sets.iter().filter_map(|(_, s)| s.adv_id).collect(); in stop_all() 94 for adv_id in adv_ids { in stop_all() 95 print_info!("Stopping advertising set {}", adv_id); in stop_all() 96 context.gatt_dbus.as_mut().unwrap().stop_advertising_set(adv_id); in stop_all()
|
D | command_handler.rs | 1644 .filter_map(|(_, s)| s.adv_id.map(|adv_id| (adv_id.clone(), s.params.clone()))) in cmd_advertise() 1646 for (adv_id, params) in advs { in cmd_advertise() 1647 print_info!("Setting advertising parameters for {}", adv_id); in cmd_advertise() 1648 context.gatt_dbus.as_mut().unwrap().set_advertising_parameters(adv_id, params); in cmd_advertise() 1658 let adv_id = String::from(get_arg(args, 2)?) in cmd_advertise() localVariable 1668 if !(s.adv_id.map_or(false, |id| id == adv_id)) { in cmd_advertise() 1677 print_info!("Setting advertising parameters for {}", adv_id); in cmd_advertise() 1678 context.gatt_dbus.as_mut().unwrap().set_advertising_parameters(adv_id, params); in cmd_advertise() 1681 print_info!("Setting advertising data for {}", adv_id); in cmd_advertise() 1682 context.gatt_dbus.as_mut().unwrap().set_advertising_data(adv_id, data); in cmd_advertise() [all …]
|
D | callbacks.rs | 569 s.adv_id = Some(advertiser_id); in on_advertising_set_started()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | gatt.rs | 323 fn Unregister(self: Pin<&mut BleAdvertiserIntf>, adv_id: u8); in Unregister() 325 fn GetOwnAddress(self: Pin<&mut BleAdvertiserIntf>, adv_id: u8); in GetOwnAddress() 328 adv_id: u8, in SetParameters() 333 adv_id: u8, in SetData() 339 adv_id: u8, in Enable() 346 adv_id: u8, in StartAdvertising() 365 adv_id: u8, in SetPeriodicAdvertisingParameters() 368 fn SetPeriodicAdvertisingData(self: Pin<&mut BleAdvertiserIntf>, adv_id: u8, data: Vec<u8>); in SetPeriodicAdvertisingData() 371 adv_id: u8, in SetPeriodicAdvertisingEnable() 385 adv_id: u8, in gdadv_on_advertising_set_started() [all …]
|