Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java292 assertTrue(mFsc.isSystemAlertWarningNeeded(USERID_ONE, PKG1)); // should be required! in testStdLayoutBasic()
294 assertFalse(mFsc.isSystemAlertWarningNeeded(USERID_ONE, PKG1)); // app1 has got it covered in testStdLayoutBasic()
295 assertFalse(mFsc.isSystemAlertWarningNeeded(USERID_TWO, "otherpkg")); in testStdLayoutBasic()
299 assertFalse(mFsc.isSystemAlertWarningNeeded(USERID_ONE, PKG1)); in testStdLayoutBasic()
300 assertFalse(mFsc.isSystemAlertWarningNeeded(USERID_TWO, "anyPkg")); in testStdLayoutBasic()
306 assertTrue(mFsc.isSystemAlertWarningNeeded(USERID_ONE, PKG1)); // should be required! in testStdLayoutBasic()
307 assertFalse(mFsc.isSystemAlertWarningNeeded(USERID_TWO, "anything")); in testStdLayoutBasic()
311 assertFalse(mFsc.isSystemAlertWarningNeeded(USERID_ONE, PKG1)); in testStdLayoutBasic()
312 assertFalse(mFsc.isSystemAlertWarningNeeded(USERID_TWO, "whatever")); in testStdLayoutBasic()
315 assertTrue(mFsc.isSystemAlertWarningNeeded(USERID_ONE, PKG1)); // should be required! in testStdLayoutBasic()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationFilterTest.java140 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(false); in testSuppressSystemAlertNotification()
157 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(true); in testDoNotSuppressSystemAlertNotification()
162 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(true); in testDoNotSuppressSystemAlertNotification()
167 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(false); in testDoNotSuppressSystemAlertNotification()
175 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(true); in testDoNotSuppressMalformedSystemAlertNotification()
193 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(false); in testShouldFilterHiddenNotifications()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceController.java57 public boolean isSystemAlertWarningNeeded(int userId, String pkg) { in isSystemAlertWarningNeeded() method in ForegroundServiceController
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationFilter.java131 if (!getFsc().isSystemAlertWarningNeeded(sbn.getUserId(), apps[0])) { in shouldFilterOut()