Searched refs:energyConsumerResult (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/powerstats/ |
D | ProtoStreamUtils.java | 544 public static void adjustTimeSinceBootToEpoch(EnergyConsumerResult[] energyConsumerResult, in adjustTimeSinceBootToEpoch() argument 546 if (energyConsumerResult == null) return; in adjustTimeSinceBootToEpoch() 548 for (int i = 0; i < energyConsumerResult.length; i++) { in adjustTimeSinceBootToEpoch() 549 energyConsumerResult[i].timestampMs += startWallTime; in adjustTimeSinceBootToEpoch() 553 public static byte[] getProtoBytes(EnergyConsumerResult[] energyConsumerResult, in getProtoBytes() argument 556 packProtoMessage(energyConsumerResult, pos, includeAttribution); in getProtoBytes() 560 public static void packProtoMessage(EnergyConsumerResult[] energyConsumerResult, in packProtoMessage() argument 562 if (energyConsumerResult == null) return; in packProtoMessage() 564 for (int i = 0; i < energyConsumerResult.length; i++) { in packProtoMessage() 566 pos.write(EnergyConsumerResultProto.ID, energyConsumerResult[i].id); in packProtoMessage() [all …]
|
D | PowerStatsLogger.java | 199 EnergyConsumerResult[] energyConsumerResult = in writeModelDataToFile() 201 EnergyConsumerResultUtils.packProtoMessage(energyConsumerResult, pos, true); in writeModelDataToFile() 202 if (DEBUG) EnergyConsumerResultUtils.print(energyConsumerResult); in writeModelDataToFile()
|
/frameworks/base/tools/powerstats/ |
D | PowerStatsServiceProtoParser.java | 84 EnergyConsumerResultProto energyConsumerResult = in printEnergyConsumerResults() local 86 csvRow += energyConsumerResult.getId() + "," in printEnergyConsumerResults() 87 + energyConsumerResult.getTimestampMs() + "," in printEnergyConsumerResults() 88 + energyConsumerResult.getEnergyUws() + ","; in printEnergyConsumerResults() 89 for (int k = 0; k < energyConsumerResult.getAttributionCount(); k++) { in printEnergyConsumerResults() 91 energyConsumerResult.getAttribution(k); in printEnergyConsumerResults()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/ |
D | PowerStatsServiceTest.java | 360 assertTrue(pssProto.energyConsumerResult.length == ENERGY_CONSUMER_COUNT); in testWrittenModelDataMatchesReadIncidentReportData() 361 for (int i = 0; i < pssProto.energyConsumerResult.length; i++) { in testWrittenModelDataMatchesReadIncidentReportData() 362 assertTrue(pssProto.energyConsumerResult[i].id == i); in testWrittenModelDataMatchesReadIncidentReportData() 363 assertTrue(pssProto.energyConsumerResult[i].timestampMs == in testWrittenModelDataMatchesReadIncidentReportData() 365 assertTrue(pssProto.energyConsumerResult[i].energyUws == i); in testWrittenModelDataMatchesReadIncidentReportData() 366 assertTrue(pssProto.energyConsumerResult[i].attribution.length in testWrittenModelDataMatchesReadIncidentReportData() 368 for (int j = 0; j < pssProto.energyConsumerResult[i].attribution.length; j++) { in testWrittenModelDataMatchesReadIncidentReportData() 369 assertTrue(pssProto.energyConsumerResult[i].attribution[j].uid == j); in testWrittenModelDataMatchesReadIncidentReportData() 370 assertTrue(pssProto.energyConsumerResult[i].attribution[j].energyUws == j); in testWrittenModelDataMatchesReadIncidentReportData() 512 assertTrue(pssProto.energyConsumerResult.length == 0); in testCorruptOnDeviceModelStorage() [all …]
|