Home
last modified time | relevance | path

Searched refs:owners (Results 1 – 25 of 26) sorted by relevance

12

/base/account/os_account/services/accountmgr/test/unittest/app_account/
Dapp_account_subscribe_info_test.cpp59 std::vector<std::string> owners; variable
60 owners.emplace_back(STRING_OWNER);
63 AppAccountSubscribeInfo subscribeInfo(owners);
71 EXPECT_EQ(owners.size(), ownersFromSubscribeInfo.size());
73 EXPECT_EQ(owners.front(), ownersFromSubscribeInfo.front());
85 std::vector<std::string> owners; variable
86 owners.emplace_back(STRING_OWNER);
92 ErrCode result = subscribeInfo.SetOwners(owners);
96 EXPECT_EQ(owners.size(), subscribeInfo.owners_.size());
98 EXPECT_EQ(owners.front(), subscribeInfo.owners_.front());
[all …]
Dapp_account_test.cpp331 std::vector<std::string> owners; variable
332 owners.emplace_back(STRING_OWNER);
336 subscribeInfo.SetOwners(owners);
357 std::vector<std::string> owners; variable
358 owners.emplace_back(STRING_OWNER);
359 owners.emplace_back(STRING_OWNER);
363 subscribeInfo.SetOwners(owners);
441 std::vector<std::string> owners; variable
442 owners.emplace_back(STRING_OWNER);
446 result = subscribeInfo.SetOwners(owners);
[all …]
Dapp_account_manager_service_test.cpp122 std::vector<std::string> owners; variable
123 owners.emplace_back(STRING_OWNER);
127 subscribeInfo.SetOwners(owners);
Dinner_app_account_manager_test.cpp710 std::vector<std::string> owners; variable
711 owners.emplace_back(STRING_OWNER);
715 subscribeInfo.SetOwners(owners);
734 std::vector<std::string> owners; variable
735 owners.emplace_back(STRING_OWNER);
739 subscribeInfo.SetOwners(owners);
/base/account/os_account/frameworks/appaccount/native/test/unittest/
Dapp_account_manager_subscribe_test.cpp100 std::vector<std::string> owners; variable
101 owners.emplace_back(STRING_OWNER);
104 AppAccountSubscribeInfo subscribeInfo(owners);
125 std::vector<std::string> owners; variable
128 AppAccountSubscribeInfo subscribeInfo(owners);
149 std::vector<std::string> owners; variable
150 owners.emplace_back(STRING_OWNER);
151 owners.emplace_back(STRING_OWNER_OUT_OF_RANGE);
154 AppAccountSubscribeInfo subscribeInfo(owners);
175 std::vector<std::string> owners; variable
[all …]
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_subscribe_info.cpp25 AppAccountSubscribeInfo::AppAccountSubscribeInfo(std::vector<std::string> &owners) : owners_(owners) in AppAccountSubscribeInfo() argument
28 ErrCode AppAccountSubscribeInfo::GetOwners(std::vector<std::string> &owners) const in GetOwners()
30 owners = owners_; in GetOwners()
35 ErrCode AppAccountSubscribeInfo::SetOwners(const std::vector<std::string> &owners) in SetOwners() argument
37 owners_ = owners; in SetOwners()
Dapp_account.cpp498 std::vector<std::string> owners; in SubscribeAppAccount() local
499 if (subscribeInfo.GetOwners(owners) != ERR_OK) { in SubscribeAppAccount()
504 if (owners.size() == 0) { in SubscribeAppAccount()
509 std::sort(owners.begin(), owners.end()); in SubscribeAppAccount()
510 owners.erase(std::unique(owners.begin(), owners.end()), owners.end()); in SubscribeAppAccount()
511 if (subscribeInfo.SetOwners(owners) != ERR_OK) { in SubscribeAppAccount()
516 for (auto owner : owners) { in SubscribeAppAccount()
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_subscribe_manager.cpp59 std::vector<std::string> owners; in SubscribeAppAccount() local
60 if (subscribeInfoPtr->GetOwners(owners) != ERR_OK) { in SubscribeAppAccount()
65 if (owners.size() == 0) { in SubscribeAppAccount()
91 return InsertSubscribeRecord(owners, subscribeRecordPtr); in SubscribeAppAccount()
124 std::vector<std::string> owners; in GetSubscribeRecords() local
125 ErrCode result = (*it)->subscribeInfoPtr->GetOwners(owners); in GetSubscribeRecords()
131 if (std::find(owners.begin(), owners.end(), owner) == owners.end()) { in GetSubscribeRecords()
150 std::vector<std::string> owners; in CheckAppAccess() local
151 ErrCode result = subscribeInfoPtr->GetOwners(owners); in CheckAppAccess()
175 for (auto owner : owners) { in CheckAppAccess()
[all …]
Dapp_account_check_labels_callback.cpp37 std::vector<std::string> owners; in SendResult() local
40 owners.push_back(account.GetOwner()); in SendResult()
43 result.SetParam(Constants::KEY_ACCOUNT_OWNERS, owners); in SendResult()
Dapp_account_manager_service.cpp712 std::vector<std::string> owners; in SubscribeAppAccount() local
713 if (subscribeInfo.GetOwners(owners) != ERR_OK) { in SubscribeAppAccount()
718 if (owners.size() == 0) { in SubscribeAppAccount()
724 for (auto owner : owners) { in SubscribeAppAccount()
Dapp_account_control_manager.cpp741 std::vector<std::string> owners; in SelectAccountsByOptions() local
744 owners.push_back(account.GetOwner()); in SelectAccountsByOptions()
747 result.SetParam(Constants::KEY_ACCOUNT_OWNERS, owners); in SelectAccountsByOptions()
/base/account/os_account/services/accountmgr/test/mock/app_account/
Dmock_app_account_subscribe_manager.cpp42 std::vector<std::string> owners; in SubscribeAppAccount() local
43 if (subscribeInfoPtr->GetOwners(owners) != ERR_OK) { in SubscribeAppAccount()
48 if (owners.size() == 0) { in SubscribeAppAccount()
49 ACCOUNT_LOGE("mock owners.size() = %{public}zu", owners.size()); in SubscribeAppAccount()
53 auto owner = owners.front(); in SubscribeAppAccount()
Dmock_inner_app_account_manager.cpp76 std::vector<std::string> owners; in SubscribeAppAccount() local
77 if (subscribeInfo.GetOwners(owners) != ERR_OK) { in SubscribeAppAccount()
82 if (owners.size() == 0) { in SubscribeAppAccount()
83 ACCOUNT_LOGE("mock owners.size() = %{public}zu", owners.size()); in SubscribeAppAccount()
87 auto owner = owners.front(); in SubscribeAppAccount()
Dmock_app_account_stub.cpp370 std::vector<std::string> owners; in SubscribeAppAccount() local
371 ErrCode result = subscribeInfo.GetOwners(owners); in SubscribeAppAccount()
379 ACCOUNT_LOGI("mock owners.size() = %{public}zu", owners.size()); in SubscribeAppAccount()
380 if (owners.size() == 0) { in SubscribeAppAccount()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_subscribe_manager_test.cpp75 std::vector<std::string> owners; variable
76 owners.emplace_back(STRING_OWNER);
79 AppAccountSubscribeInfo subscribeInfo(owners);
116 std::vector<std::string> owners; variable
117 ErrCode ret = appAccountSubscribeSubscribePtr_->InsertSubscribeRecord(owners, nullptr);
121 owners.emplace_back(TEST_BUNDLE_NAME);
122 ret = appAccountSubscribeSubscribePtr_->InsertSubscribeRecord(owners, nullptr);
Dapp_account_manager_service_subscribe_module_test.cpp234 std::vector<std::string> owners; variable
235 owners.emplace_back(STRING_OWNER);
238 AppAccountSubscribeInfo subscribeInfo(owners);
313 std::vector<std::string> owners; variable
314 owners.emplace_back(STRING_OWNER);
317 AppAccountSubscribeInfo subscribeInfo(owners);
350 std::vector<std::string> owners; variable
351 owners.emplace_back(STRING_BUNDLE_NAME);
354 AppAccountSubscribeInfo subscribeInfo(owners);
397 std::vector<std::string> owners; variable
[all …]
/base/account/os_account/frameworks/appaccount/native/include/
Dapp_account_subscribe_info.h27 explicit AppAccountSubscribeInfo(std::vector<std::string> &owners);
30 ErrCode GetOwners(std::vector<std::string> &owners) const;
31 ErrCode SetOwners(const std::vector<std::string> &owners);
/base/account/os_account/test/fuzztest/appaccount/subscribeappaccount_fuzzer/
Dsubscribeappaccount_fuzzer.cpp48 std::vector<std::string> owners; in SubscribeAppAccountFuzzTest() local
49 owners.emplace_back(testOwner); in SubscribeAppAccountFuzzTest()
50 AppAccountSubscribeInfo subscribeInfo(owners); in SubscribeAppAccountFuzzTest()
/base/account/os_account/test/fuzztest/appaccount/unsubscribeappaccount_fuzzer/
Dunsubscribeappaccount_fuzzer.cpp48 std::vector<std::string> owners; in UnsubscribeAppAccountFuzzTest() local
49 owners.emplace_back(testOwner); in UnsubscribeAppAccountFuzzTest()
50 AppAccountSubscribeInfo subscribeInfo(owners); in UnsubscribeAppAccountFuzzTest()
/base/account/os_account/frameworks/appaccount/native/test/moduletest/
Dapp_account_manager_module_test.cpp387 std::vector<std::string> owners; variable
388 owners.emplace_back(STRING_OWNER);
391 AppAccountSubscribeInfo subscribeInfo(owners);
411 std::vector<std::string> owners; variable
412 owners.emplace_back(STRING_OWNER);
415 AppAccountSubscribeInfo subscribeInfo(owners);
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_subscribe_manager.h59 … const std::vector<std::string> &owners, const AppAccountSubscribeRecordPtr &subscribeRecordPtr);
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_common.cpp147 …std::vector<std::string> owners = param->result.GetStringArrayParam(Constants::KEY_ACCOUNT_OWNERS); in SelectAccountsOnResultWork() local
148 if (names.size() != owners.size()) { in SelectAccountsOnResultWork()
156 napi_value object = CreateJSAppAccountInfo(env, names[i], owners[i]); in SelectAccountsOnResultWork()
1097 context->owners.emplace_back(owner); in ParseParametersBySubscribe()
Dnapi_app_account.cpp1992 AppAccountSubscribeInfo subscribeInfo(context->owners); in Subscribe()
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_app_account_common.h173 std::vector<std::string> owners; member
/base/account/os_account/
DREADME.md335 … name="p686934433810"></a><a name="p686934433810"></a>on(type: 'change', owners: Array&lt;string&g…

12