commit | 3ee28c810d29e21a2d5d1ce76e5f2e9aede4f727 | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Tue Feb 20 15:07:26 2018 -0800 |
committer | jackqdyulei <jackqdyulei@google.com> | Fri Feb 23 10:11:34 2018 -0800 |
tree | b0657a47ae86013cee150f34e85810f6f938d750 | |
parent | 42614c678778160ec818210df03c8a235b29989b [diff] |
Add auto restriction for excessive background If it is excessive bg anomaly and auto restriction is on, then restrict the anomaly in receiver and store it in database. Also in this cl we move the anomaly logic to a JobService, so all works are done in a background thread and won't interfere the main thread. Bug: 72385333 Test: RunSettingsRoboTests && Will add auto restriction test once robo framework is updated(b/73172999) Change-Id: Id0ec5fb449ce26bf19a292bcbe63838d621cfd8e