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.face;
18 
19 import android.hardware.face.FaceManager;
20 
21 import com.android.internal.logging.nano.MetricsProto;
22 import com.android.server.biometrics.Constants;
23 
24 public class FaceConstants implements Constants {
25     @Override
logTag()26     public String logTag() {
27         return FaceService.TAG;
28     }
29 
30     @Override
tagHalDied()31     public String tagHalDied() {
32         return "faced_died";
33     }
34 
35     @Override
tagAuthToken()36     public String tagAuthToken() {
37         return "face_token";
38     }
39 
40     @Override
tagAuthStartError()41     public String tagAuthStartError() {
42         return "faced_auth_start_error";
43     }
44 
45     @Override
tagEnrollStartError()46     public String tagEnrollStartError() {
47         return "faced_enroll_start_error";
48     }
49 
50     @Override
tagEnumerateStartError()51     public String tagEnumerateStartError() {
52         return "faced_enum_start_error";
53     }
54 
55     @Override
tagRemoveStartError()56     public String tagRemoveStartError() {
57         return "faced_remove_start_error";
58     }
59 
60     @Override
actionBiometricAuth()61     public int actionBiometricAuth() {
62         return MetricsProto.MetricsEvent.ACTION_FACE_AUTH;
63     }
64 
65     @Override
actionBiometricEnroll()66     public int actionBiometricEnroll() {
67         return MetricsProto.MetricsEvent.ACTION_FACE_ENROLL;
68     }
69 
70     @Override
acquireVendorCode()71     public int acquireVendorCode() {
72         return FaceManager.FACE_ACQUIRED_VENDOR;
73     }
74 }
75