Home
last modified time | relevance | path

Searched refs:getNotificationChannel (Results 1 – 25 of 42) sorted by relevance

12

/aosp12/packages/apps/Settings/src/com/android/settings/notification/app/
H A DAppConversationListPreferenceController.java140 if (conversation.getNotificationChannel().isDemoted()) { in populateConversations()
159 : conversation.getNotificationChannel().getName()); in populateConversationPreference()
160 pref.setSummary(conversation.getNotificationChannel().getGroup() != null in populateConversationPreference()
166 conversation.getNotificationChannel().isImportantConversation())); in populateConversationPreference()
168 pref.setKey(conversation.getNotificationChannel().getId()); in populateConversationPreference()
174 conversation.getNotificationChannel().getParentChannelId()); in populateConversationPreference()
176 conversation.getNotificationChannel().getConversationId()); in populateConversationPreference()
189 if (left.getNotificationChannel().isImportantConversation()
193 left.getNotificationChannel().isImportantConversation());
195 return left.getNotificationChannel().getId().compareTo(
[all …]
H A DConversationListPreferenceController.java89 if (conversation.getNotificationChannel().isDemoted() in populateConversations()
106 conversation.getNotificationChannel().isImportantConversation())); in createConversationPref()
107 pref.setKey(conversation.getNotificationChannel().getId()); in createConversationPref()
127 : conversation.getNotificationChannel().getName(); in getTitle()
136 conversation.getNotificationChannel().getId()); in getSubSettingLauncher()
138 conversation.getNotificationChannel().getConversationId()); in getSubSettingLauncher()
161 return o1.getNotificationChannel().getId().compareTo(
162 o2.getNotificationChannel().getId());
H A DRecentConversationsPreferenceController.java144 if (conversation.getNotificationChannel().getImportance() == IMPORTANCE_NONE in populateConversations()
184 pref.setKey(conversation.getNotificationChannel().getId() in createConversationPref()
189 conversation.getNotificationChannel(), in createConversationPref()
200 ? conversation.getNotificationChannel().getName() in getSummary()
202 conversation.getNotificationChannel().getName(), in getSummary()
218 conversation.getNotificationChannel().getId()); in getSubSettingLauncher()
245 return o1.getNotificationChannel().getId().compareTo(
246 o2.getNotificationChannel().getId());
H A DAllConversationsPreferenceController.java64 return !conversation.getNotificationChannel().isImportantConversation(); in matchesFilter()
H A DPriorityConversationsPreferenceController.java64 return conversation.getNotificationChannel().isImportantConversation(); in matchesFilter()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DPreferencesHelperTest.java794 assertEquals(null, mHelper.getNotificationChannel(PKG_O, UID_O, in testChannelXml_upgradeCreateDefaultChannel()
1657 assertEquals(sound, mHelper.getNotificationChannel( in testCreateChannel_noOverrideSound()
1703 assertNull(mHelper.getNotificationChannel( in testDeleteGroup()
1819 assertNotNull(mHelper.getNotificationChannel( in testOnPackageChange_downgradeTargetSdk()
1901 assertEquals(ncg.getId(), mHelper.getNotificationChannel( in testCannotCreateChannel_goodGroup()
2824 assertTrue(mHelper.getNotificationChannel(PKG_O, 3, "b", false) in testLockChannelsForOEM_channelSpecific_appDoesNotExistYet_restoreData()
2921 assertFalse(mHelper.getNotificationChannel( in testUpdateDefaultApps_add_multiUser()
3217 assertEquals(user10Importance, mHelper.getNotificationChannel( in testRestoreMultiUser()
3398 nc1 = mHelper.getNotificationChannel(PKG_P, UID_P, "id", true); in testUnDelete_time()
3605 if (ccw.getNotificationChannel().equals(expected)) { in conversationWrapperContainsChannel()
[all …]
H A DBadgeExtractorTest.java71 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecord()
89 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecordWithBubble()
120 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecordWithMedia()
/aosp12/frameworks/base/core/java/android/service/notification/
H A DConversationChannelWrapper.java80 public NotificationChannel getNotificationChannel() { in getNotificationChannel() method in ConversationChannelWrapper
134 return Objects.equals(getNotificationChannel(), that.getNotificationChannel()) && in equals()
144 return Objects.hash(getNotificationChannel(), getGroupLabel(), getParentChannelLabel(), in hashCode()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A DAppBubbleListPreferenceController.java112 return c.getNotificationChannel().canBubble(); in filterAndSortConversations()
114 return c.getNotificationChannel().getAllowBubbles() == 0; in filterAndSortConversations()
136 conversation.getNotificationChannel().setAllowBubbles(DEFAULT_ALLOW_BUBBLE);
137 mBackend.updateChannel(mAppRow.pkg, mAppRow.uid, conversation.getNotificationChannel());
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
H A DAppBubbleListPreferenceControllerTest.java139 assertThat(result.get(0).getNotificationChannel().getId()) in filterAndSortConversations_BUBBLE_PREFERENCE_SELECTED_filtersAllowedBubbles()
152 assertThat(result.get(0).getNotificationChannel().getId()) in filterAndSortConversations_BUBBLE_PREFERENCE_ALL_filtersExcludedBubbles()
170 verify(ccw.getNotificationChannel()).setAllowBubbles(DEFAULT_ALLOW_BUBBLE); in clickConversationPref_updatesChannel()
H A DRecentConversationsPreferenceControllerTest.java166 ccw.getNotificationChannel().getName()); in getSummary_withGroup()
179 ccw.getNotificationChannel().getName()); in getSummary_noGroup()
211 ccw.getNotificationChannel().getId()); in testGetSubSettingLauncher()
234 si.getPackage(), ccw.getUid(), ccw.getNotificationChannel(), si.getId()); in testCreatesChannel()
H A DConversationListPreferenceControllerTest.java197 ccw.getNotificationChannel().getName()); in getTitle_noShortcut()
215 ccw.getNotificationChannel().getId()); in testGetSubSettingLauncher()
217 ccw.getNotificationChannel().getConversationId()); in testGetSubSettingLauncher()
/aosp12/frameworks/base/core/java/android/app/people/
H A DPeopleSpaceTile.java310 mIsImportantConversation = channel.getNotificationChannel() != null in Builder()
311 && channel.getNotificationChannel().isImportantConversation(); in Builder()
312 mCanBypassDnd = channel.getNotificationChannel() != null in Builder()
313 && channel.getNotificationChannel().canBypassDnd(); in Builder()
H A DConversationChannel.java123 public NotificationChannel getNotificationChannel() { in getNotificationChannel() method in ConversationChannel
/aosp12/packages/apps/Settings/src/com/android/settings/notification/zen/
H A DZenModeConversationsImagePreferenceController.java138 if (!conversation.getNotificationChannel().isDemoted()) { in loadConversations()
144 conversation.getNotificationChannel() in loadConversations()
H A DZenModePriorityConversationsPreferenceController.java153 if (!conversation.getNotificationChannel().isDemoted()) { in updateChannelCounts()
165 if (!conversation.getNotificationChannel().isDemoted()) { in updateChannelCounts()
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerInternal.java26 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId); in getNotificationChannel() method
H A DRankingConfig.java51 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, in getNotificationChannel() method
H A DNotificationShellCmd.java311 NotificationChannel channel = mBinderService.getNotificationChannel( in onCommand()
442 + mBinderService.getNotificationChannel(callingPackage, in ensureChannel()
/aosp12/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
H A DNetworkStackNotifierTest.kt170 .`when`(mNotificationChannelsNm).getNotificationChannel(CHANNEL_VENUE_INFO)
275 doReturn(channel).`when`(mNotificationChannelsNm).getNotificationChannel(CHANNEL_VENUE_INFO)
311 doReturn(null).`when`(mNm).getNotificationChannel(CHANNEL_VENUE_INFO)
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/
H A DNotificationUtils.kt125 val channel: NotificationChannel? = nm.getNotificationChannel(channelId)
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
H A DNotificationChannelController.java136 .getNotificationChannel(channelId); in getChannel()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DAlertWindowNotification.java157 NotificationChannel channel = mNotificationManager.getNotificationChannel(mNotificationTag); in createNotificationChannel()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
H A DPeopleSpaceWidgetManager.java720 NotificationChannel channel = conversation.getNotificationChannel(); in updateStorageAndViewWithConversationData()
997 .filter(c -> c.getNotificationChannel() != null in getPriorityTiles()
998 && c.getNotificationChannel().isImportantConversation()) in getPriorityTiles()
1014 .filter(c -> c.getNotificationChannel() == null in getRecentTiles()
1015 || !c.getNotificationChannel().isImportantConversation()) in getRecentTiles()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DDataManagerTest.java256 when(mNotificationManagerInternal.getNotificationChannel(anyString(), anyInt(), in setUp()
258 when(mNotificationManagerInternal.getNotificationChannel(anyString(), anyInt(), in setUp()
679 assertEquals(mNotificationChannel.getId(), result.getNotificationChannel().getId()); in testGetConversation()
681 result.getNotificationChannel().getParentChannelId()); in testGetConversation()
703 assertFalse(result.getNotificationChannel().canBubble()); in testOnNotificationChannelModified()
1209 result.get(0).getNotificationChannel().getId()); in testGetRecentConversations()
1210 assertEquals(null, result.get(0).getNotificationChannel().getParentChannelId()); in testGetRecentConversations()

12