summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2019-06-13 11:47:54 -0700
committerKevin Chyn <kchyn@google.com>2019-06-14 11:37:55 -0700
commitbc29dd747758517faaba1669e39fb3022acc9dae (patch)
tree778c0d2de8debedd680acdfa8b43f672dd1f3249 /tools/aapt2/java/JavaClassGenerator.cpp
parent01462c0b9528db64017205d736b9495b55758cbd (diff)
Defer resetLockout and execute on a separate thread
Renamed hasChallenge to be @IntDef ChallengeType so we can properly track the origin of the challenge throughout the various method calls. For each unlock, generateChallenge is now invoked only once, even if multiple profiles for that user exist. This is the only hwbinder/HIDL invocation in the critical path of unlock. The resetLockout and revokeChallenge invocations are now executed on a separate thread after all profiles are unlocked. Bug: 133738703 Test: With work profile and one lock enabled, generateChallenge() is seen only once. resetLockout() is seen twice, and revokeChallenge() is seen once. Change-Id: I6ef369aeac92d1b89d23359d03ffaccd5176b104
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions