Home
last modified time | relevance | path

Searched refs:hdi (Results 1 - 25 of 27) sorted by relevance

12

/base/useriam/user_auth_framework/services/base/src/
H A Dhdi_wrapper.cpp28 static sptr<IUserAuthInterface> hdi = nullptr; in GetHdi() local
32 if (hdi != nullptr) { in GetHdi()
33 auto remoteObject = HDI::hdi_objcast<IUserAuthInterface>(hdi); in GetHdi()
35 return hdi; in GetHdi()
39 hdi = IUserAuthInterface::Get(); in GetHdi()
40 return hdi; in GetHdi()
45 auto hdi = GetHdi(); in GetHdiInstance() local
46 if (!hdi) { in GetHdiInstance()
49 return Common::SptrToStdSharedPtr<IUserAuthInterface>(hdi); in GetHdiInstance()
54 auto hdi in GetHdiRemoteObjInstance() local
[all...]
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/os_dependency/idl/passthrough/core/src/
H A Dhuks_core_dynamic_hal_test.cpp78 struct HuksHdi *hdi = nullptr; in HWTEST_F() local
79 int32_t ret = HksCreateHuksHdiDevice(&hdi); in HWTEST_F()
81 ret = HksCreateHuksHdiDevice(&hdi); in HWTEST_F()
83 (void)HksDestroyHuksHdiDevice(&hdi); in HWTEST_F()
84 (void)HksDestroyHuksHdiDevice(&hdi); in HWTEST_F()
95 struct HuksHdi *hdi = nullptr; in HWTEST_F() local
96 int32_t ret = HksCreateHuksHdiDevice(&hdi); in HWTEST_F()
98 ret = HksDestroyHuksHdiDevice(&hdi); in HWTEST_F()
110 struct HuksHdi *hdi = nullptr; in HWTEST_F() local
111 int32_t ret = HksDestroyHuksHdiDevice(&hdi); in HWTEST_F()
[all...]
/base/useriam/user_auth_framework/services/core/src/
H A Duser_idm_database_impl.cpp35 auto hdi = HdiWrapper::GetHdiInstance(); in GetSecUserInfo() local
36 if (hdi == nullptr) { in GetSecUserInfo()
37 IAM_LOGE("bad hdi"); in GetSecUserInfo()
44 int32_t ret = hdi->GetUserInfo(userId, secureUid, pinSubType, enrolledInfoVector); in GetSecUserInfo()
74 auto hdi = HdiWrapper::GetHdiInstance(); in GetCredentialInfo() local
75 if (hdi == nullptr) { in GetCredentialInfo()
76 IAM_LOGE("bad hdi"); in GetCredentialInfo()
81 int32_t ret = hdi->GetCredential(userId, static_cast<HdiAuthType>(authType), hdiInfos); in GetCredentialInfo()
102 auto hdi = HdiWrapper::GetHdiInstance(); in DeleteCredentialInfo() local
103 if (hdi in DeleteCredentialInfo()
128 auto hdi = HdiWrapper::GetHdiInstance(); DeleteUser() local
157 auto hdi = HdiWrapper::GetHdiInstance(); DeleteUserEnforce() local
187 auto hdi = HdiWrapper::GetHdiInstance(); GetAllExtUserInfo() local
[all...]
H A Duser_idm_session_controller_impl.cpp31 auto hdi = HdiWrapper::GetHdiInstance(); in OpenSession() local
32 if (hdi == nullptr) { in OpenSession()
33 IAM_LOGE("bad hdi"); in OpenSession()
41 int32_t ret = hdi->OpenSession(userId, challenge); in OpenSession()
52 auto hdi = HdiWrapper::GetHdiInstance(); in CloseSession() local
53 if (hdi == nullptr) { in CloseSession()
54 IAM_LOGE("bad hdi"); in CloseSession()
58 int32_t ret = hdi->CloseSession(userId); in CloseSession()
H A Didentification_impl.cpp72 auto hdi = HdiWrapper::GetHdiInstance(); in Start() local
73 if (!hdi) { in Start()
74 IAM_LOGE("bad hdi"); in Start()
79 IamHitraceHelper traceHelper("hdi BeginIdentification"); in Start()
81 hdi->BeginIdentification(contextId_, static_cast<HdiAuthType>(authType_), challenge_, executorIndex_, info); in Start()
83 IAM_LOGE("hdi BeginAuthentication failed, err is %{public}d", result); in Start()
105 auto hdi = HdiWrapper::GetHdiInstance(); in Update() local
106 if (!hdi) { in Update()
107 IAM_LOGE("bad hdi"); in Update()
112 auto result = hdi in Update()
133 auto hdi = HdiWrapper::GetHdiInstance(); Cancel() local
[all...]
H A Dauthentication_impl.cpp93 auto hdi = HdiWrapper::GetHdiInstance(); in Start() local
94 if (!hdi) { in Start()
95 IAM_LOGE("bad hdi"); in Start()
114 IamHitraceHelper traceHelper("hdi BeginAuthentication"); in Start()
115 auto result = hdi->BeginAuthentication(contextId_, param, infos); in Start()
117 IAM_LOGE("hdi BeginAuthentication failed, err is %{public}d", result); in Start()
122 IAM_LOGE("hdi BeginAuthentication failed, infos is empty"); in Start()
144 auto hdi = HdiWrapper::GetHdiInstance(); in Update() local
145 if (!hdi) { in Update()
146 IAM_LOGE("bad hdi"); in Update()
190 auto hdi = HdiWrapper::GetHdiInstance(); Cancel() local
[all...]
H A Denrollment_impl.cpp94 auto hdi = HdiWrapper::GetHdiInstance(); in Start() local
95 if (!hdi) { in Start()
96 IAM_LOGE("bad hdi"); in Start()
120 IamHitraceHelper traceHelper("hdi BeginEnrollment"); in Start()
121 auto result = hdi->BeginEnrollment(authToken_, param, info); in Start()
123 IAM_LOGE("hdi BeginEnrollment failed, err is %{public}d", result); in Start()
179 auto hdi = HdiWrapper::GetHdiInstance(); in Update() local
180 if (!hdi) { in Update()
181 IAM_LOGE("bad hdi"); in Update()
186 auto result = hdi in Update()
243 auto hdi = HdiWrapper::GetHdiInstance(); Cancel() local
[all...]
H A Dresource_node_impl.cpp219 auto hdi = HdiWrapper::GetHdiInstance(); in AddToDriver() local
220 if (!hdi) { in AddToDriver()
221 IAM_LOGE("bad hdi"); in AddToDriver()
225 int32_t result = hdi->AddExecutor(hdiInfo, executorIndex_, fwkPublicKey, templateIdList); in AddToDriver()
227 IAM_LOGE("hdi AddExecutor failed with code %{public}d", result); in AddToDriver()
231 IAM_LOGI("hdi AddExecutor ****%{public}hx success", static_cast<uint16_t>(executorIndex_)); in AddToDriver()
237 auto hdi = HdiWrapper::GetHdiInstance(); in DeleteExecutorFromDriver() local
238 if (!hdi) { in DeleteExecutorFromDriver()
239 IAM_LOGE("bad hdi"); in DeleteExecutorFromDriver()
243 auto result = hdi in DeleteExecutorFromDriver()
[all...]
H A Dremote_msg_util.cpp180 auto hdi = HdiWrapper::GetHdiInstance(); in GetQueryExecutorInfoReply() local
181 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, false); in GetQueryExecutorInfoReply()
185 int32_t hdiRet = hdi->GetSignedExecutorInfo(authTypes, executorRole, remoteUdid, signedExecutorInfo); in GetQueryExecutorInfoReply()
/base/useriam/pin_auth/services/modules/inputters/src/
H A Di_inputer_data_impl.cpp28 IInputerDataImpl::IInputerDataImpl(uint64_t scheduleId, std::shared_ptr<PinAuthAllInOneHdi> hdi) in IInputerDataImpl() argument
29 : scheduleId_(scheduleId), allInOneHdi_(hdi), collectorHdi_(nullptr) {} in IInputerDataImpl()
31 IInputerDataImpl::IInputerDataImpl(uint64_t scheduleId, std::shared_ptr<PinAuthCollectorHdi> hdi) in IInputerDataImpl() argument
32 : scheduleId_(scheduleId), allInOneHdi_(nullptr), collectorHdi_(hdi) {} in IInputerDataImpl()
53 IAM_LOGE("no hdi exist"); in OnSetData()
/base/useriam/user_auth_framework/frameworks/native/executors/src/framework/
H A Dframework_executor_callback.cpp108 auto hdi = executor->GetExecutorHdi(); in OnMessengerReady() local
109 IF_FALSE_LOGE_AND_RETURN(hdi != nullptr); in OnMessengerReady()
112 hdi->OnRegisterFinish(templateIdList, publicKey, extraInfo); in OnMessengerReady()
166 auto hdi = executor->GetExecutorHdi(); in OnSendData() local
167 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in OnSendData()
168 return hdi->SendMessage(scheduleId, srcRole, extraInfo); in OnSendData()
233 auto hdi = executor->GetExecutorHdi(); in ProcessCancelCommand() local
234 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in ProcessCancelCommand()
235 return hdi->Cancel(scheduleId); in ProcessCancelCommand()
246 auto hdi in ProcessDeleteTemplateCommand() local
276 auto hdi = executor->GetExecutorHdi(); ProcessSetCachedTemplates() local
295 auto hdi = executor->GetExecutorHdi(); ProcessNotifyExecutorReady() local
329 auto hdi = executor->GetExecutorHdi(); ProcessGetPropertyCommand() local
[all...]
/base/useriam/user_auth_framework/services/ipc/src/
H A Dhdi_message_callback_service.cpp40 auto hdi = HdiWrapper::GetHdiInstance(); in OnHdiConnect() local
41 IF_FALSE_LOGE_AND_RETURN(hdi != nullptr); in OnHdiConnect()
43 int32_t ret = hdi->RegisterMessageCallback(GetInstance()); in OnHdiConnect()
H A Duser_auth_service.cpp221 auto hdi = HdiWrapper::GetHdiInstance(); in GetAvailableStatusInner() local
222 if (hdi == nullptr) { in GetAvailableStatusInner()
223 IAM_LOGE("hdi interface is nullptr"); in GetAvailableStatusInner()
227 int32_t result = hdi->GetAvailableStatus(userId, authType, authTrustLevel, checkRet); in GetAvailableStatusInner()
229 IAM_LOGE("hdi GetAvailableStatus failed"); in GetAvailableStatusInner()
585 auto hdi = HdiWrapper::GetHdiInstance(); in PrepareRemoteAuthInner() local
586 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, GENERAL_ERROR); in PrepareRemoteAuthInner()
588 int32_t ret = hdi->PrepareRemoteAuth(udid); in PrepareRemoteAuthInner()
1102 auto hdi = HdiWrapper::GetHdiInstance(); in GetEnrolledState() local
1103 if (hdi in GetEnrolledState()
1217 auto hdi = HdiWrapper::GetHdiInstance(); SetGlobalConfigParam() local
[all...]
H A Dco_auth_service.cpp230 auto hdi = HdiWrapper::GetHdiRemoteObjInstance(); in AuthServiceInit() local
231 if (hdi) { in AuthServiceInit()
232 hdi->AddDeathRecipient(new (std::nothrow) IpcCommon::PeerDeathRecipient([]() { in AuthServiceInit()
/base/useriam/user_auth_framework/frameworks/native/executors/src/
H A Dexecutor.cpp39 auto hdi = executorHdi_; in Executor() local
40 IF_FALSE_LOGE_AND_RETURN(hdi != nullptr); in Executor()
42 IF_FALSE_LOGE_AND_RETURN(hdi->GetExecutorInfo(executorInfo) == ResultCode::SUCCESS); in Executor()
57 // register resource pool depends on hdi connect, after hdi connect re-register resource pool in OnHdiConnect()
76 auto hdi = GetExecutorHdi(); in OnFrameworkReady() local
77 if (hdi == nullptr) { in OnFrameworkReady()
81 ResultCode ret = hdi->GetExecutorInfo(executorInfo); in OnFrameworkReady()
/base/useriam/pin_auth/services/modules/inputters/inc/
H A Di_inputer_data_impl.h32 IInputerDataImpl(uint64_t scheduleId, std::shared_ptr<PinAuthAllInOneHdi> hdi);
33 IInputerDataImpl(uint64_t scheduleId, std::shared_ptr<PinAuthCollectorHdi> hdi);
/base/useriam/user_auth_framework/frameworks/native/executors/src/async_command/
H A Dcustom_command.cpp47 auto hdi = GetExecutorHdi(); in SendRequest() local
48 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in SendRequest()
59 ResultCode ret = hdi->SendCommand(static_cast<UserAuth::PropertyMode>(commandId), extraInfo, shared_from_this()); in SendRequest()
H A Dcollect_command.cpp43 auto hdi = GetExecutorHdi(); in SendRequest() local
44 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in SendRequest()
54 IamHitraceHelper traceHelper("hdi collect"); in SendRequest()
55 ResultCode ret = hdi->Collect(scheduleId_, (CollectParam) { 0, collectorTokenId, extraInfo }, shared_from_this()); in SendRequest()
H A Didentify_command.cpp41 auto hdi = GetExecutorHdi(); in SendRequest() local
42 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in SendRequest()
52 IamHitraceHelper traceHelper("hdi Identify"); in SendRequest()
53 ResultCode ret = hdi->Identify(scheduleId_, (IdentifyParam) { tokenId, extraInfo }, shared_from_this()); in SendRequest()
H A Dauth_command.cpp43 auto hdi = GetExecutorHdi(); in SendRequest() local
44 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in SendRequest()
68 IamHitraceHelper traceHelper("hdi Authenticate"); in SendRequest()
69 ResultCode ret = hdi->Authenticate(scheduleId_, in SendRequest()
H A Denroll_command.cpp45 auto hdi = GetExecutorHdi(); in SendRequest() local
46 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in SendRequest()
60 IamHitraceHelper traceHelper("hdi Enroll"); in SendRequest()
61 ResultCode ret = hdi->Enroll(scheduleId_, (EnrollParam) { tokenId, extraInfo, userId}, shared_from_this()); in SendRequest()
/base/useriam/pin_auth/test/fuzztest/frameworks/ipc/inputergetdataproxy_fuzzer/
H A Dinputer_get_data_proxy_fuzzer.cpp56 auto hdi = Common::MakeShared<PinAuthAllInOneHdi>(nullptr); in InputerGetDataProxyFuzzTest() local
57 sptr<IInputerDataImpl> inputerSetData(new (std::nothrow) IInputerDataImpl(SCHEDULE_ID, hdi)); in InputerGetDataProxyFuzzTest()
/base/useriam/face_auth/services/src/
H A Dface_auth_service.cpp131 for (auto hdi : FACE_AUTH_DRIVER_HDIS) { in SetBufferProducer()
132 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, FACE_AUTH_ERROR); in SetBufferProducer()
133 int ret = hdi->SetBufferProducer(producer); in SetBufferProducer()
/base/useriam/user_auth_framework/services/context/src/
H A Dauth_widget_helper.cpp134 auto hdi = HdiWrapper::GetHdiInstance(); in CheckValidSolution() local
135 if (hdi == nullptr) { in CheckValidSolution()
136 IAM_LOGE("hdi interface is nullptr"); in CheckValidSolution()
145 int32_t result = hdi->GetValidSolution(userId, inputAuthType, inputAtl, validTypes); in CheckValidSolution()
192 auto hdi = HdiWrapper::GetHdiInstance(); in CheckReuseUnlockResult() local
193 if (hdi == nullptr) { in CheckReuseUnlockResult()
194 IAM_LOGE("hdi interface is nullptr"); in CheckReuseUnlockResult()
212 int32_t result = hdi->CheckReuseUnlockResult(unlockParam, reuseResultInfo); in CheckReuseUnlockResult()
H A Dremote_auth_invoker_context.cpp341 auto hdi = HdiWrapper::GetHdiInstance(); in ProcAuthResultMsgInner() local
342 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in ProcAuthResultMsgInner()
344 int32_t hdiRet = hdi->GetAuthResultFromMessage(verifierUdid_, remoteAuthResult, authResultInfo); in ProcAuthResultMsgInner()

Completed in 12 milliseconds

12