Reuse the PreferenceController and LayoutPreference however create specific one for slice: 1. SlicePreference: container to inject slice view 2. SlicePreferenceController: handle updates for slice Also add styles for it with default layout. Bug: 120803703 Test: RunSettingsRoboTests Change-Id: I6ab083ad57117e6198dcba37702a25213da78719
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.