remove unused enum

Signed-off-by: Tianshi Liu <tianshi.liu@huawei.com>
Change-Id: Ib5bd9e6a8c24bbe0f44d0876a4b7549ed9869020
This commit is contained in:
Tianshi Liu
2022-03-26 16:31:40 +08:00
parent 980687d182
commit 3732a67c34
2 changed files with 0 additions and 95 deletions
-85
View File
@@ -25,91 +25,6 @@ namespace UserIAM {
namespace FaceAuth {
class Constant {
public:
enum ServiceId {
SUBSYS_AAFWK_SYS_ABILITY_ID_BEGIN = 100,
ABILITY_TOOLS_SERVICE_ID = 116,
ABILITY_TEST_SERVICE_ID = 179,
ABILITY_MGR_SERVICE_ID = 180,
ABILITY_MST_SERVICE_ID = 181,
SUBSYS_AAFWK_SYS_ABILITY_ID_END = 199,
SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN = 200,
SUBSYS_AI_SYS_ABILITY_ID_BEGIN = 300,
SUBSYS_APPEXECFWK_SYS_ABILITY_ID_BEGIN = 400,
BUNDLE_MGR_SERVICE_SYS_ABILITY_ID = 401,
SUBSYS_APPLICATIONS_SYS_ABILITY_ID_BEGIN = 500,
APP_MGR_SERVICE_ID = 501,
INSTALLED_SERVICE_ID = 511,
SUBSYS_ARVR_SYS_ABILITY_ID_BEGIN = 600,
SUBSYS_ARVRHARDWARE_SYS_ABILITY_ID_BEGIN = 700,
SUBSYS_BARRIERFREE_SYS_ABILITY_ID_BEGIN = 800,
SUBSYS_FACEAUTHS_SYS_ABILITY_ID_BEGIN = 900,
SUBSYS_FACEAUTHS_SYS_ABILITY_FACERECOGNIZE = 901,
SUBSYS_FACEAUTHS_SYS_ABILITY_FINGERPRINT = 902,
SUBSYS_FACEAUTHS_SYS_ABILITY_VOICEID = 903,
ADVANCED_NOTIFICATION_SERVICE_ABILITY_ID = 3203,
SUBSYS_SECURITY_PERMISSION_SYS_SERVICE_ID = 3501,
};
/**
* Status code, indicates general success.
*/
const static int32_t SUCCESS = 0;
/**
* Status code, indicates general failure.
*/
const static int32_t FAILURE = -1;
/**
* Status code, indicates JS general failure.
*/
const static int32_t JS_FAILURE = 1;
/**
* Callback code.
*/
const static int32_t CODE_RESULT = 1;
const static int32_t CODE_CANCEL = 2;
const static int32_t CODE_ACQUIRE = 3;
const static int32_t CODE_BUSY = 4;
/**
* Callback type.
*/
const static int32_t TYPE_ENROLL = 0;
const static int32_t TYPE_AUTH = 1;
const static int32_t TYPE_REMOVE = 2;
/**
* Authentication type.
*/
static const std::string FACE_ONLY;
static const std::string ALL;
static const std::string APP_PERMISSION_TYPE;
/**
* Authentication level.
*/
static const std::string LEVEL_1;
static const std::string LEVEL_2;
static const std::string LEVEL_3;
static const std::string LEVEL_4;
/**
* GetLocalDeviceId
*/
static std::string GetLocalDeviceId();
/**
* Authentication permission name
*/
const static std::string ACCESS_PERMISSION_NAME;
/**
* Enroll permission name
*/
const static std::string ENROLL_PERMISSION_NAME;
/**
* Code and errorCode translate into tipCode.
*/
-10
View File
@@ -18,16 +18,6 @@
namespace OHOS {
namespace UserIAM {
namespace FaceAuth {
const std::string Constant::FACE_ONLY = "FACE_ONLY";
const std::string Constant::ALL = "ALL";
const std::string Constant::APP_PERMISSION_TYPE = "app";
const std::string Constant::LEVEL_1 = "S1";
const std::string Constant::LEVEL_2 = "S2";
const std::string Constant::LEVEL_3 = "S3";
const std::string Constant::LEVEL_4 = "S4";
const std::string Constant::ACCESS_PERMISSION_NAME = "ohos.permission.ACCESS_BIOMETRIC";
const std::string Constant::ENROLL_PERMISSION_NAME = "ohos.permission.ENROLL_BIOMETRIC";
const std::map<std::string, int32_t> Constant::TIP_CODE_MAP = {
std::map<std::string, int32_t>::value_type("1+-1", -1), // code 1, errorCode -1, means tipCode NO_SUPPORT(-1)
std::map<std::string, int32_t>::value_type("1+0", 0), // code 1, errorCode 0, means tipCode SUCCESS(0)