Home
last modified time | relevance | path

Searched refs:activeUserId (Results 1 – 6 of 6) sorted by relevance

/base/notification/distributed_notification_service/services/ans/test/unittest/notification_dialog_test/
Dnotification_dialog_test.cpp50 int32_t activeUserId = 100; variable
51 EXPECT_EQ(result, activeUserId);
64 int32_t activeUserId = -4; variable
65 EXPECT_EQ(result, activeUserId);
83 int32_t activeUserId = -4; variable
84 EXPECT_EQ(result, activeUserId);
107 int32_t activeUserId = -4; variable
108 EXPECT_EQ(result, activeUserId);
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_dialog.cpp29 std::vector<int32_t> activeUserId; in GetActiveUserId() local
30 auto errCode = AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeUserId); in GetActiveUserId()
36 if (activeUserId.empty()) { in GetActiveUserId()
41 return activeUserId.front(); in GetActiveUserId()
Dnotification_preferences_database.cpp1033 std::vector<int> activeUserId; in ParseDoNotDisturbType() local
1034 OHOS::AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeUserId); in ParseDoNotDisturbType()
1036 for (auto iter : activeUserId) { in ParseDoNotDisturbType()
1043 std::vector<int> activeUserId; in ParseDoNotDisturbBeginDate() local
1044 OHOS::AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeUserId); in ParseDoNotDisturbBeginDate()
1046 for (auto iter : activeUserId) { in ParseDoNotDisturbBeginDate()
1053 std::vector<int> activeUserId; in ParseDoNotDisturbEndDate() local
1054 OHOS::AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeUserId); in ParseDoNotDisturbEndDate()
1056 for (auto iter : activeUserId) { in ParseDoNotDisturbEndDate()
1063 std::vector<int> activeUserId; in ParseEnableAllNotification() local
[all …]
Dadvanced_notification_service.cpp396 int32_t activeUserId = -1; in GenerateValidBundleOption() local
397 if (!GetActiveUserId(activeUserId)) { in GenerateValidBundleOption()
401 …nt32_t uid = bundleManager->GetDefaultUidByBundleName(bundleOption->GetBundleName(), activeUserId); in GenerateValidBundleOption()
1147 int32_t activeUserId = SUBSCRIBE_USER_INIT; in DeleteAll() local
1148 (void)GetActiveUserId(activeUserId); in DeleteAll()
1159 result = RemoveFromNotificationListForDeleteAll(key, activeUserId, notification); in DeleteAll()
1164 if (notification->GetUserId() == activeUserId) { in DeleteAll()
2067 int32_t activeUserId = -1; in SetAgentNotification() local
2068 if (!GetActiveUserId(activeUserId)) { in SetAgentNotification()
2074 notificationRequest->SetOwnerUserId(activeUserId); in SetAgentNotification()
[all …]
Dreminder_data_manager.cpp1067 std::vector<int32_t> activeUserId; in InitUserId() local
1068 AccountSA::OsAccountManager::QueryActiveOsAccountIds(activeUserId); in InitUserId()
1069 if (activeUserId.size() > 0) { in InitUserId()
1070 currentUserId_ = activeUserId[0]; in InitUserId()
/base/useriam/user_auth_framework/services/ipc/src/
Duser_idm_service.cpp467 std::optional<int32_t> activeUserId; in Dump() local
468 if (IpcCommon::GetActiveUserId(activeUserId) != SUCCESS) { in Dump()
473 dprintf(fd, "Active user is %d\n", activeUserId.value()); in Dump()
474 auto userInfo = UserIdmDatabase::Instance().GetSecUserInfo(activeUserId.value()); in Dump()