Home
last modified time | relevance | path

Searched refs:mockNotificationManager (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppNotificationTest.java95 NotificationManager mockNotificationManager = mock(NotificationManager.class); in updateActiveNotification() local
96 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() local
138 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() local
177 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 …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java91 @Mock NotificationManager mockNotificationManager; field in RingerTest
121 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 …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastInternalReceiverTest.java67 NotificationManager mockNotificationManager = mock(NotificationManager.class); in testOnReceive_actionMarkAsRead() local
70 doReturn(mockNotificationManager).when(mContext) in testOnReceive_actionMarkAsRead()
82 verify(mockNotificationManager).cancel(TEST_NOTIFICATION_ID); in testOnReceive_actionMarkAsRead()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DNotificationListenerPrivacySourceTest.kt72 lateinit var mockNotificationManager: NotificationManager variable in com.android.permissioncontroller.tests.mocking.privacysources.NotificationListenerPrivacySourceTest
140 .thenReturn(mockNotificationManager) in setup()
141 whenever(mockNotificationManager.enabledNotificationListeners) in setup()
174 verify(mockNotificationManager).cancel(NOTIFICATION_LISTENER_CHECK_NOTIFICATION_ID) in safetyCenterEnabledChanged_removesNotifications()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DSafetyLabelChangesJobServiceTest.kt71 @Mock private lateinit var mockNotificationManager: NotificationManager variable in com.android.permissioncontroller.tests.mocking.safetylabel.SafetyLabelChangesJobServiceTest
105 .thenReturn(mockNotificationManager) in setUp()