/packages/apps/Mms/src/com/android/mms/transaction/ |
SimFullReceiver.java | 23 import android.app.Notification; 33 * Receive Intent.SIM_FULL_ACTION. Handle notification that SIM is full. 52 Notification notification = new Notification(); local 53 notification.icon = R.drawable.stat_sys_no_sim; 54 notification.tickerText = context.getString(R.string.sim_full_title); 55 notification.defaults = Notification.DEFAULT_ALL; 57 notification.setLatestEventInfo [all...] |
SmsRejectedReceiver.java | 21 import android.app.Notification; 33 * Receive Intent.SMS_REJECTED. Handle notification that received SMS messages are being 64 Notification notification = new Notification(); local 67 notification.icon = R.drawable.stat_sys_no_sim; 77 notification.tickerText = context.getString(titleId); 78 notification.defaults = Notification.DEFAULT_ALL; 80 notification.setLatestEventInfo [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
NotificationManagerTest.java | 19 import android.app.Notification; 57 args = {int.class, android.app.Notification.class} 65 @ToBeFixed(bug = "1716929", explanation = "NotificationManager#notify(int, Notification) " 76 args = {int.class, android.app.Notification.class} 96 args = {int.class, android.app.Notification.class} 114 final Notification notification = new Notification( local 124 notification.setLatestEventInfo(mContext, "notify#" + id, "This is #" + id 125 + "notification ", pendingIntent) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
AlarmService_Service.java | 23 import android.app.Notification; 61 // Cancel the notification -- we use the same ID that we had used to start it 96 * Show a notification while this service is running. 99 // In this sample, we'll use the same text for the ticker and the expanded notification 103 Notification notification = new Notification(R.drawable.stat_sample, text, local 106 // The PendingIntent to launch our activity if the user selects this notification 110 // Set the info for the views that show in the notification panel. 111 notification.setLatestEventInfo(this, getText(R.string.alarm_service_label) [all...] |
LocalService.java | 19 import android.app.Notification; 63 // Display a notification about us starting. We put an icon in the status bar. 77 // Cancel the persistent notification. 94 * Show a notification while this service is running. 97 // In this sample, we'll use the same text for the ticker and the expanded notification 101 Notification notification = new Notification(R.drawable.stat_sample, text, local 104 // The PendingIntent to launch our activity if the user selects this notification 108 // Set the info for the views that show in the notification panel [all...] |
MessengerService.java | 19 import android.app.Notification; 53 /** For showing and hiding our notification. */ 123 // Display a notification about us starting. 129 // Cancel the persistent notification. 146 * Show a notification while this service is running. 149 // In this sample, we'll use the same text for the ticker and the expanded notification 153 Notification notification = new Notification(R.drawable.stat_sample, text, local 156 // The PendingIntent to launch our activity if the user selects this notification [all...] |
NotifyingService.java | 23 import android.app.Notification; 45 // variable which controls the notification thread 62 // Cancel the persistent notification. 95 // In this sample, we'll use the same text for the ticker and the expanded notification 103 Notification notification = new Notification(moodId, null, System.currentTimeMillis()); local 105 // The PendingIntent to launch our activity if the user selects this notification 109 // Set the info for the views that show in the notification panel. 110 notification.setLatestEventInfo(this, getText(R.string.status_bar_notifications_mood_title) [all...] |
ForegroundService.java | 20 import android.app.Notification; 53 int.class, Notification.class}; 67 void startForegroundCompat(int id, Notification notification) { 71 mStartForegroundArgs[1] = notification; 86 mNM.notify(id, notification); 131 // Make sure our notification is gone. 156 // In this sample, we'll use the same text for the ticker and the expanded notification 160 Notification notification = new Notification(R.drawable.stat_sample, text local [all...] |
StatusBarNotifications.java | 22 import android.app.Notification; 49 // Get the notification manager serivce. 121 setDefault(Notification.DEFAULT_SOUND); 128 setDefault(Notification.DEFAULT_VIBRATE); 135 setDefault(Notification.DEFAULT_ALL); 149 // notification. Note the use of FLAG_UPDATE_CURRENT so that if there 161 // In this sample, we'll use the same text for the ticker and the expanded notification 168 Notification notification = new Notification(moodId, tickerText local 219 final Notification notification = new Notification( local [all...] |
RemoteService.java | 20 import android.app.Notification; 73 // Display a notification about us starting. 84 // Cancel the persistent notification. 175 * Show a notification while this service is running. 178 // In this sample, we'll use the same text for the ticker and the expanded notification 182 Notification notification = new Notification(R.drawable.stat_sample, text, local 185 // The PendingIntent to launch our activity if the user selects this notification 189 // Set the info for the views that show in the notification panel [all...] |
ServiceStartArguments.java | 20 import android.app.Notification; 110 // notification. 174 * Show a notification while this service is running. 178 Notification notification = new Notification(R.drawable.stat_sample, text, local 181 // The PendingIntent to launch our activity if the user selects this notification 185 // Set the info for the views that show in the notification panel. 186 notification.setLatestEventInfo(this, getText(R.string.service_start_arguments_label), 190 notification.flags |= Notification.FLAG_ONGOING_EVENT [all...] |
/frameworks/base/core/java/com/android/internal/statusbar/ |
StatusBarNotification.java | 19 import android.app.Notification; 26 boolean clearable = !n.ongoingEvent && ((notification.flags & Notification.FLAG_NO_CLEAR) == 0); 43 public Notification notification; field in class:StatusBarNotification 49 int uid, int initialPid, Notification notification) { 51 if (notification == null) throw new NullPointerException(); 58 this.notification = notification; [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothPairingRequest.java | 21 import android.app.Notification; 35 * confirmation entry dialog. Otherwise it puts a Notification in the status bar, which can 76 // Put up a notification that leads to the dialog 78 Notification notification = new Notification( local 91 notification.setLatestEventInfo(context, 95 notification.flags |= Notification.FLAG_AUTO_CANCEL; 96 notification.defaults |= Notification.DEFAULT_SOUND [all...] |
/external/webkit/WebCore/bindings/v8/custom/ |
V8NotificationCenterCustom.cpp | 37 #include "Notification.h" 51 INC_STATS("DOM.Notification.addEventListener()"); 52 Notification* notification = V8Notification::toNative(args.Holder()); local 54 RefPtr<EventListener> listener = V8DOMWrapper::getEventListener(notification, args[1], false, ListenerFindOrCreate); 58 notification->addEventListener(type, listener, useCapture); 67 INC_STATS("DOM.Notification.removeEventListener()"); 68 Notification* notification = V8Notification::toNative(args.Holder()); local 70 RefPtr<EventListener> listener = V8DOMWrapper::getEventListener(notification, args[1], false, ListenerFindOnly) 88 RefPtr<Notification> notification = notificationCenter->createHTMLNotification(url, ec); local 102 RefPtr<Notification> notification = notificationCenter->createNotification(toWebCoreString(args[0]), toWebCoreString(args[1]), toWebCoreString(args[2]), ec); local [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
AlertReceiver.java | 19 import android.app.Notification; 34 * BOOT_COMPLETED intent so that it can add a status bar notification 109 public static Notification makeNewAlertNotification(Context context, String title, 116 * Creates an alert notification. If high priority, this will attach a pending intent. 117 * Otherwise, it creates a standard notification. 119 public static Notification makeNewAlertNotification(Context context, 153 Notification notification = new Notification( local 157 notification.setLatestEventInfo(context [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationData.java | 19 import android.app.Notification; 33 public StatusBarNotification notification; field in class:NotificationData.Entry 60 public int add(IBinder key, StatusBarNotification notification, View row, View content, 64 entry.notification = notification; 69 final int index = chooseIndex(notification.notification.when); 90 if (entry.notification.notification.when > when) { 119 if ((entry.notification.notification.flags & Notification.FLAG_NO_CLEAR) == 0) [all...] |
CommandQueue.java | 61 StatusBarNotification notification; field in class:CommandQueue.NotificationQueueEntry 72 public void addNotification(IBinder key, StatusBarNotification notification); 73 public void updateNotification(IBinder key, StatusBarNotification notification); 101 public void addNotification(IBinder key, StatusBarNotification notification) { 105 ne.notification = notification; 110 public void updateNotification(IBinder key, StatusBarNotification notification) { 114 ne.notification = notification; 178 mCallbacks.addNotification(ne.key, ne.notification); [all...] |
Ticker.java | 53 StatusBarNotification notification; field in class:Ticker.Segment 130 this.notification = n; 171 // a notification storm). 174 if (n.pkg.equals(seg.notification.pkg) 175 && n.notification.icon == seg.notification.notification.icon 176 && n.notification.iconLevel == seg.notification.notification.iconLeve [all...] |
/packages/apps/Browser/src/com/android/browser/ |
WebStorageSizeManager.java | 19 import android.app.Notification; 81 * a system notification that will guide the user to the WebSettings UI. There, 100 // The system status bar notification id. 102 // The time of the last out of space notification 104 // Delay between two notification in ms 106 // Delay in ms used when resetting the notification time 240 // We only fire the notification if there are some other websites 244 // the notification would not help at all since there is nothing 322 // We only fire the notification if there are some other websites 326 // the notification would not help at all since there is nothin 409 Notification notification = new Notification(icon, title, when); local [all...] |
/packages/apps/Phone/src/com/android/phone/ |
EmergencyCallbackModeService.java | 19 import android.app.Notification; 44 * Application service that inserts/removes Emergency Callback Mode notification and 45 * updates Emergency Callback Mode countdown clock in the notification 101 // Unregister ECM timer reset notification 104 // Cancel the notification and timer 133 * Start timer notification for Emergency Callback Mode 140 // Show the notification 143 // Start countdown timer for the notification updates 161 * Shows notification for Emergency Callback Mode 166 Notification notification = new Notification local [all...] |
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/ |
FixVibrateSetting.java | 20 import android.app.Notification; 96 String notification = getSettingValue(AudioManager.VIBRATE_TYPE_NOTIFICATION); local 97 String text = getString(R.string.current_setting, ringer, notification); 112 Notification n = new Notification(R.drawable.stat_sys_warning, "Test notification", 116 n.setLatestEventInfo(this, "Test notification", "Test notification", pending); 119 n.flags |= Notification.FLAG_AUTO_CANCEL;
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
FakeSystemFacade.java | 3 import android.app.Notification; 23 Map<Long,Notification> mActiveNotifications = new HashMap<Long,Notification>(); 24 List<Notification> mCanceledNotifications = new ArrayList<Notification>(); 62 public void postNotification(long id, Notification notification) { 63 if (notification == null) { 64 throw new AssertionFailedError("Posting null notification"); 66 mActiveNotifications.put(id, notification); 71 Notification notification = mActiveNotifications.remove(id); local [all...] |
/frameworks/base/services/java/com/android/server/ |
DeviceStorageMonitorService.java | 20 import android.app.Notification; 47 * default 10%) a low memory notification is displayed to alert the 48 * user. If the user clicks on the low memory notification the 107 * notification if the device runs low on disk space 228 Slog.i(TAG, "Running low on memory. Sending notification"); 234 "notification already sent. do nothing"); 238 Slog.i(TAG, "Memory available. Cancelling notification"); 328 * This method sends a notification to NotificationManager to display 333 if(localLOGV) Slog.i(TAG, "Sending low memory notification"); 348 Notification notification = new Notification() local [all...] |
/hardware/ti/omap3/omx/system/src/openmax_il/lcml/src/ |
LCML_DspCodec.c | 188 * The memory is allocated and the dsp node is created. Add notification object 413 struct DSP_NOTIFICATION* notification; local 416 LCML_MALLOC(notification,sizeof(struct DSP_NOTIFICATION),struct DSP_NOTIFICATION) 417 if(notification == NULL) 422 memset(notification, 0, sizeof(struct DSP_NOTIFICATION)); 424 status = DSPNode_RegisterNotify(phandle->dspCodec->hNode, DSP_NODEMESSAGEREADY, DSP_SIGNALEVENT, notification); 426 phandle->g_aNotificationObjects[0] = notification; 512 * The memory is allocated and the dsp node is created. Add notification object 722 struct DSP_NOTIFICATION* notification; local 725 LCML_MALLOC(notification,sizeof(struct DSP_NOTIFICATION),struct DSP_NOTIFICATION) [all...] |
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityEndToEndTest.java | 25 import android.app.Notification; 335 // create the notification to send 337 Notification notification = new Notification(); local 338 notification.icon = android.R.drawable.stat_notify_call_mute; 339 notification.contentIntent = PendingIntent.getActivity(getActivity(), 0, new Intent(), 341 notification.tickerText = message; 342 notification.setLatestEventInfo(getActivity(), "", "", notification.contentIntent) [all...] |