Home
last modified time | relevance | path

Searched refs:AdaptiveSleepPreferenceController (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAdaptiveSleepPreferenceControllerTest.java61 private AdaptiveSleepPreferenceController mController;
86 mController = spy(new AdaptiveSleepPreferenceController(mContext, mRestrictionUtils)); in setUp()
116 assertThat(AdaptiveSleepPreferenceController.isControllerAvailable(mContext)).isEqualTo( in isControllerAvailable_serviceNotSupported_returnUnsupportedCode()
122 assertThat(AdaptiveSleepPreferenceController.hasSufficientPermission( in hasSufficientPermission_permissionGranted_returnTrue()
131 assertThat(AdaptiveSleepPreferenceController.hasSufficientPermission( in hasSufficientPermission_permissionNotGranted_returnFalse()
DScreenTimeoutSettingsTest.java80 AdaptiveSleepPreferenceController mAdaptiveSleepPreferenceController;
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepPreferenceController.java49 public class AdaptiveSleepPreferenceController { class
62 public AdaptiveSleepPreferenceController(Context context, RestrictionUtils restrictionUtils) { in AdaptiveSleepPreferenceController() method in AdaptiveSleepPreferenceController
71 public AdaptiveSleepPreferenceController(Context context) { in AdaptiveSleepPreferenceController() method in AdaptiveSleepPreferenceController
DScreenTimeoutSettings.java104 AdaptiveSleepPreferenceController mAdaptiveSleepController;
121 mAdaptiveSleepController = new AdaptiveSleepPreferenceController(context); in onAttach()
317 return AdaptiveSleepPreferenceController.isAdaptiveSleepSupported(context); in isScreenAttentionAvailable()
356 data.key = AdaptiveSleepPreferenceController.PREFERENCE_KEY;
DAdaptiveSleepPermissionPreferenceController.java19 import static com.android.settings.display.AdaptiveSleepPreferenceController.hasSufficientPermissio…
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DContextualAdaptiveSleepSlice.java20 import static com.android.settings.display.AdaptiveSleepPreferenceController.isControllerAvailable;