Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java55 private ForegroundServiceController mFsc; field in ForegroundServiceControllerTest
61 mFsc = new ForegroundServiceController(); in setUp()
64 mContext, mFsc, notificationEntryManager); in setUp()
75 mFsc.onAppOpChanged(9, 1000, "pkg1", false); in testAppOpsCRUD()
76 assertNull(mFsc.getAppOps(0, "pkg1")); in testAppOpsCRUD()
79 mFsc.onAppOpChanged(8, 50, "pkg1", true); in testAppOpsCRUD()
80 mFsc.onAppOpChanged(1, 60, "pkg3", true); in testAppOpsCRUD()
81 mFsc.onAppOpChanged(7, 500000, "pkg2", true); in testAppOpsCRUD()
83 assertEquals(1, mFsc.getAppOps(0, "pkg1").size()); in testAppOpsCRUD()
84 assertTrue(mFsc.getAppOps(0, "pkg1").contains(8)); in testAppOpsCRUD()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationFilterTest.java70 ForegroundServiceController mFsc; field in NotificationFilterTest
92 mDependency.injectTestDependency(ForegroundServiceController.class, mFsc); in setUp()
140 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(false); in testSuppressSystemAlertNotification()
141 when(mFsc.isSystemAlertNotification(any())).thenReturn(true); in testSuppressSystemAlertNotification()
157 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(true); in testDoNotSuppressSystemAlertNotification()
158 when(mFsc.isSystemAlertNotification(any())).thenReturn(true); in testDoNotSuppressSystemAlertNotification()
162 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(true); in testDoNotSuppressSystemAlertNotification()
163 when(mFsc.isSystemAlertNotification(any())).thenReturn(false); in testDoNotSuppressSystemAlertNotification()
167 when(mFsc.isSystemAlertWarningNeeded(anyInt(), anyString())).thenReturn(false); in testDoNotSuppressSystemAlertNotification()
168 when(mFsc.isSystemAlertNotification(any())).thenReturn(false); in testDoNotSuppressSystemAlertNotification()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationFilter.java49 private ForegroundServiceController mFsc; field in NotificationFilter
70 if (mFsc == null) { in getFsc()
71 mFsc = Dependency.get(ForegroundServiceController.class); in getFsc()
73 return mFsc; in getFsc()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationDataTest.java104 ForegroundServiceController mFsc; field in NotificationDataTest
129 mDependency.injectTestDependency(ForegroundServiceController.class, mFsc); in setUp()