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