Searched refs:GetNotificationsEnabled (Results 1 - 4 of 4) sorted by relevance
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_test.cpp | 848 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 D | notification_preferences.h | 222 ErrCode GetNotificationsEnabled(const int32_t &userId, bool &enabled);
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_publish_service.cpp | 1023 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 D | notification_preferences.cpp | 428 ErrCode NotificationPreferences::GetNotificationsEnabled(const int32_t &userId, bool &enabled) in GetNotificationsEnabled() function in OHOS::Notification::NotificationPreferences
|
Completed in 9 milliseconds