Introduce StrictModePreferenceController

- Create new StrictModePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I28d70fd5c82de2427747625b5f06f79d3808a145
This commit is contained in:
jeffreyhuang
2017-09-29 11:27:33 -07:00
parent d43f656ed5
commit 99312bc947
3 changed files with 229 additions and 1 deletions

View File

@@ -302,7 +302,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
// simulate color space
// set gpu renderer
// disable usb audio routing
// strict mode enabled
controllers.add(new StrictModePreferenceController(context));
// profile gpu rendering
// don't keep activities
// background process limit