Searched refs:provider (Results 1 – 3 of 3) sorted by relevance
31 SettingProvider& provider = SettingProvider::GetInstance(POWER_MANAGER_SERVICE_ID); in GetSettingDisplayOffTime() local33 ErrCode ret = provider.GetLongValue(SETTING_DISPLAY_OFF_TIME_KEY, value); in GetSettingDisplayOffTime()42 SettingProvider& provider = SettingProvider::GetInstance(POWER_MANAGER_SERVICE_ID); in SetSettingDisplayOffTime() local43 ErrCode ret = provider.PutLongValue(SETTING_DISPLAY_OFF_TIME_KEY, time); in SetSettingDisplayOffTime()52 SettingProvider& provider = SettingProvider::GetInstance(POWER_MANAGER_SERVICE_ID); in RegisterSettingDisplayOffTimeObserver() local53 auto observer = provider.CreateObserver(SETTING_DISPLAY_OFF_TIME_KEY, func); in RegisterSettingDisplayOffTimeObserver()54 ErrCode ret = provider.RegisterObserver(observer); in RegisterSettingDisplayOffTimeObserver()67 SettingProvider& provider = SettingProvider::GetInstance(POWER_MANAGER_SERVICE_ID); in UnregisterSettingDisplayOffTimeObserver() local68 provider.UnregisterObserver(observer); in UnregisterSettingDisplayOffTimeObserver()78 SettingProvider& provider = SettingProvider::GetInstance(POWER_MANAGER_SERVICE_ID); in SetSettingAutoAdjustBrightness() local[all …]
37 SettingProvider& provider = SettingProvider::GetInstance(DISPLAY_MANAGER_SERVICE_ID); in RegisterSettingBrightnessObserver() local38 brightnessObserver_ = provider.CreateObserver(SETTING_BRIGHTNESS_KEY, func); in RegisterSettingBrightnessObserver()39 ErrCode ret = provider.RegisterObserver(brightnessObserver_); in RegisterSettingBrightnessObserver()52 SettingProvider& provider = SettingProvider::GetInstance(DISPLAY_MANAGER_SERVICE_ID); in UnregisterSettingBrightnessObserver() local53 ErrCode ret = provider.UnregisterObserver(brightnessObserver_); in UnregisterSettingBrightnessObserver()70 SettingProvider& provider = SettingProvider::GetInstance(DISPLAY_MANAGER_SERVICE_ID); in SetSettingBrightness() local71 auto ret = provider.PutIntValue(SETTING_BRIGHTNESS_KEY, static_cast<int32_t>(value)); in SetSettingBrightness()81 SettingProvider& provider = SettingProvider::GetInstance(DISPLAY_MANAGER_SERVICE_ID); in GetSettingBrightness() local83 ErrCode ret = provider.GetIntValue(key, value); in GetSettingBrightness()98 SettingProvider& provider = SettingProvider::GetInstance(DISPLAY_MANAGER_SERVICE_ID); in RegisterSettingAutoBrightnessObserver() local[all …]
81 … number, callback: AsyncCallback\<string>): void; | Obtains the service provider name \(SPN\) of t…