Home
last modified time | relevance | path

Searched refs:batteryUsageStats (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java149 @Nullable final BatteryUsageStats batteryUsageStats, in getBatteryInfo() argument
155 if (batteryUsageStats != null) { in getBatteryInfo()
156 stats = batteryUsageStats; in getBatteryInfo()
178 @NonNull final BatteryUsageStats batteryUsageStats, boolean shortString) { in getBatteryInfo() argument
201 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, batteryUsageStats, in getBatteryInfo()
205 final long prediction = discharging ? batteryUsageStats.getBatteryTimeRemainingMs() : 0; in getBatteryInfo()
211 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, batteryUsageStats, in getBatteryInfo()
217 BatteryUsageStats batteryUsageStats, long elapsedRealtimeUs, boolean shortString) { in getBatteryInfoOld() argument
219 batteryUsageStats.getBatteryTimeRemainingMs(), in getBatteryInfoOld()
222 return getBatteryInfo(context, batteryBroadcast, batteryUsageStats, estimate, in getBatteryInfoOld()
[all …]
DBatteryAppListPreferenceController.java200 public void refreshAppListGroup(BatteryUsageStats batteryUsageStats, boolean showAllApps) { in refreshAppListGroup() argument
205 mBatteryUsageStats = USE_FAKE_DATA ? getFakeStats() : batteryUsageStats; in refreshAppListGroup()
214 final int dischargePercentage = getDischargePercentage(batteryUsageStats); in refreshAppListGroup()
217 final double totalPower = batteryUsageStats.getConsumedPower(); in refreshAppListGroup()
268 BatteryUsageStats batteryUsageStats, boolean showAllApps) { in getBatteryEntryList() argument
269 mBatteryUsageStats = USE_FAKE_DATA ? getFakeStats() : batteryUsageStats; in getBatteryEntryList()
273 final int dischargePercentage = getDischargePercentage(batteryUsageStats); in getBatteryEntryList()
276 final double totalPower = batteryUsageStats.getConsumedPower(); in getBatteryEntryList()
286 private int getDischargePercentage(BatteryUsageStats batteryUsageStats) { in getDischargePercentage() argument
287 int dischargePercentage = batteryUsageStats.getDischargePercentage(); in getDischargePercentage()
DDebugEstimatesLoader.java61 BatteryUsageStats batteryUsageStats = in loadInBackground() local
64 batteryUsageStats, elapsedRealtimeUs, false); in loadInBackground()
71 batteryUsageStats, in loadInBackground()
DBatteryUtils.java297 public long calculateLastFullChargeTime(BatteryUsageStats batteryUsageStats, in calculateLastFullChargeTime() argument
299 return currentTimeMs - batteryUsageStats.getStatsStartTimestamp(); in calculateLastFullChargeTime()
371 final BatteryUsageStats batteryUsageStats = systemService.getBatteryUsageStats( in getBatteryInfo() local
389 batteryUsageStats.getBatteryTimeRemainingMs(), in getBatteryInfo()
396 batteryUsageStats, estimate, elapsedRealtimeUs, false /* shortString */); in getBatteryInfo()
DPowerUsageBase.java121 BatteryUsageStats batteryUsageStats) { in onLoadFinished() argument
122 mBatteryUsageStats = batteryUsageStats; in onLoadFinished()
DBatteryHistoryPreference.java80 void setBatteryUsageStats(@NonNull BatteryUsageStats batteryUsageStats) { in setBatteryUsageStats() argument
84 }, batteryUsageStats, false); in setBatteryUsageStats()
DConvertUtils.java96 BatteryUsageStats batteryUsageStats, in convert() argument
103 if (entry != null && batteryUsageStats != null) { in convert()
112 Double.valueOf(batteryUsageStats.getConsumedPower())); in convert()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java290 UidBatteryConsumer findTargetUidBatteryConsumer(BatteryUsageStats batteryUsageStats, int uid) {
291 final List<UidBatteryConsumer> usageList = batteryUsageStats.getUidBatteryConsumers();
311 BatteryUsageStats batteryUsageStats) {
312 mBatteryUsageStats = batteryUsageStats;
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoader.java54 public BatteryTipLoader(Context context, BatteryUsageStats batteryUsageStats) { in BatteryTipLoader() argument
56 mBatteryUsageStats = batteryUsageStats; in BatteryTipLoader()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java56 BatteryUsageStats batteryUsageStats, BatteryInfo batteryInfo) { in HighUsageDetector() argument
58 mBatteryUsageStats = batteryUsageStats; in HighUsageDetector()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBatteryFixSlice.java211 final BatteryUsageStats batteryUsageStats = statsLoader.loadInBackground(); in refreshBatteryTips() local
212 final BatteryTipLoader loader = new BatteryTipLoader(context, batteryUsageStats); in refreshBatteryTips()