/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_test.cpp | 176 ASSERT_EQ((int)NotificationPreferences::GetInstance()->RemoveNotificationSlot( 188 ASSERT_EQ((int)NotificationPreferences::GetInstance()->RemoveNotificationSlot( 202 ASSERT_EQ((int)NotificationPreferences::GetInstance()->RemoveNotificationSlot( 216 ASSERT_EQ((int)NotificationPreferences::GetInstance()->RemoveNotificationSlot( 229 ASSERT_EQ((int)NotificationPreferences::GetInstance()->RemoveNotificationSlot( 379 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationSlot( 393 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationSlot( 408 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationSlot( 423 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationSlot( 437 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetNotificationSlot( [all …]
|
H A D | permission_filter_test.cpp | 39 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp() 44 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in TearDown() 62 NotificationPreferences::GetInstance()->AddNotificationSlots( 88 NotificationPreferences::GetInstance()->AddNotificationSlots( 90 NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(
|
H A D | advanced_notification_utils_test.cpp | 77 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp() 393 NotificationPreferences::GetInstance()->GetNotificationsEnabledForBundle(bundle, enable); 409 NotificationPreferences::GetInstance()->SetHasPoppedDialog(bundle, true);
|
H A D | advanced_notification_slot_service_test.cpp | 68 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp() 504 NotificationPreferences::GetInstance()->AddNotificationSlots(bundle, slots);
|
H A D | advanced_notification_publish_service_test.cpp | 71 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp() 464 NotificationPreferences::GetInstance()->SetHasPoppedDialog(bundle, true); 469 NotificationPreferences::GetInstance()->SetHasPoppedDialog(bundle, false);
|
H A D | advanced_notification_live_view_service_test.cpp | 83 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp()
|
H A D | advanced_notification_service_test.cpp | 93 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_preferences.cpp | 39 std::mutex NotificationPreferences::instanceMutex_; 40 std::shared_ptr<NotificationPreferences> NotificationPreferences::instance_; 42 NotificationPreferences::NotificationPreferences() in NotificationPreferences() function in OHOS::Notification::NotificationPreferences 53 std::shared_ptr<NotificationPreferences> NotificationPreferences::GetInstance() in GetInstance() 65 ErrCode NotificationPreferences::AddNotificationSlots( in AddNotificationSlots() 381 ErrCode NotificationPreferences::SetImportance( in SetImportance() 396 ErrCode NotificationPreferences::GetTotalBadgeNums( in GetTotalBadgeNums() 1175 int32_t NotificationPreferences::SetKvToDb( in SetKvToDb() 1184 int32_t NotificationPreferences::SetByteToDb( in SetByteToDb() 1193 int32_t NotificationPreferences::GetKvFromDb( in GetKvFromDb() [all …]
|
H A D | advanced_notification_slot_service.cpp | 83 result =NotificationPreferences::GetInstance()->GetNotificationSlot(bundleOption, in AddSlots() 119 … result = NotificationPreferences::GetInstance()->GetNotificationAllSlots(bundleOption, slots); in GetSlots() 157 result = NotificationPreferences::GetInstance()->GetNotificationAllSlots(bundle, slots); in GetSlotsByBundle() 197 … result = NotificationPreferences::GetInstance()->GetNotificationSlot(bundle, slotType, slot); in GetSlotByBundle() 234 result = NotificationPreferences::GetInstance()->UpdateNotificationSlots(bundle, slots); in UpdateSlots() 269 if (NotificationPreferences::GetInstance()->GetNotificationSlot( in RemoveAllSlots() 274 result = NotificationPreferences::GetInstance()->RemoveNotificationAllSlots(bundleOption); in RemoveAllSlots() 331 result = NotificationPreferences::GetInstance()->AddNotificationSlots(bundleOption, slots); in AddSlotByType() 509 ErrCode ret = NotificationPreferences::GetInstance()->GetNotificationAllSlots(bundle, slots); in UpdateSlotReminderModeBySlotFlags() 532 ret = NotificationPreferences::GetInstance()->UpdateNotificationSlots(bundle, slots); in UpdateSlotReminderModeBySlotFlags() [all …]
|
H A D | advanced_notification_utils.cpp | 538 NotificationPreferences::GetInstance()->RemoveAnsBundleDbInfo(bundleOption); in OnBundleRemoved() 542 NotificationPreferences::GetInstance()->RemoveEnabledDbByBundle(bundleOption); in OnBundleRemoved() 590 errCode = NotificationPreferences::GetInstance()->SetShowBadge(bundleOption, true); in OnBundleDataAdd() 617 auto errCode = NotificationPreferences::GetInstance()->GetNotificationsEnabledForBundle( in OnBundleDataUpdate() 1316 NotificationPreferences::GetInstance()->RemoveSettings(userId); in OnResourceRemove() 1837 if (!NotificationPreferences::GetInstance()->IsNotificationSlotFlagsExists(bundleOption) && in SetSlotFlagsTrustlistsAsBundle() 1876 saveRef = NotificationPreferences::GetInstance()->SetShowBadge(bundleOption, true); in InitNotificationEnableList() 2002 NotificationPreferences::GetInstance()->GetBatchKvsFromDb( in ResetDistributedEnabled() 2005 NotificationPreferences::GetInstance()->SetKvToDb( in ResetDistributedEnabled() 2035 NotificationPreferences::GetInstance()->DeleteBatchKvFromDb(delKeys, FIRST_USERID); in ResetDistributedEnabled() [all …]
|
H A D | advanced_notification_live_view_service.cpp | 277 auto result = NotificationPreferences::GetInstance()->SetKvToDb( in SetNotificationRequestToDb() 302 int32_t result = NotificationPreferences::GetInstance()->GetKvFromDb(key, value, userId); in GetNotificationRequestFromDb() 345 …NotificationPreferences::GetInstance()->GetBatchKvsFromDb(REQUEST_STORAGE_KEY_PREFIX, dbRecords, u… in GetBatchNotificationRequestsFromDb() 347 NotificationPreferences::GetInstance()->GetBatchKvsFromDb( in GetBatchNotificationRequestsFromDb() 394 auto result = NotificationPreferences::GetInstance()->DeleteKvFromDb(secureKey, userId); in DoubleDeleteNotificationFromDb() 405 auto result = NotificationPreferences::GetInstance()->DeleteKvFromDb(key, userId); in DeleteNotificationRequestFromDb() 412 result = NotificationPreferences::GetInstance()->DeleteKvFromDb(lockScreenPictureKey, userId); in DeleteNotificationRequestFromDb() 428 …if (NotificationPreferences::GetInstance()->GetNotificationSlot(bundleOption, slotType, slot) != E… in IsAllowedRemoveSlot() 481 …auto res = NotificationPreferences::GetInstance()->SetByteToDb(key, pixelsVec, request->GetReceive… in SetLockScreenPictureToDb() 494 …uint32_t res = NotificationPreferences::GetInstance()->GetByteFromDb(key, pixelsVec, request->GetR… in GetLockScreenPictureFromDb()
|
H A D | permission_filter.cpp | 38 …NotificationPreferences::GetInstance()->GetNotificationsEnabledForBundle(record->bundleOption, ena… in OnPublish() 50 …result = NotificationPreferences::GetInstance()->GetNotificationSlot(record->bundleOption, slotTyp… in OnPublish()
|
H A D | advanced_notification_publish_service.cpp | 85 …result = NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundle, enabled); in SetDefaultNotificationEnabled() 533 result = NotificationPreferences::GetInstance()->SetTotalBadgeNums(bundleOption, num); in SetNotificationBadgeNum() 777 result = NotificationPreferences::GetInstance()->SetShowBadge(bundle, enabled); in SetShowBadgeEnabledForBundle() 831 result = NotificationPreferences::GetInstance()->IsShowBadge(bundle, enabled); in GetShowBadgeEnabledForBundle() 857 result = NotificationPreferences::GetInstance()->IsShowBadge(bundleOption, enabled); in GetShowBadgeEnabled() 1076 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotify() 1202 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotifySelf() 1232 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotifyForBundle() 2231 NotificationPreferences::GetInstance()->RemoveNotificationSlot(bundle, slotType); in SetEnabledForBundleSlot() 2250 result = NotificationPreferences::GetInstance()->AddNotificationSlots(bundle, slots); in SetEnabledForBundleSlot() [all …]
|
H A D | notification_extension_wrapper.cpp | 73 …std::string ctrlConfig = NotificationPreferences::GetInstance()->GetAdditionalConfig("NOTIFICATION… in InitExtentionWrapper() 78 …std::string aggregateConfig = NotificationPreferences::GetInstance()->GetAdditionalConfig("AGGREGA… in InitExtentionWrapper()
|
H A D | reminder_swing_decision_center.cpp | 152 …if (ERR_OK != NotificationPreferences::GetInstance()->IsSmartReminderEnabled(enableSwingDeviceType… in SwingExecuteDecision()
|
H A D | system_event_observer.cpp | 118 NotificationPreferences::GetInstance()->InitSettingFromDisturbDB(userId); in OnReceiveEvent()
|
H A D | advanced_notification_service.cpp | 176 … if (!sourceBundleName.empty() && NotificationPreferences::GetInstance()->IsAgentRelationship( in PrepareNotificationRequest() 443 …NotificationPreferences::GetInstance()->IsAgentRelationship(GetClientBundleName(), sourceBundleNam… in PrepareNotificationInfo() 779 …if (NotificationPreferences::GetInstance()->GetDoNotDisturbProfile(atoi(profileId.c_str()), userId… in CheckDoNotDisturbProfile() 845 …result = NotificationPreferences::GetInstance()->AddNotificationSlots(record->bundleOption, slots); in UpdateSlotAuthInfo() 1145 … result = NotificationPreferences::GetInstance()->GetImportance(bundleOption, importance); in GetBundleImportance() 1791 … result = NotificationPreferences::GetInstance()->GetHasPoppedDialog(bundleOption, hasPopped); in GetHasPoppedDialog() 2174 NotificationPreferences::GetInstance()->GetBundleSoundPermission( in CheckSoundPermission()
|
H A D | notification_dialog_manager.cpp | 224 …ErrCode result = NotificationPreferences::GetInstance()->SetHasPoppedDialog(bundleOption, hasPoppe… in SetHasPoppedDialog()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_preferences.h | 30 class NotificationPreferences final { 32 NotificationPreferences(); 33 ~NotificationPreferences() = default; 37 static std::shared_ptr<NotificationPreferences> GetInstance(); 413 static std::shared_ptr<NotificationPreferences> instance_;
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/clone/ |
H A D | notification_clone_bundle_service.cpp | 51 NotificationPreferences::GetInstance()->GetAllCLoneBundlesInfo(userId, cloneBundles); in OnBackup() 98 NotificationPreferences::GetInstance()->UpdateCloneBundleInfo(userId, *bundle); in OnRestore() 132 NotificationPreferences::GetInstance()->UpdateCloneBundleInfo(userId, *bundle); in HandleBundleEvent()
|
H A D | notification_clone_disturb_service.cpp | 48 NotificationPreferences::GetInstance()->GetDoNotDisturbProfileListByUserId(userId, profiles); in OnBackup() 98 NotificationPreferences::GetInstance()->UpdateDoNotDisturbProfiles(userId, in OnRestore() 188 NotificationPreferences::GetInstance()->UpdateDoNotDisturbProfiles(userId, in HandlerBundleEvent()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
H A D | mock_notification_preferences.cpp | 31 ErrCode NotificationPreferences::GetNotificationSlot(const sptr<NotificationBundleOption> &bundleOp… in GetNotificationSlot()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/notification_smart_reminder/ |
H A D | smart_reminder_center.cpp | 301 …if (NotificationPreferences::GetInstance()->IsSmartReminderEnabled(deviceType, isEnable) != ERR_OK… in IsNeedSynergy() 307 if (NotificationPreferences::GetInstance()->IsDistributedEnabledByBundle( in IsNeedSynergy()
|
/ohos5.0/base/notification/distributed_notification_service/services/test/moduletest/ |
H A D | ans_module_test.cpp | 104 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUpTestCase() 111 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in TearDownTestCase() 120 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp() 125 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in TearDown()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 94 NotificationPreferences::GetInstance()->ClearNotificationInRestoreFactorySettings(); in SetUp()
|