Replace SubscriptionManager#addOnSubscriptionsChangedListener API in order to compatible with legacy design. Bug: 151838951 Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=SubscriptionsChangeListenerTest Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=ActiveSubsciptionsListenerTest Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=SimStatusDialogControllerTest Change-Id: Ib98ce0dcbf18b6f48a6f267dd9e7be017d571157
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.