/frameworks/base/core/java/com/android/internal/notification/ |
D | SystemNotificationChannels.java | 19 import android.app.NotificationChannel; 63 List<NotificationChannel> channelsList = new ArrayList<NotificationChannel>(); in createAll() 64 final NotificationChannel keyboard = new NotificationChannel( in createAll() 71 final NotificationChannel physicalKeyboardChannel = new NotificationChannel( in createAll() 80 final NotificationChannel security = new NotificationChannel( in createAll() 86 final NotificationChannel car = new NotificationChannel( in createAll() 95 final NotificationChannel developer = new NotificationChannel( in createAll() 102 final NotificationChannel developerImportant = new NotificationChannel( in createAll() 109 final NotificationChannel updates = new NotificationChannel( in createAll() 115 final NotificationChannel network = new NotificationChannel( in createAll() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PreferencesHelperTest.java | 21 import static android.app.NotificationChannel.CONVERSATION_CHANNEL_ID_FORMAT; 69 import android.app.NotificationChannel; 254 private void compareChannels(NotificationChannel expected, NotificationChannel actual) { in compareChannels() 273 private void compareChannelsParentChild(NotificationChannel parent, in compareChannelsParentChild() 274 NotificationChannel actual, String conversationId) { in compareChannelsParentChild() 298 private NotificationChannel getChannel() { in getChannel() 299 return new NotificationChannel("id", "name", IMPORTANCE_LOW); in getChannel() 302 private NotificationChannel findChannel(List<NotificationChannel> channels, String id) { in findChannel() 303 for (NotificationChannel channel : channels) { in findChannel() 328 NotificationChannel channel0 = new NotificationChannel("id0", "name0", IMPORTANCE_HIGH); in testWriteXml_onlyBackupsTargetUser() [all …]
|
D | NotificationChannelExtractorTest.java | 31 import android.app.NotificationChannel; 58 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testExtractsUpdatedChannel() 67 NotificationChannel updatedChannel = in testExtractsUpdatedChannel() 68 new NotificationChannel("a", "", IMPORTANCE_HIGH); in testExtractsUpdatedChannel() 84 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testInvalidShortcutFlagEnabled_looksUpCorrectChannel() 94 NotificationChannel updatedChannel = in testInvalidShortcutFlagEnabled_looksUpCorrectChannel() 95 new NotificationChannel("a", "", IMPORTANCE_HIGH); in testInvalidShortcutFlagEnabled_looksUpCorrectChannel() 112 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testInvalidShortcutFlagDisabled_looksUpCorrectChannel() 122 NotificationChannel updatedChannel = in testInvalidShortcutFlagDisabled_looksUpCorrectChannel() 123 new NotificationChannel("a", "", IMPORTANCE_HIGH); in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
|
D | ZenModeFilteringTest.java | 43 import android.app.NotificationChannel; 78 return getNotificationRecord(mock(NotificationChannel.class)); in getNotificationRecord() 81 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord() 88 private NotificationRecord getConversationRecord(NotificationChannel c, in getConversationRecord() 111 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm() 132 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm_wrongUsage() 211 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_allAllowed() 229 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_importantAllowed_isImportant() 247 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_importantAllowed_isNotImportant() 264 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_noneAllowed_notCallOrMsg() [all …]
|
D | NotificationIntrusivenessExtractorTest.java | 29 import android.app.NotificationChannel; 43 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testNonIntrusive() 58 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testIntrusive_fillScreen() 76 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testOldNotificationsNotIntrusive()
|
D | ImportanceExtractorTest.java | 26 import android.app.NotificationChannel; 62 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord() 87 NotificationChannel channel = in testAppPreferenceChannelNone() 88 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone() 106 NotificationChannel channel = in testAppPreferenceChannelPreference() 107 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
|
D | BuzzBeepBlinkTest.java | 51 import android.app.NotificationChannel; 115 private NotificationChannel mChannel; 171 mChannel = new NotificationChannel("test", "test", IMPORTANCE_HIGH); in setUp() 263 private NotificationRecord getCallRecord(int id, NotificationChannel channel, boolean looping) { in getCallRecord() 1087 NotificationChannel channel = new NotificationChannel("test", "test", IMPORTANCE_HIGH); in testEmptyUriSoundTreatedAsNoSound() 1150 new NotificationChannel("test", "test", IMPORTANCE_HIGH)); in testCrossUserSoundMuted() 1350 NotificationChannel ringtoneChannel = in testListenerHintCall() 1351 new NotificationChannel("ringtone", "", IMPORTANCE_HIGH); in testListenerHintCall() 1387 NotificationChannel ringtoneChannel = in testListenerHintBoth() 1388 new NotificationChannel("ringtone", "", IMPORTANCE_HIGH); in testListenerHintBoth() [all …]
|
D | RankingHelperTest.java | 31 import android.app.NotificationChannel; 200 private NotificationChannel getLowChannel() { in getLowChannel() 201 return new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "name", in getLowChannel() 205 private NotificationChannel getDefaultChannel() { in getDefaultChannel() 206 return new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "name", in getDefaultChannel() 232 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in generateRecord()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 17 import android.app.NotificationChannel; 47 final NotificationChannel batteryChannel = new NotificationChannel(BATTERY, in createAll() 58 final NotificationChannel alerts = new NotificationChannel( in createAll() 63 final NotificationChannel general = new NotificationChannel( in createAll() 68 final NotificationChannel storage = new NotificationChannel( in createAll() 75 final NotificationChannel hint = new NotificationChannel( in createAll() 102 nm.createNotificationChannel(new NotificationChannel( in createAll() 114 @VisibleForTesting static NotificationChannel createScreenshotChannel( in createScreenshotChannel() 115 String name, NotificationChannel legacySS) { in createScreenshotChannel() 116 NotificationChannel screenshotChannel = new NotificationChannel(SCREENSHOTS_HEADSUP, in createScreenshotChannel() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 19 import android.app.NotificationChannel; 66 final NotificationChannel alertChannel = new NotificationChannel( in createAll() 75 final NotificationChannel mobileDataStatusChannel = new NotificationChannel( in createAll() 82 final NotificationChannel simChannel = new NotificationChannel( in createAll() 89 final NotificationChannel callforwardChannel = new NotificationChannel( in createAll() 97 new NotificationChannel(CHANNEL_ID_SMS, in createAll() 100 new NotificationChannel(CHANNEL_ID_WFC, in createAll() 103 new NotificationChannel(CHANNEL_ID_SIM_HIGH_PRIORITY, in createAll() 134 public static NotificationChannel getChannel(String channelId, Context context) { in getChannel() 148 final NotificationChannel voiceMailChannel = new NotificationChannel( in migrateVoicemailNotificationSettings() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | ChannelsTest.java | 22 import android.app.NotificationChannel; 66 final List<NotificationChannel> list = captor.getValue(); in testChannelSetup() 83 NotificationChannel legacyChannel = new NotificationChannel("id", "oldName", in testInheritFromLegacy_keepsUserLockedLegacySettings() 88 legacyChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE | in testInheritFromLegacy_keepsUserLockedLegacySettings() 89 NotificationChannel.USER_LOCKED_SOUND); in testInheritFromLegacy_keepsUserLockedLegacySettings() 90 NotificationChannel newChannel = in testInheritFromLegacy_keepsUserLockedLegacySettings() 99 NotificationChannel legacyChannel = new NotificationChannel("id", "oldName", in testInheritFromLegacy_dropsUnlockedLegacySettings() 101 NotificationChannel newChannel = in testInheritFromLegacy_dropsUnlockedLegacySettings() 111 NotificationChannel newChannel = in testInheritFromLegacy_noLegacyExists()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiService.java | 19 import android.app.NotificationChannel; 87 List<NotificationChannel> channelsList = new ArrayList<>(); in createNotificationChannels() 88 final NotificationChannel networkStatusChannel = new NotificationChannel( in createNotificationChannels() 95 final NotificationChannel networkAlertsChannel = new NotificationChannel( in createNotificationChannels() 103 final NotificationChannel networkAvailable = new NotificationChannel( in createNotificationChannels()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationChannelLogger.java | 22 import android.app.NotificationChannel; 44 default void logNotificationChannelCreated(@NonNull NotificationChannel channel, int uid, in logNotificationChannelCreated() 57 default void logNotificationChannelDeleted(@NonNull NotificationChannel channel, int uid, in logNotificationChannelDeleted() 72 default void logNotificationChannelModified(@NonNull NotificationChannel channel, int uid, in logNotificationChannelModified() 124 @NonNull NotificationChannel channel, int uid, String pkg, in logNotificationChannel() 187 public static NotificationChannelEvent getCreated(@NonNull NotificationChannel channel) { in getCreated() 193 public static NotificationChannelEvent getDeleted(@NonNull NotificationChannel channel) { in getDeleted() 213 static int getIdHash(@NonNull NotificationChannel channel) { in getIdHash() 228 static int getLoggingImportance(@NonNull NotificationChannel channel) { in getLoggingImportance() 236 static int getLoggingImportance(@NonNull NotificationChannel channel, int importance) { in getLoggingImportance()
|
D | RankingConfig.java | 18 import android.app.NotificationChannel; 44 boolean createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel() 46 void updateNotificationChannel(String pkg, int uid, NotificationChannel channel, in updateNotificationChannel() 48 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, in getNotificationChannel() 50 NotificationChannel getConversationNotificationChannel(String pkg, int uid, String channelId, in getConversationNotificationChannel() 56 ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid, in getNotificationChannels()
|
D | PreferencesHelper.java | 20 import static android.app.NotificationChannel.PLACEHOLDER_CONVERSATION_ID; 37 import android.app.NotificationChannel; 308 NotificationChannel channel = new NotificationChannel(id, in readXml() 431 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in deleteDefaultChannelIfNeededLocked() 442 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID); in deleteDefaultChannelIfNeededLocked() 453 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in createDefaultChannelIfNeededLocked() 454 r.channels.get(NotificationChannel.DEFAULT_CHANNEL_ID).setName(mContext.getString( in createDefaultChannelIfNeededLocked() 465 NotificationChannel channel; in createDefaultChannelIfNeededLocked() 466 channel = new NotificationChannel( in createDefaultChannelIfNeededLocked() 467 NotificationChannel.DEFAULT_CHANNEL_ID, in createDefaultChannelIfNeededLocked() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogControllerTest.kt | 20 import android.app.NotificationChannel 55 private lateinit var channel1: NotificationChannel 56 private lateinit var channel2: NotificationChannel 57 private lateinit var channelDefault: NotificationChannel 75 channel1 = NotificationChannel(TEST_CHANNEL, TEST_CHANNEL_NAME, IMPORTANCE_DEFAULT) in setup() 76 channel2 = NotificationChannel(TEST_CHANNEL2, TEST_CHANNEL_NAME2, IMPORTANCE_DEFAULT) in setup() 77 channelDefault = NotificationChannel( in setup() 78 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, IMPORTANCE_DEFAULT) in setup() 120 val channel3 = NotificationChannel("test_channel_3", "Test channel 3", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_retrievesUpTo4Channels() 121 val channel4 = NotificationChannel("test_channel_4", "Test channel 4", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_retrievesUpTo4Channels() [all …]
|
D | NotificationInfoTest.java | 19 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE; 46 import android.app.NotificationChannel; 100 private NotificationChannel mNotificationChannel; 101 private NotificationChannel mDefaultNotificationChannel; 102 private Set<NotificationChannel> mNotificationChannelSet = new HashSet<>(); 103 private Set<NotificationChannel> mDefaultNotificationChannelSet = new HashSet<>(); 157 mNotificationChannel = new NotificationChannel( in setUp() 160 mDefaultNotificationChannel = new NotificationChannel( in setUp() 161 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, in setUp() 426 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings() [all …]
|
D | PartialConversationInfoTest.java | 38 import android.app.NotificationChannel; 88 private NotificationChannel mNotificationChannel; 89 private NotificationChannel mDefaultNotificationChannel; 90 private Set<NotificationChannel> mNotificationChannelSet = new HashSet<>(); 91 private Set<NotificationChannel> mDefaultNotificationChannelSet = new HashSet<>(); 149 mNotificationChannel = new NotificationChannel( in setUp() 152 mDefaultNotificationChannel = new NotificationChannel( in setUp() 153 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, in setUp() 256 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings() 280 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings_mainText() [all …]
|
D | NotificationConversationInfoTest.java | 49 import android.app.NotificationChannel; 118 private NotificationChannel mNotificationChannel; 119 private NotificationChannel mConversationChannel; 204 mNotificationChannel = new NotificationChannel( in setUp() 228 mConversationChannel = new NotificationChannel( in setUp() 436 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings() 489 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SettingsButtonInvisibleWhenDeviceUnprovisioned() 751 ArgumentCaptor<NotificationChannel> captor = in testFavorite_andSave() 752 ArgumentCaptor.forClass(NotificationChannel.class); in testFavorite_andSave() 788 ArgumentCaptor<NotificationChannel> captor = in testFavorite_andSave_doesNotLowerImportance() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationRankingManagerTest.kt | 20 import android.app.NotificationChannel in <lambda>() 98 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 112 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 135 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 150 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 172 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 189 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 215 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 231 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() 260 .setChannel(NotificationChannel("test", "", IMPORTANCE_DEFAULT)) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ChannelEditorDialogController.kt | 21 import android.app.NotificationChannel in <lambda>() 22 import android.app.NotificationChannel.DEFAULT_CHANNEL_ID in <lambda>() 82 internal val paddedChannels = mutableListOf<NotificationChannel>() in <lambda>() 84 private val providedChannels = mutableListOf<NotificationChannel>() in <lambda>() 87 private val edits = mutableMapOf<NotificationChannel, Int>() in <lambda>() 105 channels: Set<NotificationChannel>, in <lambda>() 138 private fun padToFourChannels(channels: Set<NotificationChannel>) { in <lambda>() 159 ): Sequence<NotificationChannel> { in <lambda>() 210 fun proposeEditForChannel(channel: NotificationChannel, @Importance edit: Int) { in <lambda>() 261 private fun setChannelImportance(channel: NotificationChannel, importance: Int) { in <lambda>()
|
/frameworks/base/core/java/android/service/notification/ |
D | ConversationChannelWrapper.java | 19 import android.app.NotificationChannel; 32 private NotificationChannel mNotificationChannel; 42 mNotificationChannel = in.readParcelable(NotificationChannel.class.getClassLoader()); in ConversationChannelWrapper() 79 public NotificationChannel getNotificationChannel() { in getNotificationChannel() 84 NotificationChannel notificationChannel) { in setNotificationChannel()
|
D | INotificationListener.aidl | 20 import android.app.NotificationChannel; 45 …ficationChannelModification(String pkgName, in UserHandle user, in NotificationChannel channel, in… in onNotificationChannelModification() 49 …uedWithChannel(in IStatusBarNotificationHolder notificationHolder, in NotificationChannel channel); in onNotificationEnqueuedWithChannel()
|
/frameworks/base/core/java/android/app/ |
D | NotificationChannelGroup.java | 68 private List<NotificationChannel> mChannels = new ArrayList<>(); 102 in.readParcelableList(mChannels, NotificationChannel.class.getClassLoader()); in NotificationChannelGroup() 158 public List<NotificationChannel> getChannels() { in getChannels() 193 public void addChannel(NotificationChannel channel) { in addChannel() 200 public void setChannels(List<NotificationChannel> channels) { in setChannels() 342 for (NotificationChannel channel : mChannels) { in dumpDebug()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | WifiSoftApConfigChangedNotifier.java | 19 import android.app.NotificationChannel; 45 NotificationChannel channel = new NotificationChannel( in notifyUserOfConfigConversion()
|