/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | StatusBarIconView.java | 135 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn) { argument 136 this(context, slot, sbn, false); 139 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn, argument 149 setNotification(sbn);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationInflater.java | 139 StatusBarNotification sbn = mRow.getEntry().notification; 140 new AsyncInflationTask(sbn, reInflateFlags, mRow, mIsLowPriority, 608 StatusBarNotification sbn = mRow.getStatusBarNotification(); 609 final String ident = sbn.getPackageName() + "/0x" 610 + Integer.toHexString(sbn.getId()); 612 mCallback.handleInflationException(sbn,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationGroupManager.java | 52 public boolean isGroupExpanded(StatusBarNotification sbn) { argument 53 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 60 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { argument 61 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 84 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal 88 final StatusBarNotification sbn) { 89 String groupKey = getGroupKey(sbn); 98 if (isGroupChild(sbn)) { 112 final StatusBarNotification sbn = added.notification; 113 boolean isGroupChild = isGroupChild(sbn); 87 onEntryRemovedInternal(NotificationData.Entry removed, final StatusBarNotification sbn) argument 211 isSummaryOfSuppressedGroup(StatusBarNotification sbn) argument 215 isOnlyChild(StatusBarNotification sbn) argument 220 isOnlyChildInGroup(StatusBarNotification sbn) argument 229 getTotalNumberOfChildren(StatusBarNotification sbn) argument 268 isChildInGroupWithSummary(StatusBarNotification sbn) argument 288 isSummaryOfGroup(StatusBarNotification sbn) argument 303 getGroupSummary(StatusBarNotification sbn) argument 312 getLogicalGroupSummary( StatusBarNotification sbn) argument 326 toggleGroupExpansion(StatusBarNotification sbn) argument 335 isIsolated(StatusBarNotification sbn) argument 339 isGroupSummary(StatusBarNotification sbn) argument 346 isGroupChild(StatusBarNotification sbn) argument 353 getGroupKey(StatusBarNotification sbn) argument 433 shouldIsolate(StatusBarNotification sbn) argument [all...] |
H A D | StatusBar.java | 1690 StatusBarNotification sbn = entry.notification; 1693 .recoverBuilder(mContext, sbn.getNotification().clone()); 1694 CharSequence[] oldHistory = sbn.getNotification().extras 1711 newNotification.contentView = sbn.getNotification().contentView; 1712 newNotification.bigContentView = sbn.getNotification().bigContentView; 1713 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; 1715 StatusBarNotification newSbn = new StatusBarNotification(sbn.getPackageName(), 1716 sbn.getOpPkg(), 1717 sbn.getId(), sbn 2737 isSnoozedPackage(StatusBarNotification sbn) argument 5855 setNotificationSnoozed(StatusBarNotification sbn, SnoozeOption snoozeOption) argument 6270 bindRow(Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 6306 updateNotification(Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 6582 shouldAutoCancel(StatusBarNotification sbn) argument 6593 register(ExpandableNotificationRow row, StatusBarNotification sbn) argument 6669 createNotificationViews(StatusBarNotification sbn) argument 6761 shouldShowOnKeyguard(StatusBarNotification sbn) argument 6848 updatePublicContentView(Entry entry, StatusBarNotification sbn) argument 6879 shouldPeek(Entry entry, StatusBarNotification sbn) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | NotificationStackScrollLayout.java | 4354 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption) { argument 4355 mStatusBar.setNotificationSnoozed(sbn, snoozeOption);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
H A D | ForegroundServiceControllerTest.java | 271 final StatusBarNotification sbn = mock(StatusBarNotification.class); 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; 290 final StatusBarNotification sbn [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | NotificationInfoTest.java | 752 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 757 mNotificationChannel.getImportance(), sbn, null, 783 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 788 mNotificationChannel.getImportance(), sbn, null, (View v, Intent intent) -> { 804 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 809 mNotificationChannel.getImportance(), sbn, null, null, null, 826 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 831 mNotificationChannel.getImportance(), sbn, null, null, null, 850 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 855 mNotificationChannel.getImportance(), sbn, nul [all...] |
H A D | NotificationTestHelper.java | 77 StatusBarNotification sbn = new StatusBarNotification("com.android.systemui", 80 NotificationData.Entry entry = new NotificationData.Entry(sbn); 82 entry.createIcons(mContext, sbn);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarTest.java | 292 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, 294 NotificationData.Entry entry = new NotificationData.Entry(sbn); 296 assertTrue(mStatusBar.shouldPeek(entry, sbn)); 313 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, 315 NotificationData.Entry entry = new NotificationData.Entry(sbn); 317 assertFalse(mStatusBar.shouldPeek(entry, sbn));
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | BadgeExtractor.java | 44 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser()); 46 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid()); 50 record.setShowBadge(mConfig.getNotificationChannel(record.sbn.getPackageName(), 51 record.sbn.getUid(), record.getChannel().getId(), false).canShowBadge()
|
H A D | GroupHelper.java | 48 public void onNotificationPosted(StatusBarNotification sbn) { argument 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); 76 adjustAutogroupingSummary(sbn.getUserId(), sbn 89 onNotificationRemoved(StatusBarNotification sbn) argument 100 maybeUngroup(StatusBarNotification sbn, boolean notificationGone, int userId) argument [all...] |
H A D | NotificationComparator.java | 109 final int leftPriority = left.sbn.getNotification().priority; 110 final int rightPriority = right.sbn.getNotification().priority; 150 return mMessagingUtil.isImportantMessaging(record.sbn, record.getImportance()); 164 && isDefaultPhoneApp(record.sbn.getPackageName());
|
H A D | NotificationManagerService.java | 575 StatusBarNotification sbn = r.sbn; 576 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(), 577 sbn.getId(), Notification.FLAG_AUTO_CANCEL, 742 cancelNotification(record.sbn.getUid(), record.sbn.getInitialPid(), 743 record.sbn.getPackageName(), record.sbn.getTag(), 744 record.sbn 4922 isVisibleToListener(StatusBarNotification sbn, ManagedServiceInfo listener) argument 4947 TrimCache(StatusBarNotification sbn) argument 5029 notifyEnqueued(final ManagedServiceInfo info, final StatusBarNotification sbn) argument 5045 notifyAssistantSnoozedLocked(final StatusBarNotification sbn, final String snoozeCriterionId) argument 5148 notifyPostedLocked(StatusBarNotification sbn, StatusBarNotification oldSbn) argument 5187 notifyRemovedLocked(StatusBarNotification sbn, int reason) argument 5299 notifyPosted(final ManagedServiceInfo info, final StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate) argument 5310 notifyRemoved(ManagedServiceInfo info, StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate, int reason) argument 5435 matches(StatusBarNotification sbn) argument [all...] |
H A D | NotificationRecord.java | 78 final StatusBarNotification sbn; field in class:NotificationRecord 136 public NotificationRecord(Context context, StatusBarNotification sbn, argument 139 this.sbn = sbn; 140 mOriginalFlags = sbn.getNotification().flags; 142 mCreationTimeMs = sbn.getPostTime(); 159 mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(), 160 0, UserHandle.getUserId(sbn.getUid())); 172 final Notification n = sbn.getNotification(); 208 final Notification notification = sbn [all...] |
H A D | NotificationUsageStats.java | 254 return getAggregatedStatsLocked(record.sbn.getPackageName()); 1065 writeEvent(r.sbn.getPostTime(), EVENT_TYPE_POST, r); 1203 cv.put(COL_EVENT_USER_ID, r.sbn.getUser().getIdentifier()); 1235 outCv.put(COL_KEY, r.sbn.getKey()); 1236 outCv.put(COL_PKG, r.sbn.getPackageName()); 1240 outCv.put(COL_NOTIFICATION_ID, r.sbn.getId()); 1241 if (r.sbn.getTag() != null) { 1242 outCv.put(COL_TAG, r.sbn.getTag()); 1244 outCv.put(COL_WHEN_MS, r.sbn.getPostTime());
|
H A D | 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; 169 if (Objects.equals(sbn.getTag(), tag) && sbn.getId() == id) { 229 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); 283 if (potentialGroupSummary.sbn [all...] |
H A D | 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());
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
H A D | BadgeExtractorTest.java | 73 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, 75 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
H A D | BuzzBeepBlinkTest.java | 279 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, id, mTag, mUid, 281 NotificationRecord r = new NotificationRecord(context, sbn, channel); 799 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, 0, mTag, mUid, 801 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
H A D | GroupHelperTest.java | 152 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); 153 posted.add(sbn); 154 mGroupHelper.onNotificationPosted(sbn); 179 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); 180 posted.add(sbn); 181 mGroupHelper.onNotificationPosted(sbn); 191 final StatusBarNotification sbn = 193 mGroupHelper.onNotificationPosted(sbn); 200 final StatusBarNotification sbn = 202 mGroupHelper.onNotificationPosted(sbn); [all...] |
H A D | ImportanceExtractorTest.java | 70 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, 72 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
H A D | NotificationManagerServiceTest.java | 174 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", uid, 0, 176 return new NotificationRecord(mContext, sbn, channel); 193 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", uid, 0, 195 return new NotificationRecord(mContext, sbn, channel); 293 final StatusBarNotification sbn = generateNotificationRecord(null).sbn; 295 sbn.getId(), sbn.getNotification(), sbn.getUserId()); 297 assertEquals(0, mBinderService.getActiveNotifications(sbn [all...] |
H A D | NotificationRecordTest.java | 188 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, 192 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 201 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, 205 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 215 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, 219 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 227 StatusBarNotification sbn = getNotification(true /*preO */, false /* noisy */, 231 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 240 StatusBarNotification sbn = getNotification(false /*preO */, true /* noisy */, 244 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channe [all...] |
H A D | SnoozeHelperTest.java | 79 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 89 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 99 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 101 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 103 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); 107 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 109 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 121 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 123 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 125 UserHandle.USER_ALL, r3.sbn [all...] |
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
H A D | NotificationSwipeActionHelper.java | 46 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption); argument
|