Lines Matching refs:id

42  * Each of the notify methods takes an int id parameter and optionally a
44 * are used to form a pair (tag, id), or ({@code null}, id) if tag is
47 * of the notify methods with a (tag, id) pair that is currently active and
50 * be replaced with the new one. This is also the same tag and id you pass
98 * the same id has already been posted by your application and has not yet been canceled, it
101 * @param id An identifier for this notification unique within your
106 public void notify(int id, Notification notification)
108 notify(null, id, notification);
113 * the same tag and id has already been posted by your application and has not yet been
117 * @param id An identifier for this notification. The pair (tag, id) must be unique
122 public void notify(String tag, int id, Notification notification)
130 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")");
132 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut,
134 if (id != idOut[0]) {
135 Log.w(TAG, "notify: id corrupted: sent " + id + ", got back " + idOut[0]);
144 public void notifyAsUser(String tag, int id, Notification notification, UserHandle user)
152 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")");
154 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut,
156 if (id != idOut[0]) {
157 Log.w(TAG, "notify: id corrupted: sent " + id + ", got back " + idOut[0]);
168 public void cancel(int id)
170 cancel(null, id);
178 public void cancel(String tag, int id)
182 if (localLOGV) Log.v(TAG, pkg + ": cancel(" + id + ")");
184 service.cancelNotificationWithTag(pkg, tag, id, UserHandle.myUserId());
192 public void cancelAsUser(String tag, int id, UserHandle user)
196 if (localLOGV) Log.v(TAG, pkg + ": cancel(" + id + ")");
198 service.cancelNotificationWithTag(pkg, tag, id, user.getIdentifier());