Lines Matching refs:BatteryChargeState
194 batteryInfo_.SetChargeState(BatteryChargeState(event.chargeState)); in ConvertingEvent()
349 void BatteryService::HandleCapacity(int32_t capacity, BatteryChargeState chargeState) in HandleCapacity()
354 ((chargeState == BatteryChargeState::CHARGE_STATE_NONE) || in HandleCapacity()
355 (chargeState == BatteryChargeState::CHARGE_STATE_BUTT))) { in HandleCapacity()
391 BatteryChargeState BatteryService::GetChargingStatus() in GetChargingStatus()
398 V1_2::BatteryChargeState chargeState = V1_2::BatteryChargeState(0); in GetChargingStatus()
401 return BatteryChargeState(chargeState); in GetChargingStatus()
404 return BatteryChargeState(chargeState); in GetChargingStatus()
561 void BatteryService::CalculateRemainingChargeTime(int32_t capacity, BatteryChargeState chargeState) in CalculateRemainingChargeTime()
568 if (chargeState != BatteryChargeState::CHARGE_STATE_ENABLE) { in CalculateRemainingChargeTime()
677 batteryInfo_.SetChargeState(BatteryChargeState::CHARGE_STATE_NONE); in MockUnplugged()