Searched refs:AdaptiveSleepPreferenceController (Results 1 – 6 of 6) sorted by relevance
61 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()
80 AdaptiveSleepPreferenceController mAdaptiveSleepPreferenceController;
49 public class AdaptiveSleepPreferenceController { class62 public AdaptiveSleepPreferenceController(Context context, RestrictionUtils restrictionUtils) { in AdaptiveSleepPreferenceController() method in AdaptiveSleepPreferenceController71 public AdaptiveSleepPreferenceController(Context context) { in AdaptiveSleepPreferenceController() method in AdaptiveSleepPreferenceController
104 AdaptiveSleepPreferenceController mAdaptiveSleepController;121 mAdaptiveSleepController = new AdaptiveSleepPreferenceController(context); in onAttach()317 return AdaptiveSleepPreferenceController.isAdaptiveSleepSupported(context); in isScreenAttentionAvailable()356 data.key = AdaptiveSleepPreferenceController.PREFERENCE_KEY;
19 import static com.android.settings.display.AdaptiveSleepPreferenceController.hasSufficientPermissio…
20 import static com.android.settings.display.AdaptiveSleepPreferenceController.isControllerAvailable;