Search in sources :

Example 1 with BatteryImagePreferenceController

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

the class PowerUsageSummary method getPreferenceControllers.

@Override
protected List<AbstractPreferenceController> getPreferenceControllers(Context context) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    mBatteryHeaderPreferenceController = new BatteryHeaderPreferenceController(context, getActivity(), this, /* host */
    getLifecycle());
    controllers.add(mBatteryHeaderPreferenceController);
    // controllers.add(new AutoBrightnessPreferenceController(context, KEY_AUTO_BRIGHTNESS));
    // controllers.add(new TimeoutPreferenceController(context, KEY_SCREEN_TIMEOUT));
    controllers.add(new BatterySaverController(context, getLifecycle()));
    controllers.add(new BatteryPercentagePreferenceController(context));
    controllers.add(new BatteryImagePreferenceController(context));
    /*controllers.add(new AmbientDisplayPreferenceController(
                context,
                new AmbientDisplayConfiguration(context),
                KEY_AMBIENT_DISPLAY));*/
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) BatteryImagePreferenceController(com.android.settings.display.BatteryImagePreferenceController) BatteryPercentagePreferenceController(com.android.settings.display.BatteryPercentagePreferenceController)

Aggregations

BatteryImagePreferenceController (com.android.settings.display.BatteryImagePreferenceController)1 BatteryPercentagePreferenceController (com.android.settings.display.BatteryPercentagePreferenceController)1 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)1 ArrayList (java.util.ArrayList)1