summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-12-09 16:51:28 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-12-09 16:51:28 +0800
commit45e4bcf994c821ec5ee6c45ea568f1342a8de426 (patch)
treee66d5717acf44dea2d6faf1b4b5c91b39653d478 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd43efc90ab2893851724e92cca8ebe70182fd543 (diff)
Reduce unnecessary overhead of SystemUiContext
- Do not report change when initializing DisplayContent (DisplayContent#isReady() is false). This reduces boot time by dozen of milliseconds (RootWindowContainer#setWindowManager). - Only create SystemUiContext if needed. Most of processes don't use it. This reduces many registrations (e.g. according to the number of processes, it maybe from ~60 to ~10), which involve binder/listener creation/invocation, especially the extra cost of dispatching configuration to the context which no one uses. - Store token as IWindowToken to avoid object creation every time by asInterface. Bug: 207620458 Test: atest InputMethodMenuControllerTest WindowContextControllerTest Change-Id: I867e9f81116796c42048195406d74feccf4772d3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions