summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-09-02 13:34:06 -0600
committerRiddle Hsu <riddlehsu@google.com>2021-09-02 18:48:49 +0800
commitb8728418305038741e8635898502171be7098384 (patch)
tree9c7e54e82e841eefa953bf4074ab07106d53b711 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent34ea03d9bf92cfa47763f2fad20d0542e3e0c5d4 (diff)
Remove ActivityRecord#okToShowLocked
ActivityRecord#showToCurrentUser also checks show-for-all-users flag and current user/profile, so replace it by showToCurrentUser() that will be consistent with the condition for window. This eliminates unnecessary clearing binder identity and massive invocations to StorageManagerService that acquires another lock. In general the check becomes 10x faster. The encryption check was added in commit 8558ec7. Since start process is changed to async, and the lock in handling user switch and activities are separated, the recursive restart case no longer happens. So it can be removed now. Bug: 193661576 Test: atest RootWindowContainerTests Test: Create a profile user with credential. Launch some activities of the profile user. Invoke UserManager#evictCredentialEncryptionKey and observe there should be no crash and exception from apps. Change-Id: If088cf1712c7f784826ccbcf6c38aeff84f22e7e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions