blob: ec4ffe0ae4e169afa0bf00fbb4bceba97a6297b2 [file] [log] [blame]
Joe Onorato1754d742016-11-21 17:51:35 -08001/*
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
Yi Jinc7f93072017-09-29 15:29:38 -070017syntax = "proto2";
Kweku Adamsfd257d62017-10-25 17:53:50 -070018package com.android.server.fingerprint;
Joe Onorato1754d742016-11-21 17:51:35 -080019
20option java_multiple_files = true;
Joe Onorato76690122016-12-20 08:18:32 -080021option java_outer_classname = "FingerprintServiceProto";
Joe Onorato1754d742016-11-21 17:51:35 -080022
23message FingerprintServiceDumpProto {
24 // Each log may include multiple tuples of (user_id, num_fingerprints).
25 repeated FingerprintUserStatsProto users = 1;
26}
27
28message FingerprintUserStatsProto {
29 // Should be 0, 10, 11, 12, etc. where 0 is the owner.
Yi Jinc7f93072017-09-29 15:29:38 -070030 optional int32 user_id = 1;
Joe Onorato1754d742016-11-21 17:51:35 -080031
32 // The number of fingerprints registered to this user.
Yi Jinc7f93072017-09-29 15:29:38 -070033 optional int32 num_fingerprints = 2;
Joe Onorato1754d742016-11-21 17:51:35 -080034
35 // Normal fingerprint authentications (e.g. lockscreen).
Kweku Adamsfd257d62017-10-25 17:53:50 -070036 optional PerformanceStatsProto normal = 3;
Joe Onorato1754d742016-11-21 17:51:35 -080037
38 // Crypto authentications (e.g. to unlock password storage, make secure
39 // purchases, etc).
Kweku Adamsfd257d62017-10-25 17:53:50 -070040 optional PerformanceStatsProto crypto = 4;
Joe Onorato1754d742016-11-21 17:51:35 -080041}
42
Kweku Adamsfd257d62017-10-25 17:53:50 -070043// A com.android.server.fingerprint.FingerpintService.PerformanceStats object.
44message PerformanceStatsProto {
Joe Onorato1754d742016-11-21 17:51:35 -080045 // Number of accepted fingerprints.
Yi Jinc7f93072017-09-29 15:29:38 -070046 optional int32 accept = 1;
Joe Onorato1754d742016-11-21 17:51:35 -080047
48 // Number of rejected fingerprints.
Yi Jinc7f93072017-09-29 15:29:38 -070049 optional int32 reject = 2;
Joe Onorato1754d742016-11-21 17:51:35 -080050
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.)
Yi Jinc7f93072017-09-29 15:29:38 -070053 optional int32 acquire = 3;
Joe Onorato1754d742016-11-21 17:51:35 -080054
55 // Total number of lockouts.
Yi Jinc7f93072017-09-29 15:29:38 -070056 optional int32 lockout = 4;
Kevin Chyndf9d33e2017-05-03 21:40:12 -070057
58 // Total number of permanent lockouts.
Kweku Adamsfd257d62017-10-25 17:53:50 -070059 optional int32 permanent_lockout = 5;
Joe Onorato1754d742016-11-21 17:51:35 -080060}