Kevin Chyn | 1741a07 | 2019-01-17 11:54:40 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | syntax = "proto2"; |
| 18 | |
| 19 | package android.hardware.biometrics; |
| 20 | |
| 21 | option java_outer_classname = "BiometricsProtoEnums"; |
| 22 | option java_multiple_files = true; |
| 23 | |
| 24 | // Logging constants for <Biometric>Service and BiometricService |
| 25 | |
| 26 | enum ModalityEnum { |
| 27 | MODALITY_UNKNOWN = 0; |
| 28 | MODALITY_FINGERPRINT = 1; // 1 << 0 |
| 29 | MODALITY_IRIS = 2; // 1 << 1 |
| 30 | MODALITY_FACE = 4; // 1 << 2 |
| 31 | } |
| 32 | |
| 33 | enum ClientEnum { |
| 34 | CLIENT_UNKNOWN = 0; |
| 35 | CLIENT_KEYGUARD = 1; |
| 36 | CLIENT_BIOMETRIC_PROMPT = 2; |
| 37 | CLIENT_FINGERPRINT_MANAGER = 3; // Deprecated API before BiometricPrompt was introduced |
| 38 | } |
| 39 | |
| 40 | enum ActionEnum { |
| 41 | ACTION_UNKNOWN = 0; |
| 42 | ACTION_ENROLL = 1; |
| 43 | ACTION_AUTHENTICATE = 2; |
| 44 | ACTION_ENUMERATE = 3; |
| 45 | ACTION_REMOVE = 4; |
Kevin Chyn | e5a37fb | 2019-02-08 13:10:36 -0800 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | enum IssueEnum { |
| 49 | ISSUE_UNKNOWN = 0; |
| 50 | // When a biometric HAL has crashed. |
| 51 | ISSUE_HAL_DEATH = 1; |
| 52 | // When Android Framework has a template that doesn't exist in the HAL. The framework |
| 53 | // is expected to remove its template to stay in sync with the HAL. |
| 54 | ISSUE_UNKNOWN_TEMPLATE_ENROLLED_FRAMEWORK = 2; |
| 55 | // When the HAL has a template that doesn't exist in Android Framework. The framework |
| 56 | // is expected to notify the HAL to remove this template to stay in sync with the framework. |
| 57 | ISSUE_UNKNOWN_TEMPLATE_ENROLLED_HAL = 3; |
Kevin Chyn | 1741a07 | 2019-01-17 11:54:40 -0800 | [diff] [blame] | 58 | } |