/aosp12/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | NotificationHistoryTest.java | 21 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 D | NotificationHistoryProtoHelperTest.java | 21 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 D | NotificationHistoryFilterTest.java | 21 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 D | NotificationHistoryManagerTest.java | 31 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 D | NotificationHistoryDatabaseTest.java | 31 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 D | NotificationHistory.java | 44 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 D | NotificationHistoryProtoHelper.java | 19 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 D | NotificationHistoryFilter.java | 21 import android.app.NotificationHistory.HistoricalNotification; 57 public boolean matchesPackageAndChannelFilter(HistoricalNotification notification) { in matchesPackageAndChannelFilter()
|
H A D | NotificationHistoryManager.java | 23 import android.app.NotificationHistory.HistoricalNotification; 218 public void addNotification(@NonNull final HistoricalNotification notification) { in addNotification()
|
H A D | NotificationHistoryDatabase.java | 21 import android.app.NotificationHistory.HistoricalNotification; 183 public void addNotification(final HistoricalNotification notification) { in addNotification()
|
H A D | NotificationManagerService.java | 148 import android.app.NotificationHistory.HistoricalNotification; 2938 mHistoryManager.addNotification(new HistoricalNotification.Builder()
|
/aosp12/packages/apps/Settings/src/com/android/settings/notification/history/ |
H A D | NotificationHistoryAdapter.java | 24 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 D | HistoryLoader.java | 20 import android.app.NotificationHistory.HistoricalNotification; 56 HistoricalNotification hn = history.getNextNotification(); in load()
|
H A D | NotificationHistoryPackage.java | 32 TreeSet<NotificationHistory.HistoricalNotification> notifications;
|
/aosp12/frameworks/base/boot/ |
H A D | preloaded-classes | 495 android.app.NotificationHistory$HistoricalNotification$Builder 496 android.app.NotificationHistory$HistoricalNotification
|
H A D | boot-image-profile.txt | 23261 Landroid/app/NotificationHistory$HistoricalNotification$Builder; 23262 Landroid/app/NotificationHistory$HistoricalNotification;
|
/aosp12/frameworks/base/config/ |
H A D | preloaded-classes | 493 android.app.NotificationHistory$HistoricalNotification$Builder 494 android.app.NotificationHistory$HistoricalNotification
|
H A D | boot-image-profile.txt | 32894 Landroid/app/NotificationHistory$HistoricalNotification$Builder; 32895 Landroid/app/NotificationHistory$HistoricalNotification;
|
/aosp12/frameworks/base/services/ |
H A D | art-profile | 26321 …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 26369 …HistoricalNotification;)V+]Ljava/lang/StringBuilder;Ljava/lang/StringBuilder;]Landroid/app/Notific… 26378 …HistoricalNotification$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 26385 …HistoricalNotification;)V+]Ljava/lang/StringBuilder;Ljava/lang/StringBuilder;]Landroid/util/proto/… 27069 …Landroid/app/NotificationHistory$HistoricalNotification$Builder;Landroid/app/NotificationHistory$H…
|