Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/notification/src/com/android/server/notification/
DBuzzBeepBlinkTest.java132 private NotificationRecord getNoisyOtherNotification() { in getNoisyOtherNotification()
137 private NotificationRecord getBeepyNotification() { in getBeepyNotification()
142 private NotificationRecord getBeepyOnceNotification() { in getBeepyOnceNotification()
147 private NotificationRecord getQuietNotification() { in getQuietNotification()
152 private NotificationRecord getQuietOtherNotification() { in getQuietOtherNotification()
157 private NotificationRecord getQuietOnceNotification() { in getQuietOnceNotification()
162 private NotificationRecord getInsistentBeepyNotification() { in getInsistentBeepyNotification()
167 private NotificationRecord getInsistentBeepyLeanbackNotification() { in getInsistentBeepyLeanbackNotification()
172 private NotificationRecord getBuzzyNotification() { in getBuzzyNotification()
177 private NotificationRecord getBuzzyOnceNotification() { in getBuzzyOnceNotification()
[all …]
DNotificationRecordTest.java102 private static final NotificationRecord.Light CUSTOM_LIGHT =
103 new NotificationRecord.Light(1, 2, 3);
192 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_preUpgradeUsesNotification()
205 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_custom_preUpgradeUsesNotification()
219 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_userLocked_preUpgrade()
231 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_noSound_preUpgrade()
244 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testSound_default_upgradeUsesChannel()
257 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_default_preUpgradeUsesNotification()
269 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_custom_preUpgradeUsesNotification()
282 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 …]
DSnoozeHelperTest.java71 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime()
84 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
94 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
95 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM);
114 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
115 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM);
116 NotificationRecord r3 = getNotificationRecord("pkg", 3, "three", UserHandle.ALL);
140 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
141 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM);
142 NotificationRecord r3 = getNotificationRecord("pkg2", 3, "three", UserHandle.SYSTEM);
[all …]
DNotificationComparatorTest.java67 private NotificationRecord mRecordMinCall;
68 private NotificationRecord mRecordHighCall;
69 private NotificationRecord mRecordDefaultMedia;
70 private NotificationRecord mRecordEmail;
71 private NotificationRecord mRecordInlineReply;
72 private NotificationRecord mRecordSms;
73 private NotificationRecord mRecordStarredContact;
74 private NotificationRecord mRecordContact;
75 private NotificationRecord mRecordUrgent;
76 private NotificationRecord mRecordCheater;
[all …]
DBadgeExtractorTest.java61 private NotificationRecord getNotificationRecord(boolean showBadge, int importanceHigh) { in getNotificationRecord()
75 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
90 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppYesChannelNo()
104 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppNoChannelYes()
118 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testAppYesChannelYes()
132 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppNoChannelNo()
146 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppYesChannelYesUserNo()
DNotificationManagerServiceTest.java166 private NotificationRecord generateNotificationRecord(NotificationChannel channel, int id, in generateNotificationRecord()
176 return new NotificationRecord(mContext, sbn, channel); in generateNotificationRecord()
178 private NotificationRecord generateNotificationRecord(NotificationChannel channel) { in generateNotificationRecord()
182 private NotificationRecord generateNotificationRecord(NotificationChannel channel, in generateNotificationRecord()
195 return new NotificationRecord(mContext, sbn, channel); in generateNotificationRecord()
270 NotificationRecord r = generateNotificationRecord(channel); in testBlockedNotifications_suspended()
282 NotificationRecord r = generateNotificationRecord(channel); in testBlockedNotifications_blockedChannel()
372 final NotificationRecord parent = generateNotificationRecord( in testCancelGroupSummaryMultipleEnqueuedChildrenDoesNotCrash()
374 final NotificationRecord parentAsChild = generateNotificationRecord( in testCancelGroupSummaryMultipleEnqueuedChildrenDoesNotCrash()
376 final NotificationRecord child = generateNotificationRecord( in testCancelGroupSummaryMultipleEnqueuedChildrenDoesNotCrash()
[all …]
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()
DRankingHelperTest.java104 private NotificationRecord mRecordGroupGSortA;
105 private NotificationRecord mRecordGroupGSortB;
106 private NotificationRecord mRecordNoGroup;
107 private NotificationRecord mRecordNoGroup2;
108 private NotificationRecord mRecordNoGroupSortA;
142 mRecordGroupGSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
152 mRecordGroupGSortB = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
160 mRecordNoGroup = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
168 mRecordNoGroup2 = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
177 mRecordNoGroupSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DSnoozeHelper.java73 private ArrayMap<Integer, ArrayMap<String, ArrayMap<String, NotificationRecord>>>
98 protected Collection<NotificationRecord> getSnoozed(int userId, String pkg) { in getSnoozed()
106 protected @NonNull List<NotificationRecord> getSnoozed() { in getSnoozed()
107 List<NotificationRecord> snoozedForUser = new ArrayList<>(); in getSnoozed()
112 final ArrayMap<String, ArrayMap<String, NotificationRecord>> snoozedPkgs = in getSnoozed()
117 final ArrayMap<String, NotificationRecord> records = snoozedPkgs.valueAt(j); in getSnoozed()
131 protected void snooze(NotificationRecord record, long duration) { in snooze()
139 protected void snooze(NotificationRecord record) { in snooze()
144 ArrayMap<String, ArrayMap<String, NotificationRecord>> records = in snooze()
149 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); in snooze()
[all …]
DNotificationComparator.java35 implements Comparator<NotificationRecord> {
49 public int compare(NotificationRecord left, NotificationRecord right) { in compare()
120 private boolean isImportantColorized(NotificationRecord record) { in isImportantColorized()
127 private boolean isImportantOngoing(NotificationRecord record) { in isImportantOngoing()
139 protected boolean isImportantPeople(NotificationRecord record) { in isImportantPeople()
149 protected boolean isImportantMessaging(NotificationRecord record) { in isImportantMessaging()
153 private boolean isOngoing(NotificationRecord record) { in isOngoing()
158 private boolean isMediaNotification(NotificationRecord record) { in isMediaNotification()
162 private boolean isCall(NotificationRecord record) { in isCall()
DZenModeFiltering.java97 private static Bundle extras(NotificationRecord record) { in extras()
102 protected void recordCall(NotificationRecord record) { in recordCall()
106 public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) { in shouldIntercept()
172 private static boolean shouldInterceptAudience(int source, NotificationRecord record) { in shouldInterceptAudience()
180 private static boolean isSystem(NotificationRecord record) { in isSystem()
184 private static boolean isAlarm(NotificationRecord record) { in isAlarm()
190 private static boolean isEvent(NotificationRecord record) { in isEvent()
194 private static boolean isReminder(NotificationRecord record) { in isReminder()
198 public boolean isCall(NotificationRecord record) { in isCall()
215 private boolean isDefaultMessagingApp(NotificationRecord record) { in isDefaultMessagingApp()
[all …]
DGlobalSortKeyComparator.java25 public class GlobalSortKeyComparator implements Comparator<NotificationRecord> {
29 public int compare(NotificationRecord left, NotificationRecord right) { in compare()
DNotificationManagerService.java311 final ArrayList<NotificationRecord> mNotificationList =
312 new ArrayList<NotificationRecord>();
314 final ArrayMap<String, NotificationRecord> mNotificationsByKey =
315 new ArrayMap<String, NotificationRecord>();
317 final ArrayList<NotificationRecord> mEnqueuedNotifications = new ArrayList<>();
321 final ArrayMap<String, NotificationRecord> mSummaryByGroupKey = new ArrayMap<>();
563 NotificationRecord r = mNotificationsByKey.get(key);
587 NotificationRecord r = mNotificationsByKey.get(key);
659 NotificationRecord r = mNotificationsByKey.get(nv.key);
669 NotificationRecord r = mNotificationsByKey.get(nv.key);
[all …]
DNotificationUsageStats.java130 public synchronized void registerPostedByApp(NotificationRecord notification) { in registerPostedByApp()
149 public synchronized void registerUpdatedByApp(NotificationRecord notification, in registerUpdatedByApp()
150 NotificationRecord old) { in registerUpdatedByApp()
167 public synchronized void registerRemovedByApp(NotificationRecord notification) { in registerRemovedByApp()
182 public synchronized void registerDismissedByUser(NotificationRecord notification) { in registerDismissedByUser()
194 public synchronized void registerClickedByUser(NotificationRecord notification) { in registerClickedByUser()
203 public synchronized void registerPeopleAffinity(NotificationRecord notification, boolean valid, in registerPeopleAffinity()
222 public synchronized void registerBlocked(NotificationRecord notification) { in registerBlocked()
230 public synchronized void registerSuspendedByAdmin(NotificationRecord notification) { in registerSuspendedByAdmin()
253 private AggregatedStats[] getAggregatedStatsLocked(NotificationRecord record) { in getAggregatedStatsLocked()
[all …]
DNotificationIntrusivenessExtractor.java43 public RankingReconsideration process(NotificationRecord record) { in process()
68 public void applyChangesLocked(NotificationRecord record) { in process()
DZenLog.java67 public static void traceIntercepted(NotificationRecord record, String reason) { in traceIntercepted()
72 public static void traceNotIntercepted(NotificationRecord record, String reason) { in traceNotIntercepted()
126 public static void traceDisableEffects(NotificationRecord record, String reason) { in traceDisableEffects()
DNotificationSignalExtractor.java39 public RankingReconsideration process(NotificationRecord notification); in process()
DValidateNotificationPeople.java121 public RankingReconsideration process(NotificationRecord record) { in process()
210 final NotificationRecord record) { in validatePeople()
435 private NotificationRecord mRecord;
487 public void applyChangesLocked(NotificationRecord operand) { in applyChangesLocked()
497 public void setRecord(NotificationRecord record) { in setRecord()
DImportanceExtractor.java34 public RankingReconsideration process(NotificationRecord record) { in process()
DVisibilityExtractor.java35 public RankingReconsideration process(NotificationRecord record) { in process()
DPriorityExtractor.java35 public RankingReconsideration process(NotificationRecord record) { in process()
DRankingReconsideration.java96 public abstract void applyChangesLocked(NotificationRecord record); in applyChangesLocked()
DBadgeExtractor.java34 public RankingReconsideration process(NotificationRecord record) { in process()
DRankingHelper.java91 private final ArrayMap<String, NotificationRecord> mProxyByGroupTmp = new ArrayMap<>();
141 public void extractSignals(NotificationRecord r) { in extractSignals()
405 public void sort(ArrayList<NotificationRecord> notificationList) { in sort()
418 final NotificationRecord record = notificationList.get(i); in sort()
421 NotificationRecord existingProxy = mProxyByGroupTmp.get(groupKey); in sort()
430 final NotificationRecord record = notificationList.get(i); in sort()
431 NotificationRecord groupProxy = mProxyByGroupTmp.get(record.getGroupKey()); in sort()
466 public int indexOf(ArrayList<NotificationRecord> notificationList, NotificationRecord target) { in indexOf()

12