Home
last modified time | relevance | path

Searched refs:NotificationRecord (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java119 private static final NotificationRecord.Light CUSTOM_LIGHT =
120 new NotificationRecord.Light(1, 2, 3);
256 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_preUpgradeUsesNotification()
269 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_custom_preUpgradeUsesNotification()
283 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_userLocked_preUpgrade()
295 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_noSound_preUpgrade()
308 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testSound_default_upgradeUsesChannel()
321 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_default_preUpgradeUsesNotification()
333 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_custom_preUpgradeUsesNotification()
347 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_custom_userLocked_preUpgrade()
[all …]
DGlobalSortKeyComparatorTest.java50 NotificationRecord left = new NotificationRecord(getContext(), in testComparator()
57 NotificationRecord right = new NotificationRecord(getContext(), in testComparator()
64 NotificationRecord last = new NotificationRecord(getContext(), in testComparator()
71 final List<NotificationRecord> expected = new ArrayList<>(); in testComparator()
76 List<NotificationRecord> actual = new ArrayList<>(); in testComparator()
89 NotificationRecord left = new NotificationRecord(getContext(), in testNoCrash_leftNull()
95 NotificationRecord right = new NotificationRecord(getContext(), in testNoCrash_leftNull()
102 final List<NotificationRecord> expected = new ArrayList<>(); in testNoCrash_leftNull()
106 List<NotificationRecord> actual = new ArrayList<>(); in testNoCrash_leftNull()
119 NotificationRecord left = new NotificationRecord(getContext(), in testNoCrash_rightNull()
[all …]
DBuzzBeepBlinkTest.java193 private NotificationRecord getNoisyOtherNotification() { in getNoisyOtherNotification()
198 private NotificationRecord getBeepyNotification() { in getBeepyNotification()
203 private NotificationRecord getBeepyOtherNotification() { in getBeepyOtherNotification()
208 private NotificationRecord getBeepyOnceNotification() { in getBeepyOnceNotification()
213 private NotificationRecord getQuietNotification() { in getQuietNotification()
218 private NotificationRecord getQuietOtherNotification() { in getQuietOtherNotification()
223 private NotificationRecord getQuietOnceNotification() { in getQuietOnceNotification()
228 private NotificationRecord getInsistentBeepyNotification() { in getInsistentBeepyNotification()
233 private NotificationRecord getInsistentBeepyOnceNotification() { in getInsistentBeepyOnceNotification()
238 private NotificationRecord getInsistentBeepyLeanbackNotification() { in getInsistentBeepyLeanbackNotification()
[all …]
DRankingHelperTest.java96 private NotificationRecord mRecordGroupGSortA;
97 private NotificationRecord mRecordGroupGSortB;
98 private NotificationRecord mRecordNoGroup;
99 private NotificationRecord mRecordNoGroup2;
100 private NotificationRecord mRecordNoGroupSortA;
157 mRecordGroupGSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
167 mRecordGroupGSortB = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
175 mRecordNoGroup = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
183 mRecordNoGroup2 = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
192 mRecordNoGroupSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
[all …]
DNotificationComparatorTest.java77 private NotificationRecord mRecordMinCallNonInterruptive;
78 private NotificationRecord mRecordMinCall;
79 private NotificationRecord mRecordHighCall;
80 private NotificationRecord mRecordHighCallStyle;
81 private NotificationRecord mRecordEmail;
82 private NotificationRecord mRecordInlineReply;
83 private NotificationRecord mRecordSms;
84 private NotificationRecord mRecordStarredContact;
85 private NotificationRecord mRecordContact;
86 private NotificationRecord mRecordUrgent;
[all …]
DSnoozeHelperTest.java155 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadValidSnoozedFromCorrectly_timeDeadline()
178 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadExpiredSnoozedNotification()
201 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testCleanupContextShouldRemovePersistedRecord()
214 NotificationRecord r = getNotificationRecord( in testReadNoneSnoozedNotification()
251 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime()
264 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
275 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
285 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
286 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM);
305 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
[all …]
DZenModeFilteringTest.java77 private NotificationRecord getNotificationRecord() { in getNotificationRecord()
81 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord()
85 return new NotificationRecord(mContext, sbn, c); in getNotificationRecord()
88 private NotificationRecord getConversationRecord(NotificationChannel c, in getConversationRecord()
90 NotificationRecord r = mock(NotificationRecord.class); in getConversationRecord()
100 NotificationRecord r = getNotificationRecord(); in testIsMessage()
115 NotificationRecord r = getNotificationRecord(c); in testIsAlarm()
125 NotificationRecord r = getNotificationRecord(); in testIsAlarm_wrongCategory()
136 NotificationRecord r = getNotificationRecord(c); in testIsAlarm_wrongUsage()
142 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_VisEffectsAllowed()
[all …]
DBadgeExtractorTest.java68 private NotificationRecord getNotificationRecord(boolean showBadge, int importanceHigh) { in getNotificationRecord()
82 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
86 private NotificationRecord getNotificationRecordWithBubble(boolean suppressNotif) { in getNotificationRecordWithBubble()
113 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecordWithBubble()
117 private NotificationRecord getNotificationRecordWithMedia(boolean excludeSession) { in getNotificationRecordWithMedia()
138 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecordWithMedia()
153 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppYesChannelNo()
167 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppNoChannelYes()
181 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testAppYesChannelYes()
195 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppNoChannelNo()
[all …]
DBubbleExtractorTest.java109 private NotificationRecord getNotificationRecord(boolean addBubble) { in getNotificationRecord()
131 NotificationRecord r = new NotificationRecord(getContext(), sbn, mChannel); in getNotificationRecord()
173 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppYesChannelNo()
187 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppYesChannelDefault()
201 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppYesChannelYes()
215 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppYesChannelYesFeatureNo()
230 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppNoChannelYes()
245 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppNoChannelDefault()
260 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppSelectedChannelDefault()
275 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppSelectedChannelNo()
[all …]
DNotificationRecordLoggerFake.java38 CallRecord(NotificationRecord r, NotificationRecord old, int position, in CallRecord()
48 CallRecord(NotificationRecord r, UiEventLogger.UiEventEnum event) { in CallRecord()
72 public void maybeLogNotificationPosted(NotificationRecord r, NotificationRecord old, in maybeLogNotificationPosted()
78 public void log(UiEventLogger.UiEventEnum event, NotificationRecord r) { in log()
DNotificationManagerServiceTest.java372 protected void reportUserInteraction(NotificationRecord r) { in reportUserInteraction()
382 void logSmartSuggestionsVisible(NotificationRecord r, int notificationLocation) { in logSmartSuggestionsVisible()
723 private NotificationRecord generateNotificationRecord(NotificationChannel channel, int id, in generateNotificationRecord()
733 return new NotificationRecord(mContext, sbn, channel); in generateNotificationRecord()
736 private NotificationRecord generateNotificationRecord(NotificationChannel channel) { in generateNotificationRecord()
740 private NotificationRecord generateNotificationRecord(NotificationChannel channel, in generateNotificationRecord()
754 return new NotificationRecord(mContext, sbn, channel); in generateNotificationRecord()
757 private NotificationRecord generateNotificationRecord(NotificationChannel channel, int userId) { in generateNotificationRecord()
766 return new NotificationRecord(mContext, sbn, channel); in generateNotificationRecord()
769 private NotificationRecord generateMessageBubbleNotifRecord(NotificationChannel channel, in generateMessageBubbleNotifRecord()
[all …]
DNotificationIntrusivenessExtractorTest.java51 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testNonIntrusive()
70 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testIntrusive_fillScreen()
90 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testOldNotificationsNotIntrusive()
DVisibilityExtractorTest.java79 private NotificationRecord getNotificationRecord(int visibility) { in getNotificationRecord()
91 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
110 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalAllDpmAllChannelAll()
128 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalNoneDpmAllChannelAll()
146 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalSomeDpmAllChannelAll()
165 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalAllDpmNoneChannelAll()
184 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalAllDpmSomeChannelAll()
202 NotificationRecord r = getNotificationRecord(VISIBILITY_SECRET); in testGlobalAllDpmAllChannelNone()
220 NotificationRecord r = getNotificationRecord(VISIBILITY_PRIVATE); in testGlobalAllDpmAllChannelSome()
239 NotificationRecord r = getNotificationRecord(VISIBILITY_SECRET); in testGlobalAllDpmSomeChannelNone()
DZenModeExtractorTest.java57 NotificationRecord r = generateRecord(); in testExtractIntercepted()
74 NotificationRecord r = generateRecord(); in testExtractVisualDisturbancesNotIntercepted()
89 NotificationRecord r = generateRecord(); in testExtractVisualDisturbancesIntercepted()
103 private NotificationRecord generateRecord() { in generateRecord()
111 return new NotificationRecord(getContext(), sbn, channel); in generateRecord()
DNotificationChannelExtractorTest.java65 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testExtractsUpdatedChannel()
92 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testInvalidShortcutFlagEnabled_looksUpCorrectChannel()
120 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
DImportanceExtractorTest.java62 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord()
72 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
90 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelNone()
109 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelPreference()
DShortcutHelperTest.java79 NotificationRecord mNr;
108 private void setUpMockNotificationRecord(NotificationRecord mockRecord, String key) { in setUpMockNotificationRecord()
179 NotificationRecord validMock1 = Mockito.mock(NotificationRecord.class); in testNotifNoLongerHasShortcut_listenerRemoved()
182 NotificationRecord validMock2 = Mockito.mock(NotificationRecord.class); in testNotifNoLongerHasShortcut_listenerRemoved()
185 NotificationRecord validMock3 = Mockito.mock(NotificationRecord.class); in testNotifNoLongerHasShortcut_listenerRemoved()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java37 implements Comparator<NotificationRecord> {
51 public int compare(NotificationRecord left, NotificationRecord right) { in compare()
142 private boolean isImportantColorized(NotificationRecord record) { in isImportantColorized()
149 private boolean isImportantOngoing(NotificationRecord record) { in isImportantOngoing()
162 protected boolean isImportantPeople(NotificationRecord record) { in isImportantPeople()
172 protected boolean isImportantMessaging(NotificationRecord record) { in isImportantMessaging()
176 private boolean isOngoing(NotificationRecord record) { in isOngoing()
181 private boolean isMediaNotification(NotificationRecord record) { in isMediaNotification()
185 private boolean isCallCategory(NotificationRecord record) { in isCallCategory()
190 private boolean isCallStyle(NotificationRecord record) { in isCallStyle()
DSnoozeHelper.java93 private ArrayMap<String, ArrayMap<String, NotificationRecord>>
171 protected Collection<NotificationRecord> getSnoozed(int userId, String pkg) { in getSnoozed()
181 ArrayList<NotificationRecord> getNotifications(String pkg, in getNotifications()
183 ArrayList<NotificationRecord> records = new ArrayList<>(); in getNotifications()
185 ArrayMap<String, NotificationRecord> allRecords = in getNotifications()
189 NotificationRecord r = allRecords.valueAt(i); in getNotifications()
200 protected NotificationRecord getNotification(String key) { in getNotification()
208 ArrayMap<String, NotificationRecord> snoozed = in getNotification()
217 protected @NonNull List<NotificationRecord> getSnoozed() { in getSnoozed()
221 List<NotificationRecord> snoozed = new ArrayList<>(); in getSnoozed()
[all …]
DRankingHelper.java39 private final ArrayMap<String, NotificationRecord> mProxyByGroupTmp = new ArrayMap<>();
84 public void extractSignals(NotificationRecord r) { in extractSignals()
99 public void sort(ArrayList<NotificationRecord> notificationList) { in sort()
112 final NotificationRecord record = notificationList.get(i); in sort()
115 NotificationRecord existingProxy = mProxyByGroupTmp.get(groupKey); in sort()
123 final NotificationRecord record = notificationList.get(i); in sort()
124 NotificationRecord groupProxy = mProxyByGroupTmp.get(record.getGroupKey()); in sort()
160 public int indexOf(ArrayList<NotificationRecord> notificationList, NotificationRecord target) { in indexOf()
DZenModeFiltering.java109 private static Bundle extras(NotificationRecord record) { in extras()
114 protected void recordCall(NotificationRecord record) { in recordCall()
122 NotificationRecord record) { in shouldIntercept()
238 private boolean isCritical(NotificationRecord record) { in isCritical()
243 private static boolean shouldInterceptAudience(int source, NotificationRecord record) { in shouldInterceptAudience()
251 protected static boolean isAlarm(NotificationRecord record) { in isAlarm()
256 private static boolean isEvent(NotificationRecord record) { in isEvent()
260 private static boolean isReminder(NotificationRecord record) { in isReminder()
264 public boolean isCall(NotificationRecord record) { in isCall()
269 public boolean isMedia(NotificationRecord record) { in isMedia()
[all …]
DGlobalSortKeyComparator.java25 public class GlobalSortKeyComparator implements Comparator<NotificationRecord> {
29 public int compare(NotificationRecord left, NotificationRecord right) { in compare()
DNotificationRecordLogger.java56 void maybeLogNotificationPosted(@Nullable NotificationRecord r, in maybeLogNotificationPosted()
57 @Nullable NotificationRecord old, in maybeLogNotificationPosted()
68 default void logNotificationCancelled(@Nullable NotificationRecord r, in logNotificationCancelled()
80 default void logNotificationVisibility(@Nullable NotificationRecord r, boolean visible) { in logNotificationVisibility()
87 void log(UiEventLogger.UiEventEnum event, NotificationRecord r); in log()
322 public final NotificationRecord r, old;
328 NotificationRecordPair(@Nullable NotificationRecord r, @Nullable NotificationRecord old) { in NotificationRecordPair()
423 static int getLoggingImportance(@NonNull NotificationRecord r) { in getLoggingImportance()
DNotificationRecordLoggerImpl.java33 public void maybeLogNotificationPosted(NotificationRecord r, NotificationRecord old, in maybeLogNotificationPosted()
71 public void log(UiEventLogger.UiEventEnum event, NotificationRecord r) { in log()
DNotificationManagerService.java531 final ArrayList<NotificationRecord> mNotificationList = new ArrayList<>();
533 final ArrayMap<String, NotificationRecord> mNotificationsByKey = new ArrayMap<>();
537 final ArrayList<NotificationRecord> mEnqueuedNotifications = new ArrayList<>();
544 final ArrayMap<String, NotificationRecord> mSummaryByGroupKey = new ArrayMap<>();
904 NotificationRecord summary = mNotificationsByKey.get(summaryKey); in updateAutobundledSummaryFlags()
1126 NotificationRecord r = mNotificationsByKey.get(key);
1159 NotificationRecord r = mNotificationsByKey.get(key);
1199 NotificationRecord r = mNotificationsByKey.get(key);
1250 NotificationRecord r = findNotificationLocked(pkg, tag, id, userId);
1271 NotificationRecord r = mNotificationsByKey.get(nv.key);
[all …]

12