Home
last modified time | relevance | path

Searched refs:mHistoryFiles (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryDatabaseTest.java129 mDataBase.mHistoryFiles.addLast(af); in testPrune()
139 mDataBase.mHistoryFiles.addLast(af); in testPrune()
146 assertThat(mDataBase.mHistoryFiles).containsExactlyElementsIn(expectedFiles); in testPrune()
165 mDataBase.mHistoryFiles.addLast(af); in testPrune_badFileName_noCrash()
172 assertThat(mDataBase.mHistoryFiles).containsExactlyElementsIn(expectedFiles); in testPrune_badFileName_noCrash()
227 mDataBase.mHistoryFiles.addLast(af); in testReadNotificationHistory_readsAllFiles()
232 for (AtomicFile file : mDataBase.mHistoryFiles) { in testReadNotificationHistory_readsAllFiles()
251 mDataBase.mHistoryFiles.addLast(af); in testReadNotificationHistory_withNumFilterDoesNotReadExtraFiles()
255 mDataBase.mHistoryFiles.addLast(af2); in testReadNotificationHistory_withNumFilterDoesNotReadExtraFiles()
272 mDataBase.mHistoryFiles.addLast(af); in testRemoveNotificationRunnable()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryDatabase.java79 final LinkedList<AtomicFile> mHistoryFiles; field in NotificationHistoryDatabase
97 mHistoryFiles = new LinkedList<>(); in NotificationHistoryDatabase()
124 mHistoryFiles.clear(); in indexFilesLocked()
135 mHistoryFiles.addLast(new AtomicFile(file)); in indexFilesLocked()
198 for (AtomicFile file : mHistoryFiles) { in readNotificationHistory()
216 for (AtomicFile file : mHistoryFiles) { in readNotificationHistory()
239 for (AtomicFile file : mHistoryFiles) { in disableHistory()
243 mHistoryFiles.clear(); in disableHistory()
256 for (int i = mHistoryFiles.size() - 1; i >= 0; i--) { in prune()
257 final AtomicFile currentOldestFile = mHistoryFiles.get(i); in prune()
[all …]