diff options
| author | 2022-05-12 17:45:56 +0000 | |
|---|---|---|
| committer | 2022-05-12 21:58:02 +0000 | |
| commit | 1942a321fbe68977c4a4f2e55d296f59268cad98 (patch) | |
| tree | 6dbea1369b4d44a00da852998be587ec58c90289 /libs/androidfw/StringPool.cpp | |
| parent | bd767e19e730bf969a0aa6f28d8fa2864936bc18 (diff) | |
Add grace period to estimated launch times.
With user variance, estimated launch times could sometimes be a few
minutes early. If the estimate is a few minutes early, we decide to
stop running a prefetch job even if the app ends up being launched
soon afterwards. This adds a short grace period to estimated launch
times when determining if a prefetch job should be allowed to run
in order to avoid penalizing early estimates too much.
Bug: 232418832
Test: atest FrameworksMockingServicesTests:PrefetchControllerTest
Change-Id: I07fa95603fbc34d10f5919a6d2d702a73653a401
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions