Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java108 assertThat(n.getChannelName()).isEqualTo(expectedChannelName); in testHistoricalNotificationBuilder()
160 assertThat(history.getPooledStringsToWrite()).asList().contains(n2.getChannelName()); in testAddNotificationsToWrite()
172 expectedStrings.add(n.getChannelName()); in testPoolStringsFromNotifications()
202 expectedStrings.add(n.getChannelName()); in testAddPooledStrings()
237 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveNotificationsFromWrite()
274 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveNotificationFromWrite()
311 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveConversationNotificationFromWrite()
350 postRemoveExpectedStrings.add(n.getChannelName()); in testRemoveChannelFromWrite()
/frameworks/base/core/java/android/app/
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()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
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()
DPreferencesHelperTest.java5669 assertEquals("channel name", name, p.getChannelName()); in testPullPackageChannelPreferencesStats()
5673 assertEquals("channel name", "a", p.getChannelName()); in testPullPackageChannelPreferencesStats()
5676 assertEquals("channel name", "b", p.getChannelName()); in testPullPackageChannelPreferencesStats()
/frameworks/base/services/core/java/com/android/server/notification/
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()
/frameworks/base/services/core/java/com/android/server/powerstats/
DPowerStatsService.java575 getChannelName(channel)); in ensurePowerMonitors()
596 private String getChannelName(Channel c) { in getChannelName() method in PowerStatsService