Debian Codegraph @

core/proto/android/server/fingerprint.proto

raw
1 /*
2 * Copyright (C) 2016 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.fingerprint;
19
20 import "frameworks/base/core/proto/android/privacy.proto";
21
22 option java_multiple_files = true;
23 option java_outer_classname = "FingerprintServiceProto";
24
25 message FingerprintServiceDumpProto {
26 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
27
28 // Each log may include multiple tuples of (user_id, num_fingerprints).
29 repeated FingerprintUserStatsProto users = 1;
30 }
31
32 message FingerprintUserStatsProto {
33 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
34
35 // Should be 0, 10, 11, 12, etc. where 0 is the owner.
36 optional int32 user_id = 1;
37
38 // The number of fingerprints registered to this user.
39 optional int32 num_fingerprints = 2;
40
41 // Normal fingerprint authentications (e.g. lockscreen).
42 optional PerformanceStatsProto normal = 3;
43
44 // Crypto authentications (e.g. to unlock password storage, make secure
45 // purchases, etc).
46 optional PerformanceStatsProto crypto = 4;
47 }
48
49 // A com.android.server.biometrics.fingerprint.FingerpintService.PerformanceStats object.
50 message PerformanceStatsProto {
51 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
52
53 // Number of accepted fingerprints.
54 optional int32 accept = 1;
55
56 // Number of rejected fingerprints.
57 optional int32 reject = 2;
58
59 // Total number of acquisitions. Should be >= accept+reject due to poor
60 // image acquisition in some cases (too fast, too slow, dirty sensor, etc.)
61 optional int32 acquire = 3;
62
63 // Total number of lockouts.
64 optional int32 lockout = 4;
65
66 // Total number of permanent lockouts.
67 optional int32 permanent_lockout = 5;
68 }