P2P Settings creates a P2P channel but does not close the channel if there is a P2P connection. This causes multiple channels to accumulate if P2P Settings is repeatedly opened and closed. Making the channel static will ensure that each time a new P2P Settings activity is created, the existing open channel will be used. Bug: 259364357 Test: build Change-Id: I999b108bc3e3c22519398a55b503078c1069cef1
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.