• 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 FINGERPRINT_AUTH_DEFINES_H
17 #define FINGERPRINT_AUTH_DEFINES_H
18 
19 namespace OHOS {
20 namespace HDI {
21 namespace FingerprintAuth {
22 namespace V1_0 {
23 enum ResultCode : int32_t {
24     SUCCESS = 0,
25     FAIL = 1,
26     GENERAL_ERROR = 2,
27     CANCELED = 3,
28     TIMEOUT = 4,
29     TYPE_NOT_SUPPORT = 5,
30     TRUST_LEVEL_NOT_SUPPORT = 6,
31     BUSY = 7,
32     INVALID_PARAMETERS = 8,
33     LOCKED = 9,
34     NOT_ENROLLED = 10,
35     OPERATION_NOT_SUPPORT = 11,
36     FRAMEWORK_RESULT_CODE_MAX,
37     VENDOR_RESULT_CODE_BEGIN = 10000,
38 };
39 } // namespace V1_0
40 } // namespace FingerprintAuth
41 } // namespace HDI
42 } // namespace OHOS
43 #endif  // FINGERPRINT_AUTH_DEFINES_H
44