use of com.android.internal.os.BatteryStatsHelper in project android_packages_apps_Settings by omnirom.
the class BatteryStatsHelperLoader method loadInBackground.
@Override
public BatteryStatsHelper loadInBackground() {
Context context = getContext();
final BatteryStatsHelper statsHelper = new BatteryStatsHelper(context, true);
mBatteryUtils.initBatteryStatsHelper(statsHelper, null, /* bundle */
mUserManager);
return statsHelper;
}
use of com.android.internal.os.BatteryStatsHelper in project android_packages_apps_Settings by omnirom.
the class AnomalyLoader method loadInBackground.
@Override
public List<Anomaly> loadInBackground() {
if (USE_FAKE_DATA) {
return generateFakeData();
}
if (mBatteryStatsHelper == null) {
mBatteryStatsHelper = new BatteryStatsHelper(getContext());
mBatteryStatsHelper.create((Bundle) null);
mBatteryStatsHelper.refreshStats(BatteryStats.STATS_SINCE_CHARGED, mUserManager.getUserProfiles());
}
return mAnomalyUtils.detectAnomalies(mBatteryStatsHelper, mPolicy, mPackageName);
}
use of com.android.internal.os.BatteryStatsHelper in project android_packages_apps_Settings by DirtyUnicorns.
the class AnomalyLoader method loadInBackground.
@Override
public List<Anomaly> loadInBackground() {
if (USE_FAKE_DATA) {
return generateFakeData();
}
if (mBatteryStatsHelper == null) {
mBatteryStatsHelper = new BatteryStatsHelper(getContext());
mBatteryStatsHelper.create((Bundle) null);
mBatteryStatsHelper.refreshStats(BatteryStats.STATS_SINCE_CHARGED, mUserManager.getUserProfiles());
}
return mAnomalyUtils.detectAnomalies(mBatteryStatsHelper, mPolicy, mPackageName);
}
use of com.android.internal.os.BatteryStatsHelper in project android_packages_apps_Settings by crdroidandroid.
the class BatteryStatsHelperLoader method loadInBackground.
@Override
public BatteryStatsHelper loadInBackground() {
Context context = getContext();
final BatteryStatsHelper statsHelper = new BatteryStatsHelper(context, true);
mBatteryUtils.initBatteryStatsHelper(statsHelper, null, /* bundle */
mUserManager);
return statsHelper;
}
use of com.android.internal.os.BatteryStatsHelper in project android_packages_apps_Settings by crdroidandroid.
the class AnomalyLoader method loadInBackground.
@Override
public List<Anomaly> loadInBackground() {
if (USE_FAKE_DATA) {
return generateFakeData();
}
if (mBatteryStatsHelper == null) {
mBatteryStatsHelper = new BatteryStatsHelper(getContext());
mBatteryStatsHelper.create((Bundle) null);
mBatteryStatsHelper.refreshStats(BatteryStats.STATS_SINCE_CHARGED, mUserManager.getUserProfiles());
}
return mAnomalyUtils.detectAnomalies(mBatteryStatsHelper, mPolicy, mPackageName);
}
Aggregations