Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
H A DPowerNotificationWarningsTest.java145 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser()
147 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser()
155 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser()
162 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser()
164 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser()
172 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissLowBatteryNotification_CancelAsUser()
180 verify(mMockNotificationManager) in testShowLowBatteryNotification_BatteryChannel()
189 verify(mMockNotificationManager, times(1)) in testShowHighTemperatureWarning_NotifyAsUser()
197 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissHighTemperatureWarning_CancelAsUser()
204 verify(mMockNotificationManager, times(1)) in testShowThermalShutdownWarning_NotifyAsUser()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A DNotificationChannelsTest.java44 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()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
H A DBatterySaverStateMachineTest.java61 private NotificationManager mMockNotificationManager; field in BatterySaverStateMachineTest
181 mMockNotificationManager = mock(NotificationManager.class); in setUp()
186 doReturn(mMockNotificationManager).when(mMockContext) in setUp()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java120 @Mock private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest
175 mTestInjector = new TestInjector(realTestContext, mockContext, mMockNotificationManager); in setUp()
1155 verify(mMockNotificationManager).cancelNotificationWithTag(anyString(), in testFinishSessionAsUserSuccess()
2107 verify(mMockNotificationManager).cancelNotificationWithTag(anyString(), in testAddAccountAsUserSuccess()
3590 private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest.TestInjector
3596 mMockNotificationManager = mockNotificationManager; in TestInjector()
3630 return mMockNotificationManager; in getNotificationManager()