Introduce HardwareLayersUpdatesPreferenceCtrl

- Create new HardwareLayersUpdatesPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller
 - Fix a typo in preference naming

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I12744051c836b17ca2bfca5a84b9e22eb7b7d677
This commit is contained in:
jeffreyhuang
2017-09-28 14:44:15 -07:00
parent ae6c29d10f
commit a9f7c95f27
5 changed files with 208 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
private static final String TRACK_FRAME_TIME_KEY = "track_frame_time";
private static final String SHOW_NON_RECTANGULAR_CLIP_KEY = "show_non_rect_clip";
private static final String SHOW_HW_SCREEN_UPDATES_KEY = "show_hw_screen_udpates";
private static final String SHOW_HW_LAYERS_UPDATES_KEY = "show_hw_layers_udpates";
private static final String SHOW_HW_LAYERS_UPDATES_KEY = "show_hw_layers_updates";
private static final String DEBUG_HW_OVERDRAW_KEY = "debug_hw_overdraw";
private static final String DEBUG_HW_RENDERER_KEY = "debug_hw_renderer";
private static final String DEBUG_LAYOUT_KEY = "debug_layout";