Found mobile_network_settings preference is dependent on toggle_airplane preference so once Disallow_airplane_mode is turned on, toggle_airplane preference will be set disabled, and mobile_network_settings preference is also set disabled because of the dependence. Can fix this bug moving the dependance and let MobileNetworkPreferenceController listen to Settings.Global.AIRPLANE_MODE_ON. Bug: 76468718 Test: manually but TestDpc Change-Id: I137938766557d7bc5ae0795bc3359a6bfbae17e3
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.