/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 79 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in PowerNotificationWarningsTest 115 mContext.addMockSystemService(NotificationManager.class, mMockNotificationManager); in setUp() 157 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser() 159 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser() 167 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser() 174 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser() 176 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser() 184 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissLowBatteryNotification_CancelAsUser() 192 verify(mMockNotificationManager) in testShowLowBatteryNotification_BatteryChannel() 201 verify(mMockNotificationManager, times(1)) in testShowHighTemperatureWarning_NotifyAsUser() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | NotificationChannelsTest.java | 44 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in NotificationChannelsTest 48 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager); in setup() 64 verify(mMockNotificationManager).createNotificationChannels(captor.capture()); in testChannelSetup() 74 verify(mMockNotificationManager).deleteNotificationChannel(captor.capture()); in testChannelCleanup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuViewLayerTest.java | 145 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in MenuViewLayerTest 152 mSpyContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager); in setUp() 373 verify(mMockNotificationManager).notify( in onReleasedInTarget_hideMenuAndShowNotificationWithExpectedActions() 392 verify(mMockNotificationManager).cancel( in receiveActionUndo_dismissNotificationAndMenuVisible() 409 verify(mMockNotificationManager).cancel( in receiveActionDelete_dismissNotificationAndHideMenu()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachineTest.java | 65 private NotificationManager mMockNotificationManager; field in BatterySaverStateMachineTest 193 mMockNotificationManager = mock(NotificationManager.class); in setUp() 198 doReturn(mMockNotificationManager).when(mMockContext) in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 124 @Mock private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest 181 mTestInjector = new TestInjector(realTestContext, mockContext, mMockNotificationManager); in setUp() 1161 verify(mMockNotificationManager).cancelNotificationWithTag(anyString(), in testFinishSessionAsUserSuccess() 2113 verify(mMockNotificationManager).cancelNotificationWithTag(anyString(), in testAddAccountAsUserSuccess() 3720 private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest.TestInjector 3726 mMockNotificationManager = mockNotificationManager; in TestInjector() 3760 return mMockNotificationManager; in getNotificationManager()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/ |
D | SatelliteControllerTest.java | 198 @Mock private NotificationManager mMockNotificationManager; field in SatelliteControllerTest 555 doReturn(mMockNotificationManager).when(mContext).getSystemService( in setUp() 3345 verify(mMockNotificationManager, never()).notifyAsUser(anyString(), anyInt(), any(), any()); in testHandleEventServiceStateChanged() 3351 verify(mMockNotificationManager, times(1)).notifyAsUser(anyString(), anyInt(), any(), in testHandleEventServiceStateChanged() 3359 verify(mMockNotificationManager, times(1)).notifyAsUser(anyString(), anyInt(), any(), in testHandleEventServiceStateChanged()
|