Lines Matching defs:BatteryMonitor
20 #include <healthd/BatteryMonitor.h>
80 BatteryMonitor::BatteryMonitor() : mHealthdConfig(nullptr), mBatteryDevicePresent(false),
85 int BatteryMonitor::getBatteryStatus(const char* status) {
105 int BatteryMonitor::getBatteryHealth(const char* status) {
127 int BatteryMonitor::readFromFile(const String8& path, char* buf, size_t size) {
151 BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String8& path) {
155 BatteryMonitor::PowerSupplyType ret;
176 ret = (BatteryMonitor::PowerSupplyType)mapSysfsString(buf, supplyTypeMap);
185 bool BatteryMonitor::getBooleanField(const String8& path) {
199 int BatteryMonitor::getIntField(const String8& path) {
210 bool BatteryMonitor::update(void) {
363 int BatteryMonitor::getChargeStatus() {
374 status_t BatteryMonitor::getProperty(int id, struct BatteryProperty *val) {
435 void BatteryMonitor::dumpState(int fd) {
486 void BatteryMonitor::init(struct healthd_config *hc) {