/frameworks/base/core/java/com/android/internal/notification/ |
D | SystemNotificationChannels.java | 19 import android.app.NotificationChannel; 57 List<NotificationChannel> channelsList = new ArrayList<NotificationChannel>(); in createAll() 58 final NotificationChannel keyboard = new NotificationChannel( in createAll() 65 final NotificationChannel physicalKeyboardChannel = new NotificationChannel( in createAll() 74 final NotificationChannel security = new NotificationChannel( in createAll() 80 final NotificationChannel car = new NotificationChannel( in createAll() 89 final NotificationChannel developer = new NotificationChannel( in createAll() 96 final NotificationChannel updates = new NotificationChannel( in createAll() 102 final NotificationChannel network = new NotificationChannel( in createAll() 108 final NotificationChannel networkAlertsChannel = new NotificationChannel( in createAll() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RankingHelperTest.java | 45 import android.app.NotificationChannel; 238 private NotificationChannel getDefaultChannel() { in getDefaultChannel() 239 return new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "name", in getDefaultChannel() 270 private void compareChannels(NotificationChannel expected, NotificationChannel actual) { in compareChannels() 293 private NotificationChannel getChannel() { in getChannel() 294 return new NotificationChannel("id", "name", IMPORTANCE_LOW); in getChannel() 297 private NotificationChannel findChannel(List<NotificationChannel> channels, String id) { in findChannel() 298 for (NotificationChannel channel : channels) { in findChannel() 367 NotificationChannel channel1 = in testChannelXml() 368 new NotificationChannel("id1", "name1", NotificationManager.IMPORTANCE_HIGH); in testChannelXml() [all …]
|
D | NotificationChannelTest.java | 23 import android.app.NotificationChannel; 44 NotificationChannel channel = in testWriteToParcel() 45 new NotificationChannel("1", "one", IMPORTANCE_DEFAULT); in testWriteToParcel() 49 NotificationChannel channel1 = NotificationChannel.CREATOR.createFromParcel(parcel); in testWriteToParcel() 55 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testSystemBlockable() 63 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testEmptyVibration_noException()
|
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 | NotificationChannelExtractorTest.java | 32 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()
|
D | ImportanceExtractorTest.java | 26 import android.app.NotificationChannel; 63 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord() 88 NotificationChannel channel = in testAppPreferenceChannelNone() 89 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone() 107 NotificationChannel channel = in testAppPreferenceChannelPreference() 108 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
|
D | ZenModeFilteringTest.java | 33 import android.app.NotificationChannel; 68 return getNotificationRecord(mock(NotificationChannel.class)); in getNotificationRecord() 71 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord() 90 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm() 111 NotificationChannel c = mock(NotificationChannel.class); in testIsAlarm_wrongUsage()
|
D | GlobalSortKeyComparatorTest.java | 24 import android.app.NotificationChannel; 147 private NotificationChannel getDefaultChannel() { in getDefaultChannel() 148 return new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "name", in getDefaultChannel()
|
D | ZenModeExtractorTest.java | 31 import android.app.NotificationChannel; 104 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in generateRecord()
|
D | NotificationRecordTest.java | 18 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE; 45 import android.app.NotificationChannel; 91 NotificationChannel channel = 92 new NotificationChannel(channelId, "test", NotificationManager.IMPORTANCE_DEFAULT); 99 NotificationChannel channelLongId = 100 new NotificationChannel(channelIdLong, "long", NotificationManager.IMPORTANCE_DEFAULT); 101 NotificationChannel defaultChannel = 102 new NotificationChannel(NotificationChannel.DEFAULT_CHANNEL_ID, "test", 212 defaultChannel.lockFields(NotificationChannel.USER_LOCKED_SOUND); in testSound_default_userLocked_preUpgrade() 275 defaultChannel.lockFields(NotificationChannel.USER_LOCKED_VIBRATION); in testVibration_custom_userLocked_preUpgrade() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 17 import android.app.NotificationChannel; 44 final NotificationChannel batteryChannel = new NotificationChannel(BATTERY, in createAll() 55 final NotificationChannel alerts = new NotificationChannel( in createAll() 60 final NotificationChannel general = new NotificationChannel( in createAll() 65 final NotificationChannel storage = new NotificationChannel( in createAll() 72 final NotificationChannel hint = new NotificationChannel( in createAll() 99 nm.createNotificationChannel(new NotificationChannel( in createAll() 111 @VisibleForTesting static NotificationChannel createScreenshotChannel( in createScreenshotChannel() 112 String name, NotificationChannel legacySS) { in createScreenshotChannel() 113 NotificationChannel screenshotChannel = new NotificationChannel(SCREENSHOTS_HEADSUP, in createScreenshotChannel() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 18 import android.app.NotificationChannel; 55 final NotificationChannel alertChannel = new NotificationChannel( in createAll() 64 final NotificationChannel mobileDataStatusChannel = new NotificationChannel( in createAll() 71 final NotificationChannel simChannel = new NotificationChannel( in createAll() 81 new NotificationChannel(CHANNEL_ID_CALL_FORWARD, in createAll() 84 new NotificationChannel(CHANNEL_ID_SMS, in createAll() 87 new NotificationChannel(CHANNEL_ID_WFC, in createAll() 113 public static NotificationChannel getChannel(String channelId, Context context) { in getChannel() 127 final NotificationChannel voiceMailChannel = new NotificationChannel( in migrateVoicemailNotificationSettings()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | ChannelsTest.java | 26 import android.app.NotificationChannel; 69 final List<NotificationChannel> list = captor.getValue(); in testChannelSetup() 86 NotificationChannel legacyChannel = new NotificationChannel("id", "oldName", in testInheritFromLegacy_keepsUserLockedLegacySettings() 91 legacyChannel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE | in testInheritFromLegacy_keepsUserLockedLegacySettings() 92 NotificationChannel.USER_LOCKED_SOUND); in testInheritFromLegacy_keepsUserLockedLegacySettings() 93 NotificationChannel newChannel = in testInheritFromLegacy_keepsUserLockedLegacySettings() 102 NotificationChannel legacyChannel = new NotificationChannel("id", "oldName", in testInheritFromLegacy_dropsUnlockedLegacySettings() 104 NotificationChannel newChannel = in testInheritFromLegacy_dropsUnlockedLegacySettings() 114 NotificationChannel newChannel = in testInheritFromLegacy_noLegacyExists()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RankingConfig.java | 18 import android.app.NotificationChannel; 40 void createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel() 42 …void updateNotificationChannel(String pkg, int uid, NotificationChannel channel, boolean fromUser); in updateNotificationChannel() 43 …NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, boolean includeD… in getNotificationChannel() 47 …ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid, boolean includ… in getNotificationChannels()
|
D | RankingHelper.java | 23 import android.app.NotificationChannel; 261 NotificationChannel channel = new NotificationChannel(id, in readXml() 345 if (!r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in deleteDefaultChannelIfNeeded() 356 r.channels.remove(NotificationChannel.DEFAULT_CHANNEL_ID); in deleteDefaultChannelIfNeeded() 360 if (r.channels.containsKey(NotificationChannel.DEFAULT_CHANNEL_ID)) { in createDefaultChannelIfNeeded() 361 r.channels.get(NotificationChannel.DEFAULT_CHANNEL_ID).setName( in createDefaultChannelIfNeeded() 372 NotificationChannel channel; in createDefaultChannelIfNeeded() 373 channel = new NotificationChannel( in createDefaultChannelIfNeeded() 374 NotificationChannel.DEFAULT_CHANNEL_ID, in createDefaultChannelIfNeeded() 380 channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in createDefaultChannelIfNeeded() [all …]
|
D | NotificationManagerInternal.java | 20 import android.app.NotificationChannel; 23 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId); in getNotificationChannel()
|
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/ |
D | AssistantTest.java | 34 import android.app.NotificationChannel; 73 private static final NotificationChannel P1C1 = 74 new NotificationChannel("one", "", IMPORTANCE_LOW); 75 private static final NotificationChannel P1C2 = 76 new NotificationChannel("p1c2", "", IMPORTANCE_DEFAULT); 77 private static final NotificationChannel P1C3 = 78 new NotificationChannel("p1c3", "", IMPORTANCE_MIN); 82 private static final NotificationChannel P2C1 = 83 new NotificationChannel("one", "", IMPORTANCE_LOW); 123 private StatusBarNotification generateSbn(String pkg, int uid, NotificationChannel channel, in generateSbn() [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationChannelGroup.java | 56 private List<NotificationChannel> mChannels = new ArrayList<>(); 88 in.readParcelableList(mChannels, NotificationChannel.class.getClassLoader()); in NotificationChannelGroup() 142 public List<NotificationChannel> getChannels() { in getChannels() 177 public void addChannel(NotificationChannel channel) { in addChannel() 184 public void setChannels(List<NotificationChannel> channels) { in setChannels() 310 for (NotificationChannel channel : mChannels) { in writeToProto()
|
D | INotificationManager.aidl | 22 import android.app.NotificationChannel; 75 void updateNotificationChannelForPackage(String pkg, int uid, in NotificationChannel channel); in updateNotificationChannelForPackage() 76 NotificationChannel getNotificationChannel(String pkg, String channelId); in getNotificationChannel() 77 …NotificationChannel getNotificationChannelForPackage(String pkg, int uid, String channelId, boolea… in getNotificationChannelForPackage() 123 …er(in INotificationListener token, String pkg, in UserHandle user, in NotificationChannel channel); in updateNotificationChannelFromPrivilegedListener()
|
/frameworks/support/media/src/androidTest/java/androidx/media/ |
D | MockMediaSessionService2.java | 20 import android.app.NotificationChannel; 39 private NotificationChannel mDefaultNotificationChannel; 81 mDefaultNotificationChannel = new NotificationChannel( in onUpdateNotification()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 25 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/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationInfoTest.java | 19 import static android.app.NotificationChannel.USER_LOCKED_IMPORTANCE; 48 import android.app.NotificationChannel; 101 private NotificationChannel mNotificationChannel; 102 private NotificationChannel mDefaultNotificationChannel; 146 mNotificationChannel = new NotificationChannel( in setUp() 148 mDefaultNotificationChannel = new NotificationChannel( in setUp() 149 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, in setUp() 276 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SetsOnClickListenerForSettings() 301 (View v, NotificationChannel c, int appUid) -> { in testBindNotification_SettingsButtonReappearsAfterSecondBind() 329 (View v, NotificationChannel c, int appUid) -> { in testOnClickListenerPassesNullChannelForBundle() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationInfo.java | 29 import android.app.NotificationChannel; 76 private NotificationChannel mSingleNotificationChannel; 128 void onClick(View v, NotificationChannel channel, int appUid); in onClick() 140 final NotificationChannel notificationChannel, in bindNotification() 158 NotificationChannel notificationChannel, in bindNotification() 195 NotificationChannel.DEFAULT_CHANNEL_ID) in bindNotification() 437 NotificationChannel channel, int id, String tag) { in getAppSettingsIntent() 524 private final @Nullable NotificationChannel mChannelToUpdate; 530 String packageName, int appUid, @Nullable NotificationChannel channelToUpdate, in UpdateImportanceRunnable() 545 mChannelToUpdate.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in run()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | ServiceIntentSender.java | 21 import android.app.NotificationChannel; 40 final NotificationChannel mChannel = new NotificationChannel( in ServiceIntentSender()
|
/frameworks/base/core/java/android/service/notification/ |
D | INotificationListener.aidl | 19 import android.app.NotificationChannel; 42 …ficationChannelModification(String pkgName, in UserHandle user, in NotificationChannel channel, in… in onNotificationChannelModification()
|