Prior to this cl, slice provider always exposes wifi slice to calling package without confirming any wifi permissions. For current solution, we will check calling package's permission state and decide whether slice provider should expose wifi slice or not. Because settings search is a part of settings app, this permission checker won't be applied to settings intelligence. Test: manual, robotest, cts Also run manul Bug: 178014725 Change-Id: I2770b5b43366a5aa65c7519efc4243d350a21b26
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.