Home | History | Annotate | Download | only in server

Lines Matching defs:userid

210         int userid;
215 int userid, boolean isSystem) {
218 this.userid = userid;
224 int userid, ServiceConnection connection) {
227 this.userid = userid;
237 if (this.userid == UserHandle.USER_ALL) return true;
238 return (nid == UserHandle.USER_ALL || nid == this.userid);
265 unregisterListener(this.listener, this.userid);
317 final Iterator<StatusBarNotification> iter, final String pkg, final int userId) {
325 && (userId == UserHandle.USER_ALL || nr.getUserId() == userId)) {
366 public StatusBarNotification[] getArray(int count, String pkg, int userId) {
370 Iterator<StatusBarNotification> iter = filter(descendingIterator(), pkg, userId);
641 final int oldUser = info.userid;
643 unregisterListenerService(component, info.userid);
663 final ComponentName component, final int userid) {
669 = new NotificationListenerInfo(listener, component, userid, true);
684 private void registerListenerService(final ComponentName name, final int userid) {
687 if (DBG) Slog.v(TAG, "registerListenerService: " + name + " u=" + userid);
690 final String servicesBindingTag = name.toString() + "/" + userid;
701 && info.userid == userid) {
731 mListener, name, userid, this);
746 new UserHandle(userid)))
763 public void unregisterListener(INotificationListener listener, int userid) {
772 && info.userid == userid) {
785 private void unregisterListenerService(ComponentName name, int userid) {
793 && info.userid == userid) {
864 cancelAll(info.userid);
884 info.userid);
933 pw.println(prefix + " uid=" + sbn.getUid() + " userId=" + sbn.getUserId());
1621 Notification notification, int[] idOut, int userId)
1624 tag, id, notification, idOut, userId);
1644 final int userId = ActivityManager.handleIncomingUser(callingPid,
1646 final UserHandle user = new UserHandle(userId);
1656 if (r.sbn.getPackageName().equals(pkg) && r.sbn.getUserId() == userId) {
1672 EventLog.writeEvent(EventLogTags.NOTIFICATION_ENQUEUE, pkg, id, tag, userId,
1759 int index = indexOfNotificationLocked(pkg, tag, id, userId);
1811 if (currentUser == userId) {
1840 (r.getUserId() == userId && r.getUserId() == currentUser))
2058 final int userId) {
2066 EventLog.writeEvent(EventLogTags.NOTIFICATION_CANCEL, pkg, id, tag, userId,
2070 int index = indexOfNotificationLocked(pkg, tag, id, userId);
2092 * Determine whether the userId applies to the notification in question, either because
2095 private boolean notificationMatchesUserId(NotificationRecord r, int userId) {
2098 userId == UserHandle.USER_ALL
2102 || r.getUserId() == userId;
2110 int mustNotHaveFlags, boolean doit, int userId) {
2111 EventLog.writeEvent(EventLogTags.NOTIFICATION_CANCEL_ALL, pkg, userId,
2119 if (!notificationMatchesUserId(r, userId)) {
2149 public void cancelNotificationWithTag(String pkg, String tag, int id, int userId) {
2151 userId = ActivityManager.handleIncomingUser(Binder.getCallingPid(),
2152 Binder.getCallingUid(), userId, true, false, "cancelNotificationWithTag", pkg);
2156 ? 0 : Notification.FLAG_FOREGROUND_SERVICE, false, userId);
2159 public void cancelAllNotifications(String pkg, int userId) {
2162 userId = ActivityManager.handleIncomingUser(Binder.getCallingPid(),
2163 Binder.getCallingUid(), userId, true, false, "cancelAllNotifications", pkg);
2167 cancelAllNotificationsInt(pkg, 0, Notification.FLAG_FOREGROUND_SERVICE, true, userId);
2206 void cancelAll(int userId) {
2212 if (!notificationMatchesUserId(r, userId)) {
2261 private int indexOfNotificationLocked(String pkg, String tag, int id, int userId)
2267 if (!notificationMatchesUserId(r, userId) || r.sbn.getId() != id) {
2314 + " (user " + info.userid + "): " + info.listener