Debian Codegraph @

core/proto/android/server/face.proto

raw
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 syntax = "proto2";
18 package com.android.server.biometrics.face;
19
20 import "frameworks/base/core/proto/android/privacy.proto";
21
22 option java_multiple_files = true;
23 option java_outer_classname = "FaceServiceProto";
24
25 message FaceServiceDumpProto {
26 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
27
28 // Each log may include multiple user_id for different users.
29 repeated FaceUserStatsProto users = 1;
30 }
31
32 message FaceUserStatsProto {
33 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
34
35 // Refer to the UserHandle documentation.
36 optional int32 user_id = 1;
37
38 // The number of faces registered to this user.
39 optional int32 num_faces = 2;
40
41 // Normal face authentications stats (e.g. lockscreen).
42 optional FaceActionStatsProto normal = 3;
43
44 // Crypto authentications (e.g. to unlock password storage, make secure
45 // purchases, etc).
46 optional FaceActionStatsProto crypto = 4;
47 }
48
49 message FaceActionStatsProto {
50 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
51
52 // Number of accepted faces.
53 optional int32 accept = 1;
54
55 // Number of rejected faces.
56 optional int32 reject = 2;
57
58 // Total number of acquisitions. Should be >= accept+reject due to poor
59 // image acquisition in some cases (too high, too low, poor gaze, etc.)
60 optional int32 acquire = 3;
61
62 // Total number of lockouts.
63 optional int32 lockout = 4;
64
65 // Total number of permanent lockouts.
66 optional int32 lockout_permanent = 5;
67 }