/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/ |
D | FindPhoneActivity.java | 35 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/ |
D | MainActivity.java | 71 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.jd | 8 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.jd | 7 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/ |
D | ForegroundService.java | 83 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()
|
D | LocalService.java | 105 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()
|
D | StatusBarNotifications.java | 201 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()
|
D | AlarmService_Service.java | 103 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()
|
D | NotifyingService.java | 102 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()
|
D | MessengerService.java | 153 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()
|
D | ServiceStartArguments.java | 178 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()
|
D | RemoteService.java | 187 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.jd | 8 … 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.jd | 8 … 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/ |
D | MainActivity.java | 88 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/ |
D | SecureWebServerService.java | 78 Notification notification = new Notification.Builder(this). in createNotification() local 86 startForeground(ONGOING_NOTIFICATION, notification); in createNotification()
|
/development/samples/browseable/BasicNotifications/ |
D | _index.jd | 7 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/ |
D | RecipeService.java | 90 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/ |
D | MainActivity.java | 73 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.jd | 10 … companion. When deleted using the notification action, a ConfirmationActivity is used to indicate
|
/development/samples/browseable/ElizaChat/Application/src/com.example.android.wearable.elizachat/ |
D | ResponderService.java | 104 Notification notification = builder in showNotification() local 113 NotificationManagerCompat.from(this).notify(0, notification); in showNotification()
|
/development/samples/browseable/RecipeAssistant/ |
D | _index.jd | 11 … 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/ |
D | HomeListenerService.java | 135 Notification notification = new Notification.Builder(this) in postNotificationForGeofenceId() local 149 .notify(NOTIFICATION_ID, notification); in postNotificationForGeofenceId()
|
/development/samples/browseable/Quiz/ |
D | _index.jd | 10 …displays them as notifications. Each notification contains the question as the first page, followed
|
/development/samples/training/notify-user/src/com/example/android/pingme/ |
D | PingService.java | 87 .setContentTitle(getString(R.string.notification)) in issueNotification()
|