Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1942a321 authored by Kweku Adams's avatar Kweku Adams
Browse files

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
parent bd767e19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment