Home
last modified time | relevance | path

Searched refs:HistoricalNotification (Results 1 – 19 of 19) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationHistoryTest.java21 import android.app.NotificationHistory.HistoricalNotification;
59 return new HistoricalNotification.Builder() in getHistoricalNotification()
87 HistoricalNotification n = new HistoricalNotification.Builder() in testHistoricalNotificationBuilder()
115 HistoricalNotification n = getHistoricalNotification(0); in testAddNotificationToWrite()
116 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationToWrite()
130 HistoricalNotification n = getHistoricalNotification(3); in testAddNotificationsToWrite()
131 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationsToWrite()
132 HistoricalNotification n5 = getHistoricalNotification(0); in testAddNotificationsToWrite()
138 HistoricalNotification n3 = getHistoricalNotification(4); in testAddNotificationsToWrite()
139 HistoricalNotification n4 = getHistoricalNotification(2); in testAddNotificationsToWrite()
[all …]
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationHistoryProtoHelperTest.java21 import android.app.NotificationHistory.HistoricalNotification;
47 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification()
66 return new HistoricalNotification.Builder() in getHistoricalNotification()
87 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications()
114 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
141 HistoricalNotification n = in testReadNotificationsWithPkgFilter()
184 HistoricalNotification n = getHistoricalNotification(i); in testReadNotificationsWithNumberFilter()
225 HistoricalNotification old1 = getHistoricalNotification(40); in testReadNotificationsWithNumberFilter_preExistingNotifs()
229 HistoricalNotification old2 = getHistoricalNotification(50); in testReadNotificationsWithNumberFilter_preExistingNotifs()
236 HistoricalNotification n = getHistoricalNotification(i); in testReadNotificationsWithNumberFilter_preExistingNotifs()
[all …]
H A DNotificationHistoryFilterTest.java21 import android.app.NotificationHistory.HistoricalNotification;
37 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification()
40 private HistoricalNotification getHistoricalNotification(String pkg, int index) { in getHistoricalNotification()
44 private HistoricalNotification getHistoricalNotification(String packageName, String channelId, in getHistoricalNotification()
55 return new HistoricalNotification.Builder() in getHistoricalNotification()
113 HistoricalNotification hnMatches = getHistoricalNotification("pkg", 1); in testMatchesPackageAndChannelFilter_pkgOnly()
115 HistoricalNotification hnMatches2 = getHistoricalNotification("pkg", 2); in testMatchesPackageAndChannelFilter_pkgOnly()
118 HistoricalNotification hnNoMatch = getHistoricalNotification("pkg2", 2); in testMatchesPackageAndChannelFilter_pkgOnly()
128 HistoricalNotification hn1 = getHistoricalNotification("pkg", 1); in testMatchesPackageAndChannelFilter_channelAlso()
131 HistoricalNotification hn2 = getHistoricalNotification("pkg", "channel", 1); in testMatchesPackageAndChannelFilter_channelAlso()
[all …]
H A DNotificationHistoryManagerTest.java31 import android.app.NotificationHistory.HistoricalNotification;
66 private HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification()
77 return new HistoricalNotification.Builder() in getHistoricalNotification()
446 HistoricalNotification hn = getHistoricalNotification("pkg", 1); in testAddNotification_userLocked_noCrash()
453 HistoricalNotification hn = getHistoricalNotification("pkg", 1); in testAddNotification_historyDisabled()
467 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testAddNotification()
488 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testReadNotificationHistory()
497 ArrayList<HistoricalNotification> nhSystemList = new ArrayList<>(); in testReadNotificationHistory()
505 ArrayList<HistoricalNotification> nhAllList = new ArrayList<>(); in testReadNotificationHistory()
519 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testReadNotificationHistory_historyDisabled()
[all …]
H A DNotificationHistoryDatabaseTest.java31 import android.app.NotificationHistory.HistoricalNotification;
68 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification()
72 private HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification()
83 return new HistoricalNotification.Builder() in getHistoricalNotification()
196 HistoricalNotification n = getHistoricalNotification(1); in testAddNotification()
197 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification()
211 HistoricalNotification n = getHistoricalNotification(1); in testAddNotification_newestFirst()
212 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification_newestFirst()
239 HistoricalNotification hn = getHistoricalNotification(1); in testReadNotificationHistory_readsBuffer()
/aosp12/frameworks/base/core/java/android/app/
H A DNotificationHistory.java44 public static final class HistoricalNotification { class in NotificationHistory
56 private HistoricalNotification() {} in HistoricalNotification() method in NotificationHistory.HistoricalNotification
122 HistoricalNotification that = (HistoricalNotification) o; in equals()
209 public HistoricalNotification build() { in build()
210 HistoricalNotification n = new HistoricalNotification(); in build()
285 public @Nullable HistoricalNotification getNextNotification() { in getNextNotification()
289 HistoricalNotification n = readNotificationFromParcel(mParcel); in getNextNotification()
371 HistoricalNotification hn = mNotificationsToWrite.get(i); in removeNotificationFromWrite()
391 HistoricalNotification hn = mNotificationsToWrite.get(i); in removeConversationsFromWrite()
412 HistoricalNotification hn = mNotificationsToWrite.get(i); in removeChannelFromWrite()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationHistoryProtoHelper.java19 import android.app.NotificationHistory.HistoricalNotification;
80 HistoricalNotification notification = readNotification(proto, stringPool); in readNotification()
92 private static HistoricalNotification readNotification(ProtoInputStream parser, in readNotification()
94 final HistoricalNotification.Builder notification = new HistoricalNotification.Builder(); in readNotification()
162 HistoricalNotification.Builder notification, String pkg) throws IOException { in loadIcon()
227 private static void writeIcon(ProtoOutputStream proto, HistoricalNotification notification) { in writeIcon()
258 final String[] stringPool, final HistoricalNotification notification) { in writeNotification()
334 List<HistoricalNotification> notificationsToWrite = notifications.getNotificationsToWrite(); in write()
H A DNotificationHistoryFilter.java21 import android.app.NotificationHistory.HistoricalNotification;
57 public boolean matchesPackageAndChannelFilter(HistoricalNotification notification) { in matchesPackageAndChannelFilter()
H A DNotificationHistoryManager.java23 import android.app.NotificationHistory.HistoricalNotification;
218 public void addNotification(@NonNull final HistoricalNotification notification) { in addNotification()
H A DNotificationHistoryDatabase.java21 import android.app.NotificationHistory.HistoricalNotification;
183 public void addNotification(final HistoricalNotification notification) { in addNotification()
H A DNotificationManagerService.java148 import android.app.NotificationHistory.HistoricalNotification;
2938 mHistoryManager.addNotification(new HistoricalNotification.Builder()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/history/
H A DNotificationHistoryAdapter.java24 import android.app.NotificationHistory.HistoricalNotification;
52 private List<HistoricalNotification> mValues;
82 final HistoricalNotification hn = mValues.get(position); in onBindViewHolder()
132 public void onRebuildComplete(List<HistoricalNotification> notifications) { in onRebuildComplete()
145 HistoricalNotification hn = mValues.remove(position); in onItemSwipeDeleted()
H A DHistoryLoader.java20 import android.app.NotificationHistory.HistoricalNotification;
56 HistoricalNotification hn = history.getNextNotification(); in load()
H A DNotificationHistoryPackage.java32 TreeSet<NotificationHistory.HistoricalNotification> notifications;
/aosp12/frameworks/base/boot/
H A Dpreloaded-classes495 android.app.NotificationHistory$HistoricalNotification$Builder
496 android.app.NotificationHistory$HistoricalNotification
H A Dboot-image-profile.txt23261 Landroid/app/NotificationHistory$HistoricalNotification$Builder;
23262 Landroid/app/NotificationHistory$HistoricalNotification;
/aosp12/frameworks/base/config/
H A Dpreloaded-classes493 android.app.NotificationHistory$HistoricalNotification$Builder
494 android.app.NotificationHistory$HistoricalNotification
H A Dboot-image-profile.txt32894 Landroid/app/NotificationHistory$HistoricalNotification$Builder;
32895 Landroid/app/NotificationHistory$HistoricalNotification;
/aosp12/frameworks/base/services/
H A Dart-profile26321 …storyDatabase;->addNotification(Landroid/app/NotificationHistory$HistoricalNotification;)V+]Landro…
26352 …>matchesPackageAndChannelFilter(Landroid/app/NotificationHistory$HistoricalNotification;)Z+]Lcom/a…
26353 …/notification/NotificationHistoryManager;Landroid/app/NotificationHistory$HistoricalNotification;)V
26364 …ficationHistoryManager;->addNotification(Landroid/app/NotificationHistory$HistoricalNotification;)V
26369HistoricalNotification;)V+]Ljava/lang/StringBuilder;Ljava/lang/StringBuilder;]Landroid/app/Notific…
26378HistoricalNotification$Builder;Ljava/lang/String;)V+]Landroid/app/NotificationHistory$HistoricalNo…
26380 …ory$HistoricalNotification;+]Landroid/app/NotificationHistory$HistoricalNotification$Builder;Landr…
26384 …on(Landroid/util/proto/ProtoOutputStream;Landroid/app/NotificationHistory$HistoricalNotification;)V
26385HistoricalNotification;)V+]Ljava/lang/StringBuilder;Ljava/lang/StringBuilder;]Landroid/util/proto/…
27069 …Landroid/app/NotificationHistory$HistoricalNotification$Builder;Landroid/app/NotificationHistory$H…