Lines Matching refs:ThermalService
50 auto g_service = DelayedSpSingleton<ThermalService>::GetInstance();
54 std::atomic_bool ThermalService::isBootCompleted_ = false;
55 ThermalService::ThermalService() : SystemAbility(POWER_MANAGER_THERMAL_SERVICE_ID, true) {} in ThermalService() function in OHOS::PowerMgr::ThermalService
57 ThermalService::~ThermalService() {} in ~ThermalService()
59 void ThermalService::OnStart() in OnStart()
73 if (!Publish(DelayedSpSingleton<ThermalService>::GetInstance())) { in OnStart()
82 void ThermalService::RegisterBootCompletedCallback() in RegisterBootCompletedCallback()
90 void ThermalService::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId) in OnAddSystemAbility()
98 bool ThermalService::Init() in Init()
112 bool ThermalService::CreateConfigModule() in CreateConfigModule()
157 bool ThermalService::InitConfigFile() in InitConfigFile()
184 bool ThermalService::InitConfigModule() in InitConfigModule()
198 bool ThermalService::InitModules() in InitModules()
225 bool ThermalService::InitThermalObserver() in InitThermalObserver()
246 bool ThermalService::InitBaseInfo() in InitBaseInfo()
256 bool ThermalService::InitStateMachine() in InitStateMachine()
266 bool ThermalService::InitActionManager() in InitActionManager()
276 bool ThermalService::InitThermalPolicy() in InitThermalPolicy()
286 void ThermalService::OnStop() in OnStop()
306 bool ThermalService::SubscribeThermalTempCallback( in SubscribeThermalTempCallback()
319 bool ThermalService::UnSubscribeThermalTempCallback(const sptr<IThermalTempCallback>& callback) in UnSubscribeThermalTempCallback()
331 bool ThermalService::GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorIn… in GetThermalSrvSensorInfo()
341 bool ThermalService::SubscribeThermalLevelCallback(const sptr<IThermalLevelCallback>& callback) in SubscribeThermalLevelCallback()
350 bool ThermalService::UnSubscribeThermalLevelCallback(const sptr<IThermalLevelCallback>& callback) in UnSubscribeThermalLevelCallback()
359 bool ThermalService::SubscribeThermalActionCallback( in SubscribeThermalActionCallback()
374 bool ThermalService::UnSubscribeThermalActionCallback(const sptr<IThermalActionCallback>& callback) in UnSubscribeThermalActionCallback()
388 bool ThermalService::GetThermalLevel(ThermalLevel& level) in GetThermalLevel()
395 bool ThermalService::GetThermalInfo() in GetThermalInfo()
418 bool ThermalService::SetScene(const std::string& scene) in SetScene()
427 void ThermalService::RegisterHdiStatusListener() in RegisterHdiStatusListener()
469 void ThermalService::RegisterThermalHdiCallback() in RegisterThermalHdiCallback()
485 std::bind(&ThermalService::HandleThermalCallbackEvent, this, std::placeholders::_1); in RegisterThermalHdiCallback()
491 int32_t ThermalService::HandleThermalCallbackEvent(const HdfThermalCallbackInfo& event) in HandleThermalCallbackEvent()
503 void ThermalService::RegisterFanHdiCallback() in RegisterFanHdiCallback()
516 std::bind(&ThermalService::HandleFanCallbackEvent, this, std::placeholders::_1); in RegisterFanHdiCallback()
524 int32_t ThermalService::HandleFanCallbackEvent(const HdfThermalCallbackInfo& event) in HandleFanCallbackEvent()
537 std::string ThermalService::ShellDump(const std::vector<std::string>& args, uint32_t argc) in ShellDump()
551 int32_t ThermalService::Dump(int fd, const std::vector<std::u16string>& args) in Dump()