diff options
author | Varun Shah <varunshah@google.com> | 2020-05-04 19:36:54 -0700 |
---|---|---|
committer | Varun Shah <varunshah@google.com> | 2020-05-12 16:45:58 +0000 |
commit | a7f9c762cb386fe97db642b397f3d808fbd89c3d (patch) | |
tree | aa627ffcd4752c057e0c6b15245a7fff120c1bec /docs/html/sdk/api_diff/15 | |
parent | 0728a4fe507dbe15a286a25af6cf2307fec8ecaa (diff) |
Delay updating of usage stats package mappings.
Do not update package mappings for the system user when the user is
first unlocked. Instead, schedule a job to be executed after 24 to 48
hours from when the system user is unlocked. This makes the service
initialization phase for the system user a little quicker since their
data is not likely to be stale. Additionally, this also ensures that
restored data is not pruned by mistake if there is a device restart
before restore is completed. The updating of the mappings occurs
normally for other users, on user service initialization.
Bug: 155209652
Test: manually ensure job is skipped for system user
Test: atest android.app.usage.cts.UsageStatsTest
Change-Id: I2c03a1a05246d6b454569c4569813e90bede3693
Diffstat (limited to 'docs/html/sdk/api_diff/15')
0 files changed, 0 insertions, 0 deletions