Replacing TelephonyManager.getNetworkOperatorName() by Obtaining carrier name from SubscriptionInfo.getCarrierName(). TelephonyManager.getNetworkOperatorName() only be used when there's no SubscriptionInfo can be found. Bug: b/140443508 Test: Manual testing atest MobileNetworkUtilsTest atest OpenNetworkSelectPagePreferenceControllerTest Change-Id: I7a86395c86d31fe2ba54c04ac16b1a0ebfc843f3
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.