Home
last modified time | relevance | path

Searched refs:UserAuth (Results 1 – 25 of 514) sorted by relevance

12345678910>>...21

/base/useriam/pin_auth/services/modules/executors/inc/
Dpin_auth_executor_hdi.h32 public UserAuth::IAuthExecutorHdi, public NoCopyable {
37 UserAuth::ResultCode GetExecutorInfo(UserAuth::ExecutorInfo &info) override;
38 UserAuth::ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
40 UserAuth::ResultCode Enroll(uint64_t scheduleId, const UserAuth::EnrollParam &param,
41 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
42 UserAuth::ResultCode Authenticate(uint64_t scheduleId, const UserAuth::AuthenticateParam &param,
43 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
44UserAuth::ResultCode OnSetData(uint64_t scheduleId, uint64_t authSubType, const std::vector<uint8_…
45 UserAuth::ResultCode Identify(uint64_t scheduleId, const UserAuth::IdentifyParam &param,
46 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
[all …]
/base/useriam/face_auth/services/inc/
Dface_auth_executor_hdi.h35 namespace UserAuth = OHOS::UserIam::UserAuth; variable
37 public UserAuth::IAuthExecutorHdi,
43 UserAuth::ResultCode GetExecutorInfo(UserAuth::ExecutorInfo &info) override;
44 UserAuth::ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
46 UserAuth::ResultCode Enroll(uint64_t scheduleId, const UserAuth::EnrollParam &param,
47 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
48 UserAuth::ResultCode Authenticate(uint64_t scheduleId, const UserAuth::AuthenticateParam &param,
49 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
50 UserAuth::ResultCode Identify(uint64_t scheduleId, const UserAuth::IdentifyParam &param,
51 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
[all …]
Dface_auth_executor_callback_hdi.h31 namespace UserAuth = OHOS::UserIam::UserAuth; variable
34 …explicit FaceAuthExecutorCallbackHdi(std::shared_ptr<UserAuth::IExecuteCallback> frameworkCallback…
42 UserIam::UserAuth::ResultCode ConvertResultCode(const int32_t in);
44 std::shared_ptr<UserAuth::IExecuteCallback> frameworkCallback_;
Dscreen_brightness_manager.h32 namespace UserAuth = OHOS::UserIam::UserAuth; variable
41 UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FaceAuthExecutorHdi> executor,
48UserAuth::ResultCode ProcessScreenBrightnessIncreaseBegin(std::shared_ptr<FaceAuthExecutorHdi> exe…
50UserAuth::ResultCode ProcessScreenBrightnessIncreaseEnd(std::shared_ptr<FaceAuthExecutorHdi> execu…
Dface_auth_driver_hdi.h33 namespace UserAuth = OHOS::UserIam::UserAuth; variable
34 class FaceAuthDriverHdi : public UserAuth::IAuthDriverHdi, public NoCopyable {
39 …void GetExecutorList(std::vector<std::shared_ptr<UserAuth::IAuthExecutorHdi>> &executorList) overr…
/base/useriam/fingerprint_auth/services/inc/
Dfingerprint_auth_executor_hdi.h33 namespace UserAuth = OHOS::UserIam::UserAuth; variable
35 public UserAuth::IAuthExecutorHdi,
41 UserAuth::ResultCode GetExecutorInfo(UserAuth::ExecutorInfo &info) override;
42 UserAuth::ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList,
44 UserAuth::ResultCode Enroll(uint64_t scheduleId, const UserAuth::EnrollParam &param,
45 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
46 UserAuth::ResultCode Authenticate(uint64_t scheduleId, const UserAuth::AuthenticateParam &param,
47 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
48 UserAuth::ResultCode Identify(uint64_t scheduleId, const UserAuth::IdentifyParam &param,
49 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) override;
[all …]
Dsensor_illumination_manager.h31 namespace UserAuth = OHOS::UserIam::UserAuth; variable
40 UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
45UserAuth::ResultCode EnableSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
47UserAuth::ResultCode DisableSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executo…
49UserAuth::ResultCode TurnOnSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor,
51UserAuth::ResultCode TurnOffSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executo…
Dfingerprint_auth_executor_callback_hdi.h31 namespace UserAuth = OHOS::UserIam::UserAuth; variable
34 …explicit FingerprintAuthExecutorCallbackHdi(std::shared_ptr<UserAuth::IExecuteCallback> frameworkC…
41 UserIam::UserAuth::ResultCode ConvertResultCode(const int32_t in);
43 std::shared_ptr<UserAuth::IExecuteCallback> frameworkCallback_;
Disensor_illumination_task.h33 …virtual UserAuth::ResultCode EnableSensorIllumination(uint32_t centerX, uint32_t centerY, uint32_t…
35 virtual UserAuth::ResultCode DisableSensorIllumination() = 0;
36 virtual UserAuth::ResultCode TurnOnSensorIllumination() = 0;
37 virtual UserAuth::ResultCode TurnOffSensorIllumination() = 0;
Dfingerprint_auth_driver_hdi.h33 namespace UserAuth = OHOS::UserIam::UserAuth; variable
34 class FingerprintAuthDriverHdi : public UserAuth::IAuthDriverHdi, public NoCopyable {
40 …void GetExecutorList(std::vector<std::shared_ptr<UserAuth::IAuthExecutorHdi>> &executorList) overr…
/base/useriam/user_auth_framework/services/base/inc/
Duser_auth_hdi.h26 namespace UserAuth {
27 using IUserAuthInterface = OHOS::HDI::UserAuth::V1_1::IUserAuthInterface;
29 using HdiAuthType = OHOS::HDI::UserAuth::V1_0::AuthType;
30 using HdiExecutorRole = OHOS::HDI::UserAuth::V1_0::ExecutorRole;
31 using HdiExecutorSecureLevel = OHOS::HDI::UserAuth::V1_0::ExecutorSecureLevel;
32 using HdiPinSubType = OHOS::HDI::UserAuth::V1_0::PinSubType;
33 using HdiScheduleMode = OHOS::HDI::UserAuth::V1_0::ScheduleMode;
34 using HdiExecutorRegisterInfo = OHOS::HDI::UserAuth::V1_0::ExecutorRegisterInfo;
35 using HdiExecutorInfo = OHOS::HDI::UserAuth::V1_0::ExecutorInfo;
36 using HdiScheduleInfoV1_0 = OHOS::HDI::UserAuth::V1_1::ScheduleInfo;
[all …]
/base/useriam/fingerprint_auth/services/src/
Dsensor_illumination_manager.cpp55 UserAuth::ResultCode SensorIlluminationManager::ProcessSaCommand(std::shared_ptr<FingerprintAuthExe… in ProcessSaCommand()
58 IF_FALSE_LOGE_AND_RETURN_VAL(executor != nullptr, UserAuth::GENERAL_ERROR); in ProcessSaCommand()
61 UserAuth::ResultCode result = UserAuth::GENERAL_ERROR; in ProcessSaCommand()
95 UserAuth::ResultCode disableResultCode = taskInProc_->DisableSensorIllumination(); in OnHdiDisconnect()
96 if (disableResultCode != UserAuth::ResultCode::SUCCESS) { in OnHdiDisconnect()
104 UserAuth::ResultCode SensorIlluminationManager::EnableSensorIllumination( in EnableSensorIllumination()
109 return UserAuth::GENERAL_ERROR; in EnableSensorIllumination()
114 return UserAuth::GENERAL_ERROR; in EnableSensorIllumination()
119 IF_FALSE_LOGE_AND_RETURN_VAL(acquireRet == UserAuth::SUCCESS, UserAuth::GENERAL_ERROR); in EnableSensorIllumination()
125 return UserAuth::GENERAL_ERROR; in EnableSensorIllumination()
[all …]
Dfingerprint_auth_executor_callback_hdi.cpp40 std::shared_ptr<UserAuth::IExecuteCallback> frameworkCallback) in FingerprintAuthExecutorCallbackHdi()
48 UserAuth::ResultCode retCode = ConvertResultCode(result); in OnResult()
62 UserAuth::ResultCode FingerprintAuthExecutorCallbackHdi::ConvertResultCode(const int32_t in) in ConvertResultCode()
67 return static_cast<UserAuth::ResultCode>(in); in ConvertResultCode()
70 static const std::map<ResultCode, UserAuth::ResultCode> data = { in ConvertResultCode()
71 { ResultCode::SUCCESS, UserAuth::ResultCode::SUCCESS }, in ConvertResultCode()
72 { ResultCode::FAIL, UserAuth::ResultCode::FAIL }, in ConvertResultCode()
73 { ResultCode::GENERAL_ERROR, UserAuth::ResultCode::GENERAL_ERROR }, in ConvertResultCode()
74 { ResultCode::CANCELED, UserAuth::ResultCode::CANCELED }, in ConvertResultCode()
75 { ResultCode::TIMEOUT, UserAuth::ResultCode::TIMEOUT }, in ConvertResultCode()
[all …]
Dfingerprint_auth_executor_hdi.cpp44 using IamResultCode = UserAuth::ResultCode;
45 using IamExecutorRole = UserAuth::ExecutorRole;
46 using IamExecutorInfo = UserAuth::ExecutorInfo;
47 namespace UserAuth = OHOS::UserIam::UserAuth;
88 IamResultCode FingerprintAuthExecutorHdi::Enroll(uint64_t scheduleId, const UserAuth::EnrollParam &… in Enroll()
89 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Enroll()
104 IamResultCode FingerprintAuthExecutorHdi::Authenticate(uint64_t scheduleId, const UserAuth::Authent… in Authenticate()
105 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Authenticate()
121 IamResultCode FingerprintAuthExecutorHdi::Identify(uint64_t scheduleId, const UserAuth::IdentifyPar… in Identify()
122 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Identify()
[all …]
Dsa_command_manager.cpp67 UserAuth::ResultCode SaCommandManager::ProcessSaCommands(std::shared_ptr<FingerprintAuthExecutorHdi… in ProcessSaCommands()
75 IF_FALSE_LOGE_AND_RETURN_VAL(it != commandId2Processors_.end(), UserAuth::GENERAL_ERROR); in ProcessSaCommands()
77 IF_FALSE_LOGE_AND_RETURN_VAL(processor != nullptr, UserAuth::GENERAL_ERROR); in ProcessSaCommands()
78 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
79 IF_FALSE_LOGE_AND_RETURN_VAL(result == UserAuth::SUCCESS, UserAuth::GENERAL_ERROR); in ProcessSaCommands()
83 return UserAuth::SUCCESS; in ProcessSaCommands()
/base/account/os_account/interfaces/innerkits/account_iam/native/include/
Daccount_iam_info.h37 typedef UserIam::UserAuth::ResultCode ResultCode;
38 typedef UserIam::UserAuth::AuthType AuthType;
39 typedef UserIam::UserAuth::Attributes Attributes;
40 typedef UserIam::UserAuth::AuthTrustLevel AuthTrustLevel;
41 typedef UserIam::UserAuth::AuthenticationCallback AuthenticationCallback;
42 typedef UserIam::UserAuth::GetPropCallback GetPropCallback;
43 typedef UserIam::UserAuth::SetPropCallback SetPropCallback;
44 typedef UserIam::UserAuth::GetPropertyRequest GetPropertyRequest;
45 typedef UserIam::UserAuth::SetPropertyRequest SetPropertyRequest;
46 typedef UserIam::UserAuth::PropertyMode PropertyMode;
[all …]
/base/useriam/face_auth/services/src/
Dface_auth_executor_callback_hdi.cpp39 FaceAuthExecutorCallbackHdi::FaceAuthExecutorCallbackHdi(std::shared_ptr<UserAuth::IExecuteCallback… in FaceAuthExecutorCallbackHdi()
47 UserAuth::ResultCode retCode = ConvertResultCode(result); in OnResult()
61 UserAuth::ResultCode FaceAuthExecutorCallbackHdi::ConvertResultCode(const int32_t in) in ConvertResultCode()
66 return static_cast<UserAuth::ResultCode>(in); in ConvertResultCode()
69 static const std::map<ResultCode, UserAuth::ResultCode> data = { in ConvertResultCode()
70 { ResultCode::SUCCESS, UserAuth::ResultCode::SUCCESS }, in ConvertResultCode()
71 { ResultCode::FAIL, UserAuth::ResultCode::FAIL }, in ConvertResultCode()
72 { ResultCode::GENERAL_ERROR, UserAuth::ResultCode::GENERAL_ERROR }, in ConvertResultCode()
73 { ResultCode::CANCELED, UserAuth::ResultCode::CANCELED }, in ConvertResultCode()
74 { ResultCode::TIMEOUT, UserAuth::ResultCode::TIMEOUT }, in ConvertResultCode()
[all …]
Dscreen_brightness_manager.cpp57 UserAuth::ResultCode ScreenBrightnessManager::ProcessSaCommand(std::shared_ptr<FaceAuthExecutorHdi>… in ProcessSaCommand()
60 IF_FALSE_LOGE_AND_RETURN_VAL(executor != nullptr, UserAuth::GENERAL_ERROR); in ProcessSaCommand()
64 UserAuth::ResultCode result = UserAuth::GENERAL_ERROR; in ProcessSaCommand()
98 UserAuth::ResultCode ScreenBrightnessManager::ProcessScreenBrightnessIncreaseBegin( in ProcessScreenBrightnessIncreaseBegin()
103 return UserAuth::GENERAL_ERROR; in ProcessScreenBrightnessIncreaseBegin()
108 return UserAuth::GENERAL_ERROR; in ProcessScreenBrightnessIncreaseBegin()
113 IF_FALSE_LOGE_AND_RETURN_VAL(acquireRet == UserAuth::SUCCESS, UserAuth::GENERAL_ERROR); in ProcessScreenBrightnessIncreaseBegin()
119 return UserAuth::GENERAL_ERROR; in ProcessScreenBrightnessIncreaseBegin()
130 return UserAuth::SUCCESS; in ProcessScreenBrightnessIncreaseBegin()
133 UserAuth::ResultCode ScreenBrightnessManager::ProcessScreenBrightnessIncreaseEnd( in ProcessScreenBrightnessIncreaseEnd()
[all …]
Dface_auth_executor_hdi.cpp44 using IamResultCode = UserAuth::ResultCode;
45 using IamExecutorRole = UserAuth::ExecutorRole;
46 using IamExecutorInfo = UserAuth::ExecutorInfo;
48 namespace UserAuth = OHOS::UserIam::UserAuth;
88 IamResultCode FaceAuthExecutorHdi::Enroll(uint64_t scheduleId, const UserAuth::EnrollParam &param, in Enroll()
89 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Enroll()
104 IamResultCode FaceAuthExecutorHdi::Authenticate(uint64_t scheduleId, const UserAuth::AuthenticatePa… in Authenticate()
105 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Authenticate()
120 IamResultCode FaceAuthExecutorHdi::Identify(uint64_t scheduleId, const UserAuth::IdentifyParam &par… in Identify()
121 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Identify()
[all …]
Dsa_command_manager.cpp67 UserAuth::ResultCode SaCommandManager::ProcessSaCommands(std::shared_ptr<FaceAuthExecutorHdi> execu… in ProcessSaCommands()
74 IF_FALSE_LOGE_AND_RETURN_VAL(it != commandId2Processors_.end(), UserAuth::GENERAL_ERROR); in ProcessSaCommands()
76 IF_FALSE_LOGE_AND_RETURN_VAL(processor != nullptr, UserAuth::GENERAL_ERROR); in ProcessSaCommands()
77 UserAuth::ResultCode result = processor->ProcessSaCommand(executor, command); in ProcessSaCommands()
78 IF_FALSE_LOGE_AND_RETURN_VAL(result == UserAuth::SUCCESS, UserAuth::GENERAL_ERROR); in ProcessSaCommands()
82 return UserAuth::SUCCESS; in ProcessSaCommands()
/base/useriam/user_auth_framework/frameworks/native/client/
Duser_auth_client_map17 OHOS::UserIam::UserAuth::CoAuthClient::GetInstance*;
18 OHOS::UserIam::UserAuth::UserAuthClientImpl::Instance*;
19 OHOS::UserIam::UserAuth::UserAuthClientImpl::BeginNorthAuthentication*;
20 OHOS::UserIam::UserAuth::UserAuthClientImpl::BeginWidgetAuth*;
21 OHOS::UserIam::UserAuth::UserAuthClientImpl::GetVersion*;
22 OHOS::UserIam::UserAuth::UserAuthClientImpl::GetAvailableStatus*;
23 OHOS::UserIam::UserAuth::UserAuthClientImpl::SetWidgetCallback*;
24 OHOS::UserIam::UserAuth::UserAuthClientImpl::Notice*;
25 OHOS::UserIam::UserAuth::AuthMessage::As*;
26 OHOS::UserIam::UserAuth::UserAuthClient::GetInstance*;
[all …]
/base/useriam/pin_auth/services/modules/executors/src/
Dpin_auth_executor_hdi.cpp31 using IamResultCode = OHOS::UserIam::UserAuth::ResultCode;
32 using IamExecutorRole = UserIam::UserAuth::ExecutorRole;
39 IamResultCode PinAuthExecutorHdi::GetExecutorInfo(UserAuth::ExecutorInfo &info) in GetExecutorInfo()
76 OHOS::HiviewDFX::HiSysEvent::EventType::SECURITY, "EXECUTOR_TYPE", UserAuth::PIN, in OnRegisterFinish()
77 "CHANGE_TYPE", UserAuth::TRACE_DELETE_CREDENTIAL, "TRIGGER_REASON", "Reconciliation"); in OnRegisterFinish()
97 IamResultCode PinAuthExecutorHdi::Enroll(uint64_t scheduleId, const UserAuth::EnrollParam &param, in Enroll()
98 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Enroll()
123 IamResultCode PinAuthExecutorHdi::Authenticate(uint64_t scheduleId, const UserAuth::AuthenticatePar… in Authenticate()
124 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj) in Authenticate()
153 IamResultCode PinAuthExecutorHdi::Identify(uint64_t scheduleId, const UserAuth::IdentifyParam &para… in Identify()
[all …]
Dpin_auth_executor_callback_hdi.cpp32 PinAuthExecutorCallbackHdi::PinAuthExecutorCallbackHdi(std::shared_ptr<UserIam::UserAuth::IExecuteC… in PinAuthExecutorCallbackHdi()
39 UserAuth::ResultCode retCode = ConvertResultCode(code); in OnResult()
73 UserAuth::ResultCode PinAuthExecutorCallbackHdi::ConvertResultCode(const int32_t in) in ConvertResultCode()
75 UserAuth::ResultCode hdiIn = static_cast<UserAuth::ResultCode>(in); in ConvertResultCode()
76 if (hdiIn < UserAuth::ResultCode::SUCCESS || hdiIn > UserAuth::ResultCode::LOCKED) { in ConvertResultCode()
78 return UserAuth::ResultCode::GENERAL_ERROR; in ConvertResultCode()
/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/src/
Dservice_core_fuzzer.cpp23 using FuzzEntryFunc = decltype(OHOS::UserIam::UserAuth::ScheduleNodeFuzzTest);
25 OHOS::UserIam::UserAuth::ScheduleNodeFuzzTest,
26 OHOS::UserIam::UserAuth::ResourceNodePoolFuzzTest,
27 OHOS::UserIam::UserAuth::ResourceNodeFuzzTest,
/base/useriam/user_auth_framework/test/unittest/executors/mock/
Dmock_iauth_executor_hdi.h25 namespace UserAuth {
27 using namespace OHOS::UserIam::UserAuth;
38 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj));
41 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj));
43 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj));
47 const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj));

12345678910>>...21