Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
H A DPowerNotificationWarningsTest.java89 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()
141 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissHighTemperatureWarning_CancelAsUser()
148 verify(mMockNotificationManager, times(1)) in testShowThermalShutdownWarning_NotifyAsUser()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A DChannelsTest.java45 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); field in ChannelsTest
49 mContext.addMockSystemService(Context.NOTIFICATION_SERVICE, mMockNotificationManager); in setup()
64 verify(mMockNotificationManager).createNotificationChannels(captor.capture()); in testChannelSetup()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
H A DUserNotificationHelperUnitTest.java75 @Mock private NotificationManager mMockNotificationManager; field in UserNotificationHelperUnitTest
92 .thenReturn(mMockNotificationManager); in setUp()
219 mMockNotificationManager);
220 verify(mMockNotificationManager, times(expectedNotificationsById.size()))
H A DCarWatchdogServiceUnitTest.java192 @Mock private NotificationManager mMockNotificationManager; field in CarWatchdogServiceUnitTest
274 .thenReturn(mMockNotificationManager); in setUp()
450 verifyNoMoreInteractions(mMockNotificationManager); in testDisableAppBroadcast()
469 verify(mMockNotificationManager).cancelAsUser(CarWatchdogService.TAG, in testDisableAppBroadcastWithDisabledPackage()
473 verifyNoMoreInteractions(mMockNotificationManager); in testDisableAppBroadcastWithDisabledPackage()
500 verify(mMockNotificationManager).cancelAsUser(CarWatchdogService.TAG, in testLaunchAppSettingsBroadcast()
504 verifyNoMoreInteractions(mMockNotificationManager); in testLaunchAppSettingsBroadcast()
522 verifyNoMoreInteractions(mMockNotificationManager); in testDismissUserNotificationBroadcast()
538 verifyNoMoreInteractions(mMockNotificationManager); in testUserNotificationActionBroadcastsWithNullPackageName()
555 verifyNoMoreInteractions(mMockNotificationManager); in testUserNotificationActionBroadcastsWithInvalidUserId()
[all …]
/aosp12/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
H A DCellBroadcastListActivityTest.java81 private NotificationManager mMockNotificationManager; field in CellBroadcastListActivityTest
94 injectSystemService(NotificationManager.class, mMockNotificationManager); in setUp()
/aosp12/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()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java114 @Mock private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest
167 mTestInjector = new TestInjector(realTestContext, mockContext, mMockNotificationManager); in setUp()
1082 verify(mMockNotificationManager).cancelNotificationWithTag(anyString(), in testFinishSessionAsUserSuccess()
1976 verify(mMockNotificationManager).cancelNotificationWithTag(anyString(), in testAddAccountAsUserSuccess()
3441 private INotificationManager mMockNotificationManager; field in AccountManagerServiceTest.TestInjector
3447 mMockNotificationManager = mockNotificationManager; in TestInjector()
3481 return mMockNotificationManager; in getNotificationManager()