/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | TestNotificationListener.java | 25 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()
|
D | LegacyNotificationManager20Test.java | 66 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/ |
D | TestNotificationListener.java | 27 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()
|
D | LegacyNotificationManagerTest.java | 73 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/ |
D | TestNotificationListener.java | 27 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/ |
D | TestNotificationListener.java | 26 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()
|
D | NotificationAssistantServiceTest.java | 77 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/ |
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/src/android/app/cts/android/app/cts/tools/ |
D | NotificationHelper.java | 21 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/ |
D | NotificationManagerTest.java | 88 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 …]
|
D | CloseSystemDialogsTest.java | 36 import android.app.stubs.TestNotificationListener; 109 private TestNotificationListener mNotificationListener; 124 mNotificationListener = TestNotificationListener.getInstance(); in setUp()
|