Searched refs:IoUsageStatsEntry (Results 1 – 6 of 6) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | IoUsageStatsEntrySubject.java | 35 Iterable<WatchdogStorage.IoUsageStatsEntry>> IO_OVERUSE_STATS_ENTRY_SUBJECT_FACTORY = 39 private final Iterable<WatchdogStorage.IoUsageStatsEntry> mActual; 44 @Nullable Iterable<WatchdogStorage.IoUsageStatsEntry> stats) { in assertThat() 49 @Nullable Iterable<WatchdogStorage.IoUsageStatsEntry> stats, in assertWithMessage() 59 Iterable<WatchdogStorage.IoUsageStatsEntry>> ioUsageStatsEntries() { in ioUsageStatsEntries() 63 public void containsExactly(WatchdogStorage.IoUsageStatsEntry... stats) { in containsExactly() 67 public void containsExactlyElementsIn(Iterable<WatchdogStorage.IoUsageStatsEntry> expected) { in containsExactlyElementsIn() 75 public static boolean isEquals(WatchdogStorage.IoUsageStatsEntry actual, in isEquals() 76 WatchdogStorage.IoUsageStatsEntry expected) { in isEquals() 103 private static String toString(Iterable<WatchdogStorage.IoUsageStatsEntry> entries) { in toString() [all …]
|
D | WatchdogStorageUnitTest.java | 204 List<WatchdogStorage.IoUsageStatsEntry> expected = sampleStatsForDate( in testSaveAndGetIoOveruseStats() 219 List<WatchdogStorage.IoUsageStatsEntry> entries = sampleStatsForDate( in testSaveAndGetIoOveruseStatsWithOffsettedStartTime() 228 List<WatchdogStorage.IoUsageStatsEntry> expected = sampleStatsForDate( in testSaveAndGetIoOveruseStatsWithOffsettedStartTime() 244 List<WatchdogStorage.IoUsageStatsEntry> statsBeforeOverwrite = Collections.singletonList( in testOverwriteIoOveruseStats() 264 List<WatchdogStorage.IoUsageStatsEntry> statsAfterOverwrite = Collections.singletonList( in testOverwriteIoOveruseStats() 328 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = sampleStatsForToday(); in testGetHistoricalIoOveruseStats() 372 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = sampleStatsForToday(); in testGetHistoricalIoOveruseStatsWithNoRecentStats() 409 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetDailySystemIoUsageSummaries() 444 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetDailySystemIoUsageSummariesWithLowSystemTotalWrittenBytes() 470 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetDailySystemIoUsageSummariesWithoutStats() [all …]
|
D | WatchdogPerfHandlerUnitTest.java | 237 private ArgumentCaptor<List<WatchdogStorage.IoUsageStatsEntry>> mIoUsageStatsEntryCaptor; 260 private final List<WatchdogStorage.IoUsageStatsEntry> mIoUsageStatsEntries = new ArrayList<>(); 537 List<WatchdogStorage.IoUsageStatsEntry> expectedSavedIoUsageEntries = Arrays.asList( in testWriteToDatabaseForSaveIoUsageStatsWithForgive() 538 new WatchdogStorage.IoUsageStatsEntry(/* userId= */ 100, "system_package", in testWriteToDatabaseForSaveIoUsageStatsWithForgive() 543 new WatchdogStorage.IoUsageStatsEntry(/* userId= */ 100, "third_party_package", in testWriteToDatabaseForSaveIoUsageStatsWithForgive() 590 List<WatchdogStorage.IoUsageStatsEntry> expectedSavedIoUsageEntries = Arrays.asList( in testWriteToDatabaseForSaveIoUsageStatsWithoutForgive() 591 new WatchdogStorage.IoUsageStatsEntry(/* userId= */ 100, "system_package", in testWriteToDatabaseForSaveIoUsageStatsWithoutForgive() 596 new WatchdogStorage.IoUsageStatsEntry(/* userId= */ 100, "third_party_package", in testWriteToDatabaseForSaveIoUsageStatsWithoutForgive() 1125 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = Arrays.asList( in testAsyncFetchTodayIoUsageStats() 1171 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = Arrays.asList( in testAsyncFetchTodayIoUsageStatsWithDaemonRemoteException() [all …]
|
D | CarWatchdogServiceUnitTest.java | 227 private final List<WatchdogStorage.IoUsageStatsEntry> mIoUsageStatsEntries = new ArrayList<>(); 1116 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = args.getArgument(0); in mockWatchdogStorage() 1117 for (WatchdogStorage.IoUsageStatsEntry entry : ioUsageStatsEntries) { in mockWatchdogStorage() 1119 new WatchdogStorage.IoUsageStatsEntry(entry.userId, entry.packageName, in mockWatchdogStorage()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogStorage.java | 119 private final List<IoUsageStatsEntry> mTodayIoUsageStatsEntries = new ArrayList<>(); 255 public int saveIoUsageStats(List<IoUsageStatsEntry> entries) { in saveIoUsageStats() 260 public List<IoUsageStatsEntry> getTodayIoUsageStats() { in getTodayIoUsageStats() 279 mTodayIoUsageStatsEntries.add(new IoUsageStatsEntry( in getTodayIoUsageStats() 468 int saveIoUsageStats(List<IoUsageStatsEntry> entries, boolean shouldCheckRetention) { in saveIoUsageStats() 472 IoUsageStatsEntry entry = entries.get(i); in saveIoUsageStats() 826 static final class IoUsageStatsEntry { class in WatchdogStorage 831 IoUsageStatsEntry(@UserIdInt int userId, in IoUsageStatsEntry() method in WatchdogStorage.IoUsageStatsEntry 935 String userPackageId, IoUsageStatsEntry entry, long statsDateEpochSeconds) { in getContentValues()
|
D | WatchdogPerfHandler.java | 1046 List<WatchdogStorage.IoUsageStatsEntry> entries = mWatchdogStorage.getTodayIoUsageStats(); in getTodayIoUsageStats() 1048 WatchdogStorage.IoUsageStatsEntry entry = entries.get(i); in getTodayIoUsageStats() 1316 List<WatchdogStorage.IoUsageStatsEntry> ioStatsEntries = in readFromDatabase() 1350 WatchdogStorage.IoUsageStatsEntry entry = ioStatsEntries.get(i); in readFromDatabase() 1401 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = new ArrayList<>(); in writeToDatabase() 1420 ioUsageStatsEntries.add(new WatchdogStorage.IoUsageStatsEntry(usage.userId, in writeToDatabase() 1456 private boolean writeStats(List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries, in writeStats()
|