Home
last modified time | relevance | path

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

/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DTestNotificationListener.java25 public class TestNotificationListener extends NotificationListenerService { class
35 private static TestNotificationListener sNotificationListenerInstance = null;
39 return String.format("%s/%s", TestNotificationListener.class.getPackage().getName(), in getId()
40 TestNotificationListener.class.getName()); in getId()
44 return new ComponentName(TestNotificationListener.class.getPackage().getName(), in getComponentName()
45 TestNotificationListener.class.getName()); in getComponentName()
66 public static TestNotificationListener getInstance() { in getInstance()
DLegacyNotificationManager20Test.java66 private TestNotificationListener mListener;
71 toggleListenerAccess(TestNotificationListener.getId(), in setUp()
82 toggleListenerAccess(TestNotificationListener.getId(), in tearDown()
90 toggleListenerAccess(TestNotificationListener.getId(), in testNotificationListener_cancelNotifications()
94 mListener = TestNotificationListener.getInstance(); in testNotificationListener_cancelNotifications()
174 final ComponentName listenerComponent = TestNotificationListener.getComponentName(); in toggleListenerAccess()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DTestNotificationListener.java27 public class TestNotificationListener extends NotificationListenerService { class
37 private static TestNotificationListener sNotificationListenerInstance = null;
41 return String.format("%s/%s", TestNotificationListener.class.getPackage().getName(), in getId()
42 TestNotificationListener.class.getName()); in getId()
46 return new ComponentName(TestNotificationListener.class.getPackage().getName(), in getComponentName()
47 TestNotificationListener.class.getName()); in getComponentName()
68 public static TestNotificationListener getInstance() { in getInstance()
DLegacyNotificationManagerTest.java73 private TestNotificationListener mListener;
78 toggleListenerAccess(TestNotificationListener.getId(), in setUp()
90 toggleListenerAccess(TestNotificationListener.getId(), in tearDown()
181 toggleListenerAccess(TestNotificationListener.getId(), in testSuspendPackage()
185 mListener = TestNotificationListener.getInstance(); in testSuspendPackage()
205 toggleListenerAccess(TestNotificationListener.getId(), in testSuspendPackage()
213 toggleListenerAccess(TestNotificationListener.getId(), in testSuspendedPackageSendNotification()
217 mListener = TestNotificationListener.getInstance(); in testSuspendedPackageSendNotification()
235 toggleListenerAccess(TestNotificationListener.getId(), in testSuspendedPackageSendNotification()
247 TestNotificationListener.getId(), InstrumentationRegistry.getInstrumentation(), true); in testResetListenerHints_singleListener()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DTestNotificationListener.java27 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()
82 public static TestNotificationListener getInstance() { in getInstance()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DTestNotificationListener.java26 public class TestNotificationListener extends NotificationListenerService { class
36 private static TestNotificationListener
48 return String.format("%s/%s", TestNotificationListener.class.getPackage().getName(), in getId()
49 TestNotificationListener.class.getName()); in getId()
53 return new ComponentName(TestNotificationListener.class.getPackage().getName(), in getComponentName()
54 TestNotificationListener.class.getName()); in getComponentName()
75 public static TestNotificationListener getInstance() { in getInstance()
DNotificationAssistantServiceTest.java77 private TestNotificationListener mNotificationListenerService;
117 mNotificationListenerService = TestNotificationListener.getInstance(); in testOnNotificationEnqueued()
120 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued()
134 sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued()
153 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_userSentimentKey()
184 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_importanceKey()
216 TestNotificationListener.PKG); in testAdjustNotifications_rankingScoreKey()
221 TestNotificationListener.PKG); in testAdjustNotifications_rankingScoreKey()
276 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_smartActionKey()
319 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_smartReplyKey()
[all …]
/cts/tests/app/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/src/android/app/cts/android/app/cts/tools/
DNotificationHelper.java21 import android.app.stubs.TestNotificationListener;
33 private Supplier<TestNotificationListener> mNotificationListener;
35 public NotificationHelper(Context context, Supplier<TestNotificationListener> listener) { in NotificationHelper()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java88 import android.app.stubs.TestNotificationListener;
219 private TestNotificationListener mListener;
534 mListener = TestNotificationListener.getInstance(); in setUpNotifListener()
724 + TestNotificationListener.getId(); in toggleListenerAccess()
729 final ComponentName listenerComponent = TestNotificationListener.getComponentName(); in toggleListenerAccess()
1552 mListener = TestNotificationListener.getInstance(); in testSuspendPackage()
1593 mListener = TestNotificationListener.getInstance(); in testSuspendedPackageSendsNotification()
1645 mListener = TestNotificationListener.getInstance(); in testCanBubble_ranking()
1689 mListener = TestNotificationListener.getInstance(); in testShowBadging_ranking()
1731 mListener = TestNotificationListener.getInstance(); in testGetSuppressedVisualEffectsOff_ranking()
[all …]
DCloseSystemDialogsTest.java36 import android.app.stubs.TestNotificationListener;
109 private TestNotificationListener mNotificationListener;
124 mNotificationListener = TestNotificationListener.getInstance(); in setUp()