Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/app/
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()
DNotification.java3778 proto.write(NotificationProto.CHANNEL_ID, getChannelId()); in dumpDebug()
3801 sb.append(getChannelId()); in toString()
4054 public String getChannelId() { in getChannelId() method in Notification
13177 public String getChannelId() { in getChannelId() method in Notification.Builder.TvExtender
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationHistoryTest.java109 assertThat(n.getChannelId()).isEqualTo(expectedChannelId); in testHistoricalNotificationBuilder()
173 expectedStrings.add(n.getChannelId()); in testPoolStringsFromNotifications()
203 expectedStrings.add(n.getChannelId()); in testAddPooledStrings()
238 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveNotificationsFromWrite()
275 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveNotificationFromWrite()
312 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveConversationNotificationFromWrite()
351 postRemoveExpectedStrings.add(n.getChannelId()); in testRemoveChannelFromWrite()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
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()
DNotificationRecordTest.java1050 when(n.getChannelId()).thenReturn(channel.getId()); in testCalculateGrantableUris_PappProvided_invalidSound()
1069 when(n.getChannelId()).thenReturn(channel.getId()); in testCalculateGrantableUris_PuserOverridden()
1086 when(n.getChannelId()).thenReturn(channel.getId()); in testCalculateGrantableUris_prePappProvided()
DPreferencesHelperTest.java5667 String eventChannelId = p.getChannelId(); in testPullPackageChannelPreferencesStats()
5703 String id = p.getChannelId(); in testPullPackageChannelPreferencesStats_one_to_one()
5738 if (channelId.equals(p.getChannelId())) { in testPullPackageChannelPreferencesStats_conversation()
5769 if (channelId.equals(p.getChannelId())) { in testPullPackageChannelPreferencesStats_conversation_demoted()
5800 if (channelId.equals(p.getChannelId())) { in testPullPackageChannelPreferencesStats_conversation_priority()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java141 getChannelId(), in onStartCommand()
283 Notification.Builder builder = new Notification.Builder(this, getChannelId()) in createErrorNotification()
313 Notification.Builder builder = new Notification.Builder(this, getChannelId()) in createRecordingNotification()
335 Notification.Builder builder = new Notification.Builder(this, getChannelId()) in createProcessingNotification()
366 Notification.Builder builder = new Notification.Builder(this, getChannelId()) in createSaveNotification()
399 Notification groupNotif = new Notification.Builder(this, getChannelId()) in postGroupNotification()
479 protected String getChannelId() { in getChannelId() method in RecordingService
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
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()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryFilter.java63 && !getChannel().equals(notification.getChannelId())) { in matchesPackageAndChannelFilter()
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()
DNotificationRecordLogger.java457 return SmallHash.hash(r.getSbn().getNotification().getChannelId()); in getChannelIdHash()
DNotificationRecord.java1454 if (notification.getChannelId() != null) { in calculateGrantableUris()
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java189 ? "c:" + notification.getChannelId() in groupKey()
547 if (notification.getChannelId() == null) { in getChannelIdLogTag()
550 return shortenTag(notification.getChannelId()); in getChannelIdLogTag()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleLogger.java148 bubble.getChannelId() /* notification channel */, in logBubbleUiChanged()
DBubble.java622 mChannelId = entry.getStatusBarNotification().getNotification().getChannelId(); in setEntry()
707 public String getChannelId() { in getChannelId() method in Bubble
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationTestHelper.java478 n.getChannelId(), in createBubble()
479 n.getChannelId(), in createBubble()
605 notification.getChannelId(), in generateRow()
606 notification.getChannelId(), in generateRow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recordissue/
DIssueRecordingService.kt69 override fun getChannelId(): String = CHANNEL_ID in getTag() method
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/notifications/
DDisplayNotificationManagerTest.java185 assertThat(notification.getChannelId()).isEqualTo("ALERTS"); in assertExpectedNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerNotificationWarningsTest.java195 assertTrue(captor.getValue().getChannelId() == NotificationChannels.BATTERY); in testShowLowBatteryNotification_BatteryChannel()
/frameworks/base/services/tests/VpnTests/java/com/android/server/net/
DLockdownVpnTrackerTest.java185 if (!NOTIFICATION_CHANNEL_VPN.equals(notification.getChannelId())) { in isExpectedNotification()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobNotificationCoordinatorTest.java117 doReturn(null).when(notification).getChannelId(); in testParameterValidation()
557 doReturn(NOTIFICATION_CHANNEL_ID).when(notification).getChannelId(); in createValidNotification()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java1630 localForegroundNoti.getChannelId()); in postNotification()
1665 localForegroundNoti.getChannelId()) == null) { in postNotification()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java1735 when(mNotification.getChannelId()).thenReturn(PARENT_NOTIFICATION_CHANNEL_ID); in sendGenericNotificationWithKey()
1779 when(mNotification.getChannelId()).thenReturn(NOTIFICATION_CHANNEL_ID); in sendConvoNotification()
/frameworks/base/services/people/java/com/android/server/people/data/
DDataManager.java1205 updated.setParentNotificationChannelId(sbn.getNotification().getChannelId()); in onNotificationPosted()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActivityManagerServiceTest.java1389 doReturn("").when(notification).getChannelId(); in testStartForegroundServiceDelegate()

12