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
17syntax = "proto3";
18
19package android.service.fingerprint;
20
21option java_multiple_files = true;
22option java_outer_classname = "FingerprintServiceProto";
23
24message FingerprintServiceDumpProto {
25    // Each log may include multiple tuples of (user_id, num_fingerprints).
26    repeated FingerprintUserStatsProto users = 1;
27}
28
29message FingerprintUserStatsProto {
30    // Should be 0, 10, 11, 12, etc. where 0 is the owner.
31    int32 user_id = 1;
32
33    // The number of fingerprints registered to this user.
34    int32 num_fingerprints = 2;
35
36    // Normal fingerprint authentications (e.g. lockscreen).
37    FingerprintActionStatsProto normal = 3;
38
39    // Crypto authentications (e.g. to unlock password storage, make secure
40    // purchases, etc).
41    FingerprintActionStatsProto crypto = 4;
42}
43
44message FingerprintActionStatsProto {
45    // Number of accepted fingerprints.
46    int32 accept = 1;
47
48    // Number of rejected fingerprints.
49    int32 reject = 2;
50
51    // Total number of acquisitions. Should be >= accept+reject due to poor
52    // image acquisition in some cases (too fast, too slow, dirty sensor, etc.)
53    int32 acquire = 3;
54
55    // Total number of lockouts.
56    int32 lockout = 4;
57
58    // Total number of permanent lockouts.
59    int32 lockout_permanent = 5;
60}
61