Home
last modified time | relevance | path

Searched refs:batteryDiffEntry (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffData.java186 final BatteryDiffEntry batteryDiffEntry = appListIterator.next(); in combineIntoSystemApps() local
188 batteryDiffEntry, in combineIntoSystemApps()
200 systemAppsDiffEntry.mConsumePower += batteryDiffEntry.mConsumePower; in combineIntoSystemApps()
202 batteryDiffEntry.mForegroundUsageTimeInMs; in combineIntoSystemApps()
203 systemAppsDiffEntry.setTotalConsumePower(batteryDiffEntry.getTotalConsumePower()); in combineIntoSystemApps()
217 final BatteryDiffEntry batteryDiffEntry = appListIterator.next(); in combineIntoUninstalledApps() local
218 if (!batteryDiffEntry.isUninstalledEntry()) { in combineIntoUninstalledApps()
230 uninstalledAppDiffEntry.mConsumePower += batteryDiffEntry.mConsumePower; in combineIntoUninstalledApps()
232 batteryDiffEntry.mForegroundUsageTimeInMs; in combineIntoUninstalledApps()
233 uninstalledAppDiffEntry.setTotalConsumePower(batteryDiffEntry.getTotalConsumePower()); in combineIntoUninstalledApps()
[all …]
DConvertUtils.java512 final BatteryDiffEntry batteryDiffEntry, in convertToBatteryUsageDiff() argument
516 .setUid(batteryDiffEntry.mUid) in convertToBatteryUsageDiff()
517 .setUserId(batteryDiffEntry.mUserId) in convertToBatteryUsageDiff()
518 .setIsHidden(batteryDiffEntry.mIsHidden) in convertToBatteryUsageDiff()
519 .setComponentId(batteryDiffEntry.mComponentId) in convertToBatteryUsageDiff()
520 .setConsumerType(batteryDiffEntry.mConsumerType) in convertToBatteryUsageDiff()
521 .setConsumePower(batteryDiffEntry.mConsumePower) in convertToBatteryUsageDiff()
523 batteryDiffEntry.mForegroundUsageConsumePower) in convertToBatteryUsageDiff()
525 batteryDiffEntry.mBackgroundUsageConsumePower) in convertToBatteryUsageDiff()
527 batteryDiffEntry.mForegroundServiceUsageConsumePower) in convertToBatteryUsageDiff()
[all …]
DAnomalyEventWrapper.java94 void setRelatedBatteryDiffEntry(BatteryDiffEntry batteryDiffEntry) { in setRelatedBatteryDiffEntry() argument
95 mRelatedBatteryDiffEntry = batteryDiffEntry; in setRelatedBatteryDiffEntry()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppBatteryPreferenceTest.kt80 private fun mockBatteryDiffEntry(batteryDiffEntry: BatteryDiffEntry?) { in mockBatteryDiffEntry()
85 ).thenReturn(batteryDiffEntry) in mockBatteryDiffEntry()
131 val batteryDiffEntry = mock<BatteryDiffEntry>().apply { mConsumePower = 0.0 } in noConsumePower() constant
132 mockBatteryDiffEntry(batteryDiffEntry) in noConsumePower()
143 val batteryDiffEntry = mock<BatteryDiffEntry> { in hasConsumePower() constant
146 mockBatteryDiffEntry(batteryDiffEntry) in hasConsumePower()
155 val batteryDiffEntry = mock<BatteryDiffEntry> { in whenClick_openDetailsPage() constant
158 mockBatteryDiffEntry(batteryDiffEntry) in whenClick_openDetailsPage()
168 batteryDiffEntry, in whenClick_openDetailsPage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBreakdownControllerTest.java275 final BatteryDiffEntry batteryDiffEntry = in setPreferencePercent_lessThanThreshold_expectedFormat() local
282 batteryDiffEntry.mConsumePower = 0.8; in setPreferencePercent_lessThanThreshold_expectedFormat()
283 batteryDiffEntry.setTotalConsumePower(100); in setPreferencePercent_lessThanThreshold_expectedFormat()
288 mBatteryUsageBreakdownController.setPreferencePercentage(pref, batteryDiffEntry); in setPreferencePercent_lessThanThreshold_expectedFormat()
297 final BatteryDiffEntry batteryDiffEntry = in setPreferencePercent_greaterThanThreshold_expectedFormat() local
304 batteryDiffEntry.mConsumePower = 16; in setPreferencePercent_greaterThanThreshold_expectedFormat()
305 batteryDiffEntry.setTotalConsumePower(100); in setPreferencePercent_greaterThanThreshold_expectedFormat()
310 mBatteryUsageBreakdownController.setPreferencePercentage(pref, batteryDiffEntry); in setPreferencePercent_greaterThanThreshold_expectedFormat()
DBatteryDiffDataTest.java74 final BatteryDiffEntry batteryDiffEntry = in needsCombineInSystemApp_isSystemApp_returnTrue() local
82 batteryDiffEntry, in needsCombineInSystemApp_isSystemApp_returnTrue()
92 final BatteryDiffEntry batteryDiffEntry = in needsCombineInSystemApp_notSystemApp_returnFalse() local
100 batteryDiffEntry, List.of(), Set.of(), Set.of()); in needsCombineInSystemApp_notSystemApp_returnFalse()
DConvertUtilsTest.java365 final BatteryDiffEntry batteryDiffEntry = in convertToBatteryUsageDiff_returnsExpectedResult() local
388 (int) batteryDiffEntry.mUid, BatteryOptimizationMode.MODE_OPTIMIZED); in convertToBatteryUsageDiff_returnsExpectedResult()
391 ConvertUtils.convertToBatteryUsageDiff(batteryDiffEntry, optimizationModeCache); in convertToBatteryUsageDiff_returnsExpectedResult()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java183 protected void onPostExecute(BatteryDiffEntry batteryDiffEntry) { in loadBatteryDiffEntries() argument
184 mBatteryDiffEntry = batteryDiffEntry; in loadBatteryDiffEntries()