Searched refs:battery_set (Results 1 – 9 of 9) sorted by relevance
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | battery_manager.rs | 41 fn on_battery_info_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet); in on_battery_info_updated() 82 pub fn handle_battery_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet) { in handle_battery_updated() 84 callback.on_battery_info_updated(remote_address, battery_set.clone()) in handle_battery_updated() 135 .find(|battery_set| battery_set.source_uuid == new_battery_set.source_uuid) in add_or_update_battery_set() 137 Some(battery_set) => *battery_set = new_battery_set, in add_or_update_battery_set() 143 self.0.retain(|battery_set| &battery_set.source_uuid != uuid); in remove_battery_set() 154 .filter(|battery_set| !battery_set.batteries.is_empty()) in pick_best() 157 .find_or_first(|battery_set| battery_set.source_uuid == uuid::BAS) in pick_best()
|
D | battery_provider_manager.rs | 28 fn set_battery_info(&mut self, battery_provider_id: u32, battery_set: BatterySet); in set_battery_info() 97 fn set_battery_info(&mut self, _battery_provider_id: u32, battery_set: BatterySet) { in set_battery_info() 100 DisplayAddress(&battery_set.address), in set_battery_info() 101 battery_set.source_info.clone(), in set_battery_info() 102 battery_set.clone() in set_battery_info() 105 if battery_set.batteries.is_empty() { in set_battery_info() 110 self.battery_info.entry(battery_set.address).or_insert_with(|| Batteries::new()); in set_battery_info() 111 batteries.add_or_update_battery_set(battery_set); in set_battery_info()
|
D | battery_service.rs | 243 let battery_set = self.battery_sets.entry(*remote_address).or_insert_with(|| { in set_battery_info() localVariable 254 .set_battery_info(self.battery_provider_id, battery_set.clone()); in set_battery_info() 255 battery_set.clone() in set_battery_info()
|
D | lib.rs | 437 Message::BatteryProviderManagerBatteryUpdated(remote_address, battery_set) => { in dispatch() 441 .handle_battery_updated(remote_address, battery_set); in dispatch()
|
D | bluetooth_media.rs | 1615 let battery_set = BatterySet::new( in dispatch_hfp_callbacks() localVariable 1624 .set_battery_info(self.battery_provider_id, battery_set); in dispatch_hfp_callbacks()
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | iface_battery_provider_manager.rs | 42 fn set_battery_info(&mut self, battery_provider_id: u32, battery_set: BatterySet) { in set_battery_info()
|
D | iface_battery_manager.rs | 30 fn on_battery_info_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet) { in on_battery_info_updated()
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | callbacks.rs | 1625 fn on_battery_info_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet) { in on_battery_info_updated() 1628 if battery_set.batteries.len() == 0 { in on_battery_info_updated() 1639 battery_set.source_uuid.clone(), in on_battery_info_updated() 1640 battery_set.source_info.clone() in on_battery_info_updated() 1642 for battery in battery_set.batteries { in on_battery_info_updated()
|
D | dbus_iface.rs | 3048 fn on_battery_info_updated(&mut self, remote_address: RawAddress, battery_set: BatterySet) {} in on_battery_info_updated()
|