Home
last modified time | relevance | path

Searched refs:getChannelName (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationHistoryTest.java101 assertThat(n.getChannelName()).isEqualTo(expectedChannelName); in testHistoricalNotificationBuilder()
153 assertThat(history.getPooledStringsToWrite()).asList().contains(n2.getChannelName()); in testAddNotificationsToWrite()
165 expectedStrings.add(n.getChannelName()); in testPoolStringsFromNotifications()
195 expectedStrings.add(n.getChannelName()); in testAddPooledStrings()
230 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveNotificationsFromWrite()
267 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveNotificationFromWrite()
304 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveConversationNotificationFromWrite()
343 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveChannelFromWrite()
/aosp14/frameworks/base/core/java/android/app/
H A DNotificationHistory.java62 public String getChannelName() { in getChannelName() method in NotificationHistory.HistoricalNotification
130 Objects.equals(getChannelName(), that.getChannelName()) && in equals()
140 return Objects.hash(getPackage(), getChannelName(), getChannelId(), getUid(), in hashCode()
314 mStringsToWrite.add(notification.getChannelName()); in poolStringsFromNotifications()
471 if (notification.getChannelName() != null) { in writeNotificationToParcel()
472 channelNameIndex = findStringIndex(notification.getChannelName()); in writeNotificationToParcel()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationHistoryProtoHelperTest.java146 expectedStrings.add(n.getChannelName()); in testReadNotificationsWithPkgFilter()
188 expectedStrings.add(n.getChannelName()); in testReadNotificationsWithNumberFilter()
240 expectedStrings.add(n.getChannelName()); in testReadNotificationsWithNumberFilter_preExistingNotifs()
280 expectedStrings.add(n.getChannelName()); in testReadMergeIntoExistingHistory()
298 expectedStrings.add(n.getChannelName()); in testReadMergeIntoExistingHistory()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationHistoryProtoHelper.java269 final int channelNameIndex = Arrays.binarySearch(stringPool, notification.getChannelName()); in writeNotification()
273 Slog.w(TAG, "notification channel name (" + notification.getChannelName() in writeNotification()
275 proto.write(Notification.CHANNEL_NAME, notification.getChannelName()); in writeNotification()