/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TestNotificationListener.java | 39 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 …]
|
D | NotificationTest.java | 158 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 …]
|
D | UserInitiatedJobTest.java | 134 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()
|
D | ConnectivityConstraintTest.java | 580 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()
|
D | JobThrottlingTest.java | 459 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/ |
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(); 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 | 31 import android.app.stubs.shared.TestNotificationListener;
|
/cts/tests/app/src/android/app/cts/ |
D | CloseSystemDialogsTest.java | 38 import android.app.stubs.shared.TestNotificationListener; 115 private TestNotificationListener mNotificationListener; 132 mNotificationListener = TestNotificationListener.getInstance(); in setUp()
|
D | ActivityManagerFgsDelegateTest.java | 35 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()
|
D | ActivityManagerFgsBgStartTest.java | 52 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/ |
D | BaseNotificationManagerTest.java | 44 import android.app.stubs.shared.TestNotificationListener; 108 protected TestNotificationListener mListener;
|
D | NotificationManagerTest.java | 62 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/ |
D | LegacyNotificationManagerTest.java | 40 import android.app.stubs.shared.TestNotificationListener; 78 private TestNotificationListener mListener;
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 43 import android.app.stubs.shared.TestNotificationListener; 84 private TestNotificationListener mNotificationListenerService;
|