/foundation/bundlemanager/app_domain_verify/test/unittest/mock/src/ |
H A D | mock_os_account_manager.cpp | 24 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 D | os_account_manager_wrapper.cpp | 110 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 D | mock_os_account_manager.cpp | 24 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 D | wifi_datashare_utils.cpp | 150 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 D | multi_account_manager.h | 42 bool GetSwitchedAccountIds(std::vector<int> &accountIds); 43 bool UpdateAccountPriorityInfo(std::vector<int> &accountIds);
|
/foundation/resourceschedule/memmgr/test/unittest/phone/ |
H A D | multi_account_manager_test.cpp | 196 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 D | multi_account_manager.cpp | 173 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 D | netfirewall_service.cpp | 75 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 D | netfirewall_rule_manager.cpp | 513 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 D | accessibility_account_data.cpp | 460 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 D | accessible_ability_manager_service.cpp | 1441 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 D | asac_account_data_benchmark.cpp | 460 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 D | sa_perform_action_xts.cpp | 1436 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 D | samgr_register_element_test.cpp | 1436 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 D | context_impl.cpp | 683 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 D | pasteboard_service.cpp | 1495 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 D | kvstore_data_service.cpp | 401 std::vector<std::string> accountIds { accountId, "ohosAnonymousUid", "default" }; in CompareTripleIdentifier() 402 for (auto &id : accountIds) { in CompareTripleIdentifier()
|