Home
last modified time | relevance | path

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

12

/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/
DFindPhoneActivity.java35 private static Notification.Builder notification; field in FindPhoneActivity
55 notification = new Notification.Builder(this) in onCreate()
68 .notify(FIND_PHONE_NOTIFICATION_ID, notification.build()); in onCreate()
82 notification.setContentText(notificationText); in updateNotification()
84 .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/MessagingService/
D_index.jd8 NotificationCompat. In addition to sending a notification, it also extends
9 the notification with a CarExtender to make it compatible with Android Auto.
10 Each unread conversation from a user is sent as a distinct notification.
/development/samples/browseable/Notifications/
D_index.jd7 This sample application provides a showcase of available notification styles and
9 companion allows you to select between various notification styles and to see how these
10 notifications are displayed, both in a phone\'s notification shade and on the wearable.
/development/samples/ApiDemos/src/com/example/android/apis/app/
DForegroundService.java83 void startForegroundCompat(int id, Notification notification) { in startForegroundCompat() argument
87 mStartForegroundArgs[1] = notification; in startForegroundCompat()
95 mNM.notify(id, notification); in startForegroundCompat()
170 Notification notification = new Notification(R.drawable.stat_sample, text, in handleCommand() local
178 notification.setLatestEventInfo(this, getText(R.string.local_service_label), in handleCommand()
181 startForegroundCompat(R.string.foreground_service_started, notification); in handleCommand()
DLocalService.java105 Notification notification = new Notification(R.drawable.stat_sample, text, in showNotification() local
113 notification.setLatestEventInfo(this, getText(R.string.local_service_label), in showNotification()
117 mNM.notify(NOTIFICATION, notification); in showNotification()
DStatusBarNotifications.java201 Notification notification = new Notification(moodId, tickerText, in setMood() local
205 notification.setLatestEventInfo(this, getText(R.string.status_bar_notifications_mood_title), in setMood()
210 mNotificationManager.notify(MOOD_NOTIFICATIONS, notification); in setMood()
251 final Notification notification = new Notification( in setDefault() local
256 notification.setLatestEventInfo( in setDefault()
263 notification.defaults = defaults; in setDefault()
268 notification); in setDefault()
DAlarmService_Service.java103 Notification notification = new Notification(R.drawable.stat_sample, text, in showNotification() local
111 notification.setLatestEventInfo(this, getText(R.string.alarm_service_label), in showNotification()
116 mNM.notify(R.string.alarm_service_started, notification); in showNotification()
DNotifyingService.java102 Notification notification = new Notification(moodId, null, System.currentTimeMillis()); in showNotification() local
109 notification.setLatestEventInfo(this, getText(R.string.status_bar_notifications_mood_title), in showNotification()
114 mNM.notify(MOOD_NOTIFICATIONS, notification); in showNotification()
DMessengerService.java153 Notification notification = new Notification(R.drawable.stat_sample, text, in showNotification() local
161 notification.setLatestEventInfo(this, getText(R.string.remote_service_label), in showNotification()
166 mNM.notify(R.string.remote_service_started, notification); in showNotification()
DServiceStartArguments.java178 Notification notification = new Notification(R.drawable.stat_sample, text, in showNotification() local
186 notification.setLatestEventInfo(this, getText(R.string.service_start_arguments_label), in showNotification()
190 notification.flags |= Notification.FLAG_ONGOING_EVENT; in showNotification()
194 mNM.notify(R.string.service_created, notification); in showNotification()
DRemoteService.java187 Notification notification = new Notification(R.drawable.stat_sample, text, in showNotification() local
195 notification.setLatestEventInfo(this, getText(R.string.remote_service_label), in showNotification()
200 mNM.notify(R.string.remote_service_started, notification); in showNotification()
/development/samples/browseable/ElizaChat/
D_index.jd8 … messages with a quick voice response. New messages create a notification with a "Reply" action.
9 … The notification is bridged from phone to wearable, and selecting the "Reply" action on the
/development/samples/browseable/Geofencing/
D_index.jd8 … Gardens near the Moscone center in San Francisco, a notification silently appears on his/her
9 … wearable with an option to check in. This notification automatically disappears when he/she leaves
/development/samples/browseable/DelayedConfirmation/Wearable/src/com.example.android.wearable.delayedconfirmation/
DMainActivity.java88 Notification notification = new Notification.Builder(this) in onTimerSelected() local
93 ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).notify(0, notification); in onTimerSelected()
102 Notification notification = new Notification.Builder(this) in onTimerFinished() local
107 ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).notify(0, notification); in onTimerFinished()
/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/browseable/BasicNotifications/
D_index.jd7 This sample demonstrates how to display events in the system\'s notification bar. The
/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/SkeletonWearableApp/Wearable/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.jd10 … companion. When deleted using the notification action, a ConfirmationActivity is used to indicate
/development/samples/browseable/ElizaChat/Application/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/RecipeAssistant/
D_index.jd11 … wearable. On the wearable device, the steps are displayed as a multi-page notification, with one
/development/samples/browseable/Geofencing/Wearable/src/com.example.android.wearable.geofencing/
DHomeListenerService.java135 Notification notification = new Notification.Builder(this) in postNotificationForGeofenceId() local
149 .notify(NOTIFICATION_ID, notification); in postNotificationForGeofenceId()
/development/samples/browseable/Quiz/
D_index.jd10 …displays them as notifications. Each notification contains the question as the first page, followed
/development/samples/training/notify-user/src/com/example/android/pingme/
DPingService.java87 .setContentTitle(getString(R.string.notification)) in issueNotification()

12