Home
last modified time | relevance | path

Searched refs:mNotificationHelper (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java110 protected NotificationHelper mNotificationHelper; field in BaseNotificationManagerTest
117 mNotificationHelper = new NotificationHelper(mContext); in baseSetUp()
130 mPreviousEnabledAssistant = mNotificationHelper.getEnabledAssistant(); in baseSetUp()
133 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in baseSetUp()
134 mNotificationHelper.disableAssistant(STUB_PACKAGE_NAME); in baseSetUp()
164 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in baseTearDown()
165 mNotificationHelper.disableAssistant(STUB_PACKAGE_NAME); in baseTearDown()
166 mNotificationHelper.enableOtherPkgAssistantIfNeeded(mPreviousEnabledAssistant); in baseTearDown()
200 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in setUpNotifListener()
212 mNotificationHelper.runCommand(command, InstrumentationRegistry.getInstrumentation()); in toggleExternalListenerAccess()
[all …]
DNotificationManagerTest.java899 assertThat(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)).isNull(); in testNotify_nonexistentChannel_ignored()
934 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testSuspendPackage()
1194 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testSuspendedPackageSendsNotification()
1244 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testShowBadging_ranking()
1289 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testKeyChannelGroupOverrideImportanceExplanation_ranking()
1303 StatusBarNotification sbn = mNotificationHelper.findPostedNotification(null, notificationId, in testKeyChannelGroupOverrideImportanceExplanation_ranking()
1344 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in testNotify_blockedChannel()
1358 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in testCancel()
1378 assertTrue(mNotificationHelper.isNotificationGone(id, SEARCH_TYPE.APP)); in testCancelAll()
1398 assertNotNull(mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.APP)); in testNotifyWithTimeout()
[all …]
DSensitiveNotificationRedactionTest.kt89 mAssistant = mNotificationHelper.enableAssistant(mContext.packageName) in setUp()
160 val sbn = mNotificationHelper.findPostedNotification(tag, NOTIFICATION_ID, searchType) in waitForNotification()
366 mNotificationHelper.disableListener(STUB_PACKAGE_NAME) in testListenerWithCdmAssociationGetsUnredacted()
367 mNotificationHelper.enableListener(STUB_PACKAGE_NAME) in testListenerWithCdmAssociationGetsUnredacted()
387 mNotificationHelper.disableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsPermissionsGetsUnredacted()
388 mNotificationHelper.enableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsPermissionsGetsUnredacted()
416 mNotificationHelper.disableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
417 mNotificationHelper.enableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
446 mNotificationHelper.disableAssistant(STUB_PACKAGE_NAME) in testE2ERedaction_shouldRedact()
447 mNotificationHelper.enableOtherPkgAssistantIfNeeded(mPreviousEnabledAssistant) in testE2ERedaction_shouldRedact()
[all …]
DNotificationManagerBubbleTest.java110 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in setUp()
191 mNotificationHelper.findPostedNotification(null, id, SEARCH_TYPE.POSTED); in verifyNotificationBubbleState()
209 mNotificationHelper.runCommand(command, InstrumentationRegistry.getInstrumentation()); in setBubblesAppPref()
219 mNotificationHelper.runCommand(command, InstrumentationRegistry.getInstrumentation()); in setBubblesChannelAllowed()
344 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testCanBubble_ranking()
349 mNotificationHelper.findPostedNotification(null, 1, SEARCH_TYPE.POSTED); in testCanBubble_ranking()
950 StatusBarNotification sbn = mNotificationHelper.findPostedNotification(null, notifId, in testNotificationManagerBubble_setSuppressBubble()
995 StatusBarNotification sbn = mNotificationHelper.findPostedNotification(null, in testNotificationManagerBubble_setSuppressBubble_notSuppressable()
1039 StatusBarNotification sbn = mNotificationHelper.findPostedNotification(null, in testNotificationManagerBubble_setSuppressBubble_activityNoLocusId()
1085 StatusBarNotification sbn = mNotificationHelper.findPostedNotification(null, in testNotificationManagerBubble_setSuppressBubble_notificationNoLocusId()
[all …]
DNotificationManagerZenTest.java191 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in setUp()
271 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in tearDown()
342 mNotificationHelper.findPostedNotification(ALICE, 1, SEARCH_TYPE.POSTED); in sendNotifications()
343 mNotificationHelper.findPostedNotification(BOB, 2, SEARCH_TYPE.POSTED); in sendNotifications()
344 mNotificationHelper.findPostedNotification(CHARLIE, 3, SEARCH_TYPE.POSTED); in sendNotifications()
385 mNotificationHelper.findPostedNotification(ALICE, 4, SEARCH_TYPE.POSTED); in sendEventAlarmReminderNotifications()
386 mNotificationHelper.findPostedNotification(BOB, 5, SEARCH_TYPE.POSTED); in sendEventAlarmReminderNotifications()
387 mNotificationHelper.findPostedNotification(CHARLIE, 6, SEARCH_TYPE.POSTED); in sendEventAlarmReminderNotifications()
427 mNotificationHelper.findPostedNotification(ALICE, 7, SEARCH_TYPE.POSTED); in sendAlarmOtherMediaNotifications()
428 mNotificationHelper.findPostedNotification(BOB, 8, SEARCH_TYPE.POSTED); in sendAlarmOtherMediaNotifications()
[all …]
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java116 private NotificationHelper mNotificationHelper; field in CloseSystemDialogsTest
130 mNotificationHelper = new NotificationHelper(mContext); in setUp()
131 mNotificationHelper.enableListener(APP_SELF); in setUp()
184 mNotificationHelper.disableListener(APP_SELF); in tearDown()
244 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows()
260 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent()
277 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked()
292 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdk30_isSent()