Searched refs:mockNotificationManager (Results 1 – 5 of 5) sorted by relevance
95 NotificationManager mockNotificationManager = mock(NotificationManager.class); in updateActiveNotification() local96 mOppNotification.mNotificationMgr = mockNotificationManager; in updateActiveNotification()120 verify(mockNotificationManager).notify(eq(NOTIFICATION_ID_PROGRESS), argThat( in updateActiveNotification()137 NotificationManager mockNotificationManager = mock(NotificationManager.class); in updateCompletedNotification_withOutBoundShare_showsNoti() local138 mOppNotification.mNotificationMgr = mockNotificationManager; in updateCompletedNotification_withOutBoundShare_showsNoti()159 verify(mockNotificationManager).notify(eq(NOTIFICATION_ID_OUTBOUND_COMPLETE), argThat( in updateCompletedNotification_withOutBoundShare_showsNoti()176 NotificationManager mockNotificationManager = mock(NotificationManager.class); in updateCompletedNotification_withInBoundShare_showsNoti() local177 mOppNotification.mNotificationMgr = mockNotificationManager; in updateCompletedNotification_withInBoundShare_showsNoti()198 verify(mockNotificationManager).notify(eq(NOTIFICATION_ID_INBOUND_COMPLETE), argThat( in updateCompletedNotification_withInBoundShare_showsNoti()216 NotificationManager mockNotificationManager = mock(NotificationManager.class); in updateIncomingFileConfirmationNotification() local[all …]
91 @Mock NotificationManager mockNotificationManager; field in RingerTest121 mockNotificationManager =mContext.getSystemService(NotificationManager.class); in setUp()123 when(mockNotificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(true); in setUp()143 mockInCallController, mockNotificationManager, mockAccessibilityManagerAdapter); in createRingerUnderTest()234 when(mockNotificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(false); in testCallWaitingButNoRingForSpecificContacts()429 when(mockNotificationManager.getZenMode()).thenReturn(ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testRingAndVibrateForAllowedCallInDndMode()493 mockNotificationManager); in testShouldRingForContact_CallSuppressed()495 when(mockNotificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(false); in testShouldRingForContact_CallSuppressed()503 verify(mockNotificationManager, times(1)) in testShouldRingForContact_CallSuppressed()517 when(mockNotificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(true); in testShouldRingForContact_CallShouldRing()[all …]
67 NotificationManager mockNotificationManager = mock(NotificationManager.class); in testOnReceive_actionMarkAsRead() local70 doReturn(mockNotificationManager).when(mContext) in testOnReceive_actionMarkAsRead()82 verify(mockNotificationManager).cancel(TEST_NOTIFICATION_ID); in testOnReceive_actionMarkAsRead()
72 lateinit var mockNotificationManager: NotificationManager variable in com.android.permissioncontroller.tests.mocking.privacysources.NotificationListenerPrivacySourceTest140 .thenReturn(mockNotificationManager) in setup()141 whenever(mockNotificationManager.enabledNotificationListeners) in setup()174 verify(mockNotificationManager).cancel(NOTIFICATION_LISTENER_CHECK_NOTIFICATION_ID) in safetyCenterEnabledChanged_removesNotifications()
71 @Mock private lateinit var mockNotificationManager: NotificationManager variable in com.android.permissioncontroller.tests.mocking.safetylabel.SafetyLabelChangesJobServiceTest105 .thenReturn(mockNotificationManager) in setUp()