Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 194) sorted by relevance

12345678

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationPreferenceControllerTest.java110 NotificationChannel channel = mock(NotificationChannel.class); in isAvailable_notIfChannelBlocked() local
111 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in isAvailable_notIfChannelBlocked()
113 mController.onResume(appRow, channel, group, null); in isAvailable_notIfChannelBlocked()
120 NotificationChannel channel = mock(NotificationChannel.class); in isAvailable_notIfChannelGroupBlocked() local
121 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable_notIfChannelGroupBlocked()
124 mController.onResume(appRow, channel, group, null); in isAvailable_notIfChannelGroupBlocked()
132 NotificationChannel channel = mock(NotificationChannel.class); in isAvailable() local
133 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable()
137 mController.onResume(appRow, channel, group, null); in isAvailable()
144 NotificationChannel channel = mock(NotificationChannel.class); in testOnResume() local
[all …]
DBlockPreferenceControllerTest.java107 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_channelNotBlockable() local
108 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelNotBlockable()
109 mController.onResume(appRow, channel, null, null); in testIsAvailable_channelNotBlockable()
117 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_channelNonDefault() local
118 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelNonDefault()
119 mController.onResume(appRow, channel, null, null); in testIsAvailable_channelNonDefault()
126 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_ifChannelDefault() local
127 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_ifChannelDefault()
128 when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID); in testIsAvailable_ifChannelDefault()
129 mController.onResume(appRow, channel, null, null); in testIsAvailable_ifChannelDefault()
[all …]
DImportancePreferenceControllerTest.java111 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_isGroupBlocked() local
112 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable_isGroupBlocked()
115 mController.onResume(appRow, channel, group, null); in testIsAvailable_isGroupBlocked()
122 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_ifChannelBlocked() local
123 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_ifChannelBlocked()
124 mController.onResume(appRow, channel, null, null); in testIsAvailable_ifChannelBlocked()
131 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notForDefaultChannel() local
132 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
133 when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID); in testIsAvailable_notForDefaultChannel()
134 mController.onResume(appRow, channel, null, null); in testIsAvailable_notForDefaultChannel()
[all …]
DBadgePreferenceControllerTest.java102 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notIfChannelBlocked() local
103 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
104 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfChannelBlocked()
112 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_channel_notIfAppOff() local
113 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel_notIfAppOff()
114 mController.onResume(appRow, channel, null, null); in testIsAvailable_channel_notIfAppOff()
122 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notIfOffGlobally() local
123 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notIfOffGlobally()
124 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfOffGlobally()
143 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_defaultChannel() local
[all …]
DMinImportancePreferenceControllerTest.java105 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notIfChannelBlocked() local
106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
107 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfChannelBlocked()
114 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notForDefaultChannel() local
115 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
116 when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID); in testIsAvailable_notForDefaultChannel()
117 mController.onResume(appRow, channel, null, null); in testIsAvailable_notForDefaultChannel()
124 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable() local
125 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
126 mController.onResume(appRow, channel, null, null); in testIsAvailable()
[all …]
DHighImportancePreferenceControllerTest.java105 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notIfChannelBlocked() local
106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
107 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfChannelBlocked()
114 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notForDefaultChannel() local
115 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notForDefaultChannel()
116 when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID); in testIsAvailable_notForDefaultChannel()
117 mController.onResume(appRow, channel, null, null); in testIsAvailable_notForDefaultChannel()
124 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable() local
125 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable()
126 mController.onResume(appRow, channel, null, null); in testIsAvailable()
[all …]
DVibrationPreferenceControllerTest.java99 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notSystemDoesNotHave() local
100 mController.onResume(appRow, channel, null, null); in testIsAvailable_notSystemDoesNotHave()
107 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant() local
108 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfNotImportant()
115 NotificationChannel channel = in testIsAvailable_notIfDefaultChannel() local
117 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfDefaultChannel()
124 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() local
125 mController.onResume(appRow, channel, null, null); in testIsAvailable()
131 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_disabledByAdmin() local
132 when(channel.getId()).thenReturn("something"); in testUpdateState_disabledByAdmin()
[all …]
DAllowSoundPreferenceControllerTest.java112 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notIfAppCreatedChannel() local
113 when(channel.getId()).thenReturn("something new"); in testIsAvailable_notIfAppCreatedChannel()
114 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfAppCreatedChannel()
121 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable() local
122 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
123 when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID); in testIsAvailable()
124 mController.onResume(appRow, channel, null, null); in testIsAvailable()
130 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_disabledByAdmin() local
131 when(channel.getId()).thenReturn("something"); in testUpdateState_disabledByAdmin()
132 mController.onResume(new NotificationBackend.AppRow(), channel, null, mock( in testUpdateState_disabledByAdmin()
[all …]
DSoundPreferenceControllerTest.java117 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant() local
118 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfNotImportant()
125 NotificationChannel channel = in testIsAvailable_notIfDefaultChannel() local
127 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfDefaultChannel()
134 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() local
135 mController.onResume(appRow, channel, null, null); in testIsAvailable()
151 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_disabledByAdmin() local
152 when(channel.getId()).thenReturn("something"); in testUpdateState_disabledByAdmin()
153 mController.onResume(new NotificationBackend.AppRow(), channel, null, mock( in testUpdateState_disabledByAdmin()
166 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_notBlockable() local
[all …]
DLightsPreferenceControllerTest.java108 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfConfigNotAllowed() local
109 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfConfigNotAllowed()
117 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfSettingNotAllowed() local
118 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfSettingNotAllowed()
125 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant() local
126 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfNotImportant()
133 NotificationChannel channel = in testIsAvailable_notIfDefaultChannel() local
135 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfDefaultChannel()
142 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() local
143 mController.onResume(appRow, channel, null, null); in testIsAvailable()
[all …]
DBubblePreferenceControllerTest.java117 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notIfChannelBlocked() local
118 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
119 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfChannelBlocked()
128 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_channel_notIfAppOff() local
129 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel_notIfAppOff()
130 mController.onResume(appRow, channel, null, null); in testIsAvailable_channel_notIfAppOff()
148 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_notIfOffGlobally_channel() local
149 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notIfOffGlobally_channel()
150 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfOffGlobally_channel()
180 NotificationChannel channel = mock(NotificationChannel.class); in testIsAvailable_defaultChannel() local
[all …]
DVisibilityPreferenceControllerTest.java122 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notSecure() local
123 mController.onResume(appRow, channel, null, null); in testIsAvailable_notSecure()
130 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_MIN); in testIsAvailable_notIfNotImportant() local
131 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfNotImportant()
138 NotificationChannel channel = in testIsAvailable() local
140 mController.onResume(appRow, channel, null, null); in testIsAvailable()
143 channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable()
144 mController.onResume(appRow, channel, null, null); in testIsAvailable()
159 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_disabledByAdmin_disableSecure() local
160 when(channel.getId()).thenReturn("something"); in testUpdateState_disabledByAdmin_disableSecure()
[all …]
DDndPreferenceControllerTest.java93 NotificationChannel channel = in testIsAvailable_channel() local
95 mController.onResume(appRow, channel, null, null); in testIsAvailable_channel()
101 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_disabledByAdmin() local
102 when(channel.getId()).thenReturn("something"); in testUpdateState_disabledByAdmin()
103 mController.onResume(new NotificationBackend.AppRow(), channel, null, mock( in testUpdateState_disabledByAdmin()
115 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_notBlockable() local
116 when(channel.isImportanceLockedByOEM()).thenReturn(true); in testUpdateState_notBlockable()
117 mController.onResume(appRow, channel, null, null); in testUpdateState_notBlockable()
128 NotificationChannel channel = mock(NotificationChannel.class); in testUpdateState_configurable() local
129 when(channel.getId()).thenReturn("something"); in testUpdateState_configurable()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/datamanager/
DChannelDataManager.java123 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); in onRequestProgramsResponse() argument
129 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); in onProgramsArrived() argument
134 void onChannelArrived(TunerChannel channel); in onChannelArrived() argument
207 TunerChannel channel = mTunerChannelMap.get(channelId); in getChannel() local
208 if (channel != null) { in getChannel()
209 return channel; in getChannel()
230 channel = TunerChannel.parseFrom(data); in getChannel()
231 if (channel == null) { in getChannel()
234 channel.setLocked(locked); in getChannel()
235 channel.setChannelId(channelId); in getChannel()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DChannelImpl.java84 ChannelImpl channel = new ChannelImpl(); in fromCursor() local
86 channel.mId = cursor.getLong(index++); in fromCursor()
87 channel.mPackageName = Utils.intern(cursor.getString(index++)); in fromCursor()
88 channel.mInputId = Utils.intern(cursor.getString(index++)); in fromCursor()
89 channel.mType = Utils.intern(cursor.getString(index++)); in fromCursor()
90 channel.mDisplayNumber = normalizeDisplayNumber(cursor.getString(index++)); in fromCursor()
91 channel.mDisplayName = cursor.getString(index++); in fromCursor()
92 channel.mDescription = cursor.getString(index++); in fromCursor()
93 channel.mVideoFormat = Utils.intern(cursor.getString(index++)); in fromCursor()
94 channel.mBrowsable = cursor.getInt(index++) == 1; in fromCursor()
[all …]
DChannelDataManager.java102 for (ChannelWrapper channel : mData.channelWrapperMap.values()) {
103 if (channel.mChannel.getInputId().equals(inputId)) {
104 channel.mInputRemoved = false;
105 addChannel(data, channel.mChannel);
120 for (ChannelWrapper channel : mData.channelWrapperMap.values()) {
121 if (channel.mChannel.getInputId().equals(inputId)) {
122 channel.mInputRemoved = true;
124 removedChannels.add(channel);
138 for (ChannelWrapper channel : removedChannels) {
139 channel.notifyChannelRemoved();
[all …]
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationEntryTest.java113 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_HIGH); in testHasPerson() local
114 StatusBarNotification sbn = generateSbn(channel.getId()); in testHasPerson()
120 mContext, mPackageManager, sbn, channel, mSmsHelper); in testHasPerson()
126 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_HIGH); in testNotPerson() local
127 StatusBarNotification sbn = generateSbn(channel.getId()); in testNotPerson()
129 mContext, mPackageManager, sbn, channel, mSmsHelper); in testNotPerson()
135 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_HIGH); in testHasPerson_matchesDefaultSmsApp() local
136 StatusBarNotification sbn = generateSbn(channel.getId(), DEFAULT_SMS_PACKAGE_NAME); in testHasPerson_matchesDefaultSmsApp()
138 mContext, mPackageManager, sbn, channel, mSmsHelper); in testHasPerson_matchesDefaultSmsApp()
144 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_HIGH); in testHasPerson_doesntMatchDefaultSmsApp() local
[all …]
/packages/apps/TV/src/com/android/tv/
DChannelTuner.java186 Channel channel = getAdjacentBrowsableChannel(up); in moveToAdjacentBrowsableChannel() local
187 if (channel == null) { in moveToAdjacentBrowsableChannel()
190 setCurrentChannelAndNotify(mChannelMap.get(channel.getId())); in moveToAdjacentBrowsableChannel()
205 Channel channel = mChannels.get(channelIndex); in getAdjacentBrowsableChannel() local
206 if (channel.isBrowsable()) { in getAdjacentBrowsableChannel()
207 return channel; in getAdjacentBrowsableChannel()
218 Channel channel = mChannels.get(nextChannelIndex); in getAdjacentBrowsableChannel() local
219 if (channel.isBrowsable()) { in getAdjacentBrowsableChannel()
220 return channel; in getAdjacentBrowsableChannel()
235 Channel channel = mChannelMap.get(channelId); in findNearestBrowsableChannel() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/notification/
DNotificationChannelManager.java101 for (NotificationChannel channel : notificationManager.getNotificationChannels()) { in getAllExistingChannelIds()
102 result.add(channel.getId()); in getAllExistingChannelIds()
118 NotificationChannel channel = in createIncomingCallChannel() local
123 channel.setShowBadge(false); in createIncomingCallChannel()
124 channel.enableLights(true); in createIncomingCallChannel()
125 channel.enableVibration(false); in createIncomingCallChannel()
126 channel.setSound( in createIncomingCallChannel()
128 context.getSystemService(NotificationManager.class).createNotificationChannel(channel); in createIncomingCallChannel()
132 NotificationChannel channel = in createOngoingCallChannel() local
137 channel.setShowBadge(false); in createOngoingCallChannel()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DTunerChannel.java72 PsipData.VctItem channel, int programNumber, List<PsiData.PmtItem> pmtItems, int type) { in TunerChannel() argument
74 if (channel == null) { in TunerChannel()
81 mProto.shortName = channel.getShortName(); in TunerChannel()
82 if (channel.getLongName() != null) { in TunerChannel()
83 mProto.longName = channel.getLongName(); in TunerChannel()
85 mProto.tsid = channel.getChannelTsid(); in TunerChannel()
86 mProto.programNumber = channel.getProgramNumber(); in TunerChannel()
87 mProto.virtualMajor = channel.getMajorChannelNumber(); in TunerChannel()
88 mProto.virtualMinor = channel.getMinorChannelNumber(); in TunerChannel()
89 if (channel.getDescription() != null) { in TunerChannel()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTunerTsStreamerManager.java61 TunerChannel channel, in createDataSource() argument
67 if (mStreamerFinder.containsLocked(channel)) { in createDataSource()
68 mStreamerFinder.appendSessionLocked(channel, sessionId); in createDataSource()
69 TunerTsStreamer streamer = mStreamerFinder.getStreamerLocked(channel); in createDataSource()
76 creator = new TsStreamerCreator(context, channel, listener); in createDataSource()
86 mStreamerFinder.putLocked(channel, sessionId, streamer); in createDataSource()
111 TunerChannel channel = streamer.getChannel(); in releaseDataSource() local
112 SoftPreconditions.checkState(channel != null); in releaseDataSource()
113 mStreamerFinder.removeSessionLocked(channel, sessionId); in releaseDataSource()
114 if (mStreamerFinder.containsLocked(channel)) { in releaseDataSource()
[all …]
/packages/apps/TV/src/com/android/tv/search/
DDataManagerSearch.java101 for (Channel channel : channelList) { in searchFromDataManagers()
102 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
105 if (contains(channel.getDisplayNumber(), query)) { in searchFromDataManagers()
106 addResult(results, channelsFound, channel, null); in searchFromDataManagers()
124 for (Channel channel : channelList) { in searchFromDataManagers()
125 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers()
128 if (contains(channel.getDisplayName(), query) in searchFromDataManagers()
129 || contains(channel.getDescription(), query)) { in searchFromDataManagers()
130 addResult(results, channelsFound, channel, null); in searchFromDataManagers()
159 for (Channel channel : channelList) { in searchFromDataManagers()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DChannelUtils.java83 for (ChannelInfo channel : channels) { in updateChannels()
87 values.put(Channels.COLUMN_DISPLAY_NUMBER, channel.number); in updateChannels()
88 values.put(Channels.COLUMN_DISPLAY_NAME, channel.name); in updateChannels()
89 values.put(Channels.COLUMN_ORIGINAL_NETWORK_ID, channel.originalNetworkId); in updateChannels()
90 String videoFormat = channel.getVideoFormat(); in updateChannels()
96 if (!TextUtils.isEmpty(channel.appLinkText)) { in updateChannels()
97 values.put(Channels.COLUMN_APP_LINK_TEXT, channel.appLinkText); in updateChannels()
99 if (channel.appLinkColor != 0) { in updateChannels()
100 values.put(Channels.COLUMN_APP_LINK_COLOR, channel.appLinkColor); in updateChannels()
102 if (!TextUtils.isEmpty(channel.appLinkPosterArtUri)) { in updateChannels()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java199 final NotificationChannel channel = mNotificationBackend.getChannel(packageName, uid, in onNotifyChange() local
202 channel.setImportance(importance); in onNotifyChange()
203 channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onNotifyChange()
204 mNotificationBackend.updateChannel(packageName, uid, channel); in onNotifyChange()
243 private SliceAction buildRowSliceAction(NotificationChannel channel, IconCompat icon) { in buildRowSliceAction() argument
247 channelArgs.putString(Settings.EXTRA_CHANNEL_ID, channel.getId()); in buildRowSliceAction()
258 PendingIntent.getActivity(mContext, channel.hashCode(), channelIntent, 0), icon, in buildRowSliceAction()
259 ListBuilder.ICON_IMAGE, channel.getName()); in buildRowSliceAction()
279 for (NotificationChannel channel : displayableChannels) { in getNotificationChannelRows()
281 .setTitle(channel.getName()) in getNotificationChannelRows()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSlice.java200 final NotificationChannel channel = mNotificationBackend.getChannel(packageName, uid, in onNotifyChange() local
203 channel.setImportance(importance); in onNotifyChange()
204 channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onNotifyChange()
205 mNotificationBackend.updateChannel(packageName, uid, channel); in onNotifyChange()
255 private SliceAction buildRowSliceAction(NotificationChannel channel, IconCompat icon) { in buildRowSliceAction() argument
259 channelArgs.putString(Settings.EXTRA_CHANNEL_ID, channel.getId()); in buildRowSliceAction()
270 PendingIntent.getActivity(mContext, channel.hashCode(), channelIntent, 0), icon, in buildRowSliceAction()
271 ListBuilder.ICON_IMAGE, channel.getName()); in buildRowSliceAction()
290 for (NotificationChannel channel : displayableChannels) { in getNotificationChannelRows()
292 .setTitle(channel.getName()) in getNotificationChannelRows()
[all …]

12345678