Home
last modified time | relevance | path

Searched refs:OsAccountManagerHelper (Results 1 – 25 of 25) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dos_account_manager_helper_test.cpp42 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 Dos_account_manager_helper.cpp28 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 Dnotification_preferences_database.cpp273 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 Dadvanced_notification_utils.cpp142 … 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 Dadvanced_datashare_helper_ext.cpp94 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in GetUnifiedGroupEnableUri()
H A Dnotification_subscriber_manager.cpp97 ErrCode ret = OsAccountManagerHelper::GetInstance().GetCurrentCallingUserId(userId); in AddSubscriber()
633OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(callbackData->GetUid(), userId); in NotifyBadgeEnabledChangedInner()
651OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(callbackData->GetUid(), userId); in NotifyEnabledNotificationChangedInner()
668OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(badgeData->GetUid(), userId); in SetBadgeNumber()
H A Dnotification_dialog.cpp35 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in GetUidByBundleName()
H A Dadvanced_notification_inline.cpp56 …if (userId != SUBSCRIBE_USER_INIT && !OsAccountManagerHelper::GetInstance().CheckUserExists(userId… in CheckUserIdParams()
H A Dnotification_rdb_data_mgr.cpp586 if (!OsAccountManagerHelper::IsSystemAccount(userId)) { in GetUserTableName()
620 if (OsAccountManagerHelper::IsSystemAccount(userId)) { in GenerateOperatedTables()
H A Dadvanced_notification_publish_service.cpp692 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 Dadvanced_notification_live_view_service.cpp301 OsAccountManagerHelper::GetInstance().GetCurrentCallingUserId(userId); in GetNotificationRequestFromDb()
334 ret = OsAccountManagerHelper::GetInstance().GetAllActiveOsAccount(userIds); in GetBatchNotificationRequestsFromDb()
H A Dreminder_data_manager.cpp832OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleOption->GetUid(), userId); in UpdateAndSaveReminderLocked()
864OsAccountManagerHelper::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 Dadvanced_notification_service.cpp148 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in PrepareNotificationRequest()
186 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in PrepareNotificationRequest()
229 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uid, userId); in PrepareNotificationRequest()
237OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(request->GetOwnerUid(), ownerUser… in PrepareNotificationRequest()
H A Dnotification_preferences.cpp1149 OsAccountManagerHelper::GetInstance().GetCurrentCallingUserId(userId); in GetBundleSoundPermission()
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/
H A Dos_account_manager_helper.h25 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 Dos_account_manager_helper.h26 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 Dos_account_manager_helper.cpp33 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 Dbundle_manager_helper.cpp83 …if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds)… in QueryExtensionInfos()
228 …if (DelayedSingleton<OsAccountManagerHelper>::GetInstance()->QueryActiveOsAccountIds(osAccountIds)… in GetApplicationInfos()
H A Dstatic_subscriber_manager.cpp342 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 Dinner_common_event_manager.cpp519 … 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 Dcommon_event_manager_service.cpp584 && !OsAccountManagerHelper::GetInstance()->CheckUserExists(userId)) { in CheckUserIdParams()
/ohos5.0/base/notification/common_event_service/services/test/unittest/static_subscriber_manager_unit_test/
H A Dmock_os_account_manager_helper.cpp69 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 Dmock_os_account_manager_helper.cpp20 ErrCode OsAccountManagerHelper::QueryActiveOsAccountIds(std::vector<int32_t>& ids) in QueryActiveOsAccountIds()
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/clone/
H A Dnotification_clone_util.cpp29 OsAccountManagerHelper::GetInstance().GetCurrentActiveUserId(userId); in GetActiveUserId()
H A Dnotification_clone_bundle_service.cpp127 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(uid, userId); in HandleBundleEvent()