Home
last modified time | relevance | path

Searched refs:allowedAccounts (Results 1 - 11 of 11) sorted by relevance

/base/account/os_account/frameworks/appaccount/native/src/
H A Dapp_account_common.cpp33 if (!parcel.WriteUint32(allowedAccounts.size())) { in Marshalling()
36 for (auto item : allowedAccounts) { in Marshalling()
75 allowedAccounts.push_back(std::make_pair(name, type)); in ReadFromParcel()
H A Dapp_account.cpp500 options.allowedAccounts, Constants::MAX_ALLOWED_ARRAY_SIZE_INPUT, "allowedAccounts array is oversize"); in SelectAccountsByOptions()
/base/account/os_account/frameworks/appaccount/cj/include/
H A Dappaccount_defination.h65 CArrAppAccountInfo allowedAccounts; member
/base/account/os_account/frameworks/appaccount/native/include/
H A Dapp_account_common.h43 std::vector<std::pair<std::string, std::string>> allowedAccounts; member
/base/account/os_account/frameworks/appaccount/native/test/unittest/
H A Dapp_account_common_test.cpp193 * @tc.desc: Func Marshalling allowedAccounts is oversize.
207 option1.allowedAccounts.emplace_back(std::pair<std::string, std::string>(key, value)); in HWTEST_F()
H A Dapp_account_manager_test.cpp1825 // check options.allowedAccounts array size in HWTEST_F()
1826 options.allowedAccounts.clear(); in HWTEST_F()
1830 options.allowedAccounts.emplace_back(testAccountOwner, testAccountName); in HWTEST_F()
1834 options.allowedAccounts.emplace_back("test_name_oversize", "test_owner_oversize"); in HWTEST_F()
1839 options.allowedAccounts.clear(); in HWTEST_F()
/base/account/os_account/frameworks/appaccount/cj/src/
H A Dappaccount_impl.cpp448 if (options.allowedAccounts.size() != 0) { in ParseContextForSelectAccount()
774 out.allowedAccounts = Convert2VecAppAccountInfo(in.allowedAccounts); in Convert2SelectAccountsOptions()
/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_control_manager.cpp981 std::set<std::string> allowedAccounts; in SelectAccountsByOptions() local
982 for (auto account : options.allowedAccounts) { in SelectAccountsByOptions()
983 allowedAccounts.emplace(account.first + "_" + account.second); in SelectAccountsByOptions()
998 if (options.hasAccounts && allowedAccounts.count(owner + "_" + account.GetName()) == 0) { in SelectAccountsByOptions()
H A Dapp_account_stub.cpp925 RETURN_IF_STRING_IS_OVERSIZE(options->allowedAccounts, in ProcSelectAccountsByOptions()
926 Constants::MAX_ALLOWED_ARRAY_SIZE_INPUT, "allowedAccounts array is oversize", reply); in ProcSelectAccountsByOptions()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
H A Dnapi_app_account_common.cpp1024 napi_has_named_property(env, object, "allowedAccounts", &options.hasAccounts); in ParseSelectAccountsOptions()
1026 napi_get_named_property(env, object, "allowedAccounts", &value); in ParseSelectAccountsOptions()
1031 ACCOUNT_LOGI("the allowedAccounts is undefined or null"); in ParseSelectAccountsOptions()
1033 if (!ParseAccountVector(env, value, options.allowedAccounts)) { in ParseSelectAccountsOptions()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
H A Dapp_account_manager_service_module_test.cpp2426 options.allowedAccounts.emplace_back("test_key", "value"); in HWTEST_F()

Completed in 21 milliseconds