Home
last modified time | relevance | path

Searched refs:uidConsumers (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DAppBatteryTracker.java439 final SparseArray<ImmutableBatteryUsage> uidConsumers = mTmpUidBatteryUsageInWindow; in checkBatteryUsageStats() local
441 copyUidBatteryUsage(mUidBatteryUsageInWindow, uidConsumers); in checkBatteryUsageStats()
444 for (int i = 0, size = uidConsumers.size(); i < size; i++) { in checkBatteryUsageStats()
445 final int uid = uidConsumers.keyAt(i); in checkBatteryUsageStats()
446 final ImmutableBatteryUsage actualUsage = uidConsumers.valueAt(i); in checkBatteryUsageStats()
704 final List<UidBatteryConsumer> uidConsumers = stats.getUidBatteryConsumers(); in updateBatteryUsageStatsOnceInternal() local
705 if (uidConsumers != null) { in updateBatteryUsageStatsOnceInternal()
711 for (UidBatteryConsumer uidConsumer : uidConsumers) { in updateBatteryUsageStatsOnceInternal()
836 final SparseArray<ImmutableBatteryUsage> uidConsumers = mUidBatteryUsageInWindow; in dump() local
848 if (uidConsumers.size() == 0) { in dump()
[all …]
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java90 final List<android.os.UidBatteryConsumer> uidConsumers = bus.getUidBatteryConsumers(); in testGetStatsProto() local
91 uidConsumers.sort((a, b) -> a.getUid() - b.getUid()); in testGetStatsProto()