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;
}
Aggregations