Home
last modified time | relevance | path

Searched refs:getNotificationRecord (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSnoozeHelperTest.java163 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadValidSnoozedFromCorrectly_timeDeadline()
186 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testReadExpiredSnoozedNotification()
210 NotificationRecord r = getNotificationRecord( in testReadNoneSnoozedNotification()
218 getNotificationRecord("not_my_package", 1, "one", in testReadNoneSnoozedNotification()
249 NotificationRecord r = getNotificationRecord("pkg", 1, longTag, UserHandle.SYSTEM); in testLongTagPersistedNotification()
279 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime()
292 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
303 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
314 NotificationRecord r = getNotificationRecord("pkg", i, i+"", UserHandle.SYSTEM);
376 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM);
[all …]
DBubbleExtractorTest.java109 private NotificationRecord getNotificationRecord(boolean addBubble) { in getNotificationRecord() method in BubbleExtractorTest
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()
291 NotificationRecord r = getNotificationRecord(true /* bubble */); in testAppSeletedChannelYes()
[all …]
DVisibilityExtractorTest.java69 private NotificationRecord getNotificationRecord(int visibility) { in getNotificationRecord() method in VisibilityExtractorTest
100 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalAllDpmAllChannelAll()
118 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalNoneDpmAllChannelAll()
136 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalSomeDpmAllChannelAll()
155 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalAllDpmNoneChannelAll()
174 NotificationRecord r = getNotificationRecord(VISIBILITY_NO_OVERRIDE); in testGlobalAllDpmSomeChannelAll()
192 NotificationRecord r = getNotificationRecord(VISIBILITY_SECRET); in testGlobalAllDpmAllChannelNone()
210 NotificationRecord r = getNotificationRecord(VISIBILITY_PRIVATE); in testGlobalAllDpmAllChannelSome()
229 NotificationRecord r = getNotificationRecord(VISIBILITY_SECRET); in testGlobalAllDpmSomeChannelNone()
DBadgeExtractorTest.java68 private NotificationRecord getNotificationRecord(boolean showBadge, int importanceHigh) { in getNotificationRecord() method in BadgeExtractorTest
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()
313 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testDndOConsidersInterception()
329 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testDndConsidersSuppressedVisualEffects()
DZenModeFilteringTest.java104 private NotificationRecord getNotificationRecord() { in getNotificationRecord() method in ZenModeFilteringTest
105 return getNotificationRecord(mock(NotificationChannel.class)); in getNotificationRecord()
108 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord() method in ZenModeFilteringTest
150 NotificationRecord r = getNotificationRecord(); in testIsMessage()
165 NotificationRecord r = getNotificationRecord(c); in testIsAlarm()
168 r = getNotificationRecord(); in testIsAlarm()
175 NotificationRecord r = getNotificationRecord(); in testIsAlarm_wrongCategory()
186 NotificationRecord r = getNotificationRecord(c); in testIsAlarm_wrongUsage()
192 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_VisEffectsAllowed()
203 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_WrongId()
[all …]
DImportanceExtractorTest.java59 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord() method in ImportanceExtractorTest
85 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelNone()
102 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelPreference()
DNotificationAttentionHelperTest.java289 return getNotificationRecord(mOtherId, false /* insistent */, false /* once */, in getNoisyOtherNotification()
294 return getNotificationRecord(mId, false /* insistent */, false /* once */, in getBeepyNotification()
299 return getNotificationRecord(mOtherId, false /* insistent */, false /* once */, in getBeepyOtherNotification()
304 return getNotificationRecord(mId, false /* insistent */, true /* once */, in getBeepyOnceNotification()
309 return getNotificationRecord(mId, false /* insistent */, true /* once */, in getQuietNotification()
314 return getNotificationRecord(mOtherId, false /* insistent */, false /* once */, in getQuietOtherNotification()
319 return getNotificationRecord(mId, false /* insistent */, true /* once */, in getQuietOnceNotification()
324 return getNotificationRecord(mId, true /* insistent */, false /* once */, in getInsistentBeepyNotification()
329 return getNotificationRecord(mId, true /* insistent */, true /* once */, in getInsistentBeepyOnceNotification()
339 return getNotificationRecord(mId, false /* insistent */, false /* once */, in getBuzzyNotification()
[all …]
DValidateNotificationPeopleTest.java350 NotificationRecord record = getNotificationRecord(); in testValidatePeople_needsLookupWhenNoCache()
385 NotificationRecord record = getNotificationRecord(); in testValidatePeople_noLookupWhenCached_andPopulatesContactInfo()
406 NotificationRecord record = getNotificationRecord(); in validatePeople_reconsiderationWillNotBeDelayed()
459 private NotificationRecord getNotificationRecord() { in getNotificationRecord() method in ValidateNotificationPeopleTest
DNotificationManagerServiceTest.java1663 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
1696 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
1717 assertNull(mService.getNotificationRecord(sbn.getKey())); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
1763 assertNull(mService.getNotificationRecord(sbn.getKey())); in testEnqueuedBlockedNotifications_blockedAppForegroundService()
3642 assertThat(mService.getNotificationRecord(notifs[0].getKey()).isImportanceFixed()).isTrue(); in testPostNotification_appPermissionFixed()
4815 assertNull(mService.getNotificationRecord(parent.getKey())); in testSnoozeRunnable_snoozeAutoGroupChild_summaryNotSnoozed()
4816 assertNull(mService.getNotificationRecord(child.getKey())); in testSnoozeRunnable_snoozeAutoGroupChild_summaryNotSnoozed()
5938 assertThat(mService.getNotificationRecord(notif.getKey())).isNull(); in testTimeout_CancelsNotification()
5954 assertThat(mService.getNotificationRecord(notif.getKey())).isEqualTo(notif); in testTimeout_NoCancelForegroundServiceNotification()
5970 assertThat(mService.getNotificationRecord(notif.getKey())).isEqualTo(notif); in testTimeout_NoCancelUserInitJobNotification()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java335 final NotificationRecord nr = mDirectService.getNotificationRecord(key); in onCommand()
DNotificationManagerService.java2344 NotificationRecord getNotificationRecord(String key) { in getNotificationRecord() method in NotificationManagerService