summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Seigo Nonaka <nona@google.com> 2023-06-22 16:27:44 +0900
committer Seigo Nonaka <nona@google.com> 2023-06-22 16:44:23 +0900
commitb39a82aa591e6ad34edb5529c6b758d1ddb07340 (patch)
tree89ab9e46f38f8e3503798f1cad90a00e19c888b9 /libs/androidfw/ObbFile.cpp
parent5e56f8b90383b7c9f72f62bf8212de3a9e380137 (diff)
Remove unused shortcut title to improve the boot time performance
The title field of ModifierShortcutManager$ShortcutInfo is not used. Because making this string requires font access, we cannot remove the Typeface.loadPreinstalledSystemFontMap function call in system_server which takes non trivial amount of time. Removing this field improves 2 seconds of the boot performance on Wear devices. More background: WindowManagerService loads shortcut label which requires system font initialization. However, the system font initialization happens after WindowManagerService startup, so system_server loads Typeface only with preinstalled system fonts for this purpose. Bug: 288189927 Test: Manually confirmed the shortcut still works. Test: Manually confirmed the shortcut description still appears by Meta+? Test: gts-tradefed run gts-dev -m GtsFontHostTestCases Test: atest atest UpdatableFontDirTest Test: atest UpdatableSystemFontTest Test: atest GtsFontHostTestCases Test: atest FontManagerTest Change-Id: Ib01e96fa7cef7e9bac17a2f8a7d1942fcff5a407
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions