Home
last modified time | relevance | path

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

12

/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/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;
152 JSONObject notification = new JSONObject(); in onNotificationPosted() local
154 notification.put(JSON_TAG, sbn.getTag()); in onNotificationPosted()
155 notification.put(JSON_ID, sbn.getId()); in onNotificationPosted()
156 notification.put(JSON_PACKAGE, sbn.getPackageName()); in onNotificationPosted()
157 notification.put(JSON_WHEN, sbn.getNotification().when); in onNotificationPosted()
158 notification.put(JSON_ICON, sbn.getNotification().icon); in onNotificationPosted()
159 notification.put(JSON_FLAGS, sbn.getNotification().flags); in onNotificationPosted()
[all …]
/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.NotificationRecordProto.State;
25 import android.service.notification.RankingHelperProto;
26 import android.service.notification.RankingHelperProto.RecordProto;
27 import android.service.notification.ZenMode;
28 import android.service.notification.ZenModeProto;
29 import android.service.notification.ZenRuleProto;
/cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/
DMockNotificationListener.java16 package android.app.notification.legacy.cts;
19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
DLegacyNotificationManagerTest.java17 package android.app.notification.legacy.cts;
42 import android.service.notification.NotificationListenerService;
239 final Notification notification = in sendNotification() local
248 mNotificationManager.notify(id, notification); in sendNotification()
/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/tools/junit/src/com/android/cts/junit/
DSingleJUnitTestRunListener.java21 import org.junit.runner.notification.Failure;
22 import org.junit.runner.notification.RunListener;
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/
DTestService.java50 Notification notification = in onStartCommand() local
56 startForeground(1, notification); in onStartCommand()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileNotificationListenerService.java23 import android.service.notification.NotificationListenerService;
24 import android.service.notification.StatusBarNotification;
/cts/tests/app/app/src/android/app/stubs/
DMockNotificationListener.java19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
DLocalForegroundService.java69 Notification notification = in onStart() local
74 startForeground(mNotificationId, notification); in onStart()
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DFgService.java51 Notification notification = in onStartCommand() local
56 startForeground(1, notification); in onStartCommand()
/cts/tests/tests/media/src/android/media/cts/
DMockMediaSessionService2.java85 Notification notification = new Notification.Builder( in onUpdateNotification() local
90 return new MediaNotification(DEFAULT_MEDIA_NOTIFICATION_ID, notification); in onUpdateNotification()
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/
DSimpleService.java69 Notification notification = new Notification.Builder(this, CHANNEL_NAME) in onStartCommand() local
75 startForeground(100, notification); in onStartCommand()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java52 import android.service.notification.NotificationListenerService;
53 import android.service.notification.StatusBarNotification;
526 final Notification notification = in testNotify_blockedChannel() local
533 mNotificationManager.notify(id, notification); in testNotify_blockedChannel()
552 final Notification notification = in testNotify_blockedChannelGroup() local
559 mNotificationManager.notify(id, notification); in testNotify_blockedChannelGroup()
604 final Notification notification = in testNotifyWithTimeout() local
611 mNotificationManager.notify(id, notification); in testNotifyWithTimeout()
630 final Notification notification = in testMediaStyle() local
645 mNotificationManager.notify(id, notification); in testMediaStyle()
[all …]
DNotificationTest.java356 Notification notification = new Notification.Builder(mContext, "test id")
363 assertTrue(notification.extras.getBoolean(Notification.EXTRA_IS_GROUP_CONVERSATION));
371 Notification notification = new Notification.Builder(mContext, "test id")
378 assertTrue(notification.extras.getBoolean(Notification.EXTRA_IS_GROUP_CONVERSATION));
387 Notification notification = new Notification.Builder(mContext, "test id")
394 assertFalse(notification.extras.getBoolean(Notification.EXTRA_IS_GROUP_CONVERSATION));
403 Notification notification = new Notification.Builder(mContext, "test id")
410 assertTrue(notification.extras.getBoolean(Notification.EXTRA_IS_GROUP_CONVERSATION));
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java98 Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand() local
103 startForeground(1, notification); in onStartCommand()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/dialer/
DDialerShowsHunOnIncomingCallActivity.java73 Notification notification = in update() local
82 notificationManager.notify(notifyID, notification); in update()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java94 Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand() local
99 startForeground(1, notification); in onStartCommand()
/cts/hostsidetests/media/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/
DMediaSessionTestHelperService.java61 Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL) in onCreate() local
64 startForeground(NOTIFICATION_ID, notification); in onCreate()
/cts/common/device-side/nativetesthelper/src/com/android/gtestrunner/
DGtestRunner.java21 import org.junit.runner.notification.RunNotifier;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUtils.java88 Notification notification = new Notification.Builder(context) in showBugreportNotification() local
96 mNotificationManager.notify(notificationId, notification); in showBugreportNotification()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestActivity.java35 import org.junit.runner.notification.Failure;
36 import org.junit.runner.notification.RunListener;
/cts/tests/core/runner/src/com/android/cts/core/runner/support/
DTestNgRunner.java26 import org.junit.runner.notification.Failure;
27 import org.junit.runner.notification.RunNotifier;
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/
DMediaSessionManagerTest.java28 import android.service.notification.NotificationListenerService;

12