Loading
Create LocaleList and HashSet lazily to save OS boot time
Creating HashSet and LocaleList in Zygote make performance impact to the boot time. Since this API is not called so frequently and less application is expected to call this API. So let's make Set and LocaleList only when it is requested. Here is a result of boot time perf test: Before: TOTAL_BOOT_TIME : 16229.5 After : TOTAL_BOOT_TIME : 11704.0 Bug: 114774424 Test: atest android.graphics.fonts Test: atest TypefaceSystemFallbackTest Change-Id: I07247a78f6091c8adfaac748fe4a77a4597b1ae2