Prepare switching font loading to system server.
Currently, fonts are loaded in Zygote. This CL adds a preparation to switch it to system server and bindApplication(), so that system server will be able to update font map at runtime. (1) Zygote will be initialized without fonts. (2) System server will maintain a serialized font map in ashmem. (3) Apps will load font map from the ashmem in bindApplication(). The change is guarded by Typeface.ENABLE_LAZY_TYPEFACE_INITIALIZATION, and the new behavior is disabled by default. I tested with ENABLE_LAZY_TYPEFACE_INITIALIZATION = true. Bug: 172891184 Test: atest FrameworksCoreTests:TypefaceTest Test: atest CtsGraphicsTestCases Test: atest CtsTextTestCases Test: atest CtsWidgetTestCases Change-Id: I40832962a4b27f6160c4dc6268689c52f6a4dd33
Loading
Please register or sign in to comment