diff options
| author | 2024-12-03 11:29:17 +0000 | |
|---|---|---|
| committer | 2024-12-13 09:38:38 +0000 | |
| commit | afd9d8e38e8307d3f5aea0e726d96731bd332b35 (patch) | |
| tree | 72d47023f9e30b740cc3f0565bb744c2e68f34ad /libs/androidfw/AssetsProvider.cpp | |
| parent | 9d9a4d20ec71816f0c6b75aa539303cc8f26ed15 (diff) | |
LocationFudger: cache must fetch default when missing
The new density-based coarse locations are not used if the cache doesn't have a default coarsening value.
The cache fetches the default when created, however, before this commit, if this initial fetch fails, it never retries.
This changes the LocationFudger behavior so that, if the feature flag is enabled, each time the cache is needed, if the default is not present, it is re-fetched.
Tests:
- atest FrameworksMockingServicesTests:LocationFudgerTest
- atest FrameworksMockingServicesTests:LocationFudgerCacheTest
Test: manual atest on Pixel 7 pro (see above)
Flag: android.location.flags.density_based_coarse_locations
Bug: 381816602
Change-Id: I77ad32802cf6101edb7a269f5c006add2808a751
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions