Change the resource cache key and limit the maximum size of cache
Change the key valus of ResoucesCache. Key contains package name and configuration of resources. Even the same context object can return different resources depending on its state, such as language changes. So a Configuration that can logically distinguish whether a resource is logically equal can be used as a key. (context does not have localical equals for resources) Also, since unique resources can be used for each package, package name is added as a resource cache key. Bug: 289045241 Test: atest CtsTelephonyTestCases Test: atest CellBroadcastServiceTests Change-Id: I492d314b4f1e1e83554bc098c3a41a9574e2ac6b
Loading
Please register or sign in to comment