Home
last modified time | relevance | path

Searched refs:BatteryType (Results 1 – 7 of 7) sorted by relevance

/external/crosvm/vm_control/src/
Dlib.rs624 pub enum BatteryType { enum
628 impl Default for BatteryType { implementation
630 BatteryType::Goldfish in default()
634 impl FromStr for BatteryType { implementation
639 "goldfish" => Ok(BatteryType::Goldfish), in from_str()
788 pub type_: BatteryType,
919 BatCommand(BatteryType, BatControlCommand),
Dclient.rs159 let response = match battery_type.parse::<BatteryType>() { in do_modify_battery()
/external/crosvm/src/
Dcrosvm.rs30 use vm_control::BatteryType;
253 pub battery_type: Option<BatteryType>,
Dmain.rs42 BalloonControlCommand, BatteryType, DiskControlCommand, UsbControlResult, VmRequest,
652 fn parse_battery_options(s: Option<&str>) -> argument::Result<BatteryType> { in parse_battery_options() argument
653 let mut battery_type: BatteryType = Default::default(); in parse_battery_options()
663 "type" => match v.parse::<BatteryType>() { in parse_battery_options()
/external/crosvm/x86_64/src/
Dlib.rs70 use vm_control::{BatControl, BatteryType};
366 battery: (&Option<BatteryType>, Option<Minijail>), in build_vm() argument
1053 battery: (&Option<BatteryType>, Option<Minijail>), in setup_acpi_devices() argument
1086 BatteryType::Goldfish => { in setup_acpi_devices()
1097 type_: BatteryType::Goldfish, in setup_acpi_devices()
/external/crosvm/aarch64/src/
Dlib.rs22 use vm_control::BatteryType;
228 _battery: (&Option<BatteryType>, Option<Minijail>), in build_vm() argument
/external/crosvm/arch/src/
Dlib.rs30 use vm_control::{BatControl, BatteryType};
154 battery: (&Option<BatteryType>, Option<Minijail>), in build_vm() argument