* Check if FRP policy is supported before erasing a device via settings. * Call DPM TestAPI isFactoryResetProtectionPolicySupported * If FRP policy is not supported, then do not erase the device. Bug: 155057616 Test: atest com.android.settings.MasterClearConfirmTest Change-Id: I56e4a6566457f31932658188646abe21701637fc
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.