• Home
  • Raw
  • Download

Lines Matching refs:BatteryService

54 sptr<BatteryService> g_service;
61 std::atomic_bool BatteryService::isBootCompleted_ = false;
64 DelayedSpSingleton<BatteryService>::GetInstance().GetRefPtr());
66 BatteryService::BatteryService() in BatteryService() function in OHOS::PowerMgr::BatteryService
71 BatteryService::~BatteryService() {} in ~BatteryService()
83 void BatteryService::OnStart() in OnStart()
102 bool BatteryService::Init() in Init()
112 void BatteryService::RegisterBootCompletedCallback() in RegisterBootCompletedCallback()
120 void BatteryService::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId) in OnAddSystemAbility()
128 bool BatteryService::RegisterBatteryHdiCallback() in RegisterBatteryHdiCallback()
144 std::bind(&BatteryService::HandleBatteryCallbackEvent, this, std::placeholders::_1); in RegisterBatteryHdiCallback()
149 void BatteryService::InitConfig() in InitConfig()
173 int32_t BatteryService::HandleBatteryCallbackEvent(const V1_2::BatteryInfo& event) in HandleBatteryCallbackEvent()
185 void BatteryService::ConvertingEvent(const V1_2::BatteryInfo& event) in ConvertingEvent()
209 void BatteryService::HandleBatteryInfo() in HandleBatteryInfo()
232 bool BatteryService::RegisterHdiStatusListener() in RegisterHdiStatusListener()
275 void BatteryService::OnStop() in OnStop()
294 bool BatteryService::IsLastPlugged() in IsLastPlugged()
303 bool BatteryService::IsNowPlugged(BatteryPluggedType pluggedType) in IsNowPlugged()
312 bool BatteryService::IsPlugged(BatteryPluggedType pluggedType) in IsPlugged()
324 bool BatteryService::IsUnplugged(BatteryPluggedType pluggedType) in IsUnplugged()
332 void BatteryService::WakeupDevice(BatteryPluggedType pluggedType) in WakeupDevice()
340 void BatteryService::HandleTemperature(int32_t temperature) in HandleTemperature()
349 void BatteryService::HandleCapacity(int32_t capacity, BatteryChargeState chargeState) in HandleCapacity()
363 int32_t BatteryService::GetCapacity() in GetCapacity()
379 bool BatteryService::ChangePath(const std::string path) in ChangePath()
391 BatteryChargeState BatteryService::GetChargingStatus() in GetChargingStatus()
407 BatteryHealthState BatteryService::GetHealthStatus() in GetHealthStatus()
421 BatteryPluggedType BatteryService::GetPluggedType() in GetPluggedType()
437 int32_t BatteryService::GetVoltage() in GetVoltage()
449 bool BatteryService::GetPresent() in GetPresent()
462 std::string BatteryService::GetTechnology() in GetTechnology()
475 int32_t BatteryService::GetBatteryTemperature() in GetBatteryTemperature()
487 int32_t BatteryService::GetTotalEnergy() in GetTotalEnergy()
503 int32_t BatteryService::GetCurrentAverage() in GetCurrentAverage()
515 int32_t BatteryService::GetNowCurrent() in GetNowCurrent()
532 int32_t BatteryService::GetRemainEnergy() in GetRemainEnergy()
548 ChargeType BatteryService::GetChargeType() in GetChargeType()
561 void BatteryService::CalculateRemainingChargeTime(int32_t capacity, BatteryChargeState chargeState) in CalculateRemainingChargeTime()
592 int64_t BatteryService::GetRemainingChargeTime() in GetRemainingChargeTime()
606 BatteryCapacityLevel BatteryService::GetCapacityLevel() in GetCapacityLevel()
634 int32_t BatteryService::Dump(int32_t fd, const std::vector<std::u16string> &args) in Dump()
642 g_service = DelayedSpSingleton<BatteryService>::GetInstance(); in Dump()
663 void BatteryService::MockUnplugged() in MockUnplugged()
681 bool BatteryService::IsMockUnplugged() in IsMockUnplugged()
686 void BatteryService::MockCapacity(int32_t capacity) in MockCapacity()
701 bool BatteryService::IsMockCapacity() in IsMockCapacity()
706 void BatteryService::Reset() in Reset()