/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | NotificationPreferenceControllerTest.java | 110 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 …]
|
D | BlockPreferenceControllerTest.java | 107 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 …]
|
D | ImportancePreferenceControllerTest.java | 111 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 …]
|
D | BadgePreferenceControllerTest.java | 102 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 …]
|
D | HighImportancePreferenceControllerTest.java | 105 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 …]
|
D | MinImportancePreferenceControllerTest.java | 105 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 …]
|
D | VibrationPreferenceControllerTest.java | 99 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 …]
|
D | AllowSoundPreferenceControllerTest.java | 112 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 …]
|
D | SoundPreferenceControllerTest.java | 117 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 …]
|
D | LightsPreferenceControllerTest.java | 108 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 …]
|
D | BubblePreferenceControllerTest.java | 117 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 …]
|
D | VisibilityPreferenceControllerTest.java | 122 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 …]
|
D | DndPreferenceControllerTest.java | 93 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/ |
D | ChannelDataManager.java | 122 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); in onRequestProgramsResponse() argument 128 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); in onProgramsArrived() argument 133 void onChannelArrived(TunerChannel channel); in onChannelArrived() argument 206 TunerChannel channel = mTunerChannelMap.get(channelId); in getChannel() local 207 if (channel != null) { in getChannel() 208 return channel; in getChannel() 229 channel = TunerChannel.parseFrom(data); in getChannel() 230 if (channel == null) { in getChannel() 233 channel.setLocked(locked); in getChannel() 234 channel.setChannelId(channelId); in getChannel() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelImpl.java | 84 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 …]
|
D | ChannelDataManager.java | 108 for (ChannelWrapper channel : mData.channelWrapperMap.values()) { 109 if (channel.mChannel.getInputId().equals(inputId)) { 110 channel.mInputRemoved = false; 111 addChannel(data, channel.mChannel); 126 for (ChannelWrapper channel : mData.channelWrapperMap.values()) { 127 if (channel.mChannel.getInputId().equals(inputId)) { 128 channel.mInputRemoved = true; 130 removedChannels.add(channel); 144 for (ChannelWrapper channel : removedChannels) { 145 channel.notifyChannelRemoved(); [all …]
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationEntryTest.java | 113 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/ |
D | ChannelTuner.java | 186 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/ |
D | NotificationChannelManager.java | 101 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/ |
D | TunerChannel.java | 70 PsipData.VctItem channel, in TunerChannel() argument 82 if (channel != null) { in TunerChannel() 83 shortName = channel.getShortName(); in TunerChannel() 84 tsid = channel.getChannelTsid(); in TunerChannel() 85 programNumber = channel.getProgramNumber(); in TunerChannel() 86 virtualMajor = channel.getMajorChannelNumber(); in TunerChannel() 87 virtualMinor = channel.getMinorChannelNumber(); in TunerChannel() 89 Channel.AtscServiceType.forNumber(channel.getServiceType()); in TunerChannel() 93 longName = (channel.getLongName() != null ? channel.getLongName() : longName); in TunerChannel() 95 (channel.getDescription() != null ? channel.getDescription() : description); in TunerChannel() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/ |
D | TunerTsStreamerManager.java | 61 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/ |
D | DataManagerSearch.java | 104 for (Channel channel : channelList) { in searchFromDataManagers() 105 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 108 if (contains(channel.getDisplayNumber(), query)) { in searchFromDataManagers() 109 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 127 for (Channel channel : channelList) { in searchFromDataManagers() 128 if (channelsFound.contains(channel.getId())) { in searchFromDataManagers() 131 if (contains(channel.getDisplayName(), query) in searchFromDataManagers() 132 || contains(channel.getDescription(), query)) { in searchFromDataManagers() 133 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 162 for (Channel channel : channelList) { in searchFromDataManagers() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/ |
D | ChannelUtils.java | 83 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/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationChannelSlice.java | 195 final NotificationChannel channel = mNotificationBackend.getChannel(packageName, uid, in onNotifyChange() local 198 channel.setImportance(importance); in onNotifyChange() 199 channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in onNotifyChange() 200 mNotificationBackend.updateChannel(packageName, uid, channel); in onNotifyChange() 250 private SliceAction buildRowSliceAction(NotificationChannel channel, IconCompat icon) { in buildRowSliceAction() argument 254 channelArgs.putString(Settings.EXTRA_CHANNEL_ID, channel.getId()); in buildRowSliceAction() 264 PendingIntent.getActivity(mContext, channel.hashCode(), channelIntent, 0), icon, in buildRowSliceAction() 265 ListBuilder.ICON_IMAGE, channel.getName()); in buildRowSliceAction() 284 for (NotificationChannel channel : displayableChannels) { in getNotificationChannelRows() 286 .setTitle(channel.getName()) in getNotificationChannelRows() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | NotificationChannelSlice.java | 199 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 …]
|