diff options
| author | 2023-08-07 15:31:24 +0900 | |
|---|---|---|
| committer | 2023-08-09 13:54:46 +0900 | |
| commit | 2e457d31d6aba9af9eaba52b1a3a9c44fcc7ab69 (patch) | |
| tree | 854a194353b9b33965f5dc0f3ae570e671fdc83d /api/api.go | |
| parent | 3e40c03cac6fac7fb1b32e4a3be4a538d5b108e3 (diff) | |
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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions