Searched refs:batteryDiffEntry (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryDiffData.java | 186 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 …]
|
D | ConvertUtils.java | 512 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 …]
|
D | AnomalyEventWrapper.java | 94 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/ |
D | AppBatteryPreferenceTest.kt | 80 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/ |
D | BatteryUsageBreakdownControllerTest.java | 275 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()
|
D | BatteryDiffDataTest.java | 74 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()
|
D | ConvertUtilsTest.java | 365 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/ |
D | AppBatteryPreferenceController.java | 183 protected void onPostExecute(BatteryDiffEntry batteryDiffEntry) { in loadBatteryDiffEntries() argument 184 mBatteryDiffEntry = batteryDiffEntry; in loadBatteryDiffEntries()
|