Update optimizing RegisteredServicesCache ServiceInfo parsing
1.Use component name as the cache key instead of an ad-hoc constructed string. 2.If no services are asked within 30 seconds, the cache will be cleared. If the services are asked within 30 seconds, it will reset the timer to 30 seconds again. 3.Move the logic to read or update the cache in generateServicesMap. Flag: android.content.pm.optimize_parsing_in_registered_services_cache Bug: 319137634 Test: atest RegisteredServicesCacheTest Change-Id: Id2dc224796d8259d5274237e40c2db3a89448889
Loading
Please register or sign in to comment