• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FACE_RECOGNITION_PIN_AUTH_COMMON_H
17 #define FACE_RECOGNITION_PIN_AUTH_COMMON_H
18 
19 #include "i_inputer.h"
20 #include "i_inputer_data.h"
21 #include "napi/native_api.h"
22 #include "napi/native_common.h"
23 
24 namespace OHOS {
25 namespace PinAuth {
26 constexpr size_t PIN_PARAMS_ZERO = 0;
27 constexpr size_t PIN_PARAMS_ONE = 1;
28 constexpr size_t PIN_PARAMS_TWO = 2;
29 constexpr int OK = 0;
30 constexpr int FAIL = 1;
31 constexpr int REGISTER_CODE = 1;
32 enum class AuthSubType {
33     /* Authentication subType six number pin. */
34     PIN_SIX = 10000,
35 
36     /* Authentication subType self defined number pin. */
37     PIN_NUMBER = 10001,
38 
39     /* Authentication subType 2D face. */
40     PIN_MIXED = 10002,
41 
42     /* Authentication subType 2D face. */
43 
44     FACE_2D = 20000,
45 
46     /* Authentication subType 3D face. */
47     FACE_3D = 20001
48 };
49 } // namespace PinAuth
50 } // namespace OHOS
51 #endif // FACE_RECOGNITION_PIN_AUTH_COMMON_H
52