Home
last modified time | relevance | path

Searched refs:TestNotificationListener (Results 1 – 18 of 18) sorted by relevance

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestNotificationListener.java39 public class TestNotificationListener extends NotificationListenerService { class
48 private static TestNotificationListener sNotificationListenerInstance = null;
52 return String.format("%s/%s", TestNotificationListener.class.getPackage().getName(), in getId()
53 TestNotificationListener.class.getName()); in getId()
57 return new ComponentName(TestNotificationListener.class.getPackage().getName(), in getComponentName()
58 TestNotificationListener.class.getName()); in getComponentName()
81 public static TestNotificationListener getInstance() throws Exception { in getInstance()
148 private final TestNotificationListener mNotificationListener;
153 TestNotificationListener.toggleListenerAccess(context, true); in NotificationHelper()
154 mNotificationListener = TestNotificationListener.getInstance(); in NotificationHelper()
[all …]
DNotificationTest.java158 TestNotificationListener.NotificationHelper notificationHelper = in testNotificationRemovedOnForceStop()
159 new TestNotificationListener.NotificationHelper( in testNotificationRemovedOnForceStop()
188 TestNotificationListener.NotificationHelper notificationHelper = in testNotificationRemovedOnPackageRestriction()
189 new TestNotificationListener.NotificationHelper( in testNotificationRemovedOnPackageRestriction()
237 TestNotificationListener.NotificationHelper notificationHelper = in testNotificationRemovedOnTaskManagerStop()
238 new TestNotificationListener.NotificationHelper( in testNotificationRemovedOnTaskManagerStop()
275 TestNotificationListener.NotificationHelper notificationHelper = in testNotification_userInitiated_anrWhenNotProvided()
276 new TestNotificationListener.NotificationHelper(mContext, TEST_APP_PACKAGE)) { in testNotification_userInitiated_anrWhenNotProvided()
305 TestNotificationListener.NotificationHelper notificationHelper = in testNotification_userInitiated_noAnrWhenProvided()
306 new TestNotificationListener.NotificationHelper(mContext, TEST_APP_PACKAGE)) { in testNotification_userInitiated_noAnrWhenProvided()
[all …]
DUserInitiatedJobTest.java134 try (TestNotificationListener.NotificationHelper notificationHelper = in testJobUidState()
135 new TestNotificationListener.NotificationHelper( in testJobUidState()
196 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedBalToTop()
197 new TestNotificationListener.NotificationHelper( in testRestrictedBalToTop()
242 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedToggling()
243 new TestNotificationListener.NotificationHelper( in testRestrictedToggling()
314 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedUidState()
315 new TestNotificationListener.NotificationHelper( in testRestrictedUidState()
344 try (TestNotificationListener.NotificationHelper notificationHelper = in testSchedulingBal()
345 new TestNotificationListener.NotificationHelper( in testSchedulingBal()
DConnectivityConstraintTest.java580 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobExecutes_DozeOn()
581 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobExecutes_DozeOn()
945 try (TestNotificationListener.NotificationHelper notificationHelper = in testBgUiJobBypassesDataSaver()
946 new TestNotificationListener.NotificationHelper( in testBgUiJobBypassesDataSaver()
986 try (TestNotificationListener.NotificationHelper notificationHelper = in testBgNonUiJobDoesNotBypassDataSaverWhenUiJobRunning()
987 new TestNotificationListener.NotificationHelper( in testBgNonUiJobDoesNotBypassDataSaverWhenUiJobRunning()
DJobThrottlingTest.java459 try (TestNotificationListener.NotificationHelper notificationHelper = in testBackgroundUIJsThermal()
460 new TestNotificationListener.NotificationHelper( in testBackgroundUIJsThermal()
978 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesBatterySaverOn()
979 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesBatterySaverOn()
1001 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesBatterySaver_toggling()
1002 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesBatterySaver_toggling()
1028 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesDeviceIdle()
1029 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesDeviceIdle()
1050 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesDeviceIdle_toggling()
1051 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesDeviceIdle_toggling()
/cts/tests/tests/notification/NotificationListener/src/com/android/test/notificationlistener/
DTestNotificationListener.kt21 class TestNotificationListener : NotificationListenerService() { class
36 var instance: TestNotificationListener? = null
39 val javaClass = TestNotificationListener::class.java in <lambda>()
DNotificationUriAccessService.kt30 val testListener = TestNotificationListener.componentName in ensureNotificationListenerServiceConnected()
34 val listener = TestNotificationListener.instance in ensureNotificationListenerServiceConnected()
/cts/tests/app/shared/src/android/app/stubs/shared/
DNotificationHelper.java83 private TestNotificationListener mNotificationListener;
190 public TestNotificationListener enableListener(String pkg) throws IOException { in enableListener()
192 + pkg + "/" + TestNotificationListener.class.getName(); in enableListener()
194 mNotificationListener = TestNotificationListener.getInstance(); in enableListener()
203 new ComponentName(pkg, TestNotificationListener.class.getName()); in disableListener()
DTestNotificationListener.java30 public class TestNotificationListener extends NotificationListenerService { class
57 private static TestNotificationListener sNotificationListenerInstance = null;
83 public static TestNotificationListener getInstance() { in getInstance()
/cts/tests/tests/notification/NotificationApp/src/com/android/test/notificationapp/
DTestNotificationListener.java21 public class TestNotificationListener extends NotificationListenerService { class
/cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/
DNotificationManager28Test.java31 import android.app.stubs.shared.TestNotificationListener;
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java38 import android.app.stubs.shared.TestNotificationListener;
115 private TestNotificationListener mNotificationListener;
132 mNotificationListener = TestNotificationListener.getInstance(); in setUp()
DActivityManagerFgsDelegateTest.java35 import android.app.stubs.shared.TestNotificationListener;
805 return String.format("%s/%s", STUB_PACKAGE_NAME, TestNotificationListener.class.getName()); in getNotificationListenerId()
809 return new ComponentName(STUB_PACKAGE_NAME, TestNotificationListener.class.getName()); in getNotificationListenerComponentName()
DActivityManagerFgsBgStartTest.java52 import android.app.stubs.shared.TestNotificationListener;
2467 new ComponentName(STUB_PACKAGE_NAME, TestNotificationListener.class.getName())); in testStartMediaPlaybackFromBg()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java44 import android.app.stubs.shared.TestNotificationListener;
108 protected TestNotificationListener mListener;
DNotificationManagerTest.java62 import android.app.stubs.shared.TestNotificationListener;
2026 NotificationListenerService listener = new TestNotificationListener(); in testNotificationListenerMethods()
2151 mListener = TestNotificationListener.getInstance(); in testNotificationUriPermissionsRevokedFromRemovedListeners()
2944 new ComponentName(STUB_PACKAGE_NAME, TestNotificationListener.class.getName()); in testGrantRevokeNotificationManagerApis_works()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java40 import android.app.stubs.shared.TestNotificationListener;
78 private TestNotificationListener mListener;
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java43 import android.app.stubs.shared.TestNotificationListener;
84 private TestNotificationListener mNotificationListenerService;