Searched refs:batteries (Results 1 – 10 of 10) sorted by relevance
88 if let Some(batteries) = self.battery_info.get_mut(&address) { in remove_battery_info()89 batteries.remove_battery_set(&uuid); in remove_battery_info()91 if batteries.is_empty() { in remove_battery_info()105 if battery_set.batteries.is_empty() { in set_battery_info()109 let batteries = in set_battery_info() localVariable111 batteries.add_or_update_battery_set(battery_set); in set_battery_info()113 if let Some(best_battery_set) = batteries.pick_best() { in set_battery_info()
21 pub batteries: Vec<Battery>, field111 batteries: Vec<Battery>, in new()113 Self { address, source_uuid, source_info, batteries } in new()117 match self.batteries.iter_mut().find(|battery| battery.variant == new_battery.variant) { in add_or_update_battery()119 None => self.batteries.push(new_battery), in add_or_update_battery()154 .filter(|battery_set| !battery_set.batteries.is_empty()) in pick_best()
16 batteries: Vec<Battery>, field
1628 if battery_set.batteries.len() == 0 { in on_battery_info_updated()1642 for battery in battery_set.batteries { in on_battery_info_updated()
718 if set.batteries.len() == 0 { in cmd_battery()729 for battery in set.batteries { in cmd_battery()
3029 batteries: Vec<Battery>, field