This class is created to manage the switch state of overall tethering state. It can turn on/off each type of tethering based on stored value in SharedPreference. Also, it listens to data saver state change. Bug: 145923107 Test: TetherEnablerTest Change-Id: I7f360329569f53f34cf13065aa0e00ad9b55f659
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.