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

1 2

  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
NotificationGroupManager.java 51 public boolean isGroupExpanded(StatusBarNotification sbn) {
52 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
59 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) {
60 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
83 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal
87 final StatusBarNotification sbn) {
88 String groupKey = getGroupKey(sbn);
97 if (isGroupChild(sbn)) {
111 final StatusBarNotification sbn = added.notification; local
112 boolean isGroupChild = isGroupChild(sbn);
373 final StatusBarNotification sbn = entry.notification; local
379 mIsolatedEntries.put(sbn.getKey(), sbn); local
403 StatusBarNotification sbn = entry.notification; local
    [all...]
  /frameworks/base/packages/ExtServices/src/android/ext/services/notification/
Ranker.java 52 public Adjustment onNotificationEnqueued(StatusBarNotification sbn, int importance,
54 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey());
59 public void onNotificationPosted(StatusBarNotification sbn) {
60 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey());
63 if (!sbn.isAppGroup()) {
68 = mUnbundledNotifications.get(sbn.getUserId());
72 mUnbundledNotifications.put(sbn.getUserId(), unbundledNotificationsByUser);
74 = unbundledNotificationsByUser.get(sbn.getPackageName());
79 notificationsForPackage.add(sbn.getKey());
80 unbundledNotificationsByUser.put(sbn.getPackageName(), notificationsForPackage)
    [all...]
  /frameworks/base/services/core/java/com/android/server/notification/
NotificationRecord.java 60 final StatusBarNotification sbn; field in class:NotificationRecord
105 public NotificationRecord(Context context, StatusBarNotification sbn)
107 this.sbn = sbn;
108 mOriginalFlags = sbn.getNotification().flags;
110 mCreationTimeMs = sbn.getPostTime();
118 final Notification n = sbn.getNotification();
179 if (previous.sbn.getOverrideGroupKey() != null && !sbn.isAppGroup()) {
180 sbn.setOverrideGroupKey(previous.sbn.getOverrideGroupKey())
    [all...]
ImportanceExtractor.java 46 mConfig.getImportance(record.sbn.getPackageName(), record.sbn.getUid()));
NotificationComparator.java 43 final int leftPriority = left.sbn.getNotification().priority;
44 final int rightPriority = right.sbn.getNotification().priority;
PriorityExtractor.java 46 mConfig.getPriority(record.sbn.getPackageName(), record.sbn.getUid()));
VisibilityExtractor.java 46 mConfig.getVisibilityOverride(record.sbn.getPackageName(), record.sbn.getUid()));
NotificationManagerService.java 538 StatusBarNotification sbn = r.sbn;
539 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(),
540 sbn.getId(), Notification.FLAG_AUTO_CANCEL,
2414 final StatusBarNotification sbn = iter.next(); local
2755 StatusBarNotification sbn = r.sbn; local
3856 final StatusBarNotification sbn = r.sbn; local
    [all...]
ZenModeFiltering.java 98 return record != null && record.sbn != null && record.sbn.getNotification() != null
99 ? record.sbn.getNotification().extras : null;
199 return record != null && (isDefaultPhoneApp(record.sbn.getPackageName())
220 return Objects.equals(defaultApp, record.sbn.getPackageName());
  /packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
Listener.java 99 public Delta(StatusBarNotification sbn, RankingMap rankingMap) {
100 mSbn = sbn;
206 StatusBarNotification sbn = sNotifications.get(mTmpRanking.getRank());
207 if ((sbn.getNotification().flags & Notification.FLAG_AUTO_CANCEL) != 0 &&
208 sbn.getNotification().contentIntent != null) {
210 sbn.getNotification().contentIntent.send();
212 Log.d(TAG, "failed to send intent for " + sbn.getKey(), e);
223 StatusBarNotification sbn = sNotifications.get(mTmpRanking.getRank());
224 if (sbn.getNotification().contentIntent != null) {
226 sbn.getNotification().contentIntent.send()
    [all...]
NotificationListenerActivity.java 150 StatusBarNotification sbn = (StatusBarNotification) tag; local
151 Log.d(TAG, " on " + sbn.getKey());
154 .putExtra(Listener.EXTRA_KEY, sbn.getKey()));
162 StatusBarNotification sbn = (StatusBarNotification) tag; local
163 Log.d(TAG, " on " + sbn.getKey());
166 .putExtra(Listener.EXTRA_KEY, sbn.getKey()));
212 final StatusBarNotification sbn = mNotifications.get(position); local
213 final String key = sbn.getKey();
228 StatusBarNotification sbn = mNotifications.get(position); local
234 if (sbn.getKey().equals(mUpdateKey))
    [all...]
  /platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
NotificationSecurityTests.java 67 for (StatusBarNotification sbn : sbns) {
68 Log.i(LOG_TAG, sbn.getNotification().extras.getString(Notification.EXTRA_TITLE));
69 if (sbn.getId() == NOTIFICATION_ID_PUBLIC) {
70 String sentTitle = sbn.getNotification().extras.getString(Notification.EXTRA_TITLE);
NotificationInteractionTests.java 94 for (StatusBarNotification sbn : sbns) {
95 Log.d(LOG_TAG, " " + sbn);
NotificationHelper.java 234 for (StatusBarNotification sbn : sbns) {
235 if (sbn.getId() == id) {
252 for (StatusBarNotification sbn : sbns) {
253 if (sbn.getId() == id) {
254 n = sbn;
  /cts/tests/app/src/android/app/cts/
NotificationManagerTest.java 63 for (StatusBarNotification sbn : sbns) {
64 if (sbn.getId() != id) {
66 + sbn.getKey());
89 for (StatusBarNotification sbn : sbns) {
90 Log.d(TAG, " " + sbn);
131 for (StatusBarNotification sbn : sbns) {
132 if (sbn.getId() == id) {
ServiceTest.java 193 for (StatusBarNotification sbn : sbns) {
194 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) {
196 sbn.getNotification().extras.getString(Notification.EXTRA_TITLE);
226 for (StatusBarNotification sbn : sbns) {
227 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) {
228 found = sbn;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
MockListener.java 217 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
218 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
219 Log.d(TAG, "posted: " + sbn.getTag());
220 mPosted.add(sbn.getTag());
223 notification.put(JSON_TAG, sbn.getTag());
224 notification.put(JSON_ID, sbn.getId());
225 notification.put(JSON_PACKAGE, sbn.getPackageName());
226 notification.put(JSON_WHEN, sbn.getNotification().when);
227 notification.put(JSON_ICON, sbn.getNotification().icon);
228 notification.put(JSON_FLAGS, sbn.getNotification().flags)
    [all...]
  /cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
MyNotificationListenerService.java 40 public void onNotificationPosted(StatusBarNotification sbn) {
41 Log.d(TAG, "onNotificationPosted(): " + sbn);
42 if (!sbn.getPackageName().startsWith(getPackageName())) {
47 final Notification notification = sbn.getNotification();
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
BaseStatusBar.java 607 for (StatusBarNotification sbn : notifications) {
608 addNotification(sbn, currentRanking, null /* oldEntry */);
615 public void onNotificationPosted(final StatusBarNotification sbn,
617 if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn);
618 if (sbn != null) {
622 processForRemoteInput(sbn.getNotification());
623 String key = sbn.getKey();
631 && mGroupManager.isChildInGroupWithSummary(sbn)) {
633 Log.d(TAG, "Ignoring group child due to existing summary: " + sbn);
645 updateNotification(sbn, rankingMap)
1074 final StatusBarNotification sbn = row.getStatusBarNotification(); local
    [all...]
NotificationData.java 360 StatusBarNotification sbn = entry.notification; local
362 if (shouldFilterOut(sbn)) {
373 boolean shouldFilterOut(StatusBarNotification sbn) {
375 showNotificationEvenIfUnprovisioned(sbn))) {
379 if (!mEnvironment.isNotificationForCurrentProfiles(sbn)) {
384 (sbn.getNotification().visibility == Notification.VISIBILITY_SECRET
385 || mEnvironment.shouldHideNotifications(sbn.getUserId())
386 || mEnvironment.shouldHideNotifications(sbn.getKey()))) {
391 && mGroupManager.isChildInGroupWithSummary(sbn)) {
414 public static boolean showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) {
    [all...]
NotificationGuts.java 177 void bindImportance(final PackageManager pm, final StatusBarNotification sbn,
184 mINotificationManager.getImportance(sbn.getPackageName(), sbn.getUid());
193 (nonBlockablePkgs != null && nonBlockablePkgs.contains(sbn.getPackageName()));
204 pm.getPackageInfo(sbn.getPackageName(), PackageManager.GET_SIGNATURES);
226 void saveImportance(final StatusBarNotification sbn) {
231 mINotificationManager.setImportance(sbn.getPackageName(), sbn.getUid(), progress);
  /frameworks/base/core/java/android/service/notification/
NotificationListenerService.java 219 * @param sbn A data structure encapsulating the original {@link android.app.Notification}
223 public void onNotificationPosted(StatusBarNotification sbn) {
230 * @param sbn A data structure encapsulating the original {@link android.app.Notification}
236 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
237 onNotificationPosted(sbn);
253 * @param sbn A data structure encapsulating at least the original information (tag and id)
257 public void onNotificationRemoved(StatusBarNotification sbn) {
274 * @param sbn A data structure encapsulating at least the original information (tag and id)
281 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {
282 onNotificationRemoved(sbn);
566 StatusBarNotification sbn = list.get(i); local
868 StatusBarNotification sbn; local
908 StatusBarNotification sbn; local
1438 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local
1446 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local
    [all...]
NotificationRankerService.java 134 * @param sbn the new notification
139 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn,
224 StatusBarNotification sbn; local
226 sbn = sbnHolder.get();
233 args.arg1 = sbn;
296 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local
300 Adjustment adjustment = onNotificationEnqueued(sbn, importance, user);
  /packages/apps/Settings/src/com/android/settings/notification/
NotificationStation.java 90 public void onNotificationPosted(StatusBarNotification sbn, RankingMap ranking) {
91 logd("onNotificationPosted: %s, with update for %d", sbn.getNotification(),
268 for (StatusBarNotification sbn : resultset) {
269 if (sbn.getUserId() != UserHandle.USER_ALL & sbn.getUserId() != currentUserId) {
273 final Notification n = sbn.getNotification();
275 info.pkg = sbn.getPackageName();
276 info.user = sbn.getUserId();
284 info.timestamp = sbn.getPostTime();
297 .append(sbn.getKey())
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
TvStatusBar.java 194 protected boolean isSnoozedPackage(StatusBarNotification sbn) {

Completed in 592 milliseconds

1 2