Home
last modified time | relevance | path

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

12

/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyNotificationListenerService.java23 import android.service.notification.NotificationListenerService;
24 import android.service.notification.StatusBarNotification;
47 final Notification notification = sbn.getNotification(); in onNotificationPosted() local
48 if (notification.contentIntent != null) { in onNotificationPosted()
49 sender.send("content", notification.contentIntent); in onNotificationPosted()
51 if (notification.deleteIntent != null) { in onNotificationPosted()
52 sender.send("delete", notification.deleteIntent); in onNotificationPosted()
54 if (notification.fullScreenIntent != null) { in onNotificationPosted()
55 sender.send("full screen", notification.fullScreenIntent); in onNotificationPosted()
57 if (notification.actions != null) { in onNotificationPosted()
[all …]
/cts/hostsidetests/incident/src/com/android/server/cts/
DNotificationTest.java19 import android.service.notification.NotificationRecordProto;
20 import android.service.notification.NotificationServiceDumpProto;
21 import android.service.notification.State;
22 import android.service.notification.ZenMode;
23 import android.service.notification.ZenModeProto;
/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/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java71 Notification notification = new Notification.Builder(this, "Foreground Service") in onStartCommand() local
75 startForeground(1, notification); in onStartCommand()
/cts/apps/CtsVerifier/
DAndroid.mk92 notification-bot := $(call intermediates-dir-for,APPS,NotificationBot)/package.apk
101 && adb install -r $(notification-bot) \
135 $(verifier-zip) : $(notification-bot)
142 $(ACP) -fp $(notification-bot) $(verifier-dir)/NotificationBot.apk
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java27 import android.service.notification.NotificationListenerService;
28 import android.service.notification.StatusBarNotification;
271 JSONObject notification = new JSONObject(); in onNotificationPosted() local
273 notification.put(JSON_TAG, sbn.getTag()); in onNotificationPosted()
274 notification.put(JSON_ID, sbn.getId()); in onNotificationPosted()
275 notification.put(JSON_PACKAGE, sbn.getPackageName()); in onNotificationPosted()
276 notification.put(JSON_WHEN, sbn.getNotification().when); in onNotificationPosted()
277 notification.put(JSON_ICON, sbn.getNotification().icon); in onNotificationPosted()
278 notification.put(JSON_FLAGS, sbn.getNotification().flags); in onNotificationPosted()
279 mNotifications.put(sbn.getKey(), notification); in onNotificationPosted() local
DMockConditionProvider.java28 import android.service.notification.Condition;
29 import android.service.notification.ConditionProviderService;
/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/hostsidetests/media/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/
DMediaSessionTestHelperService.java52 Notification notification = new Notification.Builder(this) in onCreate() local
55 startForeground(NOTIFICATION_ID, notification); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/dialer/
DDialerShowsHunOnIncomingCallActivity.java73 Notification notification = in update() local
82 notificationManager.notify(notifyID, notification); in update()
/cts/tests/app/app/src/android/app/stubs/
DLocalForegroundService.java69 Notification notification = in onStart() local
74 startForeground(mNotificationId, notification); in onStart()
/cts/tests/core/runner/src/com/android/cts/core/runner/
DDescriptionHierarchyNotifier.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()
DByodHelperActivity.java173 final Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in showNotification() local
180 mNotificationManager.notify(NOTIFICATION_ID, notification); in showNotification()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java31 import android.service.notification.StatusBarNotification;
357 final Notification notification = in testNotifyWithTimeout() local
364 mNotificationManager.notify(id, notification); in testNotifyWithTimeout()
386 final Notification notification = in sendNotification() local
394 mNotificationManager.notify(id, notification); in sendNotification()
DConditionTest.java21 import android.service.notification.Condition;
DServiceTest.java39 import android.service.notification.StatusBarNotification;
189 Notification notification = new Notification.Builder(getContext(), NOTIFICATION_CHANNEL_ID) in sendNotification() local
193 getNotificationManager().notify(id, notification); in sendNotification()
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DGnssCtsTestActivity.java37 import org.junit.runner.notification.Failure;
38 import org.junit.runner.notification.RunListener;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java90 Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
91 Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyBroadcastReceiver.java258 final Notification notification = builder.build(); in sendNotification() local
260 .notify(notificationId, notification); in sendNotification()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java348 final Notification notification = in testTypeNotificationStateChangedAccessibilityEvent() local
369 expected.setParcelableData(notification); in testTypeNotificationStateChangedAccessibilityEvent()
382 .notify(notificationId, notification); in testTypeNotificationStateChangedAccessibilityEvent()
/cts/tests/core/runner/src/com/android/cts/core/internal/runner/
DTestLoader.java27 import org.junit.runner.notification.Failure;

12