Home
last modified time | relevance | path

Searched refs:NotificationChannel (Results 1 – 25 of 83) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java19 import android.app.NotificationChannel;
62 List<NotificationChannel> channelsList = new ArrayList<NotificationChannel>(); in createAll()
63 final NotificationChannel keyboard = new NotificationChannel( in createAll()
70 final NotificationChannel physicalKeyboardChannel = new NotificationChannel( in createAll()
79 final NotificationChannel security = new NotificationChannel( in createAll()
85 final NotificationChannel car = new NotificationChannel( in createAll()
94 final NotificationChannel developer = new NotificationChannel( in createAll()
101 final NotificationChannel updates = new NotificationChannel( in createAll()
107 final NotificationChannel network = new NotificationChannel( in createAll()
113 final NotificationChannel networkAlertsChannel = new NotificationChannel( in createAll()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java44 import android.app.NotificationChannel;
211 private void compareChannels(NotificationChannel expected, NotificationChannel actual) { in compareChannels()
234 private NotificationChannel getChannel() { in getChannel()
235 return new NotificationChannel("id", "name", IMPORTANCE_LOW); in getChannel()
238 private NotificationChannel findChannel(List<NotificationChannel> channels, String id) { in findChannel()
239 for (NotificationChannel channel : channels) { in findChannel()
264 NotificationChannel channel0 = new NotificationChannel("id0", "name0", IMPORTANCE_HIGH); in testWriteXml_onlyBackupsTargetUser()
270 NotificationChannel channel10 = new NotificationChannel("id10", "name10", IMPORTANCE_HIGH); in testWriteXml_onlyBackupsTargetUser()
295 NotificationChannel channel0 = new NotificationChannel("id0", "name0", IMPORTANCE_HIGH); in testReadXml_onlyRestoresTargetUser()
321 NotificationChannel channel1 = in testChannelXml()
[all …]
DNotificationChannelTest.java24 import android.app.NotificationChannel;
51 NotificationChannel channel = in testWriteToParcel()
52 new NotificationChannel("1", "one", IMPORTANCE_DEFAULT); in testWriteToParcel()
56 NotificationChannel channel1 = NotificationChannel.CREATOR.createFromParcel(parcel); in testWriteToParcel()
62 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testSystemBlockable()
70 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testEmptyVibration_noException()
81 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testBackupEmptySound()
92 NotificationChannel restored = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testBackupEmptySound()
DNotificationIntrusivenessExtractorTest.java29 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()
DNotificationChannelExtractorTest.java32 import android.app.NotificationChannel;
57 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testExtractsUpdatedChannel()
66 NotificationChannel updatedChannel = in testExtractsUpdatedChannel()
67 new NotificationChannel("a", "", IMPORTANCE_HIGH); in testExtractsUpdatedChannel()
DImportanceExtractorTest.java26 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()
DZenModeFilteringTest.java33 import android.app.NotificationChannel;
69 return getNotificationRecord(mock(NotificationChannel.class)); in getNotificationRecord()
72 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord()
92 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm()
113 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm_wrongUsage()
DRankingHelperTest.java31 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()
DNotificationRecordTest.java18 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE;
45 import android.app.NotificationChannel;
90 private NotificationChannel channel =
91 new NotificationChannel(channelId, "test", NotificationManager.IMPORTANCE_DEFAULT);
93 private NotificationChannel defaultChannel =
94 new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "test",
204 defaultChannel.lockFields(NotificationChannel.USER_LOCKED_SOUND); in testSound_default_userLocked_preUpgrade()
267 defaultChannel.lockFields(NotificationChannel.USER_LOCKED_VIBRATION); in testVibration_custom_userLocked_preUpgrade()
353 defaultChannel.lockFields(NotificationChannel.USER_LOCKED_LIGHTS); in testLights_locked_preUpgrade()
755 channel.lockFields(NotificationChannel.USER_LOCKED_SOUND); in testCalculateGrantableUris_PuserOverridden()
[all …]
DGlobalSortKeyComparatorTest.java21 import android.app.NotificationChannel;
145 private NotificationChannel getDefaultChannel() { in getDefaultChannel()
146 return new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "name", in getDefaultChannel()
DCriticalNotificationExtractorTest.java27 import android.app.NotificationChannel;
99 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in generateRecord()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java17 import android.app.NotificationChannel;
43 final NotificationChannel batteryChannel = new NotificationChannel(BATTERY, in createAll()
54 final NotificationChannel alerts = new NotificationChannel( in createAll()
59 final NotificationChannel general = new NotificationChannel( in createAll()
64 final NotificationChannel storage = new NotificationChannel( in createAll()
71 final NotificationChannel hint = new NotificationChannel( in createAll()
98 nm.createNotificationChannel(new NotificationChannel( in createAll()
110 @VisibleForTesting static NotificationChannel createScreenshotChannel( in createScreenshotChannel()
111 String name, NotificationChannel legacySS) { in createScreenshotChannel()
112 NotificationChannel screenshotChannel = new NotificationChannel(SCREENSHOTS_HEADSUP, in createScreenshotChannel()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java19 import android.app.NotificationChannel;
61 final NotificationChannel alertChannel = new NotificationChannel( in createAll()
70 final NotificationChannel mobileDataStatusChannel = new NotificationChannel( in createAll()
77 final NotificationChannel simChannel = new NotificationChannel( in createAll()
84 final NotificationChannel callforwardChannel = new NotificationChannel( in createAll()
92 new NotificationChannel(CHANNEL_ID_SMS, in createAll()
95 new NotificationChannel(CHANNEL_ID_WFC, in createAll()
126 public static NotificationChannel getChannel(String channelId, Context context) { in getChannel()
140 final NotificationChannel voiceMailChannel = new NotificationChannel( in migrateVoicemailNotificationSettings()
159 Context context, @NonNull NotificationChannel callforwardChannel) { in migrateCallFowardNotificationChannel()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DChannelsTest.java22 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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt20 import android.app.NotificationChannel
53 private lateinit var channel1: NotificationChannel
54 private lateinit var channel2: NotificationChannel
55 private lateinit var channelDefault: NotificationChannel
68 channel1 = NotificationChannel(TEST_CHANNEL, TEST_CHANNEL_NAME, IMPORTANCE_DEFAULT) in setup()
69 channel2 = NotificationChannel(TEST_CHANNEL2, TEST_CHANNEL_NAME2, IMPORTANCE_DEFAULT) in setup()
70 channelDefault = NotificationChannel( in setup()
71 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, IMPORTANCE_DEFAULT) in setup()
113 val channel3 = NotificationChannel("test_channel_3", "Test channel 3", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_retrievesUpTo4Channels()
114 val channel4 = NotificationChannel("test_channel_4", "Test channel 4", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_retrievesUpTo4Channels()
[all …]
DNotificationInfoTest.java19 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE;
50 import android.app.NotificationChannel;
104 private NotificationChannel mNotificationChannel;
105 private NotificationChannel mDefaultNotificationChannel;
106 private Set<NotificationChannel> mNotificationChannelSet = new HashSet<>();
107 private Set<NotificationChannel> mDefaultNotificationChannelSet = new HashSet<>();
158 mNotificationChannel = new NotificationChannel( in setUp()
161 mDefaultNotificationChannel = new NotificationChannel( in setUp()
162 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, in setUp()
473 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRankingConfig.java18 import android.app.NotificationChannel;
42 boolean createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel()
44 …void updateNotificationChannel(String pkg, int uid, NotificationChannel channel, boolean fromUser); in updateNotificationChannel()
45NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, boolean includeD… in getNotificationChannel()
49 …ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid, boolean includ… in getNotificationChannels()
DPreferencesHelper.java25 import android.app.NotificationChannel;
233 NotificationChannel channel = new NotificationChannel(id, in readXml()
339 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in deleteDefaultChannelIfNeededLocked()
350 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID); in deleteDefaultChannelIfNeededLocked()
357 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in createDefaultChannelIfNeededLocked()
358 r.channels.get(NotificationChannel.DEFAULT_CHANNEL_ID).setName(mContext.getString( in createDefaultChannelIfNeededLocked()
369 NotificationChannel channel; in createDefaultChannelIfNeededLocked()
370 channel = new NotificationChannel( in createDefaultChannelIfNeededLocked()
371 NotificationChannel.DEFAULT_CHANNEL_ID, in createDefaultChannelIfNeededLocked()
377 channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in createDefaultChannelIfNeededLocked()
[all …]
DNotificationManagerInternal.java20 import android.app.NotificationChannel;
23 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId); in getNotificationChannel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt21 import android.app.NotificationChannel in <lambda>()
22 import android.app.NotificationChannel.DEFAULT_CHANNEL_ID in <lambda>()
79 internal val providedChannels = mutableListOf<NotificationChannel>() in <lambda>()
82 private val edits = mutableMapOf<NotificationChannel, Int>() in <lambda>()
98 channels: Set<NotificationChannel>, in <lambda>()
123 private fun padToFourChannels(channels: Set<NotificationChannel>) { in <lambda>()
144 ): Sequence<NotificationChannel> { in <lambda>()
192 fun proposeEditForChannel(channel: NotificationChannel, edit: Int) { in <lambda>()
228 private fun setChannelImportance(channel: NotificationChannel, importance: Int) { in <lambda>()
DChannelEditorListView.kt19 import android.app.NotificationChannel in <lambda>()
46 var channels = mutableListOf<NotificationChannel>() in <lambda>()
104 private fun addChannelRow(channel: NotificationChannel, inflater: LayoutInflater) { in <lambda>()
143 var channel: NotificationChannel? = null
/frameworks/base/core/java/android/service/notification/
DINotificationListener.aidl20 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/
DNotificationChannelGroup.java68 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 writeToProto()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java25 import android.app.NotificationChannel;
85 mNM.createNotificationChannel(new NotificationChannel("min", "Min", IMPORTANCE_MIN)); in onCreate()
86 mNM.createNotificationChannel(new NotificationChannel("low", "Low", IMPORTANCE_LOW)); in onCreate()
88 new NotificationChannel("default", "Default", IMPORTANCE_DEFAULT)); in onCreate()
89 mNM.createNotificationChannel(new NotificationChannel("high", "High", IMPORTANCE_HIGH)); in onCreate()
111 NotificationChannel phoneCall =
112 new NotificationChannel("phone call", "Phone Call", IMPORTANCE_HIGH);
675 NotificationChannel channel = new NotificationChannel("v. noisy",
738 NotificationChannel channel = new NotificationChannel("blue",
755 NotificationChannel channel = new NotificationChannel("red",
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DServiceIntentSender.java21 import android.app.NotificationChannel;
40 final NotificationChannel mChannel = new NotificationChannel( in ServiceIntentSender()

1234