Lines Matching refs:ThermalService
42 sptr<ThermalService> ThermalService::instance_ = nullptr;
43 std::mutex ThermalService::singletonMutex_;
51 auto g_service = ThermalService::GetInstance();
55 std::atomic_bool ThermalService::isBootCompleted_ = false;
56 std::string ThermalService::scene_;
58 bool ThermalService::userAirplaneState_ = false;
59 bool ThermalService::isThermalAirplane_ = false;
61 ThermalService::ThermalService() : SystemAbility(POWER_MANAGER_THERMAL_SERVICE_ID, true) {}
63 ThermalService::~ThermalService() {}
65 sptr<ThermalService> ThermalService::GetInstance()
70 instance_ = new ThermalService();
76 void ThermalService::OnStart()
90 if (!Publish(ThermalService::GetInstance())) {
99 void ThermalService::RegisterBootCompletedCallback()
107 void ThermalService::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId)
119 bool ThermalService::SubscribeCommonEvent()
141 if (!ThermalService::isThermalAirplane_) {
143 ThermalService::userAirplaneState_ = static_cast<bool>(code);
145 ThermalService::userAirplaneState_ ? "open" : "close");
147 ThermalService::isThermalAirplane_ = false;
153 bool ThermalService::Init()
167 bool ThermalService::CreateConfigModule()
212 bool ThermalService::InitConfigFile()
245 bool ThermalService::InitConfigModule()
262 bool ThermalService::InitModules()
294 bool ThermalService::InitThermalObserver()
315 bool ThermalService::InitBaseInfo()
325 bool ThermalService::InitStateMachine()
335 bool ThermalService::InitActionManager()
345 bool ThermalService::InitThermalPolicy()
355 bool ThermalService::InitThermalSubscriber()
367 void ThermalService::OnStop()
394 bool ThermalService::SubscribeThermalTempCallback(
406 bool ThermalService::UnSubscribeThermalTempCallback(const sptr<IThermalTempCallback>& callback)
417 bool ThermalService::GetThermalSrvSensorInfo(const SensorType& type, ThermalSrvSensorInfo& sensorInfo)
427 bool ThermalService::SubscribeThermalLevelCallback(const sptr<IThermalLevelCallback>& callback)
435 bool ThermalService::UnSubscribeThermalLevelCallback(const sptr<IThermalLevelCallback>& callback)
443 bool ThermalService::SubscribeThermalActionCallback(
456 bool ThermalService::UnSubscribeThermalActionCallback(const sptr<IThermalActionCallback>& callback)
468 bool ThermalService::GetThermalLevel(ThermalLevel& level)
475 bool ThermalService::GetThermalInfo()
498 bool ThermalService::SetScene(const std::string& scene)
507 bool ThermalService::UpdateThermalState(const std::string& tag, const std::string& val, bool isImmed)
521 void ThermalService::RegisterHdiStatusListener()
563 void ThermalService::RegisterThermalHdiCallback()
579 void ThermalService::UnRegisterThermalHdiCallback()
593 int32_t ThermalService::HandleThermalCallbackEvent(const HdfThermalCallbackInfo& event)
611 bool ThermalService::HandleTempEmulation(const TypeTempMap& typeTempMap)
621 void ThermalService::RegisterFanHdiCallback()
642 int32_t ThermalService::HandleFanCallbackEvent(const HdfThermalCallbackInfo& event)
655 std::string ThermalService::ShellDump(const std::vector<std::string>& args, uint32_t argc)
669 int32_t ThermalService::Dump(int fd, const std::vector<std::u16string>& args)
686 THERMAL_HILOGE(COMP_SVC, "ThermalService::Dump failed, save to fd failed.");
694 void ThermalService::EnableMock(const std::string& actionName, void* mockObject)
700 void ThermalService::DestroyInstance()