| /cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
| D | TestNotificationListener.java | 40 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 …]
|
| D | NotificationTest.java | 170 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 …]
|
| D | UserInitiatedJobTest.java | 141 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()
|
| D | ConnectivityConstraintTest.java | 580 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()
|
| D | JobThrottlingTest.java | 492 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/ |
| D | TestNotificationListener.kt | 21 class TestNotificationListener : NotificationListenerService() { class 36 var instance: TestNotificationListener? = null 39 val javaClass = TestNotificationListener::class.java in <lambda>()
|
| D | NotificationUriAccessService.kt | 30 val testListener = TestNotificationListener.componentName in ensureNotificationListenerServiceConnected() 34 val listener = TestNotificationListener.instance in ensureNotificationListenerServiceConnected()
|
| /cts/tests/app/shared/src/android/app/stubs/shared/ |
| D | NotificationHelper.java | 83 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()
|
| D | TestNotificationListener.java | 30 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/ |
| D | TestNotificationListener.java | 21 public class TestNotificationListener extends NotificationListenerService { class
|
| /cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/ |
| D | NotificationManager28Test.java | 33 import android.app.stubs.shared.TestNotificationListener;
|
| /cts/tests/app/src/android/app/cts/ |
| D | CloseSystemDialogsTest.java | 37 import android.app.stubs.shared.TestNotificationListener; 123 private TestNotificationListener mNotificationListener; 140 mNotificationListener = TestNotificationListener.getInstance(); in setUp()
|
| D | ActivityManagerFgsDelegateTest.java | 34 import android.app.stubs.shared.TestNotificationListener;
|
| D | ActivityManagerFgsBgStartTest.java | 55 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/ |
| D | BaseNotificationManagerTest.java | 44 import android.app.stubs.shared.TestNotificationListener; 108 protected TestNotificationListener mListener;
|
| D | NotificationManagerTest.java | 65 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/ |
| D | LegacyNotificationManagerTest.java | 40 import android.app.stubs.shared.TestNotificationListener; 87 private TestNotificationListener mListener;
|
| /cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
| D | NotificationAssistantServiceTest.java | 57 import android.app.stubs.shared.TestNotificationListener; 119 private TestNotificationListener mNotificationListenerService;
|