Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java116 private static final NotificationRecord.Light CUSTOM_LIGHT =
117 new NotificationRecord.Light(1, 2, 3);
191 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_preUpgradeUsesNotification()
204 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_custom_preUpgradeUsesNotification()
218 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_userLocked_preUpgrade()
230 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_noSound_preUpgrade()
243 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testSound_default_upgradeUsesChannel()
256 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_default_preUpgradeUsesNotification()
268 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_custom_preUpgradeUsesNotification()
281 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testVibration_custom_userLocked_preUpgrade()
[all …]
DGlobalSortKeyComparatorTest.java52 NotificationRecord left = new NotificationRecord(getContext(), in testComparator()
59 NotificationRecord right = new NotificationRecord(getContext(), in testComparator()
66 NotificationRecord last = new NotificationRecord(getContext(), in testComparator()
73 final List<NotificationRecord> expected = new ArrayList<>(); in testComparator()
78 List<NotificationRecord> actual = new ArrayList<>(); in testComparator()
91 NotificationRecord left = new NotificationRecord(getContext(), in testNoCrash_leftNull()
97 NotificationRecord right = new NotificationRecord(getContext(), in testNoCrash_leftNull()
104 final List<NotificationRecord> expected = new ArrayList<>(); in testNoCrash_leftNull()
108 List<NotificationRecord> actual = new ArrayList<>(); in testNoCrash_leftNull()
121 NotificationRecord left = new NotificationRecord(getContext(), in testNoCrash_rightNull()
[all …]
DBuzzBeepBlinkTest.java158 private NotificationRecord getNoisyOtherNotification() { in getNoisyOtherNotification()
163 private NotificationRecord getBeepyNotification() { in getBeepyNotification()
168 private NotificationRecord getBeepyOnceNotification() { in getBeepyOnceNotification()
173 private NotificationRecord getQuietNotification() { in getQuietNotification()
178 private NotificationRecord getQuietOtherNotification() { in getQuietOtherNotification()
183 private NotificationRecord getQuietOnceNotification() { in getQuietOnceNotification()
188 private NotificationRecord getInsistentBeepyNotification() { in getInsistentBeepyNotification()
193 private NotificationRecord getInsistentBeepyLeanbackNotification() { in getInsistentBeepyLeanbackNotification()
198 private NotificationRecord getBuzzyNotification() { in getBuzzyNotification()
203 private NotificationRecord getBuzzyOnceNotification() { in getBuzzyOnceNotification()
[all …]
DNotificationComparatorTest.java69 private NotificationRecord mRecordMinCall;
70 private NotificationRecord mRecordHighCall;
71 private NotificationRecord mRecordDefaultMedia;
72 private NotificationRecord mRecordEmail;
73 private NotificationRecord mRecordInlineReply;
74 private NotificationRecord mRecordSms;
75 private NotificationRecord mRecordStarredContact;
76 private NotificationRecord mRecordContact;
77 private NotificationRecord mRecordUrgent;
78 private NotificationRecord mRecordCheater;
[all …]
DSnoozeHelperTest.java72 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime()
85 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
95 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
96 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM);
115 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
116 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM);
117 NotificationRecord r3 = getNotificationRecord("pkg", 3, "three", UserHandle.ALL);
141 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
142 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM);
143 NotificationRecord r3 = getNotificationRecord("pkg2", 3, "three", UserHandle.SYSTEM);
[all …]
DZenModeFilteringTest.java67 private NotificationRecord getNotificationRecord() { in getNotificationRecord()
71 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord()
74 return new NotificationRecord(mContext, sbn, c); in getNotificationRecord()
79 NotificationRecord r = getNotificationRecord(); in testIsMessage()
94 NotificationRecord r = getNotificationRecord(c); in testIsAlarm()
104 NotificationRecord r = getNotificationRecord(); in testIsAlarm_wrongCategory()
115 NotificationRecord r = getNotificationRecord(c); in testIsAlarm_wrongUsage()
121 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_VisEffectsAllowed()
133 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_WrongId()
144 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_WrongPackage()
[all …]
DBadgeExtractorTest.java64 private NotificationRecord getNotificationRecord(boolean showBadge, int importanceHigh) { in getNotificationRecord()
78 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
93 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppYesChannelNo()
107 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppNoChannelYes()
121 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testAppYesChannelYes()
135 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppNoChannelNo()
149 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppYesChannelYesUserNo()
163 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testDndOverridesYes()
179 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testDndOConsidersInterception()
195 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testDndConsidersSuppressedVisualEffects()
DNotificationIntrusivenessExtractorTest.java51 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testNonIntrusive()
69 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testIntrusive_fillScreen()
88 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testOldNotificationsNotIntrusive()
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()
DImportanceExtractorTest.java63 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord()
73 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
91 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelNone()
110 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelPreference()
DNotificationAdjustmentExtractorTest.java47 NotificationRecord r = generateRecord(); in testExtractsAdjustment()
75 NotificationRecord r = generateRecord(); in testExtractsAdjustments()
107 private NotificationRecord generateRecord() { in generateRecord()
115 return new NotificationRecord(getContext(), sbn, channel); in generateRecord()
DNotificationChannelExtractorTest.java64 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testExtractsUpdatedChannel()
DRankingHelperTest.java128 private NotificationRecord mRecordGroupGSortA;
129 private NotificationRecord mRecordGroupGSortB;
130 private NotificationRecord mRecordNoGroup;
131 private NotificationRecord mRecordNoGroup2;
132 private NotificationRecord mRecordNoGroupSortA;
192 mRecordGroupGSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
202 mRecordGroupGSortB = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
210 mRecordNoGroup = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
218 mRecordNoGroup2 = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
227 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.java110 private static Bundle extras(NotificationRecord record) { in extras()
115 protected void recordCall(NotificationRecord record) { in recordCall()
119 public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) { in shouldIntercept()
210 private static boolean shouldInterceptAudience(int source, NotificationRecord record) { in shouldInterceptAudience()
218 protected static boolean isAlarm(NotificationRecord record) { in isAlarm()
223 private static boolean isEvent(NotificationRecord record) { in isEvent()
227 private static boolean isReminder(NotificationRecord record) { in isReminder()
231 public boolean isCall(NotificationRecord record) { in isCall()
236 public boolean isMedia(NotificationRecord record) { in isMedia()
242 public boolean isSystem(NotificationRecord record) { in isSystem()
[all …]
DGlobalSortKeyComparator.java25 public class GlobalSortKeyComparator implements Comparator<NotificationRecord> {
29 public int compare(NotificationRecord left, NotificationRecord right) { in compare()
DNotificationUsageStats.java143 public synchronized void registerPostedByApp(NotificationRecord notification) { in registerPostedByApp()
162 public synchronized void registerUpdatedByApp(NotificationRecord notification, in registerUpdatedByApp()
163 NotificationRecord old) { in registerUpdatedByApp()
180 public synchronized void registerRemovedByApp(NotificationRecord notification) { in registerRemovedByApp()
195 public synchronized void registerDismissedByUser(NotificationRecord notification) { in registerDismissedByUser()
207 public synchronized void registerClickedByUser(NotificationRecord notification) { in registerClickedByUser()
216 public synchronized void registerPeopleAffinity(NotificationRecord notification, boolean valid, in registerPeopleAffinity()
235 public synchronized void registerBlocked(NotificationRecord notification) { in registerBlocked()
243 public synchronized void registerSuspendedByAdmin(NotificationRecord notification) { in registerSuspendedByAdmin()
266 private AggregatedStats[] getAggregatedStatsLocked(NotificationRecord record) { in getAggregatedStatsLocked()
[all …]
DNotificationIntrusivenessExtractor.java44 public RankingReconsideration process(NotificationRecord record) { in process()
74 public void applyChangesLocked(NotificationRecord record) { in process()
DZenLog.java69 public static void traceIntercepted(NotificationRecord record, String reason) { in traceIntercepted()
74 public static void traceNotIntercepted(NotificationRecord record, String reason) { in traceNotIntercepted()
134 public static void traceDisableEffects(NotificationRecord record, String reason) { in traceDisableEffects()
DNotificationSignalExtractor.java41 public RankingReconsideration process(NotificationRecord notification); in process()
DNotificationAdjustmentExtractor.java33 public RankingReconsideration process(NotificationRecord record) { in process()
DValidateNotificationPeople.java121 public RankingReconsideration process(NotificationRecord record) { in process()
215 final NotificationRecord record) { in validatePeople()
475 private NotificationRecord mRecord;
531 public void applyChangesLocked(NotificationRecord operand) { in applyChangesLocked()
541 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()

12