Added index provider into TetherSettings and WifiTetherSettings pages. Added robotests to check the keys returned by getNonIndexableKeys. Move repeated code into utility class. Bug: 74777873 Test: make -j RunSettingsRoboTests Test: atest UniquePreferenceTest Change-Id: I6cb09d735afa4867d25a79de733ce8c59634e49b
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.