summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorfelipeal <felipeal@google.com>2020-03-27 14:54:27 -0700
committerFelipe Leme <felipeal@google.com>2020-11-24 17:15:49 -0800
commitffa04d25c79dcec472d70a0d2ccfedbcb9565a9a (patch)
tree398a5efc31b856af9c4a46aeef0329e5724fc1ef /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd2ff4867183ca5ea6c6129899eb3c0cfa3987ca9 (diff)
Optimized ActivityManager.getCurrentUser()
That method returns the userId of the current foreground user, but its implementation fetches a UserInfo then extracts id. This CL shortcuts the process by returning the user id directly, which improves the performance in 2 ways: - Avoids a map lookup. - Decrease data pased through the IPC. Test: adb shell am get-current-user Fixes: 151322436 Change-Id: I028a54a1918bd2226ed3bd903bbe98c6ef4811b2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions