Home
last modified time | relevance | path

Searched refs:accountIds (Results 1 - 17 of 17) sorted by relevance

/foundation/bundlemanager/app_domain_verify/test/unittest/mock/src/
H A Dmock_os_account_manager.cpp24 ErrCode OsAccountManager::QueryActiveOsAccountIds(std::vector<int32_t>& accountIds) in QueryActiveOsAccountIds() argument
27 accountIds = g_accountIds; in QueryActiveOsAccountIds()
29 accountIds.push_back(accountId); in QueryActiveOsAccountIds()
/foundation/ability/ability_runtime/interfaces/inner_api/deps_wrapper/src/
H A Dos_account_manager_wrapper.cpp110 std::vector<int32_t> accountIds; in GetCurrentActiveAccountId() local
117 ErrCode ret = instance->QueryActiveOsAccountIds(accountIds); in GetCurrentActiveAccountId()
123 if (accountIds.empty()) { in GetCurrentActiveAccountId()
128 return accountIds[0]; in GetCurrentActiveAccountId()
/foundation/barrierfree/accessibility/services/test/mock/
H A Dmock_os_account_manager.cpp24 ErrCode OsAccountManager::QueryActiveOsAccountIds(std::vector<int32_t>& accountIds) in QueryActiveOsAccountIds() argument
26 accountIds.push_back(accountId); in QueryActiveOsAccountIds()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_datashare_utils.cpp150 std::vector<int> accountIds; in GetLoactionDataShareUri() local
152 OHOS::AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in GetLoactionDataShareUri()
155 if (!accountIds.empty()) { in GetLoactionDataShareUri()
156 userId = std::to_string(accountIds[0]); in GetLoactionDataShareUri()
/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_priority_manager/
H A Dmulti_account_manager.h42 bool GetSwitchedAccountIds(std::vector<int> &accountIds);
43 bool UpdateAccountPriorityInfo(std::vector<int> &accountIds);
/foundation/resourceschedule/memmgr/test/unittest/phone/
H A Dmulti_account_manager_test.cpp196 std::vector<int> accountIds; in HWTEST_F() local
198 oldAct.GetSwitchedAccountIds(accountIds); in HWTEST_F()
199 EXPECT_EQ(accountIds, accountIds1); in HWTEST_F()
209 std::vector<int> accountIds; in HWTEST_F() local
210 EXPECT_EQ(MultiAccountManager::GetInstance().UpdateAccountPriorityInfo(accountIds), true); in HWTEST_F()
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_priority_manager/
H A Dmulti_account_manager.cpp173 bool MultiAccountManager::GetSwitchedAccountIds(std::vector<int> &accountIds) in GetSwitchedAccountIds() argument
178 HILOGI("Query active os accountIds failed, err = %{public}d.", static_cast<int>(errCode)); in GetSwitchedAccountIds()
184 accountIds.push_back(oldId); in GetSwitchedAccountIds()
193 bool MultiAccountManager::UpdateAccountPriorityInfo(std::vector<int> &accountIds) in UpdateAccountPriorityInfo() argument
195 for (int accountId : accountIds) { in UpdateAccountPriorityInfo()
294 HILOGI("Get switched accountIds failed."); in HandleOsAccountsChanged()
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_service.cpp75 std::vector<int32_t> accountIds; in GetCurrentAccountId() local
76 auto ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in GetCurrentAccountId()
77 if (ret != ERR_OK || accountIds.empty()) { in GetCurrentAccountId()
81 SetCurrentUserId(accountIds.front()); in GetCurrentAccountId()
H A Dnetfirewall_rule_manager.cpp513 std::vector<int32_t> accountIds; in GetCurrentAccountId() local
514 auto ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in GetCurrentAccountId()
515 if (ret != ERR_OK || accountIds.empty()) { in GetCurrentAccountId()
519 return accountIds.front(); in GetCurrentAccountId()
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_account_data.cpp460 std::vector<int32_t> accountIds = Singleton<AccessibleAbilityManagerService>::GetInstance().GetAllAccountIds(); in SetScreenReaderExtInAllAccounts() local
461 for (auto accountId : accountIds) { in SetScreenReaderExtInAllAccounts()
1313 std::vector<int32_t> accountIds; in GetAllAccountIds() local
1315 accountIds.push_back(it->first); in GetAllAccountIds()
1317 return accountIds; in GetAllAccountIds()
H A Daccessible_ability_manager_service.cpp1441 std::vector<int32_t> accountIds; in Init() local
1442 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in Init()
1443 while (ret != ERR_OK || accountIds.size() == 0) { in Init()
1450 ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in Init()
1454 if (accountIds.size() > 0) { in Init()
1455 HILOG_DEBUG("Query account information success, account id:%{public}d", accountIds[0]); in Init()
1456 SwitchedUser(accountIds[0]); in Init()
/foundation/barrierfree/accessibility/services/test/xts/src/asac_register_elemnt_operator_test/
H A Dasac_account_data_benchmark.cpp460 std::vector<int32_t> accountIds = Singleton<AccessibleAbilityManagerService>::GetInstance().GetAllAccountIds(); in SetScreenReaderExtInAllAccounts() local
461 for (auto accountId : accountIds) { in SetScreenReaderExtInAllAccounts()
1313 std::vector<int32_t> accountIds; in GetAllAccountIds() local
1315 accountIds.push_back(it->first); in GetAllAccountIds()
1317 return accountIds; in GetAllAccountIds()
/foundation/barrierfree/accessibility/services/test/xts/src/sa_perform_action_test/
H A Dsa_perform_action_xts.cpp1436 std::vector<int32_t> accountIds; in Init() local
1437 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in Init()
1438 while (ret != ERR_OK || accountIds.size() == 0) { in Init()
1445 ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in Init()
1449 if (accountIds.size() > 0) { in Init()
1450 HILOG_DEBUG("Query account information success, account id:%{public}d", accountIds[0]); in Init()
1451 SwitchedUser(accountIds[0]); in Init()
/foundation/barrierfree/accessibility/services/test/xts/src/samgr_register_element_test/
H A Dsamgr_register_element_test.cpp1436 std::vector<int32_t> accountIds; in Init() local
1437 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in Init()
1438 while (ret != ERR_OK || accountIds.size() == 0) { in Init()
1445 ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in Init()
1449 if (accountIds.size() > 0) { in Init()
1450 HILOG_DEBUG("Query account information success, account id:%{public}d", accountIds[0]); in Init()
1451 SwitchedUser(accountIds[0]); in Init()
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Dcontext_impl.cpp683 std::vector<int> accountIds; in GetCurrentActiveAccountId() local
689 ErrCode ret = instance->QueryActiveOsAccountIds(accountIds); in GetCurrentActiveAccountId()
695 if (accountIds.size() == 0) { in GetCurrentActiveAccountId()
699 return accountIds[0]; in GetCurrentActiveAccountId()
/foundation/distributeddatamgr/pasteboard/services/core/src/
H A Dpasteboard_service.cpp1495 std::vector<int32_t> accountIds; in GetCurrentAccountId() local
1496 auto ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(accountIds); in GetCurrentAccountId()
1497 if (ret != ERR_OK || accountIds.empty()) { in GetCurrentAccountId()
1501 currentUserId = accountIds.front(); in GetCurrentAccountId()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/
H A Dkvstore_data_service.cpp401 std::vector<std::string> accountIds { accountId, "ohosAnonymousUid", "default" }; in CompareTripleIdentifier()
402 for (auto &id : accountIds) { in CompareTripleIdentifier()

Completed in 27 milliseconds