Home
last modified time | relevance | path

Searched refs:BatControlCommand (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/devices/src/
Dbat.rs15 use vm_control::{BatControlCommand, BatControlResult};
214 BatControlCommand::SetStatus(status) => bat_state.set_status(status.into()), in command_monitor()
215 BatControlCommand::SetHealth(health) => bat_state.set_health(health.into()), in command_monitor()
216 BatControlCommand::SetPresent(present) => { in command_monitor()
220 BatControlCommand::SetCapacity(capacity) => { in command_monitor()
224 BatControlCommand::SetACOnline(ac_online) => { in command_monitor()
/external/crosvm/vm_control/src/
Dlib.rs753 pub enum BatControlCommand { enum
761 impl BatControlCommand { impl
765 BatProperty::Status => Ok(BatControlCommand::SetStatus(target.parse::<BatStatus>()?)), in new()
766 BatProperty::Health => Ok(BatControlCommand::SetHealth(target.parse::<BatHealth>()?)), in new()
767 BatProperty::Present => Ok(BatControlCommand::SetPresent( in new()
772 BatProperty::Capacity => Ok(BatControlCommand::SetCapacity( in new()
777 BatProperty::ACOnline => Ok(BatControlCommand::SetACOnline( in new()
919 BatCommand(BatteryType, BatControlCommand),
Dclient.rs160 Ok(type_) => match BatControlCommand::new(property.to_string(), target.to_string()) { in do_modify_battery()