Home
last modified time | relevance | path

Searched refs:getChannelId (Results 1 – 25 of 28) sorted by relevance

12

/aosp14/frameworks/base/core/java/android/app/
H A DNotificationHistory.java66 public String getChannelId() { in getChannelId() method in NotificationHistory.HistoricalNotification
131 Objects.equals(getChannelId(), that.getChannelId()) && in equals()
140 return Objects.hash(getPackage(), getChannelName(), getChannelId(), getUid(), in hashCode()
315 mStringsToWrite.add(notification.getChannelId()); in poolStringsFromNotifications()
414 && Objects.equals(channelId, hn.getChannelId())) { in removeChannelFromWrite()
478 if (notification.getChannelId() != null) { in writeNotificationToParcel()
479 channelIdIndex = findStringIndex(notification.getChannelId()); in writeNotificationToParcel()
H A DNotification.java3505 proto.write(NotificationProto.CHANNEL_ID, getChannelId()); in dumpDebug()
3528 sb.append(getChannelId()); in toString()
3663 public String getChannelId() { in getChannelId() method in Notification
12268 public String getChannelId() { in getChannelId() method in Notification.Builder.TvExtender
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationHistoryTest.java102 assertThat(n.getChannelId()).isEqualTo(expectedChannelId); in testHistoricalNotificationBuilder()
166 expectedStrings.add(n.getChannelId()); in testPoolStringsFromNotifications()
196 expectedStrings.add(n.getChannelId()); in testAddPooledStrings()
231 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveNotificationsFromWrite()
268 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveNotificationFromWrite()
305 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveConversationNotificationFromWrite()
344 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveChannelFromWrite()
H A DNotificationTest.java1001 new Notification.TvExtender(before).getChannelId()); in testDoesNotStripsExtenders()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationHistoryProtoHelperTest.java147 expectedStrings.add(n.getChannelId()); in testReadNotificationsWithPkgFilter()
189 expectedStrings.add(n.getChannelId()); in testReadNotificationsWithNumberFilter()
241 expectedStrings.add(n.getChannelId()); in testReadNotificationsWithNumberFilter_preExistingNotifs()
281 expectedStrings.add(n.getChannelId()); in testReadMergeIntoExistingHistory()
299 expectedStrings.add(n.getChannelId()); in testReadMergeIntoExistingHistory()
H A DNotificationRecordTest.java884 when(n.getChannelId()).thenReturn(channel.getId()); in testCalculateGrantableUris_PappProvided_invalidSound()
903 when(n.getChannelId()).thenReturn(channel.getId()); in testCalculateGrantableUris_PuserOverridden()
920 when(n.getChannelId()).thenReturn(channel.getId()); in testCalculateGrantableUris_prePappProvided()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobNotificationCoordinator.java161 mUijNotificationChannels.get(userId, packageName).add(notification.getChannelId()); in enqueueNotification()
166 userPackage, callingPid, callingUid, notificationId, notification.getChannelId(), in enqueueNotification()
342 packageName, callingUid, notification.getChannelId())) { in validateNotification()
/aosp14/frameworks/base/core/java/android/service/notification/
H A DStatusBarNotification.java189 ? "c:" + notification.getChannelId() in groupKey()
545 if (notification.getChannelId() == null) { in getChannelIdLogTag()
548 return shortenTag(notification.getChannelId()); in getChannelIdLogTag()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationHistoryFilter.java63 && !getChannel().equals(notification.getChannelId())) { in matchesPackageAndChannelFilter()
H A DNotificationHistoryProtoHelper.java277 final int channelIdIndex = Arrays.binarySearch(stringPool, notification.getChannelId()); in writeNotification()
281 Slog.w(TAG, "notification channel id (" + notification.getChannelId() in writeNotification()
283 proto.write(Notification.CHANNEL_ID, notification.getChannelId()); in writeNotification()
H A DNotificationRecordLogger.java457 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash()
H A DNotificationRecord.java1399 if (notification.getChannelId() != null) { in calculateGrantableUris()
H A DNotificationManagerService.java796 pair.first.getNotification().getChannelId())) { in removeChannelNotifications()
6784 String channelId = notification.getChannelId();
6785 if (mIsTelevision && (new Notification.TvExtender(notification)).getChannelId() != null) {
6786 channelId = (new Notification.TvExtender(notification)).getChannelId();
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotificationTestHelper.java421 n.getChannelId(), in createBubble()
422 n.getChannelId(), in createBubble()
548 notification.getChannelId(), in generateRow()
549 notification.getChannelId(), in generateRow()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleLogger.java148 bubble.getChannelId() /* notification channel */, in logBubbleUiChanged()
H A DBubble.java575 mChannelId = entry.getStatusBarNotification().getNotification().getChannelId(); in setEntry()
660 public String getChannelId() { in getChannelId() method in Bubble
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
H A DPowerNotificationWarningsTest.java183 assertTrue(captor.getValue().getChannelId() == NotificationChannels.BATTERY); in testShowLowBatteryNotification_BatteryChannel()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
H A DJobNotificationCoordinatorTest.java117 doReturn(null).when(notification).getChannelId(); in testParameterValidation()
557 doReturn(NOTIFICATION_CHANNEL_ID).when(notification).getChannelId(); in createValidNotification()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DServiceRecord.java1382 localForegroundNoti.getChannelId()); in postNotification()
1417 localForegroundNoti.getChannelId()) == null) { in postNotification()
H A DActiveServices.java714 if (Objects.equals(sr.foregroundNoti.getChannelId(), channelId)) { in hasForegroundServiceNotificationLocked()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DDataManagerTest.java1735 when(mNotification.getChannelId()).thenReturn(PARENT_NOTIFICATION_CHANNEL_ID); in sendGenericNotificationWithKey()
1779 when(mNotification.getChannelId()).thenReturn(NOTIFICATION_CHANNEL_ID); in sendConvoNotification()
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/
H A DDataManager.java1205 updated.setParentNotificationChannelId(sbn.getNotification().getChannelId()); in onNotificationPosted()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DBackgroundRestrictionTest.java2614 assertEquals(ABUSIVE_BACKGROUND_APPS, n.getChannelId()); in checkNotificationShown()
/aosp14/frameworks/base/core/api/
H A Dsystem-current.txt975 method public String getChannelId();
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...

12