Home
last modified time | relevance | path

Searched refs:getUidBatteryConsumers (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java90 final List<android.os.UidBatteryConsumer> uidConsumers = bus.getUidBatteryConsumers(); in testGetStatsProto()
98 assertEquals(UID_0, bus.getUidBatteryConsumers().get(0).getUid()); in testGetStatsProto()
101 bus.getUidBatteryConsumers().get(0), in testGetStatsProto()
106 assertEquals(UID_1, bus.getUidBatteryConsumers().get(1).getUid()); in testGetStatsProto()
109 bus.getUidBatteryConsumers().get(1), in testGetStatsProto()
114 assertEquals(UID_2, bus.getUidBatteryConsumers().get(2).getUid()); in testGetStatsProto()
117 bus.getUidBatteryConsumers().get(2), in testGetStatsProto()
/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/
DBatteryUsageStatsPerfTest.java75 batteryUsageStats.getUidBatteryConsumers(); in testGetBatteryUsageStats()
127 assertThat(batteryUsageStats.getUidBatteryConsumers()).hasSize(1000); in testBatteryUsageStatsTransferOverBinder()
129 batteryUsageStats.getUidBatteryConsumers().get(0); in testBatteryUsageStatsTransferOverBinder()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsManagerTest.java59 for (UidBatteryConsumer ubc : stats.getUidBatteryConsumers()) { in testBatteryUsageStatsDataConsistency()
DBatteryUsageStatsTest.java133 assertThat(inBatteryUsageStats.getUidBatteryConsumers()).hasSize(uidCount); in testParcelability_largeNumberOfUids()
135 inBatteryUsageStats.getUidBatteryConsumers().stream().collect( in testParcelability_largeNumberOfUids()
199 sum.getUidBatteryConsumers(); in testAdd()
454 batteryUsageStats.getUidBatteryConsumers(); in assertBatteryUsageStats1()
DPowerStatsExporterTest.java193 UidBatteryConsumer uidScope = actual.getUidBatteryConsumers().stream() in combinedProcessStates()
292 List<UidBatteryConsumer> uidScopes = bus.getUidBatteryConsumers(); in assertUidPowerEstimate()
DBatteryUsageStatsRule.java429 for (UidBatteryConsumer ubc : mBatteryUsageStats.getUidBatteryConsumers()) {
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetrics.java54 for (UidBatteryConsumer uidBatteryConsumer : batteryUsageStats.getUidBatteryConsumers()) { in PowerMetrics()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerInfoHelper.java52 batteryUsageStats.getUidBatteryConsumers(); in makeBatteryConsumerInfo()
DBatteryConsumerData.java288 for (UidBatteryConsumer consumer : batteryUsageStats.getUidBatteryConsumers()) { in getRequestedBatteryConsumer()
347 for (BatteryConsumer consumer : batteryUsageStats.getUidBatteryConsumers()) { in computeTotalDuration()
DBatteryConsumerPickerActivity.java161 for (UidBatteryConsumer consumer : batteryUsageStats.getUidBatteryConsumers()) { in loadInBackground()
/frameworks/base/core/java/android/os/
DBatteryUsageStats.java296 public List<UidBatteryConsumer> getUidBatteryConsumers() { in getUidBatteryConsumers() method in BatteryUsageStats
497 final List<UidBatteryConsumer> consumers = getUidBatteryConsumers(); in writeUidBatteryConsumersProto()
638 dumpSortedBatteryConsumers(pw, prefix, getUidBatteryConsumers()); in dump()
1097 for (UidBatteryConsumer consumer : stats.getUidBatteryConsumers()) { in add()
DBatteryStats.java4722 final List<UidBatteryConsumer> uidBatteryConsumers = stats.getUidBatteryConsumers(); in dumpCheckinLocked()
5907 getUidMobileRadioStats(stats.getUidBatteryConsumers()); in dumpLocked()
7996 final List<UidBatteryConsumer> consumers = stats.getUidBatteryConsumers(); in dumpProtoAppsLocked()
8938 final List<UidBatteryConsumer> uidBatteryConsumers = stats.getUidBatteryConsumers(); in ProportionalAttributionCalculator()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryUsageStatsProvider.java277 for (UidBatteryConsumer ubc : stats.getUidBatteryConsumers()) { in verify()
/frameworks/base/services/core/java/com/android/server/am/
DAppBatteryTracker.java704 final List<UidBatteryConsumer> uidConsumers = stats.getUidBatteryConsumers(); in updateBatteryUsageStatsOnceInternal()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java2672 doReturn(consumers).when(stats).getUidBatteryConsumers();