Use @SystemApi TelephonyManager#isGlobalModeEnabled() Test: build Bug: 147335742 Change-Id: Ie1b01a97cf163d68e4a5529f1718a9a782d44bb0
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.