This change introduces the basic behavior for the main toggle switch to enable supervision. There is currently no PIN setup dialog when the toggle is clicked. That will be added as a follow-up. Intake bug: b/379312924 Change-Id: I75d6b2de1a7234c6da26fcdcf1d933eed3106a8c Test: atest SupervisionMainSwitchPreferenceTest Bug: 392694561 Flag: android.app.supervision.flags.enable_supervision_settings_screen
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