Searched refs:ioOveruseStats (Results 1 – 3 of 3) sorted by relevance
104 IoOveruseStats ioOveruseStats = stats.get().getIoOveruseStats(); in testGetResourceOveruseStats() local105 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()
231 private void verifyAtomIoOveruseStats(CarWatchdogIoOveruseStats ioOveruseStats, in verifyAtomIoOveruseStats() argument233 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()
302 IoOveruseStats ioOveruseStats = stats.getIoOveruseStats(); in fetchRemainingBytes() local303 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()