TetherEnabler need to update tethering state of each tethering interfaces to make sure other preferences that depends on these SharedPreferences be consistent with UI. Bug: 148968321 Test: TetherEnablerTest; CodeInspectionTest. Manully test, built and flashed to crosshatch device. Change-Id: Ie0be7748adf20e6fb0ff5489795b0ca0664b6323
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.