When the adopted media storage is ejected, migrate operation from adopted storage to internal storage always fails. This CL makes the migrate option menu invisible when the source volume of migration is not mounted and not accessible. Bug: 117178027 Test: Settings robotests & manual Change-Id: I8bfc9de552a8daf861315a5e46ee520ede14dd81
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.