Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationRecordTest.java308 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testSound_default_upgradeUsesChannel()
360 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testVibration_custom_upgradeUsesChannel()
370 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testVibration_insistent_createsInsistentVibrationEffect()
413 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testImportance_upgrade()
457 NotificationRecord.Light expected = new NotificationRecord.Light( in testLights_upgrade_defaultLights()
462 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testLights_upgrade_defaultLights()
473 NotificationRecord.Light expected = new NotificationRecord.Light( in testLights_upgrade()
478 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testLights_upgrade()
497 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testLogMaker()
527 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testLogMakerImportanceApp()
[all …]
H A DBuzzBeepBlinkTest.java202 private NotificationRecord getBeepyNotification() { in getBeepyNotification()
217 private NotificationRecord getQuietNotification() { in getQuietNotification()
247 private NotificationRecord getBuzzyNotification() { in getBuzzyNotification()
293 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getCallRecord()
390 NotificationRecord r = new NotificationRecord(context, sbn, mChannel); in getNotificationRecord()
501 NotificationRecord r = getBeepyNotification(); in testBeep()
514 NotificationRecord r = getBeepyNotification(); in testLockedPrivateA11yRedaction()
536 NotificationRecord r = getBeepyNotification(); in testLockedOverridePrivateA11yRedaction()
1214 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testEmptyUriSoundTreatedAsNoSound()
1269 NotificationRecord r = new NotificationRecord(getContext(), sbn, in testCrossUserSoundMuted()
[all …]
H A 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()
106 List<NotificationRecord> actual = new ArrayList<>(); in testNoCrash_leftNull()
119 NotificationRecord left = new NotificationRecord(getContext(), in testNoCrash_rightNull()
126 NotificationRecord right = new NotificationRecord(getContext(), in testNoCrash_rightNull()
[all …]
H A DRankingHelperTest.java215 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(7); in testSortShouldRespectCritical()
242 NotificationRecord notificationRecord = new NotificationRecord(getContext(), sbn, channel); in generateRecord()
249 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(4); in testFindAfterRankingWithASplitGroup()
263 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(2); in testSortShouldNotThrowWithPlainNotifications()
271 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(2); in testSortShouldNotThrowOneSorted()
279 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(1); in testSortShouldNotThrowOneNotification()
286 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(1); in testSortShouldNotThrowOneSortKey()
293 ArrayList<NotificationRecord> notificationList = new ArrayList<NotificationRecord>(); in testSortShouldNotThrowOnEmptyList()
305 NotificationRecord lowSummary = new NotificationRecord(mContext, new StatusBarNotification( in testGroupNotifications_highestIsProxy()
311 NotificationRecord low = new NotificationRecord(mContext, new StatusBarNotification( in testGroupNotifications_highestIsProxy()
[all …]
H A DNotificationComparatorTest.java78 private NotificationRecord mRecordMinCall;
79 private NotificationRecord mRecordHighCall;
80 private NotificationRecord mRecordHighCallStyle;
81 private NotificationRecord mRecordEmail;
82 private NotificationRecord mRecordInlineReply;
83 private NotificationRecord mRecordSms;
85 private NotificationRecord mRecordContact;
86 private NotificationRecord mRecordUrgent;
87 private NotificationRecord mRecordCheater;
89 private NotificationRecord mNoMediaSessionMedia;
[all …]
H A DSnoozeHelperTest.java214 NotificationRecord r = getNotificationRecord( in testReadNoneSnoozedNotification()
472 NotificationRecord r = getNotificationRecord("pkg", 1, "tag",
474 NotificationRecord r2 = getNotificationRecord("pkg", 2, "tag",
494 NotificationRecord r = getNotificationRecord("pkg", 1, "tag",
496 NotificationRecord r2 = getNotificationRecord("pkg", 2, "tag",
511 NotificationRecord r = getNotificationRecord("pkg", 1, "tag",
532 NotificationRecord r = getNotificationRecord("pkg", 1, "tag",
543 NotificationRecord r = getNotificationRecord(
545 NotificationRecord r2 = getNotificationRecord(
559 NotificationRecord r = getNotificationRecord(
[all …]
H A DZenModeFilteringTest.java77 private NotificationRecord getNotificationRecord() { in getNotificationRecord()
85 return new NotificationRecord(mContext, sbn, c); in getNotificationRecord()
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()
142 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_VisEffectsAllowed()
153 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_WrongId()
163 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_WrongPackage()
173 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_no()
[all …]
H A DBadgeExtractorTest.java82 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
113 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecordWithBubble()
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()
209 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppYesChannelYesUserNo()
283 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testHideMediaNotifNotMediaStyleOverridesNo()
297 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testDndOverridesYes()
[all …]
H A 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 …]
H A DNotificationRecordLoggerFake.java38 CallRecord(NotificationRecord r, NotificationRecord old, int position, in CallRecord()
48 CallRecord(NotificationRecord r, int position, int buzzBeepBlink, InstanceId groupId) { in CallRecord()
57 CallRecord(NotificationRecord r, UiEventLogger.UiEventEnum event) { in CallRecord()
81 public void maybeLogNotificationPosted(NotificationRecord r, NotificationRecord old, in maybeLogNotificationPosted()
87 public void logNotificationAdjusted(NotificationRecord r, int position, int buzzBeepBlink, in logNotificationAdjusted()
93 public void log(UiEventLogger.UiEventEnum event, NotificationRecord r) { in log()
H A DNotificationManagerServiceTest.java799 NotificationRecord r = (NotificationRecord) invocationOnMock.getArguments()[0]; in getSignalExtractorSideEffects()
804 NotificationRecord r = (NotificationRecord) invocationOnMock.getArguments()[0]; in getSignalExtractorSideEffects()
943 NotificationRecord r = new NotificationRecord(mContext, sbn, channel); in testLimitTimeOutBroadcast()
3435 NotificationRecord r = in testOnlyAutogroupIfGroupChanged_groupChanged_autogroups()
4498 NotificationRecord r1 = in testVisualDifference_foreground()
4506 NotificationRecord r2 = in testVisualDifference_foreground()
4518 NotificationRecord r1 = in testVisualDifference_diffTitle()
4811 NotificationRecord pkgA = new NotificationRecord(mContext, in testHideAndUnhideNotificationsOnDistractingPackageBroadcast()
4814 NotificationRecord pkgB = new NotificationRecord(mContext, in testHideAndUnhideNotificationsOnDistractingPackageBroadcast()
4840 NotificationRecord pkgA = new NotificationRecord(mContext, in testHideAndUnhideNotificationsOnDistractingPackageBroadcast_multiPkg()
[all …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A 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()
H A DSnoozeHelper.java181 ArrayList<NotificationRecord> getNotifications(String pkg, in getNotifications()
185 ArrayMap<String, NotificationRecord> allRecords = 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()
261 private void snooze(NotificationRecord record) { in snooze()
339 ArrayMap<String, NotificationRecord> records = in cancel()
357 ArrayMap<String, NotificationRecord> records = in update()
376 NotificationRecord record; in repost()
382 ArrayMap<String, NotificationRecord> records = in repost()
[all …]
H A 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()
H A 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()
251 protected static boolean isAlarm(NotificationRecord record) { in isAlarm()
256 private static boolean isEvent(NotificationRecord record) { in isEvent()
264 public boolean isCall(NotificationRecord record) { in isCall()
269 public boolean isMedia(NotificationRecord record) { in isMedia()
275 public boolean isSystem(NotificationRecord record) { in isSystem()
292 protected boolean isMessage(NotificationRecord record) { in isMessage()
[all …]
H A DNotificationRecordLogger.java56 void maybeLogNotificationPosted(@Nullable NotificationRecord r, in maybeLogNotificationPosted()
57 @Nullable NotificationRecord old, in maybeLogNotificationPosted()
71 void logNotificationAdjusted(@Nullable NotificationRecord r, in logNotificationAdjusted()
82 default void logNotificationCancelled(@Nullable NotificationRecord r, in logNotificationCancelled()
94 default void logNotificationVisibility(@Nullable NotificationRecord r, boolean visible) { in logNotificationVisibility()
101 void log(UiEventLogger.UiEventEnum event, NotificationRecord r); in log()
338 public final NotificationRecord r, old;
344 NotificationRecordPair(@Nullable NotificationRecord r, @Nullable NotificationRecord old) { in NotificationRecordPair()
440 static int getLoggingImportance(@NonNull NotificationRecord r) { in getLoggingImportance()
H A DGlobalSortKeyComparator.java25 public class GlobalSortKeyComparator implements Comparator<NotificationRecord> {
29 public int compare(NotificationRecord left, NotificationRecord right) { in compare()
H A DNotificationRecordLoggerImpl.java35 public void maybeLogNotificationPosted(NotificationRecord r, NotificationRecord old, in maybeLogNotificationPosted()
47 public void logNotificationAdjusted(@Nullable NotificationRecord r, in logNotificationAdjusted()
89 public void log(UiEventLogger.UiEventEnum event, NotificationRecord r) { in log()
H A DNotificationManagerService.java6159 final NotificationRecord r = new NotificationRecord(getContext(), n, channel);
6812 private final NotificationRecord r;
7083 protected boolean isVisuallyInterruptive(NotificationRecord old, NotificationRecord r) {
7233 private void handleGroupedNotificationLocked(NotificationRecord r, NotificationRecord old,
8981 NotificationRecord r;
8993 NotificationRecord r;
9005 private NotificationRecord findNotificationByListLocked(ArrayList<NotificationRecord> list,
9036 private NotificationRecord findNotificationByListLocked(ArrayList<NotificationRecord> list,
9800 final NotificationRecord r,
10397 public void notifyPostedLocked(NotificationRecord r, NotificationRecord old) {
[all …]

12