Lines Matching refs:BatteryService

58 sptr<BatteryService> g_service = DelayedSpSingleton<BatteryService>::GetInstance();
64 std::atomic_bool BatteryService::isBootCompleted_ = false;
67 DelayedSpSingleton<BatteryService>::GetInstance().GetRefPtr());
69 BatteryService::BatteryService()
74 BatteryService::~BatteryService() {}
86 void BatteryService::OnStart()
105 bool BatteryService::Init()
116 void BatteryService::RegisterBootCompletedCallback()
124 void BatteryService::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId)
132 bool BatteryService::RegisterBatteryHdiCallback()
153 void BatteryService::InitConfig()
179 int32_t BatteryService::HandleBatteryCallbackEvent(const V2_0::BatteryInfo& event)
191 void BatteryService::ConvertingEvent(const V2_0::BatteryInfo& event)
218 void BatteryService::InitBatteryInfo()
237 void BatteryService::AddBootCommonEvents()
254 bool BatteryService::FillCommonEvent(std::string& ueventName, std::string& commonEventName)
280 void BatteryService::HandleBatteryInfo()
304 bool BatteryService::RegisterHdiStatusListener()
352 void BatteryService::OnStop()
371 bool BatteryService::IsLastPlugged()
380 bool BatteryService::IsNowPlugged(BatteryPluggedType pluggedType)
389 bool BatteryService::IsPlugged(BatteryPluggedType pluggedType)
397 bool BatteryService::IsUnplugged(BatteryPluggedType pluggedType)
405 bool BatteryService::IsCharging(BatteryChargeState chargeState)
410 bool BatteryService::IsInExtremePowerSaveMode()
416 void BatteryService::WakeupDevice(BatteryPluggedType pluggedType)
424 void BatteryService::HandleTemperature(int32_t temperature)
432 void BatteryService::HandleCapacity(int32_t capacity, BatteryChargeState chargeState, bool isBatteryPresent)
461 int32_t BatteryService::GetCapacity()
477 bool BatteryService::ChangePath(const std::string path)
490 void BatteryService::SetLowCapacityThreshold()
503 BatteryError BatteryService::SetBatteryConfig(const std::string& sceneName, const std::string& value)
520 BatteryError BatteryService::GetBatteryConfig(const std::string& sceneName, std::string& result)
543 BatteryError BatteryService::IsBatteryConfigSupported(const std::string& sceneName, bool& result)
565 BatteryChargeState BatteryService::GetChargingStatus()
581 BatteryHealthState BatteryService::GetHealthStatus()
595 BatteryPluggedType BatteryService::GetPluggedType()
611 int32_t BatteryService::GetVoltage()
623 bool BatteryService::GetPresent()
636 std::string BatteryService::GetTechnology()
649 int32_t BatteryService::GetBatteryTemperature()
661 int32_t BatteryService::GetTotalEnergy()
677 int32_t BatteryService::GetCurrentAverage()
689 int32_t BatteryService::GetNowCurrent()
701 int32_t BatteryService::GetRemainEnergy()
717 ChargeType BatteryService::GetChargeType()
730 void BatteryService::CalculateRemainingChargeTime(int32_t capacity, BatteryChargeState chargeState)
761 int64_t BatteryService::GetRemainingChargeTime()
775 BatteryCapacityLevel BatteryService::GetCapacityLevel()
803 int32_t BatteryService::Dump(int32_t fd, const std::vector<std::u16string> &args)
832 void BatteryService::MockUnplugged()
850 bool BatteryService::IsMockUnplugged()
855 void BatteryService::MockCapacity(int32_t capacity)
870 bool BatteryService::IsMockCapacity()
875 void BatteryService::MockUevent(const std::string& uevent)
890 void BatteryService::Reset()
906 void BatteryService::VibratorInit()