Lines Matching defs:callback
395 const std::vector<std::string>& typeList, const sptr<IThermalTempCallback>& callback)
402 observer_->SubscribeThermalTempCallback(typeList, callback);
406 bool ThermalService::UnSubscribeThermalTempCallback(const sptr<IThermalTempCallback>& callback)
413 observer_->UnSubscribeThermalTempCallback(callback);
427 bool ThermalService::SubscribeThermalLevelCallback(const sptr<IThermalLevelCallback>& callback)
431 actionMgr_->SubscribeThermalLevelCallback(callback);
435 bool ThermalService::UnSubscribeThermalLevelCallback(const sptr<IThermalLevelCallback>& callback)
439 actionMgr_->UnSubscribeThermalLevelCallback(callback);
444 const std::vector<std::string>& actionList, const std::string& desc, const sptr<IThermalActionCallback>& callback)
452 observer_->SubscribeThermalActionCallback(actionList, desc, callback);
456 bool ThermalService::UnSubscribeThermalActionCallback(const sptr<IThermalActionCallback>& callback)
464 observer_->UnSubscribeThermalActionCallback(callback);
565 THERMAL_HILOGD(COMP_SVC, "register thermal hdi callback");
571 sptr<IThermalCallback> callback = new ThermalCallback();
575 int32_t ret = thermalInterface_->Register(callback);
576 THERMAL_HILOGI(COMP_SVC, "register thermal hdi callback end, ret: %{public}d", ret);
590 THERMAL_HILOGI(COMP_SVC, "unregister thermal hdi callback end, ret: %{public}d", ret);
632 sptr<IFanCallback> callback = new FanCallback();
636 int32_t ret = thermalInterface_->RegisterFanCallback(callback);
637 THERMAL_HILOGI(COMP_SVC, "register fan hdi callback end, ret: %{public}d", ret);