Searched refs:IoUsageStatsEntry (Results 1 – 5 of 5) sorted by relevance
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
H A D | IoUsageStatsEntrySubject.java | 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() 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() 106 for (WatchdogStorage.IoUsageStatsEntry entry : entries) { in toString() 117 WatchdogStorage.IoUsageStatsEntry entry) { in toStringBuilder() [all …]
|
H A D | WatchdogStorageUnitTest.java | 130 List<WatchdogStorage.IoUsageStatsEntry> expected = sampleStatsForDate( in testSaveAndGetIoOveruseStats() 142 List<WatchdogStorage.IoUsageStatsEntry> entries = sampleStatsForDate( in testSaveAndGetIoOveruseStatsWithOffsettedStartTime() 151 List<WatchdogStorage.IoUsageStatsEntry> expected = sampleStatsForDate( in testSaveAndGetIoOveruseStatsWithOffsettedStartTime() 311 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetDailySystemIoUsageSummaries() 340 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetDailySystemIoUsageSummariesWithoutStats() 361 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetTopUsersDailyIoUsageSummaries() 413 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetTopUsersDailyIoUsageSummariesWithLowSystemTotalWrittenBytes() 435 List<WatchdogStorage.IoUsageStatsEntry> entries = new ArrayList<>(); in testGetTopUsersDailyIoUsageSummariesWithoutStats() 732 private ArrayList<WatchdogStorage.IoUsageStatsEntry> sampleStatsBetweenDates( in sampleStatsBetweenDates() 750 private ArrayList<WatchdogStorage.IoUsageStatsEntry> sampleStatsForToday() { in sampleStatsForToday() [all …]
|
H A D | CarWatchdogServiceUnitTest.java | 250 private final List<WatchdogStorage.IoUsageStatsEntry> mIoUsageStatsEntries = new ArrayList<>(); 2196 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = Arrays.asList( in testGetTodayIoUsageStats() 2310 List<WatchdogStorage.IoUsageStatsEntry> expectedSavedEntries = Arrays.asList( in testPersistIoOveruseStatsOnDateChange() 2311 new WatchdogStorage.IoUsageStatsEntry(/* userId= */ 10, "system_package", in testPersistIoOveruseStatsOnDateChange() 2315 new WatchdogStorage.IoUsageStatsEntry(/* userId= */ 10, "third_party_package", in testPersistIoOveruseStatsOnDateChange() 3582 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = args.getArgument(0); in mockWatchdogStorage() 3583 for (WatchdogStorage.IoUsageStatsEntry entry : ioUsageStatsEntries) { in mockWatchdogStorage() 3585 new WatchdogStorage.IoUsageStatsEntry(entry.userId, entry.packageName, in mockWatchdogStorage()
|
/aosp12/packages/services/Car/service/src/com/android/car/watchdog/ |
H A D | WatchdogStorage.java | 78 private final List<IoUsageStatsEntry> mTodayIoUsageStatsEntries = new ArrayList<>(); 154 public boolean saveIoUsageStats(List<IoUsageStatsEntry> entries) { in saveIoUsageStats() 159 public List<IoUsageStatsEntry> getTodayIoUsageStats() { in getTodayIoUsageStats() 180 mTodayIoUsageStatsEntries.add(new IoUsageStatsEntry( in getTodayIoUsageStats() 362 boolean saveIoUsageStats(List<IoUsageStatsEntry> entries, boolean shouldCheckRetention) { in saveIoUsageStats() 366 IoUsageStatsEntry entry = entries.get(i); in saveIoUsageStats() 679 static final class IoUsageStatsEntry { class in WatchdogStorage 684 IoUsageStatsEntry(@UserIdInt int userId, in IoUsageStatsEntry() method in WatchdogStorage.IoUsageStatsEntry 788 String userPackageId, IoUsageStatsEntry entry, long statsDateEpochSeconds) { in getContentValues()
|
H A D | WatchdogPerfHandler.java | 889 List<WatchdogStorage.IoUsageStatsEntry> entries = mWatchdogStorage.getTodayIoUsageStats(); in getTodayIoUsageStats() 891 WatchdogStorage.IoUsageStatsEntry entry = entries.get(i); in getTodayIoUsageStats() 1067 List<WatchdogStorage.IoUsageStatsEntry> ioStatsEntries = in readFromDatabase() 1090 WatchdogStorage.IoUsageStatsEntry entry = ioStatsEntries.get(i); in readFromDatabase() 1166 List<WatchdogStorage.IoUsageStatsEntry> ioUsageStatsEntries = in writeStatsLocked() 1182 ioUsageStatsEntries.add(new WatchdogStorage.IoUsageStatsEntry(usage.userId, in writeStatsLocked()
|