HomeSort by relevance Sort by last modified time
    Searched refs:notificationManager (Results 1 - 25 of 37) sorted by null

1 2

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
NotificationManagerTest.java 4 import android.app.NotificationManager;
18 private NotificationManager notificationManager;
23 notificationManager = (NotificationManager) Robolectric.application.getSystemService(Context.NOTIFICATION_SERVICE);
28 notificationManager.notify(1, notification1);
29 assertEquals(1, shadowOf(notificationManager).size());
30 assertEquals(notification1, shadowOf(notificationManager).getNotification(1));
32 notificationManager.notify(31, notification2);
33 assertEquals(2, shadowOf(notificationManager).size())
    [all...]
  /frameworks/support/v4/eclair/android/support/v4/app/
NotificationManagerCompatEclair.java 20 import android.app.NotificationManager;
23 static void cancelNotification(NotificationManager notificationManager, String tag,
25 notificationManager.cancel(tag, id);
28 public static void postNotification(NotificationManager notificationManager, String tag, int id,
30 notificationManager.notify(tag, id, notification);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
WorkNotificationTestActivity.java 21 import android.app.NotificationManager;
41 final NotificationManager notificationManager = (NotificationManager)
50 notificationManager.notify(NOTIFICATION_ID, notification);
52 notificationManager.cancel(NOTIFICATION_ID);
  /developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/
MessageReadReceiver.java 19 import android.app.NotificationManager;
38 NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
39 notificationManager.cancel(conversationId);
  /developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/
MessageReadReceiver.java 19 import android.app.NotificationManager;
38 NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
39 notificationManager.cancel(conversationId);
  /development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
MessageReadReceiver.java 19 import android.app.NotificationManager;
38 NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
39 notificationManager.cancel(conversationId);
  /developers/build/prebuilts/gradle/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/
MainActivity.java 4 import android.app.NotificationManager;
96 NotificationManager notificationManager = (NotificationManager) getSystemService(
98 notificationManager.notify(NOTIFICATION_ID, builder.build());
  /developers/samples/android/notification/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/
MainActivity.java 4 import android.app.NotificationManager;
96 NotificationManager notificationManager = (NotificationManager) getSystemService(
98 notificationManager.notify(NOTIFICATION_ID, builder.build());
  /development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/
MainActivity.java 4 import android.app.NotificationManager;
96 NotificationManager notificationManager = (NotificationManager) getSystemService(
98 notificationManager.notify(NOTIFICATION_ID, builder.build());
  /packages/apps/Settings/src/com/android/settings/sim/
SimBootReceiver.java 22 import android.app.NotificationManager;
135 NotificationManager notificationManager =
136 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
137 notificationManager.notify(NOTIFICATION_ID, builder.build());
141 NotificationManager notificationManager =
142 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
143 notificationManager.cancel(NOTIFICATION_ID);
  /packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/
DialogSmsDisplay.java 22 import android.app.NotificationManager;
67 NotificationManager notificationManager =
68 (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
69 notificationManager.cancel(notificationId);
SmsMessageReceiver.java 20 import android.app.NotificationManager;
67 NotificationManager notificationManager =
68 (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
70 notificationManager.notify(notificationId, notification.getNotification());
  /frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
StorageNotification.java 20 import android.app.NotificationManager;
280 NotificationManager notificationManager = (NotificationManager) mContext
283 if (notificationManager == null) {
339 notificationManager.notifyAsUser(null, notificationId, mUsbStorageNotification,
342 notificationManager.cancelAsUser(null, notificationId, UserHandle.ALL);
365 NotificationManager notificationManager = (NotificationManager) mContex
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
BootReminder.java 23 import android.app.NotificationManager;
161 final NotificationManager notificationManager = (NotificationManager)
164 notificationManager.cancel(NOTIFY_ID);
178 notificationManager.notify(NOTIFY_ID, notify.build());
  /frameworks/support/v4/java/android/support/v4/app/
NotificationManagerCompat.java 20 import android.app.NotificationManager;
48 * Compatibility library for NotificationManager with fallbacks for older platforms.
95 private final NotificationManager mNotificationManager;
108 mNotificationManager = (NotificationManager) mContext.getSystemService(
115 void cancelNotification(NotificationManager notificationManager, String tag, int id);
117 void postNotification(NotificationManager notificationManager, String tag, int id,
125 public void cancelNotification(NotificationManager notificationManager, String tag
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/calllog/
DefaultVoicemailNotifier.java 20 import android.app.NotificationManager;
59 private final NotificationManager mNotificationManager;
67 NotificationManager notificationManager =
68 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
70 sInstance = new DefaultVoicemailNotifier(context, notificationManager,
79 NotificationManager notificationManager, NewCallsQuery newCallsQuery,
82 mNotificationManager = notificationManager;
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiNotificationController.java 20 import android.app.NotificationManager;
44 * be the ID of the Notification given to the NotificationManager.
66 * The Notification object given to the NotificationManager.
221 NotificationManager notificationManager = (NotificationManager) mContext
255 notificationManager.notifyAsUser(null, ICON_NETWORKS_AVAILABLE, mNotification,
258 notificationManager.cancelAsUser(null, ICON_NETWORKS_AVAILABLE, UserHandle.ALL);
  /packages/apps/DeskClock/src/com/android/deskclock/timer/
TimerReceiver.java 21 import android.app.NotificationManager;
350 NotificationManager notificationManager =
351 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
352 notificationManager.notify(notificationId, notification);
412 NotificationManager notificationManager =
413 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
414 notificationManager.cancel(IN_USE_NOTIFICATION_ID);
471 ((NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE)).notify
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
BluetoothPermissionRequest.java 20 import android.app.NotificationManager;
163 NotificationManager notificationManager =
164 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
166 notificationManager.notify(getNotificationTag(mRequestType), NOTIFICATION_ID,
171 NotificationManager manager = (NotificationManager) context
  /frameworks/base/location/java/com/android/internal/location/
GpsNetInitiatedHandler.java 22 import android.app.NotificationManager;
357 NotificationManager notificationManager = (NotificationManager) mContext
359 if (notificationManager == null) {
393 notificationManager.notifyAsUser(null, notif.notificationId, mNiNotification,
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
MainActivity.java 32 import android.app.NotificationManager;
261 final NotificationManager notificationManager = (NotificationManager) getSystemService(
299 notificationManager.notify(NOTIFICATION_DEFAULT, builder.getNotification());
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertFullScreen.java 21 import android.app.NotificationManager;
327 NotificationManager notificationManager =
328 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
329 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID);
CellBroadcastAlertService.java 21 import android.app.NotificationManager;
403 NotificationManager notificationManager =
404 (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
406 notificationManager.notify(NOTIFICATION_ID, builder.build());
  /cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityEndToEndTest.java 22 import android.app.NotificationManager;
341 NotificationManager notificationManager =
342 (NotificationManager) getActivity().getSystemService(
344 notificationManager.notify(notificationId, notification);
  /packages/apps/Email/src/com/android/email/
EmailNotificationController.java 21 import android.app.NotificationManager;
81 private final NotificationManager mNotificationManager;
92 mNotificationManager = (NotificationManager) context.getSystemService(
293 * for the specified account. Use {@link NotificationManager#cancel(int)}.
586 final NotificationManager notificationManager = getInstance(context).mNotificationManager;
588 notificationManager.cancel((int) (NOTIFICATION_ID_BASE_LOGIN_WARNING + account.mId));
589 notificationManager.cancel((int) (NOTIFICATION_ID_BASE_SECURITY_NEEDED + account.mId));
590 notificationManager.cancel((int) (NOTIFICATION_ID_BASE_SECURITY_CHANGED + account.mId));
    [all...]

Completed in 443 milliseconds

1 2