OSDN Git Service

Update the restrict app list
authorLei Yu <jackqdyulei@google.com>
Mon, 12 Mar 2018 21:42:54 +0000 (14:42 -0700)
committerLei Yu <jackqdyulei@google.com>
Tue, 13 Mar 2018 17:44:45 +0000 (10:44 -0700)
commitcb77823b6537ba0ec20e6d7946e857f649fd3039
treea5bca325894f18443b6ddcd93228802d62b990db
parentf11976d8172d4f80895a7f31292d85d4399f3fd1
Update the restrict app list

Before this cl, we use getPackagesForOps() to populate restrict app
list. However in that API not all the apps are currently restricted,
so in this cl we filter out all the allowed apps.

Bug: 73085780
Test: RunSettingsRoboTest
Change-Id: Ia7c1eb95b07a1a0d203b394eb64dcd98d25bd561
src/com/android/settings/fuelgauge/RestrictAppPreferenceController.java
tests/robotests/src/com/android/settings/fuelgauge/RestrictAppPreferenceControllerTest.java