Home
last modified time | relevance | path

Searched refs:PowerStatsSpan (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsStore.java69 private final PowerStatsSpan.SectionReader mSectionReader;
70 private volatile List<PowerStatsSpan.Metadata> mTableOfContents;
80 @NonNull PowerStatsSpan.SectionReader sectionReader) { in PowerStatsStore()
94 public List<PowerStatsSpan.Metadata> getTableOfContents() { in getTableOfContents()
95 List<PowerStatsSpan.Metadata> toc = mTableOfContents; in getTableOfContents()
111 PowerStatsSpan.Metadata metadata = PowerStatsSpan.Metadata.read(parser); in getTableOfContents()
122 toc.sort(PowerStatsSpan.Metadata.COMPARATOR); in getTableOfContents()
134 public void storePowerStatsSpan(PowerStatsSpan span) { in storePowerStatsSpan()
166 public PowerStatsSpan loadPowerStatsSpan(long id, String... sectionTypes) { in loadPowerStatsSpan()
172 return PowerStatsSpan.read(inputStream, parser, mSectionReader, sectionTypes); in loadPowerStatsSpan()
[all …]
DPowerStatsExporter.java64 List<PowerStatsSpan.Metadata> spans = mPowerStatsStore.getTableOfContents(); in exportAggregatedPowerStats()
66 PowerStatsSpan.Metadata metadata = spans.get(i); in exportAggregatedPowerStats()
71 List<PowerStatsSpan.TimeFrame> timeFrames = metadata.getTimeFrames(); in exportAggregatedPowerStats()
75 PowerStatsSpan.TimeFrame timeFrame = timeFrames.get(j); in exportAggregatedPowerStats()
94 PowerStatsSpan span = mPowerStatsStore.loadPowerStatsSpan(metadata.getId(), in exportAggregatedPowerStats()
100 List<PowerStatsSpan.Section> sections = span.getSections(); in exportAggregatedPowerStats()
103 PowerStatsSpan.Section section = sections.get(k); in exportAggregatedPowerStats()
DPowerStatsSpan.java52 public class PowerStatsSpan { class
303 public PowerStatsSpan(long id) { in PowerStatsSpan() method in PowerStatsSpan
307 private PowerStatsSpan(Metadata metadata) { in PowerStatsSpan() method in PowerStatsSpan
356 static PowerStatsSpan read(InputStream in, TypedXmlPullParser parser, in read()
368 PowerStatsSpan span = new PowerStatsSpan(metadata); in read()
DBatteryUsageStatsProvider.java351 List<PowerStatsSpan.Metadata> toc = mPowerStatsStore.getTableOfContents(); in getAggregatedBatteryUsageStats()
352 for (PowerStatsSpan.Metadata spanMetadata : toc) { in getAggregatedBatteryUsageStats()
368 for (PowerStatsSpan.TimeFrame timeFrame : spanMetadata.getTimeFrames()) { in getAggregatedBatteryUsageStats()
383 PowerStatsSpan powerStatsSpan = mPowerStatsStore.loadPowerStatsSpan( in getAggregatedBatteryUsageStats()
389 for (PowerStatsSpan.Section section : powerStatsSpan.getSections()) { in getAggregatedBatteryUsageStats()
DPowerStatsScheduler.java160 PowerStatsSpan span = PowerStatsStore.createPowerStatsSpan(stats); in aggregateAndDumpPowerStats()
231 for (PowerStatsSpan.Metadata metadata : mPowerStatsStore.getTableOfContents()) { in getLastSavedSpanEndMonotonicTime()
233 for (PowerStatsSpan.TimeFrame timeFrame : metadata.getTimeFrames()) { in getLastSavedSpanEndMonotonicTime()
DAggregatedPowerStatsSection.java25 class AggregatedPowerStatsSection extends PowerStatsSpan.Section {
DBatteryUsageStatsSection.java26 class BatteryUsageStatsSection extends PowerStatsSpan.Section {
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsStoreTest.java78 PowerStatsSpan span = new PowerStatsSpan(i); in garbageCollectOldSpans()
86 List<PowerStatsSpan.Metadata> toc = mPowerStatsStore.getTableOfContents(); in garbageCollectOldSpans()
89 for (PowerStatsSpan.Metadata metadata : toc) { in garbageCollectOldSpans()
97 PowerStatsSpan span = new PowerStatsSpan(i); in reset()
134 private static class TestSection extends PowerStatsSpan.Section {
DPowerStatsSchedulerTest.java164 List<PowerStatsSpan.Metadata> contents = mPowerStatsStore.getTableOfContents(); in storeAggregatePowerStats()
167 PowerStatsSpan.TimeFrame timeFrame1 = contents.get(1).getTimeFrames().get(0); in storeAggregatePowerStats()
168 PowerStatsSpan.TimeFrame timeFrame2 = contents.get(2).getTimeFrames().get(0); in storeAggregatePowerStats()
DBatteryStatsImplTest.java958 List<PowerStatsSpan.Metadata> contents = mPowerStatsStore.getTableOfContents(); in storeBatteryUsageStatsOnReset()
961 PowerStatsSpan.Metadata metadata = contents.get(0); in storeBatteryUsageStatsOnReset()
963 PowerStatsSpan span = mPowerStatsStore.loadPowerStatsSpan(metadata.getId(), in storeBatteryUsageStatsOnReset()
967 List<PowerStatsSpan.TimeFrame> timeFrames = span.getMetadata().getTimeFrames(); in storeBatteryUsageStatsOnReset()
972 List<PowerStatsSpan.Section> sections = span.getSections(); in storeBatteryUsageStatsOnReset()
975 PowerStatsSpan.Section section = sections.get(0); in storeBatteryUsageStatsOnReset()
/frameworks/base/services/
Dart-wear-profile1232 Lcom/android/server/power/stats/PowerStatsSpan$Section;
1233 Lcom/android/server/power/stats/PowerStatsSpan$SectionReader;
22287 PLcom/android/server/power/stats/PowerStatsSpan$Metadata$$ExternalSyntheticLambda0;-><init>()V
22288 PLcom/android/server/power/stats/PowerStatsSpan$Metadata;-><clinit>()V
22289 PLcom/android/server/power/stats/PowerStatsSpan$Metadata;-><init>(J)V
22290 PLcom/android/server/power/stats/PowerStatsSpan$Metadata;->addSection(Ljava/lang/String;)V
22291 PLcom/android/server/power/stats/PowerStatsSpan$Metadata;->addTimeFrame(Lcom/android/server/power/s…
22292 PLcom/android/server/power/stats/PowerStatsSpan$Metadata;->getSections()Ljava/util/List;
22293 …r/power/stats/PowerStatsSpan$Metadata;->read(Lcom/android/modules/utils/TypedXmlPullParser;)Lcom/a…
22294 PLcom/android/server/power/stats/PowerStatsSpan$TimeFrame;-><init>(JJJ)V
[all …]