- Filter out unnecessary onSwitchChanged callbacks when the switch is disabled, which should not be triggered by user input. - Refine the state handling function to avoid unnecessary onSwitchChanged callback. - Refine the error handling of isHotspotPasswordValid function. Bug: 227719584 Test: manual test make RunSettingsRoboTests \ ROBOTEST_FILTER=WifiTetherSwitchBarControllerTest Change-Id: If62aaadc8ddb214769b1367d7801b6125bb5377c
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.