/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ForegroundServiceControllerImpl.java | 60 public void addNotification(StatusBarNotification sbn, int importance) { 61 updateNotification(sbn, importance); 65 public boolean removeNotification(StatusBarNotification sbn) { 67 final UserServices userServices = mUserServices.get(sbn.getUserId()); 72 sbn.getUserId(), sbn)); 76 if (isDungeonNotification(sbn)) { 83 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey()); 89 public void updateNotification(StatusBarNotification sbn, int newImportance) [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
GroupHelper.java | 48 public void onNotificationPosted(StatusBarNotification sbn, boolean autogroupSummaryExists) { 49 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); 52 if (!sbn.isAppGroup()) { 57 = mUngroupedNotifications.get(sbn.getUserId()); 61 mUngroupedNotifications.put(sbn.getUserId(), ungroupedNotificationsByUser); 63 = ungroupedNotificationsByUser.get(sbn.getPackageName()); 68 notificationsForPackage.add(sbn.getKey()); 69 ungroupedNotificationsByUser.put(sbn.getPackageName(), notificationsForPackage); 77 adjustAutogroupingSummary(sbn.getUserId(), sbn.getPackageName() [all...] |
NotificationChannelExtractor.java | 45 record.updateNotificationChannel(mConfig.getNotificationChannel(record.sbn.getPackageName(), 46 record.sbn.getUid(), record.getChannel().getId(), false));
|
SnoozeHelper.java | 133 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration); 149 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); 154 records.put(record.sbn.getPackageName(), pkgRecords); 156 mPackages.put(record.getKey(), record.sbn.getPackageName()); 168 final StatusBarNotification sbn = record.getValue().sbn; local 169 if (Objects.equals(sbn.getTag(), tag) && sbn.getId() == id) { 229 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); 283 if (potentialGroupSummary.sbn.isGroup( [all...] |
NotificationRecord.java | 81 final StatusBarNotification sbn; field in class:NotificationRecord 141 public NotificationRecord(Context context, StatusBarNotification sbn, 144 this.sbn = sbn; 145 mOriginalFlags = sbn.getNotification().flags; 147 mCreationTimeMs = sbn.getPostTime(); 165 mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(), 166 0, UserHandle.getUserId(sbn.getUid())); 178 final Notification n = sbn.getNotification(); 214 final Notification notification = sbn.getNotification() [all...] |
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
NotificationIntrusivenessExtractorTest.java | 47 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local 49 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 64 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local 67 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 82 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local 86 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
NotificationChannelExtractorTest.java | 63 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local 65 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
BadgeExtractorTest.java | 73 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, local 75 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
GroupHelperTest.java | 160 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); local 161 posted.add(sbn); 162 mGroupHelper.onNotificationPosted(sbn, false); 187 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); local 188 posted.add(sbn); 189 mGroupHelper.onNotificationPosted(sbn, false); 199 final StatusBarNotification sbn = local 201 mGroupHelper.onNotificationPosted(sbn, false); 208 final StatusBarNotification sbn = local 210 mGroupHelper.onNotificationPosted(sbn, false) 222 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); local 247 final StatusBarNotification sbn = getSbn(pkg, 5, String.valueOf(5), UserHandle.SYSTEM); local [all...] |
ImportanceExtractorTest.java | 70 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, local 72 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
NotificationAdjustmentExtractorTest.java | 111 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local 113 return new NotificationRecord(getContext(), sbn, channel);
|
NotificationRecordTest.java | 188 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, local 192 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 201 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, local 205 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 215 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, local 219 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 227 StatusBarNotification sbn = getNotification(true /*preO */, false /* noisy */, local 231 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 240 StatusBarNotification sbn = getNotification(false /*preO */, true /* noisy */, local 244 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel) 253 StatusBarNotification sbn = getNotification(true \/*preO *\/, false \/* noisy *\/, local 265 StatusBarNotification sbn = getNotification(true \/*preO *\/, false \/* noisy *\/, local 278 StatusBarNotification sbn = getNotification(true \/*preO *\/, false \/* noisy *\/, local 290 StatusBarNotification sbn = getNotification(false \/*preO *\/, false \/* noisy *\/, local 300 StatusBarNotification sbn = getNotification(true \/*preO *\/, true \/* noisy *\/, local 311 StatusBarNotification sbn = getNotification(true \/*preO *\/, true \/* noisy *\/, local 323 StatusBarNotification sbn = getNotification(true \/*preO *\/, true \/* noisy *\/, local 333 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 342 StatusBarNotification sbn = getNotification(true \/*preO *\/, true \/* noisy *\/, local 352 StatusBarNotification sbn = getNotification(true \/*preO *\/, true \/* noisy *\/, local 363 StatusBarNotification sbn = getNotification(true \/*preO *\/, true \/* noisy *\/, local 382 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 398 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 407 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 416 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 429 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 440 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 449 StatusBarNotification sbn = getNotification(false \/*reO *\/, true \/* noisy *\/, local 459 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local 470 StatusBarNotification sbn = getNotification(false \/*preO *\/, true \/* noisy *\/, local [all...] |
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
MessagingNotificationHandler.java | 47 StatusBarNotification sbn = (StatusBarNotification) msg.obj; local 48 Notification notification = sbn.getNotification(); 54 if (MessagingConverter.canConvert(sbn)) { 55 MessageContactDetails data = MessagingConverter.convert(sbn); 59 Log.w(TAG, "Can't convert message: " + sbn);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
NotificationTestHelper.java | 85 StatusBarNotification sbn = new StatusBarNotification("com.android.systemui", local 88 NotificationData.Entry entry = new NotificationData.Entry(sbn); 90 entry.createIcons(mContext, sbn);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
MockListener.java | 145 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { 146 if (!mTestPackages.contains(sbn.getPackageName())) { return; } 147 Log.d(TAG, "posted: " + sbn.getTag()); 148 mPosted.add(sbn.getTag()); 149 mPostedNotifications.add(sbn.getNotification()); 152 notification.put(JSON_TAG, sbn.getTag()); 153 notification.put(JSON_ID, sbn.getId()); 154 notification.put(JSON_PACKAGE, sbn.getPackageName()); 155 notification.put(JSON_WHEN, sbn.getNotification().when); 156 notification.put(JSON_ICON, sbn.getNotification().icon) [all...] |
NotificationListenerVerifierActivity.java | 740 for (StatusBarNotification sbn : snoozed) { 741 result.add(sbn.getTag()); 816 for (StatusBarNotification sbn : snoozed) { 817 result.add(sbn.getTag());
|
/frameworks/base/core/java/android/service/notification/ |
NotificationAssistantService.java | 75 * @param sbn the notification to snooze 78 abstract public void onNotificationSnoozedUntilContext(StatusBarNotification sbn, 84 * @param sbn the new notification 87 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn); 144 StatusBarNotification sbn; local 146 sbn = sbnHolder.get(); 153 args.arg1 = sbn; 162 StatusBarNotification sbn; local 164 sbn = sbnHolder.get(); 171 args.arg1 = sbn; 191 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local 208 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local [all...] |
NotificationListenerService.java | 299 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 303 public void onNotificationPosted(StatusBarNotification sbn) { 310 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 316 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { 317 onNotificationPosted(sbn); 333 * @param sbn A data structure encapsulating at least the original information (tag and id) 337 public void onNotificationRemoved(StatusBarNotification sbn) { 354 * @param sbn A data structure encapsulating at least the original information (tag and id) 361 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { 362 onNotificationRemoved(sbn); 864 StatusBarNotification sbn = list.get(i); local 1164 StatusBarNotification sbn; local 1204 StatusBarNotification sbn; local 1827 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local 1835 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
NotificationGroupManager.java | 53 public boolean isGroupExpanded(StatusBarNotification sbn) { 54 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 61 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { 62 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 85 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal 89 final StatusBarNotification sbn) { 90 String groupKey = getGroupKey(sbn); 99 if (isGroupChild(sbn)) { 116 final StatusBarNotification sbn = added.notification; local 117 boolean isGroupChild = isGroupChild(sbn); 388 final StatusBarNotification sbn = entry.notification; local 394 mIsolatedEntries.put(sbn.getKey(), sbn); local 418 StatusBarNotification sbn = entry.notification; local [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
ForegroundServiceControllerTest.java | 271 final StatusBarNotification sbn = mock(StatusBarNotification.class); local 272 when(sbn.getNotification()).thenReturn(n); 273 when(sbn.getId()).thenReturn(id); 274 when(sbn.getPackageName()).thenReturn(pkg); 275 when(sbn.getTag()).thenReturn(null); 276 when(sbn.getUserId()).thenReturn(userid); 277 when(sbn.getUser()).thenReturn(new UserHandle(userid)); 278 when(sbn.getKey()).thenReturn("MOCK:"+userid+"|"+pkg+"|"+id+"|"+tag); 279 return sbn; 291 final StatusBarNotification sbn = makeMockSBN(userid, "android" local [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
StatusBarTest.java | 325 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, local 327 NotificationData.Entry entry = new NotificationData.Entry(sbn); 329 assertTrue(mStatusBar.shouldPeek(entry, sbn)); 346 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, local 348 NotificationData.Entry entry = new NotificationData.Entry(sbn); 350 assertFalse(mStatusBar.shouldPeek(entry, sbn)); 366 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, local 368 NotificationData.Entry entry = new NotificationData.Entry(sbn); 370 assertTrue(mStatusBar.shouldPeek(entry, sbn)); 386 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n local 404 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, local 423 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, local [all...] |
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/ |
NotificationListenerActivity.java | 186 StatusBarNotification sbn = (StatusBarNotification) tag; local 187 Log.d(TAG, " on " + sbn.getKey()); 190 .putExtra(Listener.EXTRA_KEY, sbn.getKey())); 198 StatusBarNotification sbn = (StatusBarNotification) tag; local 199 Log.d(TAG, " on " + sbn.getKey()); 202 .putExtra(Listener.EXTRA_KEY, sbn.getKey())); 241 final StatusBarNotification sbn = mNotifications.get(position); local 242 final String key = sbn.getKey(); 259 StatusBarNotification sbn = mNotifications.get(position); local 264 if (sbn.getKey().equals(mUpdateKey)) [all...] |
/cts/tests/app/src/android/app/cts/ |
NotificationManagerTest.java | 323 for (StatusBarNotification sbn : sbns) { 324 if (sbn.getId() != id) { 326 + sbn.getKey()); 349 for (StatusBarNotification sbn : sbns) { 350 Log.d(TAG, " " + sbn); 607 for (StatusBarNotification sbn : sbns) { 608 if (isGroupSummary(sbn.getNotification()) 609 || autoGroupedIds.contains(sbn.getId())) { 610 assertTrue(sbn.getKey() + " is unexpectedly not autogrouped", 611 sbn.getOverrideGroupKey() != null) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationData.java | 136 * @param sbn the notification 139 public void createIcons(Context context, StatusBarNotification sbn) 141 Notification n = sbn.getNotification(); 145 + sbn.getPackageName()); 150 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 155 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 494 StatusBarNotification sbn = entry.notification; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
NotificationInflater.java | 139 StatusBarNotification sbn = mRow.getEntry().notification; local 140 new AsyncInflationTask(sbn, reInflateFlags, mRow, mIsLowPriority, 615 StatusBarNotification sbn = mRow.getStatusBarNotification(); local 616 final String ident = sbn.getPackageName() + "/0x" 617 + Integer.toHexString(sbn.getId()); 619 mCallback.handleInflationException(sbn,
|