blob: 2a7fbc3a7063c1da33607a7d24cb90ee7e659178 [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
Yi Jin0d7bc2d12018-01-23 17:35:19 -080020import "frameworks/base/libs/incident/proto/android/privacy.proto";
21
Joe Onorato1754d742016-11-21 17:51:35 -080022option java_multiple_files = true;
Joe Onorato76690122016-12-20 08:18:32 -080023option java_outer_classname = "FingerprintServiceProto";
Joe Onorato1754d742016-11-21 17:51:35 -080024
25message FingerprintServiceDumpProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080026 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
27
Joe Onorato1754d742016-11-21 17:51:35 -080028 // Each log may include multiple tuples of (user_id, num_fingerprints).
29 repeated FingerprintUserStatsProto users = 1;
30}
31
32message FingerprintUserStatsProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080033 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
34
Joe Onorato1754d742016-11-21 17:51:35 -080035 // Should be 0, 10, 11, 12, etc. where 0 is the owner.
Yi Jinc7f93072017-09-29 15:29:38 -070036 optional int32 user_id = 1;
Joe Onorato1754d742016-11-21 17:51:35 -080037
38 // The number of fingerprints registered to this user.
Yi Jinc7f93072017-09-29 15:29:38 -070039 optional int32 num_fingerprints = 2;
Joe Onorato1754d742016-11-21 17:51:35 -080040
41 // Normal fingerprint authentications (e.g. lockscreen).
Kweku Adamsfd257d62017-10-25 17:53:50 -070042 optional PerformanceStatsProto normal = 3;
Joe Onorato1754d742016-11-21 17:51:35 -080043
44 // Crypto authentications (e.g. to unlock password storage, make secure
45 // purchases, etc).
Kweku Adamsfd257d62017-10-25 17:53:50 -070046 optional PerformanceStatsProto crypto = 4;
Joe Onorato1754d742016-11-21 17:51:35 -080047}
48
Kweku Adamsfd257d62017-10-25 17:53:50 -070049// A com.android.server.fingerprint.FingerpintService.PerformanceStats object.
50message PerformanceStatsProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080051 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
52
Joe Onorato1754d742016-11-21 17:51:35 -080053 // Number of accepted fingerprints.
Yi Jinc7f93072017-09-29 15:29:38 -070054 optional int32 accept = 1;
Joe Onorato1754d742016-11-21 17:51:35 -080055
56 // Number of rejected fingerprints.
Yi Jinc7f93072017-09-29 15:29:38 -070057 optional int32 reject = 2;
Joe Onorato1754d742016-11-21 17:51:35 -080058
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.)
Yi Jinc7f93072017-09-29 15:29:38 -070061 optional int32 acquire = 3;
Joe Onorato1754d742016-11-21 17:51:35 -080062
63 // Total number of lockouts.
Yi Jinc7f93072017-09-29 15:29:38 -070064 optional int32 lockout = 4;
Kevin Chyndf9d33e2017-05-03 21:40:12 -070065
66 // Total number of permanent lockouts.
Kweku Adamsfd257d62017-10-25 17:53:50 -070067 optional int32 permanent_lockout = 5;
Joe Onorato1754d742016-11-21 17:51:35 -080068}