/base/useriam/fingerprint_auth/services/src/ |
D | fingerprint_auth_executor_callback_hdi.cpp | 48 UserAuth::ResultCode retCode = ConvertResultCode(result); in OnResult() 62 UserAuth::ResultCode FingerprintAuthExecutorCallbackHdi::ConvertResultCode(const int32_t in) in ConvertResultCode() 64 ResultCode hdiIn = static_cast<ResultCode>(in); in ConvertResultCode() 65 if (hdiIn > ResultCode::VENDOR_RESULT_CODE_BEGIN) { 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() [all …]
|
D | sensor_illumination_manager.cpp | 55 UserAuth::ResultCode SensorIlluminationManager::ProcessSaCommand(std::shared_ptr<FingerprintAuthExe… 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() 135 UserAuth::ResultCode enableResultCode = taskInProc->EnableSensorIllumination( in EnableSensorIllumination() 138 …IF_FALSE_LOGE_AND_RETURN_VAL(enableResultCode == UserAuth::ResultCode::SUCCESS, UserAuth::GENERAL_… in EnableSensorIllumination() 146 UserAuth::ResultCode SensorIlluminationManager::DisableSensorIllumination( in DisableSensorIllumination() 158 UserAuth::ResultCode disableResultCode = taskInProc_->DisableSensorIllumination(); in DisableSensorIllumination() 159 if (disableResultCode != UserAuth::ResultCode::SUCCESS) { in DisableSensorIllumination() [all …]
|
/base/useriam/face_auth/services/src/ |
D | face_auth_executor_callback_hdi.cpp | 47 UserAuth::ResultCode retCode = ConvertResultCode(result); in OnResult() 61 UserAuth::ResultCode FaceAuthExecutorCallbackHdi::ConvertResultCode(const int32_t in) in ConvertResultCode() 63 ResultCode hdiIn = static_cast<ResultCode>(in); in ConvertResultCode() 64 if (hdiIn > ResultCode::VENDOR_RESULT_CODE_BEGIN) { 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() [all …]
|
/base/useriam/user_auth_framework/frameworks/native/executors/src/framework/ |
D | framework_executor_callback.cpp | 55 ResultCode FrameworkExecutorCallback::OnBeginExecuteInner(uint64_t scheduleId, std::vector<uint8_t>… in OnBeginExecuteInner() 62 IF_FALSE_LOGE_AND_RETURN_VAL(getScheduleModeRet == true, ResultCode::GENERAL_ERROR); in OnBeginExecuteInner() 65 ResultCode ret = ResultCode::GENERAL_ERROR; in OnBeginExecuteInner() 89 ResultCode FrameworkExecutorCallback::OnEndExecuteInner(uint64_t scheduleId, const Attributes &cons… in OnEndExecuteInner() 91 ResultCode ret = ProcessCancelCommand(scheduleId); in OnEndExecuteInner() 118 ResultCode FrameworkExecutorCallback::OnSetPropertyInner(const Attributes &properties) in OnSetPropertyInner() 123 IF_FALSE_LOGE_AND_RETURN_VAL(getAuthPropertyModeRet == true, ResultCode::GENERAL_ERROR); in OnSetPropertyInner() 125 ResultCode ret; in OnSetPropertyInner() 148 ResultCode FrameworkExecutorCallback::OnGetPropertyInner(std::shared_ptr<Attributes> conditions, in OnGetPropertyInner() 152 IF_FALSE_LOGE_AND_RETURN_VAL(conditions != nullptr, ResultCode::GENERAL_ERROR); in OnGetPropertyInner() [all …]
|
/base/useriam/face_auth/test/unittest/ |
D | face_auth_executor_callback_hdi_unit_test.cpp | 34 using IamResultCode = OHOS::UserIam::UserAuth::ResultCode; 78 …static const std::map<ResultCode, IamResultCode> data = {{ResultCode::SUCCESS, IamResultCode::SUCC… 79 …{ResultCode::FAIL, IamResultCode::FAIL}, {ResultCode::GENERAL_ERROR, IamResultCode::GENERAL_ERROR}, 80 … {ResultCode::CANCELED, IamResultCode::CANCELED}, {ResultCode::TIMEOUT, IamResultCode::TIMEOUT}, 81 {ResultCode::BUSY, IamResultCode::BUSY}, 82 {ResultCode::INVALID_PARAMETERS, IamResultCode::INVALID_PARAMETERS}, 83 {ResultCode::LOCKED, IamResultCode::LOCKED}, 84 {ResultCode::NOT_ENROLLED, IamResultCode::NOT_ENROLLED}, 85 {ResultCode::OPERATION_NOT_SUPPORT, IamResultCode::FAIL}, 86 … {static_cast<ResultCode>(ResultCode::VENDOR_RESULT_CODE_BEGIN - 1), IamResultCode::GENERAL_ERROR}, [all …]
|
/base/useriam/fingerprint_auth/test/unittest/ |
D | fingerprint_auth_executor_callback_hdi_unit_test.cpp | 34 using IamResultCode = OHOS::UserIam::UserAuth::ResultCode; 78 …static const std::map<ResultCode, IamResultCode> data = {{ResultCode::SUCCESS, IamResultCode::SUCC… 79 …{ResultCode::FAIL, IamResultCode::FAIL}, {ResultCode::GENERAL_ERROR, IamResultCode::GENERAL_ERROR}, 80 … {ResultCode::CANCELED, IamResultCode::CANCELED}, {ResultCode::TIMEOUT, IamResultCode::TIMEOUT}, 81 {ResultCode::BUSY, IamResultCode::BUSY}, 82 {ResultCode::INVALID_PARAMETERS, IamResultCode::INVALID_PARAMETERS}, 83 {ResultCode::LOCKED, IamResultCode::LOCKED}, 84 {ResultCode::NOT_ENROLLED, IamResultCode::NOT_ENROLLED}, 85 {ResultCode::OPERATION_NOT_SUPPORT, IamResultCode::FAIL}, 86 … {static_cast<ResultCode>(ResultCode::VENDOR_RESULT_CODE_BEGIN - 1), IamResultCode::GENERAL_ERROR}, [all …]
|
/base/useriam/pin_auth/services/modules/executors/inc/ |
D | pin_auth_executor_hdi.h | 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 ¶m, 42 UserAuth::ResultCode Authenticate(uint64_t scheduleId, const UserAuth::AuthenticateParam ¶m, 44 …UserAuth::ResultCode OnSetData(uint64_t scheduleId, uint64_t authSubType, const std::vector<uint8_… 45 UserAuth::ResultCode Identify(uint64_t scheduleId, const UserAuth::IdentifyParam ¶m, 47 UserAuth::ResultCode Delete(const std::vector<uint64_t> &templateIdList) override; 48 UserAuth::ResultCode Cancel(uint64_t scheduleId) override; 49 …UserAuth::ResultCode SendCommand(UserAuth::PropertyMode commandId, const std::vector<uint8_t> &ext… 51 UserAuth::ResultCode GetProperty(const std::vector<uint64_t> &templateIdList, [all …]
|
/base/useriam/fingerprint_auth/services_ex/src/ |
D | sensor_illumination_task.cpp | 58 ResultCode GetBackgroundAlpha(int32_t currScreenBrightness, uint32_t &outAlpha) in GetBackgroundAlpha() 76 return ResultCode::SUCCESS; in GetBackgroundAlpha() 79 return ResultCode::GENERAL_ERROR; in GetBackgroundAlpha() 105 ResultCode DrawCanvas(std::shared_ptr<RSPaintFilterCanvas> canvas, const CanvasParam ¶m) in DrawCanvas() 107 IF_FALSE_LOGE_AND_RETURN_VAL(canvas != nullptr, ResultCode::GENERAL_ERROR); in DrawCanvas() 129 return ResultCode::SUCCESS; in DrawCanvas() 160 ResultCode SensorIlluminationTask::EnableSensorIllumination(uint32_t centerX, uint32_t centerY, uin… in EnableSensorIllumination() 169 IF_FALSE_LOGE_AND_RETURN_VAL(rsSurfaceNode != nullptr, ResultCode::GENERAL_ERROR); in EnableSensorIllumination() 172 IF_FALSE_LOGE_AND_RETURN_VAL(defaultDisplay != nullptr, ResultCode::GENERAL_ERROR); in EnableSensorIllumination() 180 IF_FALSE_LOGE_AND_RETURN_VAL(rsSurface != nullptr, ResultCode::GENERAL_ERROR); in EnableSensorIllumination() [all …]
|
D | screen_state_monitor.cpp | 41 using ResultCode = UserAuth::ResultCode; typedef 59 static ResultCode Subscribe(); 74 ResultCode EventSubscriber::Subscribe() in Subscribe() 78 IF_FALSE_LOGE_AND_RETURN_VAL(instance != NULL, ResultCode::GENERAL_ERROR); in Subscribe() 83 return ResultCode::GENERAL_ERROR; in Subscribe() 86 return ResultCode::SUCCESS; in Subscribe() 133 ResultCode result = EventSubscriber::Subscribe(); in Subscribe() 134 IF_FALSE_LOGE_AND_RETURN(result == ResultCode::SUCCESS); in Subscribe()
|
/base/useriam/face_auth/services/inc/ |
D | face_auth_executor_hdi.h | 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 ¶m, 48 UserAuth::ResultCode Authenticate(uint64_t scheduleId, const UserAuth::AuthenticateParam ¶m, 50 UserAuth::ResultCode Identify(uint64_t scheduleId, const UserAuth::IdentifyParam ¶m, 52 UserAuth::ResultCode Delete(const std::vector<uint64_t> &templateIdList) override; 53 UserAuth::ResultCode Cancel(uint64_t scheduleId) override; 54 …UserAuth::ResultCode SendCommand(UserAuth::PropertyMode commandId, const std::vector<uint8_t> &ext… 56 UserAuth::ResultCode GetProperty(const std::vector<uint64_t> &templateIdList, 58 UserAuth::ResultCode SetCachedTemplates(const std::vector<uint64_t> &templateIdList) override; [all …]
|
/base/useriam/fingerprint_auth/services/inc/ |
D | fingerprint_auth_executor_hdi.h | 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 ¶m, 46 UserAuth::ResultCode Authenticate(uint64_t scheduleId, const UserAuth::AuthenticateParam ¶m, 48 UserAuth::ResultCode Identify(uint64_t scheduleId, const UserAuth::IdentifyParam ¶m, 50 UserAuth::ResultCode Delete(const std::vector<uint64_t> &templateIdList) override; 51 UserAuth::ResultCode Cancel(uint64_t scheduleId) override; 52 …UserAuth::ResultCode SendCommand(UserAuth::PropertyMode commandId, const std::vector<uint8_t> &ext… 54 UserAuth::ResultCode GetProperty(const std::vector<uint64_t> &templateIdList, 56 UserAuth::ResultCode SetCachedTemplates(const std::vector<uint64_t> &templateIdList) override; [all …]
|
D | isensor_illumination_task.h | 33 …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;
|
D | sensor_illumination_manager.h | 40 UserAuth::ResultCode ProcessSaCommand(std::shared_ptr<FingerprintAuthExecutorHdi> executor, 45 …UserAuth::ResultCode EnableSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor, 47 …UserAuth::ResultCode DisableSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executo… 49 …UserAuth::ResultCode TurnOnSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executor, 51 …UserAuth::ResultCode TurnOffSensorIllumination(std::shared_ptr<FingerprintAuthExecutorHdi> executo…
|
/base/useriam/user_auth_framework/frameworks/native/executors/src/async_command/ |
D | custom_command.cpp | 42 ResultCode CustomCommand::SendRequest() in SendRequest() 45 IF_FALSE_LOGE_AND_RETURN_VAL(attributes_ != nullptr, ResultCode::GENERAL_ERROR); in SendRequest() 48 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in SendRequest() 53 IF_FALSE_LOGE_AND_RETURN_VAL(getAuthPropertyModeRet == true, ResultCode::GENERAL_ERROR); in SendRequest() 57 IF_FALSE_LOGE_AND_RETURN_VAL(getExtraInfoRet == true, ResultCode::GENERAL_ERROR); in SendRequest() 59 …ResultCode ret = hdi->SendCommand(static_cast<UserAuth::PropertyMode>(commandId), extraInfo, share… in SendRequest() 60 if (ret != ResultCode::SUCCESS) { in SendRequest() 67 return ResultCode::SUCCESS; in SendRequest() 70 void CustomCommand::OnResultInner(ResultCode result, const std::vector<uint8_t> &extraInfo) in OnResultInner() 81 ResultCode CustomCommand::GetResult() in GetResult() [all …]
|
D | auth_command.cpp | 38 ResultCode AuthCommand::SendRequest() in SendRequest() 41 IF_FALSE_LOGE_AND_RETURN_VAL(attributes_ != nullptr, ResultCode::GENERAL_ERROR); in SendRequest() 44 IF_FALSE_LOGE_AND_RETURN_VAL(hdi != nullptr, ResultCode::GENERAL_ERROR); in SendRequest() 48 IF_FALSE_LOGE_AND_RETURN_VAL(getTemplateIdListRet == true, ResultCode::GENERAL_ERROR); in SendRequest() 51 IF_FALSE_LOGE_AND_RETURN_VAL(getTokenIdRet == true, ResultCode::GENERAL_ERROR); in SendRequest() 54 IF_FALSE_LOGE_AND_RETURN_VAL(getEndAfterFirstFailRet == true, ResultCode::GENERAL_ERROR); in SendRequest() 57 IF_FALSE_LOGE_AND_RETURN_VAL(getExtraInfoRet == true, ResultCode::GENERAL_ERROR); in SendRequest() 60 ResultCode ret = hdi->Authenticate(scheduleId_, in SendRequest() 66 void AuthCommand::OnResultInner(ResultCode result, const std::vector<uint8_t> &extraInfo) in OnResultInner()
|
/base/useriam/user_auth_framework/frameworks/native/executors/include/framework/ |
D | framework_executor_callback.h | 49 ResultCode OnBeginExecuteInner(uint64_t scheduleId, std::vector<uint8_t> &publicKey, 51 ResultCode OnEndExecuteInner(uint64_t scheduleId, const Attributes &consumerAttr); 52 ResultCode OnSetPropertyInner(const Attributes &properties); 53 ResultCode OnGetPropertyInner(std::shared_ptr<Attributes> conditions, 55 ResultCode ProcessEnrollCommand(uint64_t scheduleId, const Attributes &properties); 56 ResultCode ProcessAuthCommand(uint64_t scheduleId, const Attributes &properties); 57 ResultCode ProcessIdentifyCommand(uint64_t scheduleId, const Attributes &properties); 58 ResultCode ProcessCancelCommand(uint64_t scheduleId); 59 ResultCode ProcessDeleteTemplateCommand(const Attributes &properties); 60 ResultCode ProcessSetCachedTemplates(const Attributes &properties); [all …]
|
/base/useriam/user_auth_framework/interfaces/inner_api/iam_executor/ |
D | iam_executor_iauth_executor_hdi.h | 56 virtual ResultCode GetExecutorInfo(ExecutorInfo &info) = 0; 66 virtual ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList, 77 virtual ResultCode Enroll(uint64_t scheduleId, const EnrollParam ¶m, 88 virtual ResultCode Authenticate(uint64_t scheduleId, const AuthenticateParam ¶m, 99 virtual ResultCode Identify(uint64_t scheduleId, const IdentifyParam ¶m, 108 virtual ResultCode Delete(const std::vector<uint64_t> &templateIdList) = 0; 116 virtual ResultCode Cancel(uint64_t scheduleId) = 0; 126 virtual ResultCode SendCommand(PropertyMode commandId, const std::vector<uint8_t> &extraInfo, 137 virtual ResultCode GetProperty(const std::vector<uint64_t> &templateIdList, 146 virtual ResultCode SetCachedTemplates(const std::vector<uint64_t> &templateIdList) = 0;
|
D | iam_executor_iexecute_callback.h | 37 using ResultCode = UserIam::UserAuth::ResultCode; 55 virtual void OnResult(ResultCode result, const std::vector<uint8_t> &extraInfo) = 0; 62 virtual void OnResult(ResultCode result) = 0;
|
/base/useriam/user_auth_framework/test/fuzztest/executors/userauthdrivermanager_fuzzer/ |
D | user_auth_driver_manager_fuzzer.cpp | 44 ResultCode GetExecutorInfo(ExecutorInfo &executorInfo) override in GetExecutorInfo() 50 return ResultCode::SUCCESS; in GetExecutorInfo() 58 return static_cast<ResultCode>(fuzzParcel_->ReadInt32()); in GetExecutorInfo() 61 ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() 66 return ResultCode::GENERAL_ERROR; in OnRegisterFinish() 68 return static_cast<ResultCode>(fuzzParcel_->ReadInt32()); in OnRegisterFinish() 71 ResultCode Enroll(uint64_t scheduleId, const EnrollParam ¶m, in Enroll() 76 return ResultCode::GENERAL_ERROR; in Enroll() 78 return static_cast<ResultCode>(fuzzParcel_->ReadInt32()); in Enroll() 81 ResultCode Authenticate(uint64_t scheduleId, const AuthenticateParam ¶m, in Authenticate() [all …]
|
/base/useriam/user_auth_framework/test/unittest/executors/mock/ |
D | mock_iauth_executor_hdi.h | 33 MOCK_METHOD1(GetExecutorInfo, ResultCode(ExecutorInfo &info)); 35 OnRegisterFinish, ResultCode(const std::vector<uint64_t> &templateIdList, 37 MOCK_METHOD3(Enroll, ResultCode(uint64_t scheduleId, const EnrollParam ¶m, 40 ResultCode(uint64_t scheduleId, const AuthenticateParam ¶m, 42 MOCK_METHOD3(Identify, ResultCode(uint64_t scheduleId, const IdentifyParam ¶m, 44 MOCK_METHOD1(Delete, ResultCode(const std::vector<uint64_t> &templateIdList)); 45 MOCK_METHOD1(Cancel, ResultCode(uint64_t scheduleId)); 46 …MOCK_METHOD3(SendCommand, ResultCode(PropertyMode commandId, const std::vector<uint8_t> &extraInfo, 48 MOCK_METHOD3(GetProperty, ResultCode (const std::vector<uint64_t> &templateIdList, 50 MOCK_METHOD1(SetCachedTemplates, ResultCode(const std::vector<uint64_t> &templateIdList));
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
D | user_auth_callback_v6.cpp | 37 {ResultCode::SUCCESS, AuthenticationResult::SUCCESS}, 38 {ResultCode::FAIL, AuthenticationResult::COMPARE_FAILURE}, 39 {ResultCode::GENERAL_ERROR, AuthenticationResult::GENERAL_ERROR}, 40 {ResultCode::CANCELED, AuthenticationResult::CANCELED}, 41 {ResultCode::TIMEOUT, AuthenticationResult::TIMEOUT}, 42 {ResultCode::TYPE_NOT_SUPPORT, AuthenticationResult::NO_SUPPORT}, 43 {ResultCode::TRUST_LEVEL_NOT_SUPPORT, AuthenticationResult::NO_SUPPORT}, 44 {ResultCode::BUSY, AuthenticationResult::BUSY}, 45 {ResultCode::INVALID_PARAMETERS, AuthenticationResult::INVALID_PARAMETERS}, 46 {ResultCode::LOCKED, AuthenticationResult::LOCKED}, [all …]
|
/base/useriam/user_auth_framework/frameworks/native/executors/include/async_command/ |
D | custom_command.h | 30 ResultCode GetResult(); 33 ResultCode SendRequest() override; 35 void OnResultInner(ResultCode result, const std::vector<uint8_t> &extraInfo) override; 38 void SetResult(ResultCode resultCode); 40 ResultCode result_ = ResultCode::GENERAL_ERROR;
|
/base/useriam/user_auth_framework/test/fuzztest/executors/userauthexecutor_fuzzer/ |
D | user_auth_executor_fuzzer.cpp | 49 ResultCode GetExecutorInfo(ExecutorInfo &executorInfo) override in GetExecutorInfo() 55 return ResultCode::SUCCESS; in GetExecutorInfo() 63 return static_cast<ResultCode>(fuzzParcel_->ReadInt32()); in GetExecutorInfo() 66 ResultCode OnRegisterFinish(const std::vector<uint64_t> &templateIdList, in OnRegisterFinish() 71 return ResultCode::GENERAL_ERROR; in OnRegisterFinish() 73 return static_cast<ResultCode>(fuzzParcel_->ReadInt32()); in OnRegisterFinish() 76 ResultCode Enroll(uint64_t scheduleId, const EnrollParam ¶m, in Enroll() 81 return ResultCode::GENERAL_ERROR; in Enroll() 83 return static_cast<ResultCode>(fuzzParcel_->ReadInt32()); in Enroll() 86 ResultCode Authenticate(uint64_t scheduleId, const AuthenticateParam ¶m, in Authenticate() [all …]
|
/base/useriam/pin_auth/services/modules/executors/src/ |
D | pin_auth_executor_callback_hdi.cpp | 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/unittest/executors/ |
D | executor_unit_test.cpp | 109 return ResultCode::SUCCESS; in __anond2d9aeb00202() 150 return ResultCode::SUCCESS; in __anond2d9aeb00402() 193 return ResultCode::GENERAL_ERROR; in __anond2d9aeb00502() 220 return ResultCode::SUCCESS; in __anond2d9aeb00602() 259 return ResultCode::SUCCESS; in __anond2d9aeb00702() 273 return ResultCode::SUCCESS; in __anond2d9aeb00802() 302 return ResultCode::GENERAL_ERROR; in __anond2d9aeb00b02() 322 IF_FALSE_EXPECT_FAIL_AND_RETURN_VAL(executorMgrWrapper != nullptr, ResultCode::GENERAL_ERROR); in GetExecutorAndMockStub() 336 IF_FALSE_EXPECT_FAIL_AND_RETURN_VAL(mockExecutorHdi != nullptr, ResultCode::GENERAL_ERROR); in GetExecutorAndMockStub() 338 return ResultCode::SUCCESS; in GetExecutorAndMockStub() [all …]
|