IME apps can request users to enable them by directly launching the on-screen keyboard settings page. If keyboard settings is launched by works apps, the current userId would be work userId. There is no managed profile for work user so the exception happened. -. Use current userId if it's launched by work user -. Use primary user info for personal fragment Fix: 216395439 Test: Manual test with issue steps Test: make RunSettingsRoboTests ROBOTEST_FILTER=AvailableVirtualKeyboardFragmentTest Change-Id: Iea573922ee789d9932c0de05bf71179c4f005eeb
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.