1 /* 2 * Copyright (C) 2018 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 package com.android.server.biometrics.fingerprint; 18 19 import android.hardware.fingerprint.FingerprintManager; 20 21 import com.android.internal.logging.nano.MetricsProto; 22 import com.android.server.biometrics.Constants; 23 24 public class FingerprintConstants implements Constants { 25 26 @Override logTag()27 public String logTag() { 28 return FingerprintService.TAG; 29 } 30 31 @Override tagHalDied()32 public String tagHalDied() { 33 return "fingerprintd_died"; 34 } 35 36 @Override tagAuthToken()37 public String tagAuthToken() { 38 return "fingerprint_token"; 39 } 40 41 @Override tagAuthStartError()42 public String tagAuthStartError() { 43 return "fingerprintd_auth_start_error"; 44 } 45 46 @Override tagEnrollStartError()47 public String tagEnrollStartError() { 48 return "fingerprintd_enroll_start_error"; 49 } 50 51 @Override tagEnumerateStartError()52 public String tagEnumerateStartError() { 53 return "fingerprintd_enum_start_error"; 54 } 55 56 @Override tagRemoveStartError()57 public String tagRemoveStartError() { 58 return "fingerprintd_remove_start_error"; 59 } 60 61 @Override actionBiometricAuth()62 public int actionBiometricAuth() { 63 return MetricsProto.MetricsEvent.ACTION_FINGERPRINT_AUTH; 64 } 65 66 @Override actionBiometricEnroll()67 public int actionBiometricEnroll() { 68 return MetricsProto.MetricsEvent.ACTION_FINGERPRINT_ENROLL; 69 } 70 71 @Override acquireVendorCode()72 public int acquireVendorCode() { 73 return FingerprintManager.FINGERPRINT_ACQUIRED_VENDOR; 74 } 75 } 76