Home
last modified time | relevance | path

Searched refs:accessibleAccounts (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_subscribe_manager.cpp154 std::vector<std::string> accessibleAccounts; in CheckAppAccess() local
155 …ErrCode ret = dataStoragePtr->GetAccessibleAccountsFromDataStorage(bundleName, accessibleAccounts); in CheckAppAccess()
165 accessibleAccounts.begin(), in CheckAppAccess()
166 accessibleAccounts.end(), in CheckAppAccess()
175 if (it == accessibleAccounts.end()) { in CheckAppAccess()
288 std::vector<AppAccountInfo> accessibleAccounts; in OnAccountsChanged() local
290 accessibleAccounts, receiver->bundleName, dataStoragePtr, record->appIndex); in OnAccountsChanged()
297 …= GetAccessibleAccountsBySubscribeInfo(receiver->subscribeInfoPtr, accessibleAccounts, appAccounts… in OnAccountsChanged()
317 const std::vector<AppAccountInfo> &accessibleAccounts, std::vector<AppAccountInfo> &appAccounts) in GetAccessibleAccountsBySubscribeInfo() argument
329 for (auto accessibleAccount : accessibleAccounts) { in GetAccessibleAccountsBySubscribeInfo()
H A Dapp_account_data_storage.cpp39 const std::string &authorizedApp, std::vector<std::string> &accessibleAccounts) in GetAccessibleAccountsFromAuthorizedAccounts() argument
41 accessibleAccounts.clear(); in GetAccessibleAccountsFromAuthorizedAccounts()
51 accessibleAccounts = jsonObject[authorizedApp].get<std::vector<std::string>>(); in GetAccessibleAccountsFromAuthorizedAccounts()
59 const std::string &authorizedApp, std::vector<std::string> &accessibleAccounts) in GetAccessibleAccountsFromDataStorage() argument
67 …GetAccessibleAccountsFromAuthorizedAccounts(authorizedAccounts, authorizedApp, accessibleAccounts); in GetAccessibleAccountsFromDataStorage()
H A Dapp_account_control_manager.cpp891 for (auto account : accessibleAccounts) { in GetAllAccounts()
945 for (auto account : accessibleAccounts) { in GetAllAccessibleAccounts()
992 for (auto account : accessibleAccounts) { in SelectAccountsByOptions()
1220 for (auto account : accessibleAccounts) { in GetAllAccessibleAccountsFromDataStorage()
1530 auto it = std::find(accessibleAccounts.begin(), accessibleAccounts.end(), accountId); in SaveAuthorizedAccountIntoDataStorage()
1531 if (it == accessibleAccounts.end()) { in SaveAuthorizedAccountIntoDataStorage()
1536 …std::transform(accessibleAccounts.begin(), accessibleAccounts.end(), std::back_inserter(accessible… in SaveAuthorizedAccountIntoDataStorage()
1575 auto it = std::find(accessibleAccounts.begin(), accessibleAccounts.end(), accountId); in RemoveAuthorizedAccountFromDataStorage()
1576 if (it != accessibleAccounts.end()) { in RemoveAuthorizedAccountFromDataStorage()
1577 accessibleAccounts.erase(it); in RemoveAuthorizedAccountFromDataStorage()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/test/moduletest/app_account/
H A Dapp_account_manager_service_sync_module_test.cpp295 auto accessibleAccounts = jsonObject[STRING_BUNDLE_NAME].get<std::vector<std::string>>(); variable
296 EXPECT_EQ(accessibleAccounts.size(), SIZE_ONE);
298 auto accountPtr = accessibleAccounts.begin();
299 ASSERT_NE(accountPtr, accessibleAccounts.end());
347 auto accessibleAccounts = jsonObject[STRING_BUNDLE_NAME].get<std::vector<std::string>>(); variable
348 EXPECT_EQ(accessibleAccounts.size(), SIZE_ONE);
350 auto accountPtr = accessibleAccounts.begin();
351 ASSERT_NE(accountPtr, accessibleAccounts.end());
398 auto accessibleAccounts = jsonObject[STRING_BUNDLE_NAME].get<std::vector<std::string>>(); variable
399 EXPECT_EQ(accessibleAccounts.size(), SIZE_ZERO);
H A Dapp_account_subscribe_manager_test.cpp209 std::vector<AppAccountInfo> accessibleAccounts; variable
212 GetAccessibleAccountsBySubscribeInfo(nullptr, accessibleAccounts, appAccounts);
H A Dapp_account_manager_service_module_test.cpp287 std::vector<std::string> accessibleAccounts; variable
288 …ult = dataStoragePtr->GetAccessibleAccountsFromDataStorage(STRING_BUNDLE_NAME, accessibleAccounts);
290 EXPECT_EQ(accessibleAccounts.size(), SIZE_ZERO);
/ohos5.0/base/account/os_account/services/accountmgr/include/appaccount/
H A Dapp_account_data_storage.h31 const std::string &authorizedApp, std::vector<std::string> &accessibleAccounts);
33 const std::string &authorizedApp, std::vector<std::string> &accessibleAccounts);
H A Dapp_account_subscribe_manager.h46 … const std::vector<AppAccountInfo> &accessibleAccounts, std::vector<AppAccountInfo> &appAccounts);
/ohos5.0/base/account/os_account/frameworks/appaccount/native/test/unittest/
H A Dapp_account_manager_subscribe_test.cpp258 std::vector<AppAccountInfo> accessibleAccounts; variable
261 …SubscribeManagerPtr->GetAccessibleAccountsBySubscribeInfo(nullptr, accessibleAccounts, appAccounts…