Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 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 | |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 17 | syntax = "proto2"; |
Kweku Adams | fd257d6 | 2017-10-25 17:53:50 -0700 | [diff] [blame] | 18 | package com.android.server.fingerprint; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 19 | |
| 20 | option java_multiple_files = true; |
Joe Onorato | 7669012 | 2016-12-20 08:18:32 -0800 | [diff] [blame] | 21 | option java_outer_classname = "FingerprintServiceProto"; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 22 | |
| 23 | message FingerprintServiceDumpProto { |
| 24 | // Each log may include multiple tuples of (user_id, num_fingerprints). |
| 25 | repeated FingerprintUserStatsProto users = 1; |
| 26 | } |
| 27 | |
| 28 | message FingerprintUserStatsProto { |
| 29 | // Should be 0, 10, 11, 12, etc. where 0 is the owner. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 30 | optional int32 user_id = 1; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 31 | |
| 32 | // The number of fingerprints registered to this user. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 33 | optional int32 num_fingerprints = 2; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 34 | |
| 35 | // Normal fingerprint authentications (e.g. lockscreen). |
Kweku Adams | fd257d6 | 2017-10-25 17:53:50 -0700 | [diff] [blame] | 36 | optional PerformanceStatsProto normal = 3; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 37 | |
| 38 | // Crypto authentications (e.g. to unlock password storage, make secure |
| 39 | // purchases, etc). |
Kweku Adams | fd257d6 | 2017-10-25 17:53:50 -0700 | [diff] [blame] | 40 | optional PerformanceStatsProto crypto = 4; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 41 | } |
| 42 | |
Kweku Adams | fd257d6 | 2017-10-25 17:53:50 -0700 | [diff] [blame] | 43 | // A com.android.server.fingerprint.FingerpintService.PerformanceStats object. |
| 44 | message PerformanceStatsProto { |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 45 | // Number of accepted fingerprints. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 46 | optional int32 accept = 1; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 47 | |
| 48 | // Number of rejected fingerprints. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 49 | optional int32 reject = 2; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 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.) |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 53 | optional int32 acquire = 3; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 54 | |
| 55 | // Total number of lockouts. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 56 | optional int32 lockout = 4; |
Kevin Chyn | df9d33e | 2017-05-03 21:40:12 -0700 | [diff] [blame] | 57 | |
| 58 | // Total number of permanent lockouts. |
Kweku Adams | fd257d6 | 2017-10-25 17:53:50 -0700 | [diff] [blame] | 59 | optional int32 permanent_lockout = 5; |
Joe Onorato | 1754d74 | 2016-11-21 17:51:35 -0800 | [diff] [blame] | 60 | } |