summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Ludovic Barman <ludovicb@google.com> 2025-01-13 05:38:18 -0800
committer Ludovic Barman <ludovicb@google.com> 2025-01-13 05:42:26 -0800
commit639fc5cc276097f01d1fe421b08a4a012596bb85 (patch)
tree3bee7e9cc50803ce2f15dca81df4b43ae79c8d53 /libs/androidfw/FileStream.cpp
parentd4815549c24ee190e1ce3f3e0fa13cfc90ca093e (diff)
BugFix: Density-based coarsening: Set the accuracy to the approximate edge of the S2 cell.
Currently the accuracy of coarsened locations is set to the size of the grid. With the new algorithm, the coarsening will depend on the population density. The accuracy (which is a proxy for the size of the blue disc in maps apps) should scale with the size of the coarsened region. Because the S2 cell library does not have a function to calculate the edge length, we use the average area to estimate the edge. This approximation assumes that all S2 cells are squares. Tests: - atest FrameworksMockingServicesTests:LocationFudgerTest Change-Id: If172fff9cf1d74b4f86f0e9832d946b35d468362 Test: manual atest on Pixel 7 pro (see above) Bug: 376198890 Flag: android.location.flags.density_based_coarse_locations
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions