Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java21 import android.app.NotificationHistory.HistoricalNotification;
42 private static HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification()
46 private static HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification()
50 private static HistoricalNotification getHistoricalNotification(String packageName, int index, in getHistoricalNotification()
66 return new HistoricalNotification.Builder() in getHistoricalNotification()
94 HistoricalNotification n = new HistoricalNotification.Builder() in testHistoricalNotificationBuilder()
122 HistoricalNotification n = getHistoricalNotification(0); in testAddNotificationToWrite()
123 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationToWrite()
137 HistoricalNotification n = getHistoricalNotification(3); in testAddNotificationsToWrite()
138 HistoricalNotification n2 = getHistoricalNotification(1); in testAddNotificationsToWrite()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryProtoHelperTest.java21 import android.app.NotificationHistory.HistoricalNotification;
47 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification()
51 private HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification()
66 return new HistoricalNotification.Builder() in getHistoricalNotification()
84 List<HistoricalNotification> expectedEntries = new ArrayList<>(); in testReadWriteNotifications()
87 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications()
111 List<HistoricalNotification> expectedEntries = new ArrayList<>(); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
114 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool()
137 List<HistoricalNotification> expectedEntries = new ArrayList<>(); in testReadNotificationsWithPkgFilter()
141 HistoricalNotification n = in testReadNotificationsWithPkgFilter()
[all …]
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 …]
DNotificationHistoryManagerTest.java31 import android.app.NotificationHistory.HistoricalNotification;
66 private HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification()
77 return new HistoricalNotification.Builder() in getHistoricalNotification()
480 HistoricalNotification hn = getHistoricalNotification("pkg", 1); in testAddNotification_userLocked_noCrash()
487 HistoricalNotification hn = getHistoricalNotification("pkg", 1); in testAddNotification_historyDisabled()
501 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testAddNotification()
502 HistoricalNotification hnAll = getHistoricalNotification("pkg", MIN_SECONDARY_USER_ID); in testAddNotification()
522 HistoricalNotification hnSystem = getHistoricalNotification("pkg", USER_SYSTEM); in testReadNotificationHistory()
523 HistoricalNotification hnAll = getHistoricalNotification("pkg", MIN_SECONDARY_USER_ID); in testReadNotificationHistory()
531 ArrayList<HistoricalNotification> nhSystemList = new ArrayList<>(); in testReadNotificationHistory()
[all …]
DNotificationHistoryDatabaseTest.java29 import android.app.NotificationHistory.HistoricalNotification;
63 private HistoricalNotification getHistoricalNotification(int index) { in getHistoricalNotification()
67 private HistoricalNotification getHistoricalNotification(String packageName, int index) { in getHistoricalNotification()
78 return new HistoricalNotification.Builder() in getHistoricalNotification()
181 HistoricalNotification n = getHistoricalNotification(1); in testAddNotification()
182 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification()
196 HistoricalNotification n = getHistoricalNotification(1); in testAddNotification_newestFirst()
197 HistoricalNotification n2 = getHistoricalNotification(2); in testAddNotification_newestFirst()
224 HistoricalNotification hn = getHistoricalNotification(1); in testReadNotificationHistory_readsBuffer()
/frameworks/base/core/java/android/app/
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()
227 private List<HistoricalNotification> mNotificationsToWrite = new ArrayList<>();
285 public @Nullable HistoricalNotification getNextNotification() { in getNextNotification()
289 HistoricalNotification n = readNotificationFromParcel(mParcel); in getNextNotification()
312 final HistoricalNotification notification = mNotificationsToWrite.get(i); in poolStringsFromNotifications()
325 public void addNotificationToWrite(@NonNull HistoricalNotification notification) { in addNotificationToWrite()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
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()
DNotificationHistoryFilter.java21 import android.app.NotificationHistory.HistoricalNotification;
57 public boolean matchesPackageAndChannelFilter(HistoricalNotification notification) { in matchesPackageAndChannelFilter()
DNotificationHistoryManager.java23 import android.app.NotificationHistory.HistoricalNotification;
245 public void addNotification(@NonNull final HistoricalNotification notification) { in addNotification()
DNotificationHistoryDatabase.java20 import android.app.NotificationHistory.HistoricalNotification;
162 public void addNotification(final HistoricalNotification notification) { in addNotification()
DNotificationManagerService.java193 import android.app.NotificationHistory.HistoricalNotification;
3364 mHistoryManager.addNotification(new HistoricalNotification.Builder()
/frameworks/base/boot/
Dpreloaded-classes649 android.app.NotificationHistory$HistoricalNotification$Builder
650 android.app.NotificationHistory$HistoricalNotification
Dboot-image-profile.txt23024 Landroid/app/NotificationHistory$HistoricalNotification$Builder;
23025 Landroid/app/NotificationHistory$HistoricalNotification;
/frameworks/base/config/
Dpreloaded-classes649 android.app.NotificationHistory$HistoricalNotification$Builder
650 android.app.NotificationHistory$HistoricalNotification
Dboot-image-profile.txt33154 Landroid/app/NotificationHistory$HistoricalNotification$Builder;
33155 Landroid/app/NotificationHistory$HistoricalNotification;
/frameworks/base/services/
Dart-profile2065 …Landroid/app/NotificationHistory$HistoricalNotification$Builder;Landroid/app/NotificationHistory$H…
Dart-wear-profile15821 …/notification/NotificationHistoryManager;Landroid/app/NotificationHistory$HistoricalNotification;)V
15826 …/notification/NotificationHistoryManager;Landroid/app/NotificationHistory$HistoricalNotification;)V
15832 …ficationHistoryManager;->addNotification(Landroid/app/NotificationHistory$HistoricalNotification;)V
15835 …istoryManager;->lambda$addNotification$0(Landroid/app/NotificationHistory$HistoricalNotification;)V