/base/account/os_account/dfx/hidumper_adapter/ |
H A D | account_dump_helper.cpp | 116 std::vector<OsAccountInfo> osAccountInfos; in ShowOhosAccountInfo() local 117 ErrCode ret = IInnerOsAccountManager::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in ShowOhosAccountInfo() 124 if (osAccountInfos.empty()) { in ShowOhosAccountInfo() 130 for (size_t i = 0; i < osAccountInfos.size(); ++i) { in ShowOhosAccountInfo() 132 (void)OhosAccountManager::GetInstance().GetAccountInfoByUserId(osAccountInfos[i].GetLocalId(), accountInfo); in ShowOhosAccountInfo()
|
/base/security/device_auth/services/frameworks/src/os_account_adapter/ |
H A D | os_account_adapter.cpp | 229 std::vector<OHOS::AccountSA::OsAccountInfo> osAccountInfos; in GetAllOsAccountIds() local 230 OHOS::ErrCode res = OHOS::AccountSA::OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos); in GetAllOsAccountIds() 231 uint32_t accountSize = osAccountInfos.size(); in GetAllOsAccountIds() 242 (*osAccountIds)[index] = osAccountInfos[index].GetLocalId(); in GetAllOsAccountIds()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
H A D | app_usage_event_factory.cpp | 82 std::vector<OsAccountInfo> osAccountInfos;
in GetAllCreatedOsAccountIds() local 83 auto res = OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos);
in GetAllCreatedOsAccountIds() 89 for (auto info : osAccountInfos) {
in GetAllCreatedOsAccountIds()
|
/base/account/os_account/tools/test/unittest/acm/ |
H A D | account_command_switch_test.cpp | 60 std::vector<OsAccountInfo> osAccountInfos; in SetUp() local 61 OsAccount::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in SetUp() 62 for (const auto &info : osAccountInfos) { in SetUp()
|
H A D | account_command_delete_test.cpp | 60 std::vector<OsAccountInfo> osAccountInfos; in SetUp() local 61 OsAccount::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in SetUp() 62 for (const auto &info : osAccountInfos) { in SetUp()
|
H A D | account_command_dump_test.cpp | 60 std::vector<OsAccountInfo> osAccountInfos; in SetUp() local 61 OsAccount::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in SetUp() 62 for (const auto &info : osAccountInfos) { in SetUp()
|
H A D | account_command_create_test.cpp | 65 std::vector<OsAccountInfo> osAccountInfos; in SetUp() local 66 OsAccount::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in SetUp() 67 for (const auto &info : osAccountInfos) { in SetUp()
|
H A D | account_command_set_test.cpp | 64 std::vector<OsAccountInfo> osAccountInfos; in SetUp() local 65 OsAccount::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in SetUp() 66 for (const auto &info : osAccountInfos) { in SetUp()
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | inner_os_account_manager.cpp | 154 std::vector<OsAccountInfo> osAccountInfos; in RetryToGetAccount() local 155 QueryAllCreatedOsAccounts(osAccountInfos); in RetryToGetAccount() 156 if (!osAccountInfos.empty() && !osAccountInfos[0].GetToBeRemoved()) { in RetryToGetAccount() 157 osAccountInfo = osAccountInfos[0]; in RetryToGetAccount() 224 std::vector<OsAccountInfo> osAccountInfos; in RetryToGetAccount() local 225 if (QueryAllCreatedOsAccounts(osAccountInfos) != ERR_OK) { in RetryToGetAccount() 228 for (size_t i = 0; i < osAccountInfos.size(); ++i) { in RetryToGetAccount() 229 OsAccountInfo osAccountInfo = osAccountInfos[i]; in RetryToGetAccount() 617 const std::vector<OsAccountInfo> &osAccountInfos, cons in RetryToGetAccount() 616 CheckDomainAccountBound( const std::vector<OsAccountInfo> &osAccountInfos, const DomainAccountInfo &info) RetryToGetAccount() argument 633 std::vector<OsAccountInfo> osAccountInfos; RetryToGetAccount() local 691 std::vector<OsAccountInfo> osAccountInfos; RetryToGetAccount() local 1397 std::vector<OsAccountInfo> osAccountInfos; RetryToGetAccount() local 1831 std::vector<OsAccountInfo> osAccountInfos; RetryToGetAccount() local [all...] |
H A D | os_account_manager_service.cpp | 428 ErrCode OsAccountManagerService::QueryAllCreatedOsAccounts(std::vector<OsAccountInfo> &osAccountInfos) in QueryAllCreatedOsAccounts() argument 436 return innerManager_.QueryAllCreatedOsAccounts(osAccountInfos); in QueryAllCreatedOsAccounts() 827 std::vector<OsAccountInfo> osAccountInfos; in DumpState() local 830 result = innerManager_.QueryAllCreatedOsAccounts(osAccountInfos); in DumpState() 841 osAccountInfos.emplace_back(osAccountInfo); in DumpState() 844 return DumpStateByAccounts(osAccountInfos, state); in DumpState() 852 std::vector<OsAccountInfo> osAccountInfos; in DumpOsAccountInfo() local 853 result = innerManager_.QueryAllCreatedOsAccounts(osAccountInfos); in DumpOsAccountInfo() 858 return DumpStateByAccounts(osAccountInfos, state); in DumpOsAccountInfo() 909 const std::vector<OsAccountInfo> &osAccountInfos, st in DumpStateByAccounts() 908 DumpStateByAccounts( const std::vector<OsAccountInfo> &osAccountInfos, std::vector<std::string> &state) DumpStateByAccounts() argument [all...] |
H A D | os_account_control_file_manager.cpp | 1059 bool AccountExistsWithSerialNumber(const std::vector<OsAccountInfo>& osAccountInfos, int serialNumber) in AccountExistsWithSerialNumber() argument 1062 return std::any_of(osAccountInfos.begin(), osAccountInfos.end(), in AccountExistsWithSerialNumber() 1087 std::vector<OsAccountInfo> osAccountInfos; in GetSerialNumber() local 1088 result = GetOsAccountList(osAccountInfos); in GetSerialNumber() 1095 exists = AccountExistsWithSerialNumber(osAccountInfos, serialNumber); in GetSerialNumber() 1197 std::vector<OsAccountInfo> osAccountInfos; in GetAccountIndexInfo() local 1198 ErrCode result = GetOsAccountList(osAccountInfos); in GetAccountIndexInfo() 1203 for (auto account = osAccountInfos.begin(); account != osAccountInfos in GetAccountIndexInfo() [all...] |
/base/account/os_account/test/fuzztest/osaccount/queryaccountinfo_fuzzer/ |
H A D | queryaccountinfo_fuzzer.cpp | 95 std::vector<OsAccountInfo> osAccountInfos; in QueryAllCreatedOsAccountsFuzzTest() local 96 result = OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos); in QueryAllCreatedOsAccountsFuzzTest()
|
/base/account/os_account/interfaces/kits/napi/osaccount/include/ |
H A D | napi_os_account.h | 54 OsAccountInfo osAccountInfos; member 81 OsAccountInfo osAccountInfos; member 88 OsAccountInfo osAccountInfos; member 111 std::vector<OsAccountInfo> osAccountInfos; member 138 OsAccountInfo osAccountInfos; member
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
H A D | os_account_manager_service_module_test.cpp | 614 std::vector<OsAccountInfo> osAccountInfos; in HWTEST_F() local 615 EXPECT_EQ(osAccountManagerService_->QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); in HWTEST_F() 617 EXPECT_NE(size, osAccountInfos.size()); in HWTEST_F() 1328 std::vector<OsAccountInfo> osAccountInfos; in HWTEST_F() local 1329 EXPECT_EQ(osAccountManagerService_->QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); in HWTEST_F() 1338 EXPECT_EQ(cnt, osAccountInfos.size()); in HWTEST_F() 1790 std::vector<OsAccountInfo> osAccountInfos; in HWTEST_F() local 1792 osAccountManagerService_->QueryAllCreatedOsAccounts(osAccountInfos)); in HWTEST_F() 2530 std::vector<OsAccountInfo> osAccountInfos; in HWTEST_F() local 2531 EXPECT_EQ(osAccountManagerService_->QueryAllCreatedOsAccounts(osAccountInfos), ERR_O in HWTEST_F() 2585 std::vector<OsAccountInfo> osAccountInfos; HWTEST_F() local 2641 std::vector<OsAccountInfo> osAccountInfos; HWTEST_F() local [all...] |
/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/ |
H A D | account_dump_helper_test.cpp | 73 std::vector<OsAccountInfo> osAccountInfos; in TearDownTestCase() local 74 OsAccount::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in TearDownTestCase() 75 for (const auto &info : osAccountInfos) { in TearDownTestCase()
|
/base/account/os_account/services/accountmgr/src/ |
H A D | ohos_account_data_deal.cpp | 163 std::vector<OsAccountInfo> osAccountInfos; in Init() local 164 IInnerOsAccountManager::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in Init() 165 for (const auto &info : osAccountInfos) { in Init()
|
H A D | ohos_account_manager.cpp | 614 std::vector<OsAccountInfo> osAccountInfos; in OnPackageRemoved() local 615 (void)IInnerOsAccountManager::GetInstance().QueryAllCreatedOsAccounts(osAccountInfos); in OnPackageRemoved() 616 for (const auto &info : osAccountInfos) { in OnPackageRemoved()
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | os_account_manager_service.h | 65 ErrCode QueryAllCreatedOsAccounts(std::vector<OsAccountInfo> &osAccountInfos) override; 135 const std::vector<OsAccountInfo> &osAccountInfos, std::vector<std::string> &state);
|
H A D | iinner_os_account.h | 50 virtual ErrCode QueryAllCreatedOsAccounts(std::vector<OsAccountInfo> &osAccountInfos) = 0;
|
/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
H A D | os_account_manager_module_test.cpp | 231 std::vector<OsAccountInfo> osAccountInfos; in SetUp() local 232 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); in SetUp() 233 for (const auto &info : osAccountInfos) { in SetUp() 791 std::vector<OsAccountInfo> osAccountInfos; in HWTEST_F() local 792 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); in HWTEST_F() 793 EXPECT_EQ(1, osAccountInfos.size()); in HWTEST_F() 796 osAccountInfos.clear(); in HWTEST_F() 797 EXPECT_EQ(OsAccountManager::QueryAllCreatedOsAccounts(osAccountInfos), ERR_OK); in HWTEST_F() 798 EXPECT_EQ(2, osAccountInfos.size()); in HWTEST_F() 803 osAccountInfos in HWTEST_F() 1033 std::vector<OsAccountInfo> osAccountInfos; HWTEST_F() local [all...] |
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
H A D | os_account_control_file_manager_test.cpp | 132 std::vector<OsAccountInfo> osAccountInfos; in HWTEST_F() local 133 EXPECT_EQ(g_controlManager->GetOsAccountList(osAccountInfos), ERR_OK); in HWTEST_F() 135 EXPECT_NE(osAccountInfos.size(), size); in HWTEST_F()
|
/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
H A D | napi_os_account_common.cpp | 53 asyncContext->osAccountInfos = *osAccountInfo; in OnResult() 166 asyncContext->errCode = OsAccountManager::QueryOsAccountById(asyncContext->id, asyncContext->osAccountInfos); in QueryOAByIdExecuteCB() 178 GetOACBInfoToJs(env, asyncContext->osAccountInfos, dataJs); in QueryOAByIdCallbackCompletedCB() 636 asyncContext->type, options, asyncContext->osAccountInfos); in CreateOAExecuteCB() 668 GetOACBInfoToJs(env, asyncContext->osAccountInfos, dataJs); in CreateOACallbackCompletedCB() 689 GetOACBInfoToJs(asyncContext->env, asyncContext->osAccountInfos, dataJs); in CreateOAForDomainCallbackCompletedWork() 965 asyncContext->errCode = OsAccountManager::QueryAllCreatedOsAccounts(asyncContext->osAccountInfos); in QueryCreateOAExecuteCB() 986 QueryOAInfoForResult(env, asyncContext->osAccountInfos, dataJs); in QueryCreateOACallbackCompletedCB() 1114 asyncContext->errCode = OsAccountManager::QueryCurrentOsAccount(asyncContext->osAccountInfos); in QueryCurrentOAExecuteCB() 1129 GetOACBInfoToJs(env, asyncContext->osAccountInfos, dataJ in QueryCurrentOACallbackCompletedCB() [all...] |
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
H A D | os_account_manager.h | 240 * @param osAccountInfos - Indicates a list of OS accounts. 243 static ErrCode QueryAllCreatedOsAccounts(std::vector<OsAccountInfo> &osAccountInfos);
|
/base/account/os_account/frameworks/osaccount/core/include/ |
H A D | os_account.h | 49 ErrCode QueryAllCreatedOsAccounts(std::vector<OsAccountInfo> &osAccountInfos);
|
H A D | ios_account.h | 59 virtual ErrCode QueryAllCreatedOsAccounts(std::vector<OsAccountInfo> &osAccountInfos) = 0;
|