dumpProto fixed crypto performance dump

fixed bug 35627933
Test: ran adb shell dumpsys fingerprint --proto > ~/Desktop/test.out
protoc --decode_raw < ~/Desktop/test.out
confirm that crypto output is fixed

Change-Id: Ie3bc996142e1e7e2be366ce6bb394ec2fe774393
This commit is contained in:
Kevin Chyn
2017-02-21 17:22:54 -08:00
parent 86613acaac
commit 9310f5c9b8

View File

@@ -1180,7 +1180,7 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
// Statistics about secure fingerprint transactions (e.g. to unlock password
// storage, make secure purchases, etc.)
final PerformanceStats crypto = mPerformanceMap.get(userId);
final PerformanceStats crypto = mCryptoPerformanceMap.get(userId);
if (crypto != null) {
final long countsToken = proto.start(FingerprintUserStatsProto.CRYPTO);
proto.write(FingerprintActionStatsProto.ACCEPT, crypto.accept);