/frameworks/base/core/java/com/android/internal/notification/ |
D | SystemNotificationChannels.java | 20 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/ |
D | NotificationChannelTest.java | 171 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/ |
D | PreferencesHelperTest.java | 23 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 …]
|
D | NotificationChannelExtractorTest.java | 45 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 …]
|
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() 77 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testOldNotificationsNotIntrusive()
|
D | ImportanceExtractorTest.java | 23 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()
|
D | ZenModeFilteringTest.java | 44 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 …]
|
D | GlobalSortKeyComparatorTest.java | 21 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/ |
D | NotificationChannels.java | 17 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/ |
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/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() 220 static int getConversationIdHash(@NonNull NotificationChannel channel) { in getConversationIdHash() 235 static int getLoggingImportance(@NonNull NotificationChannel channel) { in getLoggingImportance() [all …]
|
D | RankingConfig.java | 18 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()
|
D | PreferencesHelper.java | 20 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/ |
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_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 …]
|
D | PartialConversationInfoTest.java | 36 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()
|
D | NotificationInfoTest.java | 20 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/ |
D | ConversationChannel.java | 20 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/ |
D | ConversationChannelWrapper.java | 20 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()
|
D | INotificationListener.aidl | 20 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/ |
D | ChannelEditorDialogController.kt | 21 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/ |
D | NotificationChannelHelper.java | 21 import android.app.NotificationChannel; 38 public static NotificationChannel createConversationChannelIfNeeded( in createConversationChannelIfNeeded() 42 NotificationChannel channel) { in createConversationChannelIfNeeded()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | LocalMediaProjectionService.java | 19 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/ |
D | NotificationActivity.java | 24 import android.app.NotificationChannel; 84 NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance); in createNotificationChannel()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 25 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/ |
D | NotificationEntryTest.java | 38 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()
|