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.java40 public class TestNotificationListener extends NotificationListenerService { class
49 private static TestNotificationListener sNotificationListenerInstance = null;
53 return String.format("%s/%s", TestNotificationListener.class.getPackage().getName(), in getId()
54 TestNotificationListener.class.getName()); in getId()
58 return new ComponentName(TestNotificationListener.class.getPackage().getName(), in getComponentName()
59 TestNotificationListener.class.getName()); in getComponentName()
82 public static TestNotificationListener getInstance() throws Exception { in getInstance()
149 private final TestNotificationListener mNotificationListener;
154 TestNotificationListener.toggleListenerAccess(context, true); in NotificationHelper()
155 mNotificationListener = TestNotificationListener.getInstance(); in NotificationHelper()
[all …]
DNotificationTest.java170 TestNotificationListener.NotificationHelper notificationHelper = in testNotificationRemovedOnForceStop()
171 new TestNotificationListener.NotificationHelper( in testNotificationRemovedOnForceStop()
207 TestNotificationListener.NotificationHelper notificationHelper = in testNotificationRemovedOnPackageRestriction()
208 new TestNotificationListener.NotificationHelper( in testNotificationRemovedOnPackageRestriction()
263 TestNotificationListener.NotificationHelper notificationHelper = in testNotificationRemovedOnTaskManagerStop()
264 new TestNotificationListener.NotificationHelper( in testNotificationRemovedOnTaskManagerStop()
308 TestNotificationListener.NotificationHelper notificationHelper = in testNotification_userInitiated_anrWhenNotProvided()
309 new TestNotificationListener.NotificationHelper(mContext, TEST_APP_PACKAGE)) { in testNotification_userInitiated_anrWhenNotProvided()
345 TestNotificationListener.NotificationHelper notificationHelper = in testNotification_userInitiated_noAnrWhenProvided()
346 new TestNotificationListener.NotificationHelper(mContext, TEST_APP_PACKAGE)) { in testNotification_userInitiated_noAnrWhenProvided()
[all …]
DUserInitiatedJobTest.java141 try (TestNotificationListener.NotificationHelper notificationHelper = in testJobUidState()
142 new TestNotificationListener.NotificationHelper( in testJobUidState()
210 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedBalToTop()
211 new TestNotificationListener.NotificationHelper( in testRestrictedBalToTop()
260 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedToggling()
261 new TestNotificationListener.NotificationHelper( in testRestrictedToggling()
336 try (TestNotificationListener.NotificationHelper notificationHelper = in testRestrictedUidState()
337 new TestNotificationListener.NotificationHelper( in testRestrictedUidState()
376 try (TestNotificationListener.NotificationHelper notificationHelper = in testSchedulingBal()
377 new TestNotificationListener.NotificationHelper( in testSchedulingBal()
DConnectivityConstraintTest.java580 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobExecutes_DozeOn()
581 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobExecutes_DozeOn()
966 try (TestNotificationListener.NotificationHelper notificationHelper = in testBgUiJobBypassesDataSaver()
967 new TestNotificationListener.NotificationHelper( in testBgUiJobBypassesDataSaver()
1014 try (TestNotificationListener.NotificationHelper notificationHelper = in testBgNonUiJobDoesNotBypassDataSaverWhenUiJobRunning()
1015 new TestNotificationListener.NotificationHelper( in testBgNonUiJobDoesNotBypassDataSaverWhenUiJobRunning()
DJobThrottlingTest.java492 try (TestNotificationListener.NotificationHelper notificationHelper = in testBackgroundUIJsThermal()
493 new TestNotificationListener.NotificationHelper( in testBackgroundUIJsThermal()
1016 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesBatterySaverOn()
1017 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesBatterySaverOn()
1043 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesBatterySaver_toggling()
1044 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesBatterySaver_toggling()
1074 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesDeviceIdle()
1075 new TestNotificationListener.NotificationHelper( in testUserInitiatedJobBypassesDeviceIdle()
1100 try (TestNotificationListener.NotificationHelper notificationHelper = in testUserInitiatedJobBypassesDeviceIdle_toggling()
1101 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() + " " + mContext.getUserId(); 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.java33 import android.app.stubs.shared.TestNotificationListener;
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java37 import android.app.stubs.shared.TestNotificationListener;
123 private TestNotificationListener mNotificationListener;
140 mNotificationListener = TestNotificationListener.getInstance(); in setUp()
DActivityManagerFgsDelegateTest.java34 import android.app.stubs.shared.TestNotificationListener;
DActivityManagerFgsBgStartTest.java55 import android.app.stubs.shared.TestNotificationListener;
2437 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.java65 import android.app.stubs.shared.TestNotificationListener;
2394 NotificationListenerService listener = new TestNotificationListener(); in testNotificationListenerMethods()
2525 mListener = TestNotificationListener.getInstance(); in testNotificationUriPermissionsRevokedFromRemovedListeners()
3358 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;
87 private TestNotificationListener mListener;
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java57 import android.app.stubs.shared.TestNotificationListener;
119 private TestNotificationListener mNotificationListenerService;