/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | os_account_manager_helper_test.cpp | 42 ASSERT_EQ(ERR_OK, OsAccountManagerHelper::GetInstance().GetCurrentCallingUserId(userId)); 54 … ASSERT_EQ(ERR_OK, OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uid, userId)); 65 ASSERT_EQ(ERR_OK, OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId)); 76 ASSERT_EQ(true, OsAccountManagerHelper::GetInstance().CheckUserExists(userId)); 87 ASSERT_EQ(false, OsAccountManagerHelper::GetInstance().CheckUserExists(userId)); 98 ASSERT_EQ(true, OsAccountManagerHelper::IsSystemAccount(userId)); 109 ASSERT_EQ(false, OsAccountManagerHelper::IsSystemAccount(userId)); 120 ASSERT_EQ(false, OsAccountManagerHelper::IsSystemAccount(userId)); 131 ASSERT_EQ(true, OsAccountManagerHelper::IsSystemAccount(userId));
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/ |
H A D | os_account_manager_helper.cpp | 28 ErrCode OsAccountManagerHelper::GetOsAccountLocalIdFromUid(const int32_t uid, int32_t &userId) in GetOsAccountLocalIdFromUid() 42 ErrCode OsAccountManagerHelper::GetCurrentCallingUserId(int32_t &userId) in GetCurrentCallingUserId() 58 ErrCode OsAccountManagerHelper::GetCurrentActiveUserId(int32_t &id) in GetCurrentActiveUserId() 70 ErrCode OsAccountManagerHelper::GetAllOsAccount(std::vector<int32_t> &userIds) in GetAllOsAccount() 87 ErrCode OsAccountManagerHelper::GetAllActiveOsAccount(std::vector<int32_t> &userIds) in GetAllActiveOsAccount() 99 bool OsAccountManagerHelper::CheckUserExists(const int32_t &userId) in CheckUserExists() 114 OsAccountManagerHelper &OsAccountManagerHelper::GetInstance() in GetInstance() 116 return DelayedRefSingleton<OsAccountManagerHelper>::GetInstance(); in GetInstance() 119 bool OsAccountManagerHelper::IsSystemAccount(int32_t userId) in IsSystemAccount()
|
H A D | notification_preferences_database.cpp | 273 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in PutSlotsToDisturbeDB() 606 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in CheckBundle() 672 OsAccountManagerHelper::GetInstance().GetAllActiveOsAccount(activeUserId); in ParseFromDisturbeDB() 746 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in RemoveBundleFromDisturbeDB() 778 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in RemoveSlotFromDisturbeDB() 821 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in GetAllNotificationEnabledBundles() 837 result = OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(currentUserId); in HandleDataBaseMap() 882 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in RemoveAllSlotsFromDisturbeDB() 942 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in PutBundlePropertyToDisturbeDB() 1681 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uid, userId); in RemoveAnsBundleDbInfo() [all …]
|
H A D | advanced_notification_utils.cpp | 142 … if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(activeUserId) != ERR_OK) { in GenerateValidBundleOption() 327 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(activeUserId) != ERR_OK) { in SetAgentNotification() 777 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in SetDoNotDisturbDate() 799 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in GetDoNotDisturbDate() 822 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in AddDoNotDisturbProfiles() 851 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in RemoveDoNotDisturbProfiles() 875 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in GetDoNotDisturbProfile() 911 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(activeUserId) != ERR_OK) { in OnDistributedPublish() 992 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(activeUserId) != ERR_OK) { in OnDistributedUpdate() 1912 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(activeUserId) != ERR_OK) { in CheckBundleOptionValid() [all …]
|
H A D | advanced_datashare_helper_ext.cpp | 94 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in GetUnifiedGroupEnableUri()
|
H A D | notification_subscriber_manager.cpp | 97 ErrCode ret = OsAccountManagerHelper::GetInstance().GetCurrentCallingUserId(userId); in AddSubscriber() 633 … OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(callbackData->GetUid(), userId); in NotifyBadgeEnabledChangedInner() 651 … OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(callbackData->GetUid(), userId); in NotifyEnabledNotificationChangedInner() 668 … OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(badgeData->GetUid(), userId); in SetBadgeNumber()
|
H A D | notification_dialog.cpp | 35 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in GetUidByBundleName()
|
H A D | advanced_notification_inline.cpp | 56 …if (userId != SUBSCRIBE_USER_INIT && !OsAccountManagerHelper::GetInstance().CheckUserExists(userId… in CheckUserIdParams()
|
H A D | notification_rdb_data_mgr.cpp | 586 if (!OsAccountManagerHelper::IsSystemAccount(userId)) { in GetUserTableName() 620 if (OsAccountManagerHelper::IsSystemAccount(userId)) { in GenerateOperatedTables()
|
H A D | advanced_notification_publish_service.cpp | 692 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(activeUserId) != ERR_OK) { in DeleteAll() 957 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in SetNotificationsEnabledForAllBundles() 1064 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in IsAllowedNotify() 1195 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in IsAllowedNotifySelf() 1225 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in IsAllowedNotifyForBundle() 1278 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in IsSpecialBundleAllowedNotify() 1858 if (OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId) != ERR_OK) { in IsNeedSilentInDoNotDisturbMode()
|
H A D | advanced_notification_live_view_service.cpp | 301 OsAccountManagerHelper::GetInstance().GetCurrentCallingUserId(userId); in GetNotificationRequestFromDb() 334 ret = OsAccountManagerHelper::GetInstance().GetAllActiveOsAccount(userIds); in GetBatchNotificationRequestsFromDb()
|
H A D | reminder_data_manager.cpp | 832 … OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleOption->GetUid(), userId); in UpdateAndSaveReminderLocked() 864 … OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleOption->GetUid(), userId); in ShouldAlert() 1460 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(currentUserId_); in InitUserId() 1540 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uidSrc, userIdSrc); in IsBelongToSameApp() 1542 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uidTar, userIdTar); in IsBelongToSameApp()
|
H A D | advanced_notification_service.cpp | 148 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in PrepareNotificationRequest() 186 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in PrepareNotificationRequest() 229 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uid, userId); in PrepareNotificationRequest() 237 …OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(request->GetOwnerUid(), ownerUser… in PrepareNotificationRequest()
|
H A D | notification_preferences.cpp | 1149 OsAccountManagerHelper::GetInstance().GetCurrentCallingUserId(userId); in GetBundleSoundPermission()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/ |
H A D | os_account_manager_helper.h | 25 class OsAccountManagerHelper : public DelayedSingleton<OsAccountManagerHelper> { 28 OsAccountManagerHelper() = default; 29 ~OsAccountManagerHelper() = default; 34 static OsAccountManagerHelper &GetInstance();
|
/ohos5.0/base/notification/common_event_service/services/include/ |
H A D | os_account_manager_helper.h | 26 class OsAccountManagerHelper : public DelayedSingleton<OsAccountManagerHelper> { 28 OsAccountManagerHelper() {} in OsAccountManagerHelper() function 29 virtual ~OsAccountManagerHelper() {} in ~OsAccountManagerHelper()
|
/ohos5.0/base/notification/common_event_service/services/src/ |
H A D | os_account_manager_helper.cpp | 33 ErrCode OsAccountManagerHelper::QueryActiveOsAccountIds(std::vector<int32_t>& ids) in QueryActiveOsAccountIds() 43 ErrCode OsAccountManagerHelper::GetOsAccountLocalIdFromUid(const int32_t uid, int32_t &id) in GetOsAccountLocalIdFromUid() 53 bool OsAccountManagerHelper::CheckUserExists(const int32_t &userId) in CheckUserExists() 63 bool OsAccountManagerHelper::IsSystemAccount(int32_t userId) in IsSystemAccount()
|
H A D | bundle_manager_helper.cpp | 83 …if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds)… in QueryExtensionInfos() 228 …if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds)… in GetApplicationInfos()
|
H A D | static_subscriber_manager.cpp | 342 if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->GetOsAccountLocalIdFromUid( in AddSubscriber() 439 …if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->GetOsAccountLocalIdFromUid(uid, userI… in UpdateSubscriber() 444 …if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds)… in UpdateSubscriber()
|
H A D | inner_common_event_manager.cpp | 519 … DelayedSingleton<OsAccountManagerHelper>::GetInstance()->GetOsAccountLocalIdFromUid(uid, userId); in SetSystemUserId() 524 … DelayedSingleton<OsAccountManagerHelper>::GetInstance()->GetOsAccountLocalIdFromUid(uid, userId); in SetSystemUserId() 557 … DelayedSingleton<OsAccountManagerHelper>::GetInstance()->GetOsAccountLocalIdFromUid(uid, userId); in CheckUserId()
|
H A D | common_event_manager_service.cpp | 584 && !OsAccountManagerHelper::GetInstance()->CheckUserExists(userId)) { in CheckUserIdParams()
|
/ohos5.0/base/notification/common_event_service/services/test/unittest/static_subscriber_manager_unit_test/ |
H A D | mock_os_account_manager_helper.cpp | 69 ErrCode OsAccountManagerHelper::QueryActiveOsAccountIds(std::vector<int32_t>& ids) in QueryActiveOsAccountIds() 75 ErrCode OsAccountManagerHelper::GetOsAccountLocalIdFromUid(const int32_t uid, int32_t &id) in GetOsAccountLocalIdFromUid()
|
/ohos5.0/base/notification/common_event_service/services/test/unittest/mock/ |
H A D | mock_os_account_manager_helper.cpp | 20 ErrCode OsAccountManagerHelper::QueryActiveOsAccountIds(std::vector<int32_t>& ids) in QueryActiveOsAccountIds()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/clone/ |
H A D | notification_clone_util.cpp | 29 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in GetActiveUserId()
|
H A D | notification_clone_bundle_service.cpp | 127 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uid, userId); in HandleBundleEvent()
|