Searched refs:BatteryCounter (Results 1 – 3 of 3) sorted by relevance
38 bool GetBatteryCounter(BatteryCounter counter, int64_t* value) { in GetBatteryCounter()53 case BatteryCounter::kUnspecified: in GetBatteryCounter()57 case BatteryCounter::kCharge: in GetBatteryCounter()64 case BatteryCounter::kCapacityPercent: in GetBatteryCounter()71 case BatteryCounter::kCurrent: in GetBatteryCounter()78 case BatteryCounter::kCurrentAvg: in GetBatteryCounter()
32 enum class BatteryCounter { enum45 GetBatteryCounter(BatteryCounter, int64_t*);
67 base::Optional<int64_t> GetCounter(android_internal::BatteryCounter counter) { in GetCounter()164 auto hal_id = android_internal::BatteryCounter::kUnspecified; in AndroidPowerDataSource()169 hal_id = android_internal::BatteryCounter::kCharge; in AndroidPowerDataSource()172 hal_id = android_internal::BatteryCounter::kCapacityPercent; in AndroidPowerDataSource()175 hal_id = android_internal::BatteryCounter::kCurrent; in AndroidPowerDataSource()178 hal_id = android_internal::BatteryCounter::kCurrentAvg; in AndroidPowerDataSource()220 auto counter = static_cast<android_internal::BatteryCounter>(i); in WriteBatteryCounters()226 case android_internal::BatteryCounter::kUnspecified: in WriteBatteryCounters()230 case android_internal::BatteryCounter::kCharge: in WriteBatteryCounters()234 case android_internal::BatteryCounter::kCapacityPercent: in WriteBatteryCounters()[all …]