/base/useriam/pin_auth/test/fuzztest/services/modules/executors/pinauthallinonehdi_fuzzer/ |
H A D | pin_auth_all_in_one_hdi_fuzzer.cpp | 69 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local 72 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish() 76 hdi_->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish() 111 std::vector<uint64_t> templateIdList; in FuzzAuthenticate() local 113 FillFuzzUint64Vector(parcel, templateIdList); in FuzzAuthenticate() 117 .templateIdList = templateIdList, in FuzzAuthenticate() 143 std::vector<uint64_t> templateIdList; in FuzzDelete() local 144 FillFuzzUint64Vector(parcel, templateIdList); in FuzzDelete() 146 hdi_->Delete(templateIdList); in FuzzDelete() 163 std::vector<uint64_t> templateIdList; FuzzGetProperty() local [all...] |
/base/useriam/user_auth_framework/test/unittest/services/src/ |
H A D | resource_node_test.cpp | 55 std::vector<uint64_t> templateIdList {}; in HWTEST_F() 58 auto node = ResourceNode::MakeNewResource(info, nullptr, templateIdList, fwkPublicKey); in HWTEST_F() 71 std::vector<uint64_t> templateIdList {}; in HWTEST_F() 73 auto node = ResourceNode::MakeNewResource(info, nullptr, templateIdList, fwkPublicKey); in HWTEST_F() 102 std::vector<uint64_t> templateIdList {}; in HWTEST_F() 104 auto node = ResourceNode::MakeNewResource(info, nullptr, templateIdList, fwkPublicKey); in HWTEST_F() 109 EXPECT_THAT(templateIdList, ElementsAre(1, 3, 5, 7, 9)); in HWTEST_F() 122 std::vector<uint64_t> templateIdList; in HWTEST_F() local 125 auto node = ResourceNode::MakeNewResource(info, testCallback, templateIdList, fwkPublicKey); in HWTEST_F() 148 std::vector<uint64_t> templateIdList; in HWTEST_F() local [all...] |
/base/useriam/pin_auth/test/fuzztest/services/modules/executors/pinauthverifierhdi_fuzzer/ |
H A D | pin_auth_verifier_hdi_fuzzer.cpp | 69 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local 72 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish() 76 hdi_->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish() 96 std::vector<uint64_t> templateIdList; in FuzzAuthenticate() local 98 FillFuzzUint64Vector(parcel, templateIdList); in FuzzAuthenticate() 102 .templateIdList = templateIdList, in FuzzAuthenticate()
|
/base/useriam/fingerprint_auth/test/unittest/mock/ |
H A D | mock_iall_in_one_executor.h | 32 int32_t(const std::vector<uint64_t> &templateIdList, const std::vector<uint8_t> &frameworkPublicKey, 40 MOCK_METHOD1(Delete, int32_t(const std::vector<uint64_t> &templateIdList)); 45 int32_t(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, bool endAfterFirstFail, 48 int32_t(const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, 50 MOCK_METHOD1(SetCachedTemplates, int32_t(const std::vector<uint64_t> &templateIdList));
|
/base/useriam/face_auth/test/unittest/mock/ |
H A D | mock_iall_in_one_executor.h | 32 int32_t(const std::vector<uint64_t> &templateIdList, const std::vector<uint8_t> &frameworkPublicKey, 38 int32_t(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, const std::vector<uint8_t> &extraInfo, 43 MOCK_METHOD1(Delete, int32_t(const std::vector<uint64_t> &templateIdList)); 48 int32_t(const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, 50 MOCK_METHOD1(SetCachedTemplates, int32_t(const std::vector<uint64_t> &templateIdList));
|
/base/useriam/user_auth_framework/test/unittest/executors/ |
H A D | iauth_executor_hdi_test.cpp | 62 ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList, 74 ResultCode IAuthExecutorHdiMock::OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument 97 std::vector<uint64_t> templateIdList = {}; in HWTEST_F() local 100 EXPECT_EQ(authExecutorHdi->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo), GENERAL_ERROR); in HWTEST_F() 165 std::vector<uint64_t> templateIdList = {1, 2, 3}; in HWTEST_F() local 166 EXPECT_EQ(authExecutorHdi->Delete(templateIdList), GENERAL_ERROR); in HWTEST_F() 181 std::vector<uint64_t> templateIdList = {0, 1, 2}; in HWTEST_F() local 184 EXPECT_EQ(authExecutorHdi->GetProperty(templateIdList, keys, property), GENERAL_ERROR); in HWTEST_F() 190 std::vector<uint64_t> templateIdList = {0, 1, 2}; in HWTEST_F() local 191 EXPECT_EQ(authExecutorHdi->SetCachedTemplates(templateIdList), GENERAL_ERRO in HWTEST_F() [all...] |
/base/useriam/face_auth/test/fuzztest/faceauthallinoneexecutorhdi_fuzzer/ |
H A D | face_auth_all_in_one_executor_hdi_fuzzer.cpp | 61 int32_t OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument 75 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, in Authenticate() argument 89 int32_t Delete(const std::vector<uint64_t> &templateIdList) in Delete() argument 114 int32_t GetProperty(const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, in GetProperty() argument 122 int32_t SetCachedTemplates(const std::vector<uint64_t> &templateIdList) in SetCachedTemplates() argument 270 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local 271 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish() 276 g_hdi->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish() 298 std::vector<uint64_t> templateIdList; in FuzzAuthenticate() local 299 FillFuzzUint64Vector(parcel, templateIdList); in FuzzAuthenticate() 326 std::vector<uint64_t> templateIdList; FuzzDelete() local 355 std::vector<uint64_t> templateIdList; FuzzGetProperty() local 367 std::vector<uint64_t> templateIdList; FuzzSetCachedTemplates() local [all...] |
/base/useriam/fingerprint_auth/test/fuzztest/fingerprintauthallinoneexecutorhdi_fuzzer/ |
H A D | fingerprint_auth_all_in_one_executor_hdi_fuzzer.cpp | 58 int32_t OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() argument 72 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t> &templateIdList, bool endAfterFirstFail, in Authenticate() argument 86 int32_t Delete(const std::vector<uint64_t> &templateIdList) in Delete() argument 111 int32_t GetProperty(const std::vector<uint64_t> &templateIdList, const std::vector<int32_t> &propertyTypes, in GetProperty() argument 119 int32_t SetCachedTemplates(const std::vector<uint64_t> &templateIdList) in SetCachedTemplates() argument 267 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local 268 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish() 273 g_hdi->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish() 295 std::vector<uint64_t> templateIdList; in FuzzAuthenticate() local 296 FillFuzzUint64Vector(parcel, templateIdList); in FuzzAuthenticate() 323 std::vector<uint64_t> templateIdList; FuzzDelete() local 352 std::vector<uint64_t> templateIdList; FuzzGetProperty() local 364 std::vector<uint64_t> templateIdList; FuzzSetCachedTemplates() local [all...] |
/base/useriam/user_auth_framework/test/unittest/executors/mock/ |
H A D | mock_iauth_executor_hdi.h | 35 OnRegisterFinish, ResultCode(const std::vector<uint64_t> &templateIdList, 49 MOCK_METHOD1(Delete, ResultCode(const std::vector<uint64_t> &templateIdList)); 52 MOCK_METHOD3(GetProperty, ResultCode (const std::vector<uint64_t> &templateIdList, 54 MOCK_METHOD1(SetCachedTemplates, ResultCode(const std::vector<uint64_t> &templateIdList));
|
/base/useriam/user_auth_framework/interfaces/inner_api/iam_executor/ |
H A D | iam_executor_iauth_executor_hdi.h | 61 * @param templateIdList Template ID list. 66 virtual ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList, 134 * @param templateIdList Template ID list. 137 virtual ResultCode Delete(const std::vector<uint64_t> &templateIdList); 153 * @param templateIdList Template id list. 158 virtual ResultCode GetProperty(const std::vector<uint64_t> &templateIdList, 164 * @param templateIdList Template id list. 167 virtual ResultCode SetCachedTemplates(const std::vector<uint64_t> &templateIdList);
|
/base/useriam/user_auth_framework/frameworks/native/executors/src/ |
H A D | iauth_executor_hdi.cpp | 53 ResultCode IAuthExecutorHdi::Delete(const std::vector<uint64_t> &templateIdList) in Delete() argument 66 ResultCode IAuthExecutorHdi::GetProperty(const std::vector<uint64_t> &templateIdList, in GetProperty() argument 73 ResultCode IAuthExecutorHdi::SetCachedTemplates(const std::vector<uint64_t> &templateIdList) in SetCachedTemplates() argument
|
/base/useriam/pin_auth/test/fuzztest/mocks/inc/ |
H A D | mock_iall_in_one_executor_fuzzer.h | 35 int32_t OnRegisterFinish(const std::vector<uint64_t>& templateIdList, 63 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t>& templateIdList, 74 int32_t GetProperty(const std::vector<uint64_t>& templateIdList, const std::vector<int32_t>& propertyTypes,
|
H A D | mock_iverifier_executor_fuzzer.h | 34 int32_t OnRegisterFinish(const std::vector<uint64_t>& templateIdList, 50 int32_t Authenticate(uint64_t scheduleId, const std::vector<uint64_t>& templateIdList,
|
/base/useriam/pin_auth/test/unittest/mocks/ |
H A D | mock_iall_in_one_executor.h | 32 MOCK_METHOD3(OnRegisterFinish, int32_t(const std::vector<uint64_t> &templateIdList, 40 MOCK_METHOD4(Authenticate, int32_t(uint64_t scheduleId, const std::vector<uint64_t>& templateIdList, 43 MOCK_METHOD3(GetProperty, int32_t(const std::vector<uint64_t>& templateIdList,
|
H A D | mock_iverifier_executor.h | 32 MOCK_METHOD3(OnRegisterFinish, int32_t(const std::vector<uint64_t> &templateIdList, 36 MOCK_METHOD4(Authenticate, int32_t(uint64_t scheduleId, const std::vector<uint64_t>& templateIdList,
|
/base/useriam/pin_auth/test/unittest/src/ |
H A D | pin_auth_all_in_one_hdi_unit_test.cpp | 238 [&pair](const std::vector<uint64_t> &templateIdList, const std::vector<uint8_t> &frameworkPublicKey, in HWTEST_F() 329 uint64_t scheduleId, const std::vector<uint64_t>& templateIdList, const std::vector<uint8_t> &extraInfo, in HWTEST_F() 336 const std::vector<uint64_t> templateIdList = {1, 2}; in HWTEST_F() local 338 UserAuth::AuthenticateParam{0, templateIdList, std::vector<uint8_t>()}, executeCallback); in HWTEST_F() 381 const std::vector<uint64_t> templateIdList = {1, 2}; in HWTEST_F() local 382 auto ret = allInOneHdi->Delete(templateIdList); in HWTEST_F() 436 std::vector<uint64_t> templateIdList; in HWTEST_F() local 439 auto ret = allInOneHdi.GetProperty(templateIdList, keys, property); in HWTEST_F() 448 std::vector<uint64_t> templateIdList; in HWTEST_F() local 451 auto ret = allInOneHdi.GetProperty(templateIdList, key in HWTEST_F() 466 std::vector<uint64_t> templateIdList; HWTEST_F() local 482 std::vector<uint64_t> templateIdList; HWTEST_F() local [all...] |
/base/useriam/user_auth_framework/frameworks/native/executors/src/framework/ |
H A D | framework_executor_callback.cpp | 99 const std::vector<uint8_t> &publicKey, const std::vector<uint64_t> &templateIdList) in OnMessengerReady() 112 hdi->OnRegisterFinish(templateIdList, publicKey, extraInfo); in OnMessengerReady() 251 std::vector<uint64_t> templateIdList; in ProcessDeleteTemplateCommand() local 253 templateIdList.push_back(templateId); in ProcessDeleteTemplateCommand() 255 ResultCode ret = hdi->Delete(templateIdList); in ProcessDeleteTemplateCommand() 279 std::vector<uint64_t> templateIdList; in ProcessSetCachedTemplates() local 280 bool getTemplateIdListRet = properties.GetUint64ArrayValue(Attributes::ATTR_TEMPLATE_ID_LIST, templateIdList); in ProcessSetCachedTemplates() 283 return hdi->SetCachedTemplates(templateIdList); in ProcessSetCachedTemplates() 332 std::vector<uint64_t> templateIdList; in ProcessGetPropertyCommand() local 333 bool getTemplateIdListRet = conditions->GetUint64ArrayValue(Attributes::ATTR_TEMPLATE_ID_LIST, templateIdList); in ProcessGetPropertyCommand() 98 OnMessengerReady(const std::shared_ptr<ExecutorMessenger> &messenger, const std::vector<uint8_t> &publicKey, const std::vector<uint64_t> &templateIdList) OnMessengerReady() argument [all...] |
/base/useriam/fingerprint_auth/services/inc/ |
H A D | fingerprint_auth_all_in_one_executor_hdi.h | 42 UserAuth::ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList, 51 UserAuth::ResultCode Delete(const std::vector<uint64_t> &templateIdList) override; 55 UserAuth::ResultCode GetProperty(const std::vector<uint64_t> &templateIdList, 57 UserAuth::ResultCode SetCachedTemplates(const std::vector<uint64_t> &templateIdList) override;
|
/base/useriam/pin_auth/services/modules/executors/src/ |
H A D | pin_auth_verifier_hdi.cpp | 53 UserAuth::ResultCode PinAuthVerifierHdi::OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
in OnRegisterFinish() argument 61 int32_t status = verifierProxy_->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo);
in OnRegisterFinish() 111 if (callbackObj == nullptr || param.templateIdList.empty()) {
in Authenticate() 127 int32_t status = verifierProxy_->Authenticate(scheduleId, param.templateIdList, param.extraInfo, callback);
in Authenticate()
|
H A D | pin_auth_all_in_one_hdi.cpp | 61 UserAuth::ResultCode PinAuthAllInOneHdi::OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
in OnRegisterFinish() argument 68 int32_t status = allInOneProxy_->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo);
in OnRegisterFinish() 185 if (param.templateIdList.size() == 0) {
in Authenticate() 189 int32_t status = allInOneProxy_->Authenticate(scheduleId, param.templateIdList,
in Authenticate() 199 UserAuth::ResultCode PinAuthAllInOneHdi::Delete(const std::vector<uint64_t> &templateIdList)
in Delete() argument 205 if (templateIdList.empty()) {
in Delete() 206 IAM_LOGE("templateIdList is empty");
in Delete() 209 int32_t status = allInOneProxy_->Delete(templateIdList[0]);
in Delete() 233 UserAuth::ResultCode PinAuthAllInOneHdi::GetProperty(const std::vector<uint64_t> &templateIdList,
in GetProperty() argument 243 int32_t status = allInOneProxy_->GetProperty(templateIdList, propertyType in GetProperty() [all...] |
/base/useriam/face_auth/services/inc/ |
H A D | face_auth_all_in_one_executor_hdi.h | 42 UserAuth::ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList, 51 UserAuth::ResultCode Delete(const std::vector<uint64_t> &templateIdList) override; 55 UserAuth::ResultCode GetProperty(const std::vector<uint64_t> &templateIdList, 57 UserAuth::ResultCode SetCachedTemplates(const std::vector<uint64_t> &templateIdList) override;
|
/base/useriam/user_auth_framework/services/core/src/ |
H A D | resource_node_impl.cpp | 62 int32_t AddToDriver(std::vector<uint64_t> &templateIdList, std::vector<uint8_t> &fwkPublicKey); 205 int32_t ResourceNodeImpl::AddToDriver(std::vector<uint64_t> &templateIdList, std::vector<uint8_t> &fwkPublicKey) in AddToDriver() argument 225 int32_t result = hdi->AddExecutor(hdiInfo, executorIndex_, fwkPublicKey, templateIdList); in AddToDriver() 252 const std::shared_ptr<ExecutorCallbackInterface> &callback, std::vector<uint64_t> &templateIdList, in MakeNewResource() 261 int32_t result = node->AddToDriver(templateIdList, fwkPublicKey); in MakeNewResource() 251 MakeNewResource(const ExecutorRegisterInfo &info, const std::shared_ptr<ExecutorCallbackInterface> &callback, std::vector<uint64_t> &templateIdList, std::vector<uint8_t> &fwkPublicKey) MakeNewResource() argument
|
/base/useriam/pin_auth/test/fuzztest/services/modules/executors/pinauthcollectorhdi_fuzzer/ |
H A D | pin_auth_collector_hdi_fuzzer.cpp | 69 std::vector<uint64_t> templateIdList; in FuzzOnRegisterFinish() local 72 FillFuzzUint64Vector(parcel, templateIdList); in FuzzOnRegisterFinish() 76 hdi_->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo); in FuzzOnRegisterFinish()
|
/base/useriam/pin_auth/services/modules/executors/inc/ |
H A D | pin_auth_all_in_one_hdi.h | 40 UserAuth::ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
49 UserAuth::ResultCode Delete(const std::vector<uint64_t> &templateIdList) override;
51 UserAuth::ResultCode GetProperty(const std::vector<uint64_t> &templateIdList,
|
/base/useriam/user_auth_framework/frameworks/native/executors/src/async_command/ |
H A D | auth_command.cpp | 46 std::vector<uint64_t> templateIdList; in SendRequest() local 47 bool getTemplateIdListRet = attributes_->GetUint64ArrayValue(Attributes::ATTR_TEMPLATE_ID_LIST, templateIdList); in SendRequest() 70 (AuthenticateParam) { tokenId, templateIdList, extraInfo, endAfterFirstFail, authIntent, userId}, in SendRequest()
|