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.java115 try (TestNotificationListener.NotificationHelper notificationHelper = in testJobUidState()
116 new TestNotificationListener.NotificationHelper( in testJobUidState()
177 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedBalToTop()
178 new TestNotificationListener.NotificationHelper( in testRestrictedBalToTop()
222 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedToggling()
223 new TestNotificationListener.NotificationHelper( in testRestrictedToggling()
293 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedUidState()
294 new TestNotificationListener.NotificationHelper( in testRestrictedUidState()
323 try (TestNotificationListener.NotificationHelper notificationHelper = in testSchedulingBal()
324 new TestNotificationListener.NotificationHelper( in testSchedulingBal()
DConnectivityConstraintTest.java550 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobExecutes_DozeOn()
551 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobExecutes_DozeOn()
883 try (TestNotificationListener.NotificationHelper notificationHelper = in testBgUiJobBypassesDataSaver()
884 new TestNotificationListener.NotificationHelper( in testBgUiJobBypassesDataSaver()
924 try (TestNotificationListener.NotificationHelper notificationHelper = in testBgNonUiJobDoesNotBypassDataSaverWhenUiJobRunning()
925 new TestNotificationListener.NotificationHelper( in testBgNonUiJobDoesNotBypassDataSaverWhenUiJobRunning()
DJobThrottlingTest.java436 try (TestNotificationListener.NotificationHelper notificationHelper = in testBackgroundUIJsThermal()
437 new TestNotificationListener.NotificationHelper( in testBackgroundUIJsThermal()
976 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesBatterySaverOn()
977 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesBatterySaverOn()
999 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesBatterySaver_toggling()
1000 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesBatterySaver_toggling()
1026 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesDeviceIdle()
1027 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesDeviceIdle()
1048 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesDeviceIdle_toggling()
1049 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.java71 private TestNotificationListener mNotificationListener;
173 public TestNotificationListener enableListener(String pkg) throws IOException { in enableListener()
175 + pkg + "/" + TestNotificationListener.class.getName(); in enableListener()
177 mNotificationListener = TestNotificationListener.getInstance(); in enableListener()
186 new ComponentName(pkg, TestNotificationListener.class.getName()); in disableListener()
DTestNotificationListener.java30 public class TestNotificationListener extends NotificationListenerService { class
56 private static TestNotificationListener sNotificationListenerInstance = null;
82 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/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java31 import android.app.stubs.shared.TestNotificationListener;
66 private TestNotificationListener mListener;
/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;
112 private TestNotificationListener mNotificationListener;
129 mNotificationListener = TestNotificationListener.getInstance(); in setUp()
DActivityManagerFgsBgStartTest.java52 import android.app.stubs.shared.TestNotificationListener;
2408 new ComponentName(STUB_PACKAGE_NAME, TestNotificationListener.class.getName())); in testStartMediaPlaybackFromBg()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java37 import android.app.stubs.shared.TestNotificationListener;
84 protected TestNotificationListener mListener;
DNotificationManagerTest.java53 import android.app.stubs.shared.TestNotificationListener;
1594 NotificationListenerService listener = new TestNotificationListener(); in testNotificationListenerMethods()
1716 mListener = TestNotificationListener.getInstance(); in testNotificationUriPermissionsRevokedFromRemovedListeners()
2473 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;
83 private TestNotificationListener mNotificationListenerService;