Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogStorageUnitTest.java328 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = sampleStatsForToday(); in testGetHistoricalIoOveruseStats() local
330 .that(mService.saveIoUsageStats(ioUsageStatsEntries)) in testGetHistoricalIoOveruseStats()
331 .isEqualTo(ioUsageStatsEntries.size()); in testGetHistoricalIoOveruseStats()
372 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = sampleStatsForToday(); in testGetHistoricalIoOveruseStatsWithNoRecentStats() local
374 .that(mService.saveIoUsageStats(ioUsageStatsEntries)) in testGetHistoricalIoOveruseStatsWithNoRecentStats()
375 .isEqualTo(ioUsageStatsEntries.size()); in testGetHistoricalIoOveruseStatsWithNoRecentStats()
604 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = sampleStatsForToday(); in testDeleteUserPackage() local
607 assertThat(mService.saveIoUsageStats(ioUsageStatsEntries)) in testDeleteUserPackage()
608 .isEqualTo(ioUsageStatsEntries.size()); in testDeleteUserPackage()
621 ioUsageStatsEntries.removeIf( in testDeleteUserPackage()
[all …]
DIoUsageStatsEntrySubject.java59 Iterable<WatchdogStorage.IoUsageStatsEntry>> ioUsageStatsEntries() { in ioUsageStatsEntries() method in IoUsageStatsEntrySubject
DWatchdogPerfHandlerUnitTest.java1125 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = Arrays.asList( in testAsyncFetchTodayIoUsageStats() local
1142 when(mSpiedWatchdogStorage.getTodayIoUsageStats()).thenReturn(ioUsageStatsEntries); in testAsyncFetchTodayIoUsageStats()
1171 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = Arrays.asList( in testAsyncFetchTodayIoUsageStatsWithDaemonRemoteException() local
1188 when(mSpiedWatchdogStorage.getTodayIoUsageStats()).thenReturn(ioUsageStatsEntries); in testAsyncFetchTodayIoUsageStatsWithDaemonRemoteException()
1200 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = Arrays.asList( in testGetTodayIoUsageStats() local
1217 when(mSpiedWatchdogStorage.getTodayIoUsageStats()).thenReturn(ioUsageStatsEntries); in testGetTodayIoUsageStats()
4669 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = args.getArgument(0); in mockWatchdogStorage() local
4670 for (WatchdogStorage.IoUsageStatsEntry entry : ioUsageStatsEntries) { in mockWatchdogStorage()
4679 return ioUsageStatsEntries.size(); in mockWatchdogStorage()
DCarWatchdogServiceUnitTest.java1116 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = args.getArgument(0); in mockWatchdogStorage() local
1117 for (WatchdogStorage.IoUsageStatsEntry entry : ioUsageStatsEntries) { in mockWatchdogStorage()
1126 return ioUsageStatsEntries.size(); in mockWatchdogStorage()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java1401 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = new ArrayList<>(); in writeToDatabase() local
1420 ioUsageStatsEntries.add(new WatchdogStorage.IoUsageStatsEntry(usage.userId, in writeToDatabase()
1441 if (writeStats(ioUsageStatsEntries, forgivePackagesByUserId) in writeToDatabase()
1456 private boolean writeStats(List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries, in writeStats() argument
1466 if (ioUsageStatsEntries.isEmpty()) { in writeStats()
1469 int result = mWatchdogStorage.saveIoUsageStats(ioUsageStatsEntries); in writeStats()
1472 ioUsageStatsEntries.size()); in writeStats()
1475 result, ioUsageStatsEntries.size()); in writeStats()