/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 73 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); in testSnoozeForTime() 86 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 96 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 97 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM); 116 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 117 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM); 118 NotificationRecord r3 = getNotificationRecord("pkg", 3, "three", UserHandle.ALL); 142 NotificationRecord r = getNotificationRecord("pkg", 1, "one", UserHandle.SYSTEM); 143 NotificationRecord r2 = getNotificationRecord("pkg", 2, "two", UserHandle.SYSTEM); 144 NotificationRecord r3 = getNotificationRecord("pkg2", 3, "three", UserHandle.SYSTEM); [all …]
|
D | ZenModeFilteringTest.java | 68 private NotificationRecord getNotificationRecord() { in getNotificationRecord() method in ZenModeFilteringTest 69 return getNotificationRecord(mock(NotificationChannel.class)); in getNotificationRecord() 72 private NotificationRecord getNotificationRecord(NotificationChannel c) { in getNotificationRecord() method in ZenModeFilteringTest 81 NotificationRecord r = getNotificationRecord(); in testIsMessage() 96 NotificationRecord r = getNotificationRecord(c); in testIsAlarm() 99 r = getNotificationRecord(); in testIsAlarm() 106 NotificationRecord r = getNotificationRecord(); in testIsAlarm_wrongCategory() 117 NotificationRecord r = getNotificationRecord(c); in testIsAlarm_wrongUsage() 123 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_VisEffectsAllowed() 134 NotificationRecord r = getNotificationRecord(); in testSuppressDNDInfo_yes_WrongId() [all …]
|
D | BadgeExtractorTest.java | 64 private NotificationRecord getNotificationRecord(boolean showBadge, int importanceHigh) { in getNotificationRecord() method in BadgeExtractorTest 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()
|
D | BubbleExtractorTest.java | 62 private NotificationRecord getNotificationRecord(boolean allow, int importanceHigh) { in getNotificationRecord() method in BubbleExtractorTest 91 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppYesChannelNo() 105 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppNoChannelYes() 119 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_UNSPECIFIED); in testAppYesChannelYes() 133 NotificationRecord r = getNotificationRecord(false, IMPORTANCE_UNSPECIFIED); in testAppNoChannelNo() 147 NotificationRecord r = getNotificationRecord(true, IMPORTANCE_HIGH); in testAppYesChannelYesUserNo()
|
D | BuzzBeepBlinkTest.java | 168 return getNotificationRecord(mOtherId, false /* insistent */, false /* once */, in getNoisyOtherNotification() 173 return getNotificationRecord(mId, false /* insistent */, false /* once */, in getBeepyNotification() 178 return getNotificationRecord(mId, false /* insistent */, true /* once */, in getBeepyOnceNotification() 183 return getNotificationRecord(mId, false /* insistent */, false /* once */, in getQuietNotification() 188 return getNotificationRecord(mOtherId, false /* insistent */, false /* once */, in getQuietOtherNotification() 193 return getNotificationRecord(mId, false /* insistent */, true /* once */, in getQuietOnceNotification() 198 return getNotificationRecord(mId, true /* insistent */, false /* once */, in getInsistentBeepyNotification() 203 return getNotificationRecord(mId, true /* insistent */, true /* once */, in getInsistentBeepyOnceNotification() 213 return getNotificationRecord(mId, false /* insistent */, false /* once */, in getBuzzyNotification() 218 return getNotificationRecord(mId, false /* insistent */, true /* once */, in getBuzzyOnceNotification() [all …]
|
D | ImportanceExtractorTest.java | 62 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord() method in ImportanceExtractorTest 90 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelNone() 109 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelPreference()
|
D | NotificationManagerServiceTest.java | 758 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 789 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 809 assertNull(mService.getNotificationRecord(sbn.getKey())); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 853 assertNull(mService.getNotificationRecord(sbn.getKey())); in testEnqueuedBlockedNotifications_blockedAppForegroundService() 2843 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testBumpFGImportance_noChannelChangePreOApp() 2858 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testBumpFGImportance_noChannelChangePreOApp() 2871 assertTrue(mService.getNotificationRecord(r.getKey()).getStats().hasDirectReplied()); in testStats_updatedOnDirectReply() 2883 assertTrue(mService.getNotificationRecord(r.getKey()).getStats().hasExpanded()); in testStats_updatedOnUserExpansion() 2888 assertTrue(mService.getNotificationRecord(r.getKey()).getStats().hasExpanded()); in testStats_updatedOnUserExpansion() 2898 assertFalse(mService.getNotificationRecord(r.getKey()).getStats().hasExpanded()); in testStats_notUpdatedOnAutoExpansion() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 1567 NotificationRecord getNotificationRecord(String key) { in getNotificationRecord() method in NotificationManagerService
|