Home
last modified time | relevance | path

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

/external/crosvm/power_monitor/src/powerd/
Dmod.rs5 use crate::{BatteryData, BatteryStatus, PowerData, PowerMonitor};
39 PowerSupplyProperties_BatteryState::FULL => BatteryStatus::NotCharging, in from()
40 PowerSupplyProperties_BatteryState::CHARGING => BatteryStatus::Charging, in from()
41 PowerSupplyProperties_BatteryState::DISCHARGING => BatteryStatus::Discharging, in from()
42 _ => BatteryStatus::Unknown, in from()
/external/crosvm/power_monitor/src/
Dlib.rs19 pub status: BatteryStatus,
31 pub enum BatteryStatus { enum
/external/crosvm/devices/src/
Dbat.rs10 use power_monitor::{BatteryStatus, CreatePowerMonitorFn};
262 BatteryStatus::Unknown => BATTERY_STATUS_VAL_UNKNOWN, in command_monitor()
263 BatteryStatus::Charging => BATTERY_STATUS_VAL_CHARGING, in command_monitor()
264 BatteryStatus::Discharging => BATTERY_STATUS_VAL_DISCHARGING, in command_monitor()
265 BatteryStatus::NotCharging => BATTERY_STATUS_VAL_NOT_CHARGING, in command_monitor()