/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/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; 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/ |
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.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/ |
D | MockNotificationListener.java | 16 package android.app.notification.legacy.cts; 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
D | LegacyNotificationManagerTest.java | 17 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/ |
D | ProcStatsHelperServiceBase.java | 47 Notification notification = new Notification.Builder(getApplicationContext()) in onHandleIntent() local 51 startForeground(1, notification); in onHandleIntent()
|
/cts/tools/junit/src/com/android/cts/junit/ |
D | SingleJUnitTestRunListener.java | 21 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/ |
D | TestService.java | 50 Notification notification = in onStartCommand() local 56 startForeground(1, notification); in onStartCommand()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileNotificationListenerService.java | 23 import android.service.notification.NotificationListenerService; 24 import android.service.notification.StatusBarNotification;
|
/cts/tests/app/app/src/android/app/stubs/ |
D | MockNotificationListener.java | 19 import android.service.notification.NotificationListenerService; 20 import android.service.notification.StatusBarNotification;
|
D | LocalForegroundService.java | 69 Notification notification = in onStart() local 74 startForeground(mNotificationId, notification); in onStart()
|
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/ |
D | FgService.java | 51 Notification notification = in onStartCommand() local 56 startForeground(1, notification); in onStartCommand()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MockMediaSessionService2.java | 85 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/ |
D | SimpleService.java | 69 Notification notification = new Notification.Builder(this, CHANNEL_NAME) in onStartCommand() local 75 startForeground(100, notification); in onStartCommand()
|
/cts/tests/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 52 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 …]
|
D | NotificationTest.java | 356 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/ |
D | StatsdCtsForegroundService.java | 98 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/ |
D | DialerShowsHunOnIncomingCallActivity.java | 73 Notification notification = in update() local 82 notificationManager.notify(notifyID, notification); in update()
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | SimpleForegroundService.java | 94 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/ |
D | MediaSessionTestHelperService.java | 61 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/ |
D | GtestRunner.java | 21 import org.junit.runner.notification.RunNotifier;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | Utils.java | 88 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/ |
D | SensorCtsTestActivity.java | 35 import org.junit.runner.notification.Failure; 36 import org.junit.runner.notification.RunListener;
|
/cts/tests/core/runner/src/com/android/cts/core/runner/support/ |
D | TestNgRunner.java | 26 import org.junit.runner.notification.Failure; 27 import org.junit.runner.notification.RunNotifier;
|
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/ |
D | MediaSessionManagerTest.java | 28 import android.service.notification.NotificationListenerService;
|