The correct return when checking for the SIM status field availability for non-admin users is DISABLED_FOR_USER. UNSUPPORTED_ON_DEVICE should only be used when the setting is unconditionally hidden as the device does not support the feature. Bug: 395714454 Flag: EXEMPT bugfix Test: atest SimStatusPreferenceControllerTest Change-Id: I9bd290f1bdd73909be383a24f2c762d295089ff6
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest