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