Home
last modified time | relevance | path

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

/cts/tests/tests/car/src/android/car/cts/
DCarWatchdogManagerTest.java104 IoOveruseStats ioOveruseStats = stats.get().getIoOveruseStats(); in testGetResourceOveruseStats() local
105 PerStateBytes remainingWriteBytes = ioOveruseStats.getRemainingWriteBytes(); in testGetResourceOveruseStats()
108 ioOveruseStats.getTotalBytesWritten()).isAtLeast(FIVE_HUNDRED_KILOBYTES); in testGetResourceOveruseStats()
117 ioOveruseStats.getDurationInSeconds()).isGreaterThan(0); in testGetResourceOveruseStats()
118 assertWithMessage("Start time").that(ioOveruseStats.getStartTime()).isGreaterThan(0); in testGetResourceOveruseStats()
119 assertWithMessage("Total overuse").that(ioOveruseStats.getTotalOveruses()).isEqualTo(0); in testGetResourceOveruseStats()
121 ioOveruseStats.getTotalTimesKilled()).isEqualTo(0); in testGetResourceOveruseStats()
123 ioOveruseStats.isKillableOnOveruse()).isTrue(); in testGetResourceOveruseStats()
/cts/hostsidetests/car/src/android/car/cts/
DCarWatchdogHostTest.java231 private void verifyAtomIoOveruseStats(CarWatchdogIoOveruseStats ioOveruseStats, in verifyAtomIoOveruseStats() argument
233 assertWithMessage(statsType + " has period").that(ioOveruseStats.hasPeriod()).isTrue(); in verifyAtomIoOveruseStats()
234 assertWithMessage("Period in " + statsType).that(ioOveruseStats.getPeriod()) in verifyAtomIoOveruseStats()
236 assertWithMessage(statsType + " has threshold").that(ioOveruseStats.hasThreshold()) in verifyAtomIoOveruseStats()
239 .that(ioOveruseStats.getThreshold().getForegroundBytes()) in verifyAtomIoOveruseStats()
241 assertWithMessage(statsType + " has written bytes").that(ioOveruseStats.hasWrittenBytes()) in verifyAtomIoOveruseStats()
248 .that(ioOveruseStats.getWrittenBytes().getForegroundBytes()) in verifyAtomIoOveruseStats()
251 .that(ioOveruseStats.getWrittenBytes().getForegroundBytes()) in verifyAtomIoOveruseStats()
/cts/hostsidetests/car/app/src/android/car/cts/app/
DCarWatchdogTestActivity.java302 IoOveruseStats ioOveruseStats = stats.getIoOveruseStats(); in fetchRemainingBytes() local
303 if (ioOveruseStats == null) { in fetchRemainingBytes()
309 if (ioOveruseStats.getTotalBytesWritten() < minWrittenBytes) { in fetchRemainingBytes()
311 + "' don't match written bytes '" + ioOveruseStats.getTotalBytesWritten() in fetchRemainingBytes()
315 Log.d(TAG, ioOveruseStats.toString()); in fetchRemainingBytes()
320 return ioOveruseStats.getRemainingWriteBytes().getForegroundModeBytes(); in fetchRemainingBytes()