Introduce ProfileGpuRenderingPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ic88396a32fdc5564bfa73a3c1daf4fdef0e09c9f
This commit is contained in:
jeffreyhuang
2017-10-12 11:50:07 -07:00
parent 379ba7ffff
commit 1df6c16afd
3 changed files with 247 additions and 1 deletions

View File

@@ -402,7 +402,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
// set gpu renderer
controllers.add(new UsbAudioRoutingPreferenceController(context));
controllers.add(new StrictModePreferenceController(context));
// profile gpu rendering
controllers.add(new ProfileGpuRenderingPreferenceController(context));
controllers.add(new KeepActivitiesPreferenceController(context));
// background process limit
// background check