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 17syntax = "proto2"; 18 19package android.hardware.biometrics; 20 21option java_outer_classname = "BiometricsProtoEnums"; 22option java_multiple_files = true; 23 24// Logging constants for <Biometric>Service and BiometricService 25 26enum 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 33enum 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 40enum ActionEnum { 41 ACTION_UNKNOWN = 0; 42 ACTION_ENROLL = 1; 43 ACTION_AUTHENTICATE = 2; 44 ACTION_ENUMERATE = 3; 45 ACTION_REMOVE = 4; 46} 47 48enum 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; 58 // When the HAL has not sent ERROR_CANCELED within the specified timeout. 59 ISSUE_CANCEL_TIMED_OUT = 4; 60}