Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java20 import android.app.NotificationChannel;
75 List<NotificationChannel> channelsList = new ArrayList<NotificationChannel>(); in createAll()
76 final NotificationChannel physicalKeyboardChannel = new NotificationChannel( in createAll()
83 final NotificationChannel security = new NotificationChannel( in createAll()
89 final NotificationChannel car = new NotificationChannel( in createAll()
98 final NotificationChannel developer = new NotificationChannel( in createAll()
105 final NotificationChannel developerImportant = new NotificationChannel( in createAll()
112 final NotificationChannel updates = new NotificationChannel( in createAll()
118 final NotificationChannel network = new NotificationChannel( in createAll()
125 final NotificationChannel networkAlertsChannel = new NotificationChannel( in createAll()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationChannelTest.java171 NotificationChannel channel = new NotificationChannel("id", "name", 3); in testLongStringFields()
205 NotificationChannel fromParcel = NotificationChannel.CREATOR.createFromParcel(parcel); in testLongStringFields()
206 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, fromParcel.getId().length()); in testLongStringFields()
207 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, fromParcel.getName().length()); in testLongStringFields()
208 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, in testLongStringFields()
210 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, in testLongStringFields()
212 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, in testLongStringFields()
214 assertEquals(NotificationChannel.MAX_TEXT_LENGTH, in testLongStringFields()
220 NotificationChannel channel = new NotificationChannel("id", "name", 3); in testLongAlertFields()
230 NotificationChannel fromParcel = NotificationChannel.CREATOR.createFromParcel(parcel); in testLongAlertFields()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java23 import static android.app.NotificationChannel.ALLOW_BUBBLE_ON;
24 import static android.app.NotificationChannel.CONVERSATION_CHANNEL_ID_FORMAT;
25 import static android.app.NotificationChannel.DEFAULT_ALLOW_BUBBLE;
26 import static android.app.NotificationChannel.USER_LOCKED_ALLOW_BUBBLE;
27 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE;
28 import static android.app.NotificationChannel.USER_LOCKED_LIGHTS;
29 import static android.app.NotificationChannel.USER_LOCKED_PRIORITY;
30 import static android.app.NotificationChannel.USER_LOCKED_SHOW_BADGE;
31 import static android.app.NotificationChannel.USER_LOCKED_SOUND;
32 import static android.app.NotificationChannel.USER_LOCKED_VIBRATION;
[all …]
DNotificationChannelExtractorTest.java45 import android.app.NotificationChannel;
87 private NotificationRecord getRecord(NotificationChannel channel, Notification n) { in getRecord()
95 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testExtractsUpdatedConversationChannel()
102 NotificationChannel updatedChannel = in testExtractsUpdatedConversationChannel()
103 new NotificationChannel("a", "", IMPORTANCE_HIGH); in testExtractsUpdatedConversationChannel()
114 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testInvalidShortcutFlagEnabled_looksUpCorrectNonChannel()
122 NotificationChannel updatedChannel = in testInvalidShortcutFlagEnabled_looksUpCorrectNonChannel()
123 new NotificationChannel("a", "", IMPORTANCE_HIGH); in testInvalidShortcutFlagEnabled_looksUpCorrectNonChannel()
135 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
143 NotificationChannel updatedChannel = in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
[all …]
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()
77 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testOldNotificationsNotIntrusive()
DImportanceExtractorTest.java23 import android.app.NotificationChannel;
59 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord()
82 NotificationChannel channel = in testAppPreferenceChannelNone()
83 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone()
99 NotificationChannel channel = in testAppPreferenceChannelPreference()
100 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
DZenModeFilteringTest.java44 import android.app.NotificationChannel;
105 return getNotificationRecord(mock(NotificationChannel.class)); in getNotificationRecord()
108 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord()
115 private NotificationRecord getConversationRecord(NotificationChannel c, in getConversationRecord()
161 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm()
182 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm_wrongUsage()
261 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_allAllowed()
279 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_importantAllowed_isImportant()
297 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_importantAllowed_isNotImportant()
314 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_noneAllowed_notCallOrMsg()
[all …]
DGlobalSortKeyComparatorTest.java21 import android.app.NotificationChannel;
145 private NotificationChannel getDefaultChannel() { in getDefaultChannel()
146 return new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "name", in getDefaultChannel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java17 import android.app.NotificationChannel;
58 final NotificationChannel batteryChannel = new NotificationChannel(BATTERY, in createAll()
69 final NotificationChannel alerts = new NotificationChannel( in createAll()
74 final NotificationChannel instant = new NotificationChannel( in createAll()
79 final NotificationChannel setup = new NotificationChannel( in createAll()
85 final NotificationChannel storage = new NotificationChannel( in createAll()
92 final NotificationChannel hint = new NotificationChannel( in createAll()
113 nm.createNotificationChannel(new NotificationChannel( in createAll()
125 @VisibleForTesting static NotificationChannel createScreenshotChannel( in createScreenshotChannel()
127 NotificationChannel screenshotChannel = new NotificationChannel(SCREENSHOTS_HEADSUP, in createScreenshotChannel()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java19 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/services/core/java/com/android/server/notification/
DNotificationChannelLogger.java22 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()
220 static int getConversationIdHash(@NonNull NotificationChannel channel) { in getConversationIdHash()
235 static int getLoggingImportance(@NonNull NotificationChannel channel) { in getLoggingImportance()
[all …]
DRankingConfig.java18 import android.app.NotificationChannel;
43 boolean createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel()
46 void updateNotificationChannel(String pkg, int uid, NotificationChannel updatedChannel, in updateNotificationChannel()
48 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, in getNotificationChannel()
50 NotificationChannel getConversationNotificationChannel(String pkg, int uid, String channelId, in getConversationNotificationChannel()
57 ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid, in getNotificationChannels()
DPreferencesHelper.java20 import static android.app.NotificationChannel.PLACEHOLDER_CONVERSATION_ID;
21 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE;
43 import android.app.NotificationChannel;
426 NotificationChannel channel = new NotificationChannel( in restoreChannel()
449 for (NotificationChannel channel : p.channels.values()) { in hasUserConfiguredSettings()
458 private boolean isShortcutOk(NotificationChannel channel) { in isShortcutOk()
466 private boolean isDeletionOk(NotificationChannel nc) { in isDeletionOk()
555 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in deleteDefaultChannelIfNeededLocked()
566 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID); in deleteDefaultChannelIfNeededLocked()
577 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in createDefaultChannelIfNeededLocked()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt20 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_NONE) in setup()
77 channelDefault = NotificationChannel( in setup()
78 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, IMPORTANCE_DEFAULT) in setup()
115 val channel3 = NotificationChannel("test_channel_3", "Test channel 3", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_AddsAllChannelsAllGroups()
117 val channel4 = NotificationChannel("test_channel_4", "Test channel 4", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_AddsAllChannelsAllGroups()
[all …]
DPartialConversationInfoTest.java36 import android.app.NotificationChannel;
83 private NotificationChannel mNotificationChannel;
84 private NotificationChannel mDefaultNotificationChannel;
142 mNotificationChannel = new NotificationChannel( in setUp()
144 mDefaultNotificationChannel = new NotificationChannel( in setUp()
145 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, in setUp()
242 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings()
265 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings_mainText()
303 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SettingsButtonInvisibleWhenDeviceUnprovisioned()
DNotificationInfoTest.java20 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE;
46 import android.app.NotificationChannel;
99 private NotificationChannel mNotificationChannel;
100 private NotificationChannel mDefaultNotificationChannel;
157 mNotificationChannel = new NotificationChannel( in setUp()
159 mDefaultNotificationChannel = new NotificationChannel( in setUp()
160 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, in setUp()
429 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings()
480 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SettingsButtonInvisibleWhenDeviceUnprovisioned()
520 (View v, NotificationChannel c, int appUid) -> { }, in testBindNotification_SettingsButtonReappearsAfterSecondBind()
[all …]
/frameworks/base/core/java/android/app/people/
DConversationChannel.java20 import android.app.NotificationChannel;
39 private NotificationChannel mNotificationChannel;
59 NotificationChannel parentNotificationChannel, in ConversationChannel()
71 NotificationChannel parentNotificationChannel, in ConversationChannel()
88 …otificationChannel = in.readParcelable(NotificationChannel.class.getClassLoader(), android.app.Not… in ConversationChannel()
123 public NotificationChannel getNotificationChannel() { in getNotificationChannel()
/frameworks/base/core/java/android/service/notification/
DConversationChannelWrapper.java20 import android.app.NotificationChannel;
33 private NotificationChannel mNotificationChannel;
43 …otificationChannel = in.readParcelable(NotificationChannel.class.getClassLoader(), android.app.Not… in ConversationChannelWrapper()
80 public NotificationChannel getNotificationChannel() { in getNotificationChannel()
85 NotificationChannel notificationChannel) { in setNotificationChannel()
DINotificationListener.aidl20 import android.app.NotificationChannel;
46 …ficationChannelModification(String pkgName, in UserHandle user, in NotificationChannel channel, in… in onNotificationChannelModification()
50 …WithChannel(in IStatusBarNotificationHolder notificationHolder, in NotificationChannel channel, in… in onNotificationEnqueuedWithChannel()
/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>()
74 private var channel: NotificationChannel? = null in <lambda>()
82 internal val channelList = mutableListOf<NotificationChannel>() in <lambda>()
85 private val edits = mutableMapOf<NotificationChannel, Int>() in <lambda>()
103 channel: NotificationChannel, in <lambda>()
147 ): Sequence<NotificationChannel> { in <lambda>()
196 fun proposeEditForChannel(channel: NotificationChannel, @Importance edit: Int) { in <lambda>()
247 private fun setChannelImportance(channel: NotificationChannel, importance: Int) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationChannelHelper.java21 import android.app.NotificationChannel;
38 public static NotificationChannel createConversationChannelIfNeeded( in createConversationChannelIfNeeded()
42 NotificationChannel channel) { in createConversationChannelIfNeeded()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DLocalMediaProjectionService.java19 import android.app.NotificationChannel;
71 final NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in startForeground()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DNotificationActivity.java24 import android.app.NotificationChannel;
84 NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance); in createNotificationChannel()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java25 import android.app.NotificationChannel;
80 mNM.createNotificationChannel(new NotificationChannel("min", "Min", IMPORTANCE_MIN)); in onCreate()
81 mNM.createNotificationChannel(new NotificationChannel("low", "Low", IMPORTANCE_LOW)); in onCreate()
83 new NotificationChannel("default", "Default", IMPORTANCE_DEFAULT)); in onCreate()
84 mNM.createNotificationChannel(new NotificationChannel("high", "High", IMPORTANCE_HIGH)); in onCreate()
106 NotificationChannel phoneCall =
107 new NotificationChannel("phone call", "Phone Call", IMPORTANCE_HIGH);
671 NotificationChannel channel = new NotificationChannel("v. noisy",
734 NotificationChannel channel = new NotificationChannel("blue",
751 NotificationChannel channel = new NotificationChannel("red",
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryTest.java38 import android.app.NotificationChannel;
72 private static final NotificationChannel NOTIFICATION_CHANNEL =
73 new NotificationChannel("id", "name", NotificationChannel.USER_LOCKED_IMPORTANCE);
78 private NotificationChannel mChannel = Mockito.mock(NotificationChannel.class);
315 NotificationChannel channel = in testIsChannelVisibilityPrivate_visibilityPublic_false()
316 new NotificationChannel("id", "name", NotificationChannel.USER_LOCKED_IMPORTANCE); in testIsChannelVisibilityPrivate_visibilityPublic_false()

1234567