Home
last modified time | relevance | path

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

12

/development/samples/browseable/ActiveNotifications/
D_index.jd12 notifications. To get started, press the "add a notification" button.
13 If you add more than one notification a notification summary will be
14 added. When a notification is being canceled, the count gets updated
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/
DFindPhoneActivity.java34 private static Notification.Builder notification; field in FindPhoneActivity
54 notification = new Notification.Builder(this) in onCreate()
67 .notify(FIND_PHONE_NOTIFICATION_ID, notification.build()); in onCreate()
81 notification.setContentText(notificationText); in updateNotification()
83 .notify(FIND_PHONE_NOTIFICATION_ID, notification.build()); in updateNotification()
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/
DMainActivity.java71 Notification notification = builder.build(); in createNotification() local
76 RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.notification); in createNotification()
88 notification.contentView = contentView; in createNotification()
98 notification.bigContentView = expandedView; in createNotification()
105 nm.notify(0, notification); in createNotification()
/development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/
DActiveNotificationsFragment.java24 import android.service.notification.StatusBarNotification;
119 final Notification notification = builder.build(); in addNotificationAndUpdateSummaries() local
120 mNotificationManager.notify(getNewNotificationId(), notification); in addNotificationAndUpdateSummaries() local
138 for (StatusBarNotification notification : activeNotifications) { in updateNotificationSummary()
139 if (notification.getId() == NOTIFICATION_GROUP_SUMMARY_ID) { in updateNotificationSummary()
155 final Notification notification = builder.build(); in updateNotificationSummary() local
156 mNotificationManager.notify(NOTIFICATION_GROUP_SUMMARY_ID, notification); in updateNotificationSummary()
/development/samples/browseable/Notifications/
D_index.jd8 This sample application provides a showcase of available notification styles and
10 companion allows you to select between various notification styles and to see how these
11 notifications are displayed, both in a phone\'s notification shade and on the wearable.
/development/samples/browseable/MessagingService/
D_index.jd9 NotificationCompat. It also extends the notification with Remote
11 the notification without having to open an app. The same Remote
15 notification.
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMediaNotificationManager.java109 Notification notification = createNotification(); in startNotification() local
110 if (notification != null) { in startNotification()
119 mService.startForeground(NOTIFICATION_ID, notification); in startNotification()
201 Notification notification = createNotification();
202 if (notification != null) {
203 mNotificationManager.notify(NOTIFICATION_ID, notification);
212 Notification notification = createNotification();
213 if (notification != null) {
214 mNotificationManager.notify(NOTIFICATION_ID, notification);
/development/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaNotificationManager.java111 Notification notification = createNotification(); in startNotification() local
112 if (notification != null) { in startNotification()
121 mService.startForeground(NOTIFICATION_ID, notification); in startNotification()
207 Notification notification = createNotification();
208 if (notification != null) {
209 mNotificationManager.notify(NOTIFICATION_ID, notification);
218 Notification notification = createNotification();
219 if (notification != null) {
220 mNotificationManager.notify(NOTIFICATION_ID, notification);
/development/samples/browseable/ElizaChat/
D_index.jd9 … messages with a quick voice response. New messages create a notification with a "Reply" action.
10 … The notification is bridged from phone to wearable, and selecting the "Reply" action on the
/development/samples/browseable/Geofencing/
D_index.jd9 … Gardens near the Moscone center in San Francisco, a notification silently appears on his/her
10 … wearable with an option to check in. This notification automatically disappears when he/she leaves
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DSecureWebServerService.java78 Notification notification = new Notification.Builder(this). in createNotification() local
86 startForeground(ONGOING_NOTIFICATION, notification); in createNotification()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DForegroundService.java87 void startForegroundCompat(int id, Notification notification) { in startForegroundCompat() argument
91 mStartForegroundArgs[1] = notification; in startForegroundCompat()
99 mNM.notify(id, notification); in startForegroundCompat()
188 Notification notification = new Notification.Builder(this) in handleCommand() local
197 startForegroundCompat(R.string.foreground_service_started, notification); in handleCommand()
DLocalService.java108 Notification notification = new Notification.Builder(this) in showNotification() local
118 mNM.notify(NOTIFICATION, notification); in showNotification()
DAlarmService_Service.java107 Notification notification = new Notification.Builder(this) in showNotification() local
118 mNM.notify(R.string.alarm_service_started, notification); in showNotification()
DNotifyingService.java107 Notification notification = new Notification.Builder(this) in showNotification() local
117 mNM.notify(MOOD_NOTIFICATIONS, notification); in showNotification()
DMessengerService.java157 Notification notification = new Notification.Builder(this) in showNotification() local
168 mNM.notify(R.string.remote_service_started, notification); in showNotification()
/development/samples/browseable/DelayedConfirmation/Wearable/src/com.example.android.wearable.delayedconfirmation/
DMainActivity.java101 Notification notification = new Notification.Builder(this) in onTimerSelected() local
106 ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).notify(0, notification); in onTimerSelected()
115 Notification notification = new Notification.Builder(this) in onTimerFinished() local
120 ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).notify(0, notification); in onTimerFinished()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeService.java90 Notification notification = builder in createNotification() local
94 mNotificationManager.notify(Constants.NOTIFICATION_ID, notification); in createNotification()
/development/samples/browseable/BasicNotifications/
D_index.jd8 This sample demonstrates how to display events in the system\'s notification bar. The
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/
DMainActivity.java73 Notification notification = new NotificationCompat.Builder(this) in showNotification() local
83 NotificationManagerCompat.from(this).notify(NOTIFICATION_ID, notification); in showNotification()
/development/samples/browseable/AgendaData/
D_index.jd11 at once via a button on the companion. When deleted using the notification action, a
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DResponderService.java104 Notification notification = builder in showNotification() local
113 NotificationManagerCompat.from(this).notify(0, notification); in showNotification()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/service/
DListenerService.java109 Notification notification = new NotificationCompat.Builder(this) in showNotification() local
123 notificationManager.notify(Constants.WEAR_NOTIFICATION_ID, notification); in showNotification()
/development/samples/browseable/BeamLargeFiles/
D_index.jd14 will save the file to disk and display a notification that the user can select to open
/development/samples/browseable/RecipeAssistant/
D_index.jd12 … wearable. On the wearable device, the steps are displayed as a multi-page notification, with one

12