Home
last modified time | relevance | path

Searched refs:mMockNotificationManager (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/applications/
DNotificationsPreferenceControllerTest.java69 private INotificationManager mMockNotificationManager; field in NotificationsPreferenceControllerTest
88 mController.mNotificationManager = mMockNotificationManager; in setUp()
105 when(mMockNotificationManager.areNotificationsEnabledForPackage(PKG_NAME, UID)) in onCreate_notificationEnabled_isChecked()
115 when(mMockNotificationManager.areNotificationsEnabledForPackage(PKG_NAME, UID)) in onCreate_notificationDisabled_isNotChecked()
125 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(true); in onCreate_importanceLocked_isNotEnabled()
134 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_noNotificationPermission_isNotEnabled()
148 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_systemFixedFlag_isNotEnabled()
165 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_policyFixedFlag_isNotEnabled()
182 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_hasPermissions_isEnabled()
201 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled()
[all …]
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/notifications/
DNotificationsAppListPreferenceControllerTest.java82 private INotificationManager mMockNotificationManager; field in NotificationsAppListPreferenceControllerTest
107 mPreferenceController.mNotificationManager = mMockNotificationManager; in setUp()
127 when(mMockNotificationManager.areNotificationsEnabledForPackage(PKG_NAME, UID)) in onCreate_createsPreference()
142 when(mMockNotificationManager.areNotificationsEnabledForPackage(PKG_NAME, UID)) in onCreate_notificationEnabled_isChecked()
154 when(mMockNotificationManager.areNotificationsEnabledForPackage(PKG_NAME, UID)) in onCreate_notificationDisabled_isNotChecked()
166 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(true); in onCreate_importanceLocked_isNotEnabled()
176 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_noNotificationPermission_isNotEnabled()
191 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_systemFixedFlag_isNotEnabled()
209 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_policyFixedFlag_isNotEnabled()
238 when(mMockNotificationManager.isImportanceLocked(PKG_NAME, UID)).thenReturn(false); in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled()
[all …]
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/
DNfcTagAllowNotificationTest.java63 private NotificationManager mMockNotificationManager; field in NfcTagAllowNotificationTest
71 mMockNotificationManager = Mockito.mock(NotificationManager.class); in setUp()
83 return mMockNotificationManager; in setUp()
117 verify(mMockNotificationManager).createNotificationChannel(any()); in testStartNotification()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DNotificationHelperTest.java99 @Mock private NotificationManager mMockNotificationManager; field in NotificationHelperTest
109 .thenReturn(mMockNotificationManager); in setup()
128 verify(mMockNotificationManager).cancelAsUser(NotificationHelper.TAG, /* id= */ 150, in testCancelNotificationAsUser()
138 verify(mMockNotificationManager).notifyAsUser(eq(NotificationHelper.TAG), in testShowUserDisclaimerNotification()
157 verify(mMockNotificationManager).cancelAsUser(NotificationHelper.TAG, in testCancelUserDisclaimerNotification()
314 verify(mMockNotificationManager, times(expectedNotificationsById.size())) in captureAndVerifyUserNotifications()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastListActivityTest.java110 private NotificationManager mMockNotificationManager; field in CellBroadcastListActivityTest
129 injectSystemService(NotificationManager.class, mMockNotificationManager); in setUp()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DSatelliteAccessControllerTest.java236 private NotificationManager mMockNotificationManager; field in SatelliteAccessControllerTest
447 .thenReturn(mMockNotificationManager); in setUp()