Home
last modified time | relevance | path

Searched refs:uidBatteryConsumers (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java81 = proto.uidBatteryConsumers; in testGetStatsProto()
86 assertEquals(UID_0, proto.uidBatteryConsumers[0].uid); in testGetStatsProto()
89 proto.uidBatteryConsumers[0], in testGetStatsProto()
94 assertEquals(UID_1, proto.uidBatteryConsumers[1].uid); in testGetStatsProto()
97 proto.uidBatteryConsumers[1], in testGetStatsProto()
102 assertEquals(UID_2, proto.uidBatteryConsumers[2].uid); in testGetStatsProto()
105 proto.uidBatteryConsumers[2], in testGetStatsProto()
109 assertEquals(3, proto.uidBatteryConsumers.length); in testGetStatsProto()
283 for (int i = 0; i < proto.uidBatteryConsumers.length; i++) { in testLargeAtomTruncated()
284 if (proto.uidBatteryConsumers[i].uid == largeConsumerUid) { in testLargeAtomTruncated()
[all …]
/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/
DBatteryUsageStatsPerfTest.java61 List<UidBatteryConsumer> uidBatteryConsumers = in testGetBatteryUsageStats() local
64 for (int i = 0; i < uidBatteryConsumers.size(); i++) { in testGetBatteryUsageStats()
65 UidBatteryConsumer uidBatteryConsumer = uidBatteryConsumers.get(i); in testGetBatteryUsageStats()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryUsageStatsTest.java178 final List<UidBatteryConsumer> uidBatteryConsumers = in testAdd() local
180 for (UidBatteryConsumer uidBatteryConsumer : uidBatteryConsumers) { in testAdd()
340 final List<UidBatteryConsumer> uidBatteryConsumers = in assertBatteryUsageStats1() local
342 assertThat(uidBatteryConsumers).hasSize(1); in assertBatteryUsageStats1()
343 for (UidBatteryConsumer uidBatteryConsumer : uidBatteryConsumers) { in assertBatteryUsageStats1()
DBatteryUsageStatsProviderTest.java85 final List<UidBatteryConsumer> uidBatteryConsumers = in test_getBatteryUsageStats() local
87 final UidBatteryConsumer uidBatteryConsumer = uidBatteryConsumers.get(0); in test_getBatteryUsageStats()