Home
last modified time | relevance | path

Searched refs:statsHelper (Results 1 – 14 of 14) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryStatsHelperLoader.java45 final BatteryStatsHelper statsHelper = new BatteryStatsHelper(context, in loadInBackground() local
47 mBatteryUtils.initBatteryStatsHelper(statsHelper, null /* bundle */, mUserManager); in loadInBackground()
49 return statsHelper; in loadInBackground()
DBatteryAppListPreferenceController.java171 public void refreshAppListGroup(BatteryStatsHelper statsHelper, boolean showAllApps) { in refreshAppListGroup() argument
176 mBatteryStatsHelper = statsHelper; in refreshAppListGroup()
179 final PowerProfile powerProfile = statsHelper.getPowerProfile(); in refreshAppListGroup()
180 final BatteryStats stats = statsHelper.getStats(); in refreshAppListGroup()
191 USE_FAKE_DATA ? getFakeStats() : statsHelper.getUsageList()); in refreshAppListGroup()
199 double totalPower = USE_FAKE_DATA ? 4000 : statsHelper.getTotalPower(); in refreshAppListGroup()
DBatteryUtils.java433 public void initBatteryStatsHelper(BatteryStatsHelper statsHelper, Bundle bundle, in initBatteryStatsHelper() argument
435 statsHelper.create(bundle); in initBatteryStatsHelper()
436 statsHelper.clearStats(); in initBatteryStatsHelper()
437 statsHelper.refreshStats(BatteryStats.STATS_SINCE_CHARGED, userManager.getUserProfiles()); in initBatteryStatsHelper()
441 public BatteryInfo getBatteryInfo(final BatteryStatsHelper statsHelper, final String tag) { in getBatteryInfo() argument
449 final BatteryStats stats = statsHelper.getStats(); in getBatteryInfo()
DBatteryInfo.java148 final BatteryStatsHelper statsHelper, boolean shortString) { in getBatteryInfo() argument
152 return getBatteryInfo(context, statsHelper, shortString); in getBatteryInfo()
165 final BatteryStatsHelper statsHelper, boolean shortString) { in getBatteryInfo() argument
168 if (statsHelper == null) { in getBatteryInfo()
174 stats = statsHelper.getStats(); in getBatteryInfo()
DDebugEstimatesLoader.java35 public DebugEstimatesLoader(Context context, BatteryStatsHelper statsHelper) { in DebugEstimatesLoader() argument
37 mStatsHelper = statsHelper; in DebugEstimatesLoader()
DPowerUsageBase.java115 BatteryStatsHelper statsHelper) { in onLoadFinished() argument
116 mStatsHelper = statsHelper; in onLoadFinished()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryStatsHelperLoader.java45 final BatteryStatsHelper statsHelper = new BatteryStatsHelper(context, in loadInBackground() local
47 mBatteryUtils.initBatteryStatsHelper(statsHelper, null /* bundle */, mUserManager); in loadInBackground()
49 return statsHelper; in loadInBackground()
DBatteryAppListPreferenceController.java171 public void refreshAppListGroup(BatteryStatsHelper statsHelper, boolean showAllApps) { in refreshAppListGroup() argument
176 mBatteryStatsHelper = statsHelper; in refreshAppListGroup()
179 final PowerProfile powerProfile = statsHelper.getPowerProfile(); in refreshAppListGroup()
180 final BatteryStats stats = statsHelper.getStats(); in refreshAppListGroup()
191 USE_FAKE_DATA ? getFakeStats() : statsHelper.getUsageList()); in refreshAppListGroup()
199 double totalPower = USE_FAKE_DATA ? 4000 : statsHelper.getTotalPower(); in refreshAppListGroup()
DBatteryInfo.java150 final BatteryStatsHelper statsHelper, boolean shortString) { in getBatteryInfo() argument
154 return getBatteryInfo(context, statsHelper, shortString); in getBatteryInfo()
167 final BatteryStatsHelper statsHelper, boolean shortString) { in getBatteryInfo() argument
170 if (statsHelper == null) { in getBatteryInfo()
176 stats = statsHelper.getStats(); in getBatteryInfo()
DBatteryUtils.java460 public void initBatteryStatsHelper(BatteryStatsHelper statsHelper, Bundle bundle, in initBatteryStatsHelper() argument
462 statsHelper.create(bundle); in initBatteryStatsHelper()
463 statsHelper.clearStats(); in initBatteryStatsHelper()
464 statsHelper.refreshStats(BatteryStats.STATS_SINCE_CHARGED, userManager.getUserProfiles()); in initBatteryStatsHelper()
468 public BatteryInfo getBatteryInfo(final BatteryStatsHelper statsHelper, final String tag) { in getBatteryInfo() argument
476 final BatteryStats stats = statsHelper.getStats(); in getBatteryInfo()
DDebugEstimatesLoader.java37 public DebugEstimatesLoader(Context context, BatteryStatsHelper statsHelper) { in DebugEstimatesLoader() argument
39 mStatsHelper = statsHelper; in DebugEstimatesLoader()
DPowerUsageBase.java115 BatteryStatsHelper statsHelper) { in onLoadFinished() argument
116 mStatsHelper = statsHelper; in onLoadFinished()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DBatteryFixSlice.java194 final BatteryStatsHelper statsHelper = statsLoader.loadInBackground(); in refreshBatteryTips() local
195 final BatteryTipLoader loader = new BatteryTipLoader(context, statsHelper); in refreshBatteryTips()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBatteryFixSlice.java206 final BatteryStatsHelper statsHelper = statsLoader.loadInBackground(); in refreshBatteryTips() local
207 final BatteryTipLoader loader = new BatteryTipLoader(context, statsHelper); in refreshBatteryTips()