The toggle button "Disable Bluetooth A2DP hardware offload" in developer options need reboot to take effect when value changed. Otherwise, the A2DP will not work until user reboot the device. If we want this toggle button change back to default value when turning off developer options, we need reboot device as well. This patch will check the property value of A2DP hardware offload. If turning off developer options will change the value, show a dialog to force the user to reboot device. Bug: 80449594 Test: make -j50 RunSettingsRoboTests Change-Id: Ibace1ff72c1b41bd55444242a74e3f0b49187668
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.