/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyNotificationListenerService.java | 24 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/ |
D | StatusBarNotificationTest.java | 20 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 …]
|
D | NotificationCarExtenderTest.java | 49 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()
|
D | NotificationStatsTest.java | 19 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/ |
D | MockListener.java | 20 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/ |
D | NotificationManager28Test.java | 17 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/ |
D | NotificationIncidentTest.java | 20 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/ |
D | WipeDataNotificationTest.java | 12 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()
|
D | NotificationListener.java | 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | TestNotificationAssistant.java | 17 package android.app.notification.legacy29.cts; 22 import android.service.notification.Adjustment; 23 import android.service.notification.NotificationAssistantService; 24 import android.service.notification.StatusBarNotification;
|
D | TestNotificationListener.java | 16 package android.app.notification.legacy29.cts; 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
D | NotificationManager29Test.java | 17 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/ |
D | PollableConditionProviderService.java | 16 package android.app.notification.legacy.cts; 19 import android.service.notification.Condition; 20 import android.service.notification.ConditionProviderService;
|
D | SecondaryNotificationListener.java | 16 package android.app.notification.legacy.cts; 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
D | TestNotificationListener.java | 16 package android.app.notification.legacy.cts; 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
D | LegacyConditionProviderService.java | 16 package android.app.notification.legacy.cts; 19 import android.service.notification.Condition;
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | LocationAccessCheckTest.java | 67 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/ |
D | HwBinderTest.java | 215 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/ |
D | TestNotificationListener.java | 16 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/ |
D | TestFgService.java | 41 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/ |
D | ProcStatsHelperServiceBase.java | 47 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/ |
D | NotificationIncidentTestActivity.java | 44 final Notification notification = in onCreate() local 50 notificationManager.notify(1, notification); in onCreate()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | NotificationListener.java | 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | NotificationListener.java | 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | FocusLossPreventionService.java | 38 Notification notification = in onStartCommand() local 44 startForeground(1, notification); in onStartCommand()
|