Home
last modified time | relevance | path

Searched refs:notification (Results 1 – 25 of 79) sorted by relevance

1234

/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyNotificationListenerService.java24 import android.service.notification.NotificationListenerService;
25 import android.service.notification.StatusBarNotification;
48 final Notification notification = sbn.getNotification(); in onNotificationPosted() local
49 if (notification.contentIntent != null) { in onNotificationPosted()
50 sender.send("content", notification.contentIntent); in onNotificationPosted()
52 if (notification.deleteIntent != null) { in onNotificationPosted()
53 sender.send("delete", notification.deleteIntent); in onNotificationPosted()
55 if (notification.fullScreenIntent != null) { in onNotificationPosted()
56 sender.send("full screen", notification.fullScreenIntent); in onNotificationPosted()
58 if (notification.actions != null) { in onNotificationPosted()
[all …]
/cts/tests/app/src/android/app/cts/
DStatusBarNotificationTest.java20 import android.service.notification.StatusBarNotification;
94 Notification notification = new Notification.Builder(mContext) in testIsClearable_notClearableOngoingEvent() local
100 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsClearable_notClearableOngoingEvent()
115 Notification notification = new Notification.Builder(mContext) in testIsGroup_notifGroup() local
121 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsGroup_notifGroup()
127 Notification notification = new Notification.Builder(mContext) in testIsGroup_sortKey() local
133 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsGroup_sortKey()
143 Notification notification = new Notification.Builder(mContext) in testIsOngoing_ongoingEvent() local
149 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsOngoing_ongoingEvent()
171 Notification notification = clone.getNotification(); in testClone() local
[all …]
DNotificationCarExtenderTest.java49 Notification notification = new Notification(); in testCarExtender_Constructor() local
50 CarExtender extender = new Notification.CarExtender(notification); in testCarExtender_Constructor()
93 Notification notification = notifBuilder.build(); in testCarExtender_extend() local
95 CarExtender receiveCarExtender = new CarExtender(notification); in testCarExtender_extend()
DNotificationStatsTest.java19 import static android.service.notification.NotificationStats.DISMISSAL_PEEK;
20 import static android.service.notification.NotificationStats.DISMISS_SENTIMENT_NEGATIVE;
23 import android.service.notification.NotificationStats;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java20 import android.service.notification.NotificationListenerService;
21 import android.service.notification.NotificationStats;
22 import android.service.notification.StatusBarNotification;
163 JSONObject notification = new JSONObject(); in onNotificationPosted() local
165 notification.put(JSON_TAG, sbn.getTag()); in onNotificationPosted()
166 notification.put(JSON_ID, sbn.getId()); in onNotificationPosted()
167 notification.put(JSON_PACKAGE, sbn.getPackageName()); in onNotificationPosted()
168 notification.put(JSON_WHEN, sbn.getNotification().when); in onNotificationPosted()
169 notification.put(JSON_ICON, sbn.getNotification().icon); in onNotificationPosted()
170 notification.put(JSON_FLAGS, sbn.getNotification().flags); in onNotificationPosted()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/
DNotificationManager28Test.java17 package android.app.notification.legacy28.cts;
28 import android.service.notification.StatusBarNotification;
63 final Notification notification = in testPostFullScreenIntent_noPermission() local
71 mNotificationManager.notify(id, notification); in testPostFullScreenIntent_noPermission()
75 assertEquals(notification.fullScreenIntent, n.getNotification().fullScreenIntent); in testPostFullScreenIntent_noPermission()
/cts/hostsidetests/incident/src/com/android/server/cts/
DNotificationIncidentTest.java20 import android.service.notification.ConditionProto;
21 import android.service.notification.ManagedServicesProto;
22 import android.service.notification.NotificationRecordProto;
23 import android.service.notification.NotificationServiceDumpProto;
24 import android.service.notification.RankingHelperProto;
25 import android.service.notification.RankingHelperProto.RecordProto;
26 import android.service.notification.ZenMode;
27 import android.service.notification.ZenModeProto;
28 import android.service.notification.ZenRuleProto;
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWipeDataNotificationTest.java12 import com.android.internal.notification.SystemNotificationChannels;
76 NotificationListener.getInstance().addListener((notification) -> { in initWipeNotificationLatch()
77 if (notification.getNotification().getChannelId().equals( in initWipeNotificationLatch()
80 notification.getNotification().extras.getString(Notification.EXTRA_TITLE)); in initWipeNotificationLatch()
84 notification.getNotification().extras.getString( in initWipeNotificationLatch()
DNotificationListener.java19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DTestNotificationAssistant.java17 package android.app.notification.legacy29.cts;
22 import android.service.notification.Adjustment;
23 import android.service.notification.NotificationAssistantService;
24 import android.service.notification.StatusBarNotification;
DTestNotificationListener.java16 package android.app.notification.legacy29.cts;
19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
DNotificationManager29Test.java17 package android.app.notification.legacy29.cts;
36 import android.service.notification.StatusBarNotification;
140 final Notification notification = in testPostFullScreenIntent_noPermission() local
148 mNotificationManager.notify(id, notification); in testPostFullScreenIntent_noPermission()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DPollableConditionProviderService.java16 package android.app.notification.legacy.cts;
19 import android.service.notification.Condition;
20 import android.service.notification.ConditionProviderService;
DSecondaryNotificationListener.java16 package android.app.notification.legacy.cts;
19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
DTestNotificationListener.java16 package android.app.notification.legacy.cts;
19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
DLegacyConditionProviderService.java16 package android.app.notification.legacy.cts;
19 import android.service.notification.Condition;
/cts/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java67 import android.service.notification.NotificationListenerService;
68 import android.service.notification.StatusBarNotification;
252 for (StatusBarNotification notification : notificationService.getActiveNotifications()) { in getPermissionControllerNotification()
253 if (notification.getPackageName().equals(PERMISSION_CONTROLLER_PKG)) { in getPermissionControllerNotification()
254 return notification; in getPermissionControllerNotification()
283 StatusBarNotification notification = getPermissionControllerNotification(); in getNotification() local
284 if (notification == null) { in getNotification()
295 if (notification.getNotification().extras.getString(EXTRA_TITLE, "") in getNotification()
298 notificationService.cancelNotification(notification.getKey()); in getNotification()
303 notification)), UNEXPECTED_TIMEOUT_MILLIS); in getNotification()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DHwBinderTest.java215 ServiceNotification notification = new ServiceNotification(); in testHwBinder() local
218 manager.registerForNotifications(IServiceManager.kInterfaceName, "default", notification); in testHwBinder()
223 notification.lock.lock(); in testHwBinder()
225 while (!notification.registered && Calendar.getInstance().before(deadline)) { in testHwBinder()
227 notification.condition.awaitUntil(deadline.getTime()); in testHwBinder()
233 notification.lock.unlock(); in testHwBinder()
236 assertTrue(notification.registered); in testHwBinder()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DTestNotificationListener.java16 package android.app.notification.legacy20.cts;
19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
/cts/hostsidetests/os/app/src/android/os/app/
DTestFgService.java41 Notification notification = new Notification.Builder(this, CHANNEL) in onStartCommand() local
48 startForeground(NOTIFICATION_ID, notification); in onStartCommand()
/cts/hostsidetests/dumpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/
DProcStatsHelperServiceBase.java47 Notification notification = new Notification.Builder(getApplicationContext()) in onHandleIntent() local
51 startForeground(1, notification); in onHandleIntent()
/cts/hostsidetests/incident/apps/notificationsapp/src/com/android/server/cts/notifications/
DNotificationIncidentTestActivity.java44 final Notification notification = in onCreate() local
50 notificationManager.notify(1, notification); in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNotificationListener.java19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DNotificationListener.java19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DFocusLossPreventionService.java38 Notification notification = in onStartCommand() local
44 startForeground(1, notification); in onStartCommand()

1234