Search in sources :

Example 11 with AnomalySummaryPreferenceController

use of com.android.settings.fuelgauge.anomaly.AnomalySummaryPreferenceController in project platform_packages_apps_Settings by BlissRoms.

the class PowerUsageSummary method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setAnimationAllowed(true);
    initFeatureProvider();
    mBatteryLayoutPref = (LayoutPreference) findPreference(KEY_BATTERY_HEADER);
    mAppListGroup = (PreferenceGroup) findPreference(KEY_APP_LIST);
    mScreenUsagePref = (PowerGaugePreference) findPreference(KEY_SCREEN_USAGE);
    mLastFullChargePref = (PowerGaugePreference) findPreference(KEY_TIME_SINCE_LAST_FULL_CHARGE);
    mFooterPreferenceMixin.createFooterPreference().setTitle(R.string.battery_footer_summary);
    mAnomalySummaryPreferenceController = new AnomalySummaryPreferenceController((SettingsActivity) getActivity(), this, MetricsEvent.FUELGAUGE_POWER_USAGE_SUMMARY);
    mBatteryUtils = BatteryUtils.getInstance(getContext());
    mAnomalySparseArray = new SparseArray<>();
    restartBatteryInfoLoader();
    restoreSavedInstance(icicle);
}
Also used : AnomalySummaryPreferenceController(com.android.settings.fuelgauge.anomaly.AnomalySummaryPreferenceController) SettingsActivity(com.android.settings.SettingsActivity)

Aggregations

SettingsActivity (com.android.settings.SettingsActivity)11 AnomalySummaryPreferenceController (com.android.settings.fuelgauge.anomaly.AnomalySummaryPreferenceController)11