Lines Matching defs:preferencesUtil
114 auto preferencesUtil = DelayedSingleton<PreferencesUtil>::GetInstance();
115 if (preferencesUtil == nullptr) {
116 SCLOCK_HILOGE("preferencesUtil is nullptr!");
119 if (preferencesUtil->ObtainBool(std::to_string(id), false)) {
122 preferencesUtil->SaveBool(std::to_string(id), false);
123 preferencesUtil->Refresh();
220 auto preferencesUtil = DelayedSingleton<PreferencesUtil>::GetInstance();
221 if (preferencesUtil == nullptr) {
222 SCLOCK_HILOGE("preferencesUtil is nullptr!");
225 if (preferencesUtil->ObtainBool(std::to_string(userId), false)) {
228 preferencesUtil->SaveBool(std::to_string(userId), false);
229 preferencesUtil->Refresh();
524 auto preferencesUtil = DelayedSingleton<PreferencesUtil>::GetInstance();
525 if (preferencesUtil == nullptr) {
526 SCLOCK_HILOGE("preferencesUtil is nullptr!");
533 isDisabled = preferencesUtil->ObtainBool(std::to_string(userId), false);
553 auto preferencesUtil = DelayedSingleton<PreferencesUtil>::GetInstance();
554 if (preferencesUtil == nullptr) {
555 SCLOCK_HILOGE("preferencesUtil is nullptr!");
558 preferencesUtil->SaveBool(std::to_string(userId), disable);
559 preferencesUtil->Refresh();