Search in sources :

Example 1 with ShowOperatorNamePreferenceController

use of com.android.settings.display.ShowOperatorNamePreferenceController in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class DisplaySettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new CameraGesturePreferenceController(context));
    controllers.add(new LiftToWakePreferenceController(context));
    controllers.add(new PocketJudgePreferenceController(context));
    controllers.add(new NightDisplayPreferenceController(context));
    controllers.add(new NightModePreferenceController(context));
    controllers.add(new ScreenSaverPreferenceController(context));
    controllers.add(new TapToWakePreferenceController(context));
    controllers.add(new TimeoutPreferenceController(context, KEY_SCREEN_TIMEOUT));
    controllers.add(new VrDisplayPreferenceController(context));
    controllers.add(new ShowOperatorNamePreferenceController(context));
    controllers.add(new ThemePreferenceController(context));
    controllers.add(new BrightnessLevelPreferenceController(context, lifecycle));
    controllers.add(new RefreshRatePreferenceController(context));
    return controllers;
}
Also used : ScreenSaverPreferenceController(com.android.settings.display.ScreenSaverPreferenceController) ShowOperatorNamePreferenceController(com.android.settings.display.ShowOperatorNamePreferenceController) BrightnessLevelPreferenceController(com.android.settings.display.BrightnessLevelPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) VrDisplayPreferenceController(com.android.settings.display.VrDisplayPreferenceController) ArrayList(java.util.ArrayList) CameraGesturePreferenceController(com.android.settings.display.CameraGesturePreferenceController) TimeoutPreferenceController(com.android.settings.display.TimeoutPreferenceController) ThemePreferenceController(com.android.settings.display.ThemePreferenceController) TapToWakePreferenceController(com.android.settings.display.TapToWakePreferenceController) LiftToWakePreferenceController(com.android.settings.display.LiftToWakePreferenceController) NightModePreferenceController(com.android.settings.display.NightModePreferenceController) PocketJudgePreferenceController(com.android.settings.display.PocketJudgePreferenceController) NightDisplayPreferenceController(com.android.settings.display.NightDisplayPreferenceController) RefreshRatePreferenceController(com.android.settings.display.RefreshRatePreferenceController)

Example 2 with ShowOperatorNamePreferenceController

use of com.android.settings.display.ShowOperatorNamePreferenceController in project android_packages_apps_Settings by omnirom.

the class DisplaySettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new CameraGesturePreferenceController(context));
    controllers.add(new LiftToWakePreferenceController(context));
    controllers.add(new ScreenSaverPreferenceController(context));
    controllers.add(new TapToWakePreferenceController(context));
    controllers.add(new VrDisplayPreferenceController(context));
    controllers.add(new ShowOperatorNamePreferenceController(context));
    controllers.add(new ThemePreferenceController(context));
    controllers.add(new BrightnessLevelPreferenceController(context, lifecycle));
    return controllers;
}
Also used : ScreenSaverPreferenceController(com.android.settings.display.ScreenSaverPreferenceController) ShowOperatorNamePreferenceController(com.android.settings.display.ShowOperatorNamePreferenceController) ThemePreferenceController(com.android.settings.display.ThemePreferenceController) BrightnessLevelPreferenceController(com.android.settings.display.BrightnessLevelPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) VrDisplayPreferenceController(com.android.settings.display.VrDisplayPreferenceController) TapToWakePreferenceController(com.android.settings.display.TapToWakePreferenceController) ArrayList(java.util.ArrayList) LiftToWakePreferenceController(com.android.settings.display.LiftToWakePreferenceController) CameraGesturePreferenceController(com.android.settings.display.CameraGesturePreferenceController)

Aggregations

BrightnessLevelPreferenceController (com.android.settings.display.BrightnessLevelPreferenceController)2 CameraGesturePreferenceController (com.android.settings.display.CameraGesturePreferenceController)2 LiftToWakePreferenceController (com.android.settings.display.LiftToWakePreferenceController)2 ScreenSaverPreferenceController (com.android.settings.display.ScreenSaverPreferenceController)2 ShowOperatorNamePreferenceController (com.android.settings.display.ShowOperatorNamePreferenceController)2 TapToWakePreferenceController (com.android.settings.display.TapToWakePreferenceController)2 ThemePreferenceController (com.android.settings.display.ThemePreferenceController)2 VrDisplayPreferenceController (com.android.settings.display.VrDisplayPreferenceController)2 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)2 ArrayList (java.util.ArrayList)2 NightDisplayPreferenceController (com.android.settings.display.NightDisplayPreferenceController)1 NightModePreferenceController (com.android.settings.display.NightModePreferenceController)1 PocketJudgePreferenceController (com.android.settings.display.PocketJudgePreferenceController)1 RefreshRatePreferenceController (com.android.settings.display.RefreshRatePreferenceController)1 TimeoutPreferenceController (com.android.settings.display.TimeoutPreferenceController)1