Searched refs:mMockNotificationManager (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 54 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in PowerNotificationWarningsTest 60 mContext.addMockSystemService(NotificationManager.class, mMockNotificationManager); in setUp() 89 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser() 91 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser() 99 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser() 106 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser() 108 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser() 116 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissLowBatteryNotification_CancelAsUser() 124 verify(mMockNotificationManager) in testShowLowBatteryNotification_BatteryChannel() 133 verify(mMockNotificationManager, times(1)) in testShowHighTemperatureWarning_NotifyAsUser() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | ChannelsTest.java | 46 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in ChannelsTest 50 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager); in setup() 65 verify(mMockNotificationManager).createNotificationChannels(captor.capture()); in testChannelSetup() 77 verify(mMockNotificationManager).deleteNotificationChannel( in testChannelSetup_noLegacyScreenshot()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachineTest.java | 61 private NotificationManager mMockNotificationManager; field in BatterySaverStateMachineTest 181 mMockNotificationManager = mock(NotificationManager.class); in setUp() 186 doReturn(mMockNotificationManager).when(mMockContext) in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 114 @Mock private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest 167 mTestInjector = new TestInjector(realTestContext, mockContext, mMockNotificationManager); in setUp() 1068 verify(mMockNotificationManager).cancelNotificationWithTag( in testFinishSessionAsUserSuccess() 1946 verify(mMockNotificationManager).cancelNotificationWithTag( in testAddAccountAsUserSuccess() 3306 private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest.TestInjector 3312 mMockNotificationManager = mockNotificationManager; in TestInjector() 3346 return mMockNotificationManager; in getNotificationManager()
|