Home
last modified time | relevance | path

Searched refs:mNotificationManager (Results 1 – 12 of 12) sorted by relevance

/development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/
DActiveNotificationsFragment.java52 private NotificationManager mNotificationManager; field in ActiveNotificationsFragment
77 mNotificationManager = (NotificationManager) getActivity().getSystemService( in onViewCreated()
120 mNotificationManager.notify(getNewNotificationId(), notification); in addNotificationAndUpdateSummaries()
145 mNotificationManager.notify(NOTIFICATION_GROUP_SUMMARY_ID, notification); in updateNotificationSummary()
148 mNotificationManager.cancel(NOTIFICATION_GROUP_SUMMARY_ID); in updateNotificationSummary()
181 final StatusBarNotification[] activeNotifications = mNotificationManager in getNumberOfNotifications()
/development/samples/Alarm/src/com/example/android/newalarm/
DAlarmService.java68 NotificationManager mNotificationManager; field in AlarmService
133 mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); in onCreate()
158 mNotificationManager.cancel(R.string.alarm_service_started); in onDestroy()
205 mNotificationManager.notify( in showNotification()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DStatusBarNotifications.java37 private NotificationManager mNotificationManager; field in StatusBarNotifications
51 mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onCreate()
143 mNotificationManager.cancel(R.layout.status_bar_notifications); in onCreate()
215 mNotificationManager.notify(MOOD_NOTIFICATIONS, notifBuidler.build()); in setMood()
243 mNotificationManager.notify(MOOD_NOTIFICATIONS, notif); in setMoodView()
268 mNotificationManager.notify( in setDefault()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMediaNotificationManager.java62 private NotificationManager mNotificationManager; field in MediaNotificationManager
80 mNotificationManager = (NotificationManager) mService in MediaNotificationManager()
95 mNotificationManager.cancelAll(); in MediaNotificationManager()
134 mNotificationManager.cancel(NOTIFICATION_ID); in stopNotification()
203 mNotificationManager.notify(NOTIFICATION_ID, notification);
214 mNotificationManager.notify(NOTIFICATION_ID, notification);
349 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in fetchBitmapFromURLAsync()
/development/samples/training/notify-user/src/com/example/android/pingme/
DPingService.java31 private NotificationManager mNotificationManager; field in PingService
70 mNotificationManager = (NotificationManager) in issueNotification()
128 mNotificationManager = (NotificationManager) in issueNotification()
131 mNotificationManager.notify(CommonConstants.NOTIFICATION_ID, builder.build()); in issueNotification()
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/
DHeadsUpNotificationFragment.java43 private NotificationManager mNotificationManager; field in HeadsUpNotificationFragment
75 mNotificationManager = (NotificationManager) getActivity().getSystemService(Context in onCreate()
93 mNotificationManager.notify(NOTIFICATION_ID, createNotification( in onViewCreated()
DVisibilityMetadataFragment.java38 private NotificationManager mNotificationManager; field in VisibilityMetadataFragment
75 mNotificationManager = (NotificationManager) getActivity().getSystemService(Context in onCreate()
151 mNotificationManager.notify(mIncrementalNotificationId, createNotification(visibility)); in showNotificationClicked()
DOtherMetadataFragment.java65 private NotificationManager mNotificationManager; field in OtherMetadataFragment
108 mNotificationManager = (NotificationManager) getActivity().getSystemService(Context in onCreate()
208 mNotificationManager.notify(mIncrementalNotificationId, createNotification(priority, in showNotificationClicked()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeService.java31 private NotificationManagerCompat mNotificationManager; field in RecipeService
43 mNotificationManager = NotificationManagerCompat.from(this); in onCreate()
94 mNotificationManager.notify(Constants.NOTIFICATION_ID, notification); in createNotification()
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessagingService.java48 private NotificationManagerCompat mNotificationManager; field in MessagingService
55 mNotificationManager = NotificationManagerCompat.from(getApplicationContext()); in onCreate()
150 mNotificationManager.notify(conversation.getConversationId(), builder.build()); in sendNotificationForConversation()
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnService.java162 NotificationManager mNotificationManager = (NotificationManager) getSystemService( in updateForegroundNotification() local
164 mNotificationManager.createNotificationChannel(new NotificationChannel( in updateForegroundNotification()
/development/samples/Alarm/tests/src/com/example/android/newalarm/
DAlarmServiceTest.java77 assertNotNull(mService.mNotificationManager); in testServiceCreate()