Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerNotificationWarningsTest.java53 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in PowerNotificationWarningsTest
59 mContext.addMockSystemService(NotificationManager.class, mMockNotificationManager); in setUp()
84 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser()
86 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser()
94 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser()
101 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser()
103 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser()
111 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissLowBatteryNotification_CancelAsUser()
119 verify(mMockNotificationManager) in testShowLowBatteryNotification_BatteryChannel()
128 verify(mMockNotificationManager, times(1)) in testShowHighTemperatureWarning_NotifyAsUser()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DChannelsTest.java49 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in ChannelsTest
53 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager); in setup()
68 verify(mMockNotificationManager).createNotificationChannels(captor.capture()); in testChannelSetup()
80 verify(mMockNotificationManager).deleteNotificationChannel( in testChannelSetup_noLegacyScreenshot()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java116 @Mock private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest
165 mTestInjector = new TestInjector(realTestContext, mockContext, mMockNotificationManager); in setUp()
1061 verify(mMockNotificationManager).cancelNotificationWithTag( in testFinishSessionAsUserSuccess()
1933 verify(mMockNotificationManager).cancelNotificationWithTag( in testAddAccountAsUserSuccess()
3283 private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest.TestInjector
3289 mMockNotificationManager = mockNotificationManager; in TestInjector()
3323 return mMockNotificationManager; in getNotificationManager()