Home
last modified time | relevance | path

Searched refs:CommandId (Results 1 – 11 of 11) sorted by relevance

/base/useriam/pin_auth/services/modules/common/inc/
Dpin_auth_hdi.h41 using CommandId = OHOS::HDI::PinAuth::V1_0::CommandId; variable
/base/useriam/face_auth/services/inc/
Dface_auth_hdi.h39 using CommandId = OHOS::HDI::FaceAuth::V1_1::CommandId; variable
Dface_auth_executor_hdi.h68 UserAuth::ResultCode ConvertCommandId(const UserAuth::PropertyMode in, CommandId &out);
/base/useriam/fingerprint_auth/services/inc/
Dfingerprint_auth_hdi.h39 using CommandId = OHOS::HDI::FingerprintAuth::V1_1::CommandId; variable
Dfingerprint_auth_executor_hdi.h65 UserAuth::ResultCode ConvertCommandId(const UserAuth::PropertyMode in, CommandId &out);
/base/useriam/fingerprint_auth/services/src/
Dfingerprint_auth_executor_hdi.cpp166 CommandId hdiCommandId; in SendCommand()
262 …tCode FingerprintAuthExecutorHdi::ConvertCommandId(const UserAuth::PropertyMode in, CommandId &out) in ConvertCommandId()
264 if (static_cast<CommandId>(in) > CommandId::VENDOR_COMMAND_BEGIN) { in ConvertCommandId()
265 out = static_cast<CommandId>(in); in ConvertCommandId()
270 static const std::map<UserAuth::PropertyMode, CommandId> data = { in ConvertCommandId()
271 { UserAuth::PropertyMode::PROPERTY_INIT_ALGORITHM, CommandId::INIT_ALGORITHM }, in ConvertCommandId()
272 { UserAuth::PropertyMode::PROPERTY_MODE_FREEZE, CommandId::LOCK_TEMPLATE }, in ConvertCommandId()
273 { UserAuth::PropertyMode::PROPERTY_MODE_UNFREEZE, CommandId::UNLOCK_TEMPLATE } }; in ConvertCommandId()
/base/useriam/face_auth/services/src/
Dface_auth_executor_hdi.cpp165 CommandId hdiCommandId; in SendCommand()
280 IamResultCode FaceAuthExecutorHdi::ConvertCommandId(const UserAuth::PropertyMode in, CommandId &out) in ConvertCommandId()
282 if (static_cast<CommandId>(in) > CommandId::VENDOR_COMMAND_BEGIN) { in ConvertCommandId()
283 out = static_cast<CommandId>(in); in ConvertCommandId()
288 static const std::map<UserAuth::PropertyMode, CommandId> data = { in ConvertCommandId()
289 { UserAuth::PropertyMode::PROPERTY_INIT_ALGORITHM, CommandId::INIT_ALGORITHM }, in ConvertCommandId()
290 { UserAuth::PropertyMode::PROPERTY_MODE_FREEZE, CommandId::LOCK_TEMPLATE }, in ConvertCommandId()
291 { UserAuth::PropertyMode::PROPERTY_MODE_UNFREEZE, CommandId::UNLOCK_TEMPLATE } }; in ConvertCommandId()
/base/useriam/fingerprint_auth/test/unittest/
Dfingerprint_auth_executor_hdi_unit_test.cpp469 static const std::map<IamPropertyMode, pair<CommandId, IamResultCode>> data = {
471 {CommandId::INIT_ALGORITHM, IamResultCode::SUCCESS}},
473 {CommandId::LOCK_TEMPLATE, IamResultCode::SUCCESS}},
475 {CommandId::UNLOCK_TEMPLATE, IamResultCode::SUCCESS}},
477 {CommandId::UNLOCK_TEMPLATE, IamResultCode::INVALID_PARAMETERS}},
479 {CommandId::UNLOCK_TEMPLATE, IamResultCode::INVALID_PARAMETERS}},
480 {static_cast<IamPropertyMode>(CommandId::VENDOR_COMMAND_BEGIN),
481 {CommandId::UNLOCK_TEMPLATE, IamResultCode::INVALID_PARAMETERS}},
482 {static_cast<IamPropertyMode>(CommandId::VENDOR_COMMAND_BEGIN + 1),
483 {static_cast<CommandId>(CommandId::VENDOR_COMMAND_BEGIN + 1), IamResultCode::SUCCESS}}};
/base/useriam/face_auth/test/unittest/
Dface_auth_executor_hdi_unit_test.cpp462 static const std::map<IamPropertyMode, pair<CommandId, IamResultCode>> data = {
464 {CommandId::INIT_ALGORITHM, IamResultCode::SUCCESS}},
466 {CommandId::LOCK_TEMPLATE, IamResultCode::SUCCESS}},
468 {CommandId::UNLOCK_TEMPLATE, IamResultCode::SUCCESS}},
470 {CommandId::UNLOCK_TEMPLATE, IamResultCode::INVALID_PARAMETERS}},
472 {CommandId::UNLOCK_TEMPLATE, IamResultCode::INVALID_PARAMETERS}},
473 {static_cast<IamPropertyMode>(CommandId::VENDOR_COMMAND_BEGIN),
474 {CommandId::UNLOCK_TEMPLATE, IamResultCode::INVALID_PARAMETERS}},
475 {static_cast<IamPropertyMode>(CommandId::VENDOR_COMMAND_BEGIN + 1),
476 {static_cast<CommandId>(CommandId::VENDOR_COMMAND_BEGIN + 1), IamResultCode::SUCCESS}}};
/base/useriam/pin_auth/services/modules/executors/inc/
Dpin_auth_executor_hdi.h59 UserAuth::ResultCode ConvertCommandId(const UserAuth::PropertyMode in, CommandId &out);
/base/useriam/pin_auth/services/modules/executors/src/
Dpin_auth_executor_hdi.cpp269 IamResultCode PinAuthExecutorHdi::ConvertCommandId(const UserAuth::PropertyMode in, CommandId &out) in ConvertCommandId()