1. Replace PhoneStateIntentReceiver by adopting PhoneStateListener 2. Replace TelephonyProperties.in_ecm_mode() by TelephonyManager.getEmergencyCallbackMode() Bug: 144331663 Change-Id: Ib127cb165c65f50851c4390b05a16dfb8024fab1 Bug: 145830780 Test: Manual Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=AirplaneModeEnabler Merged-In: Ib39ab1881484f65bc5a3834b2828c6ba98198cca
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.