Searched refs:CreateObserver (Results 1 – 5 of 5) sorted by relevance
38 sptr<SettingObserver> CreateObserver(const std::string& key, SettingObserver::UpdateFunc& func);
53 auto observer = provider.CreateObserver(SETTING_DISPLAY_OFF_TIME_KEY, func); in RegisterSettingDisplayOffTimeObserver()
113 sptr<SettingObserver> SettingProvider::CreateObserver(const std::string& key, SettingObserver::Upda… in CreateObserver() function in OHOS::PowerMgr::SettingProvider
359 g_brightnessObserver = provider.CreateObserver(SETTING_BRIGHTNESS_KEY, updateFunc); in RegisterSettingBrightnessObserver()
136 …g_autoBrightnessObserver = provider.CreateObserver(SETTING_AUTO_ADJUST_BRIGHTNESS_KEY, updateFunc); in RegisterSettingAutoBrightnessObserver()