Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/
DPowerStatsServiceTest.java307 PowerStatsServiceMeterProto pssProto = PowerStatsServiceMeterProto.parseFrom(fileContent); in testWrittenMeterDataMatchesReadIncidentReportData() local
310 assertTrue(pssProto.channel.length == ENERGY_METER_COUNT); in testWrittenMeterDataMatchesReadIncidentReportData()
311 for (int i = 0; i < pssProto.channel.length; i++) { in testWrittenMeterDataMatchesReadIncidentReportData()
312 assertTrue(pssProto.channel[i].id == i); in testWrittenMeterDataMatchesReadIncidentReportData()
313 assertTrue(pssProto.channel[i].name.equals(CHANNEL_NAME + i)); in testWrittenMeterDataMatchesReadIncidentReportData()
314 assertTrue(pssProto.channel[i].subsystem.equals(CHANNEL_SUBSYSTEM + i)); in testWrittenMeterDataMatchesReadIncidentReportData()
318 assertTrue(pssProto.energyMeasurement.length == ENERGY_METER_COUNT); in testWrittenMeterDataMatchesReadIncidentReportData()
319 for (int i = 0; i < pssProto.energyMeasurement.length; i++) { in testWrittenMeterDataMatchesReadIncidentReportData()
320 assertTrue(pssProto.energyMeasurement[i].id == i); in testWrittenMeterDataMatchesReadIncidentReportData()
321 assertTrue(pssProto.energyMeasurement[i].timestampMs == in testWrittenMeterDataMatchesReadIncidentReportData()
[all …]