Home
last modified time | relevance | path

Searched refs:GetNotificationsEnabled (Results 1 - 4 of 4) sorted by relevance

/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_preferences_test.cpp848 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationsEnabled(100, enable), (int)ERR_OK); in HWTEST_F()
861 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationsEnabled(100, enable), (int)ERR_OK); in HWTEST_F()
866 (int)NotificationPreferences::GetInstance()->GetNotificationsEnabled(101, enable), (int)ERR_ANS_INVALID_PARAM); in HWTEST_F()
878 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationsEnabled(TEST_SUBSCRIBE_USER_INIT, enable), in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences.h222 ErrCode GetNotificationsEnabled(const int32_t &userId, bool &enabled);
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_publish_service.cpp1023 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotify()
1133 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotifySelf()
1162 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotifyForBundle()
1213 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsSpecialBundleAllowedNotify()
2082 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsSpecialUserAllowedNotify()
H A Dnotification_preferences.cpp428 ErrCode NotificationPreferences::GetNotificationsEnabled(const int32_t &userId, bool &enabled) in GetNotificationsEnabled() function in OHOS::Notification::NotificationPreferences

Completed in 10 milliseconds