Searched refs:assertNotification (Results 1 – 3 of 3) sorted by relevance
/aosp_15_r20/cts/tests/app/src/android/app/cts/ |
H A D | ServiceTest.java | 516 private void assertNotification(int id, String expectedTitle, boolean shouldHaveFgsFlag) { in assertNotification() method in ServiceTest 981 assertNotification(1, LocalForegroundService.getNotificationTitle(1), true); in testForegroundService_canUpdateNotification() 986 assertNotification(1, newTitle, true); in testForegroundService_canUpdateNotification() 1008 assertNotification(1, LocalForegroundService.getNotificationTitle(1), true); in testForegroundService_dontRemoveNotificationOnStop() 1014 assertNotification(1, LocalForegroundService.getNotificationTitle(1), false); in testForegroundService_dontRemoveNotificationOnStop() 1019 assertNotification(1, newTitle, false); in testForegroundService_dontRemoveNotificationOnStop() 1026 assertNotification(2, LocalForegroundService.getNotificationTitle(2), true); in testForegroundService_dontRemoveNotificationOnStop() 1061 assertNotification(1, LocalForegroundService.getNotificationTitle(1), true); in testForegroundServiceRemoveNotificationOnStop() 1080 assertNotification(2, LocalForegroundService.getNotificationTitle(2), true); in testForegroundServiceRemoveNotificationOnStop() 1160 assertNotification(1, LocalForegroundService.getNotificationTitle(1), true); in testForegroundService_detachNotificationOnStop() [all …]
|
/aosp_15_r20/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 307 private void assertNotification(NotificationType type, boolean ongoing, boolean autoCancel) { in assertNotification() method in NetworkNotificationManagerTest 322 assertNotification(NO_INTERNET, false /* ongoing */, true /* autoCancel */); in testDuplicatedNotificationsNoInternetThenSignIn() 325 assertNotification(SIGN_IN, false /* ongoing */, true /* autoCancel */); in testDuplicatedNotificationsNoInternetThenSignIn() 338 assertNotification(NO_INTERNET, false /* ongoing */, true /* autoCancel */); in testOngoingSignInNotification() 341 assertNotification(SIGN_IN, true /* ongoing */, true /* autoCancel */); in testOngoingSignInNotification() 354 assertNotification(NO_INTERNET, false /* ongoing */, false /* autoCancel */); in testNoAutoCancelNotification() 355 assertNotification(SIGN_IN, false /* ongoing */, false /* autoCancel */); in testNoAutoCancelNotification()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/ |
H A D | TaskSwitcherNotificationCoordinatorTest.kt | 83 assertNotification(notification) in showNotification() 175 private fun assertNotification(notification: ArgumentCaptor<Notification>) { in assertNotification() method
|