/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | NotificationListenerController.java | 18 import android.service.notification.StatusBarNotification; 33 default boolean onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() 36 default boolean onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() 40 default StatusBarNotification[] getActiveNotifications( in getActiveNotifications() 41 StatusBarNotification[] activeNotifications) { in getActiveNotifications() 54 StatusBarNotification[] getActiveNotifications(); in getActiveNotifications() 58 void addNotification(StatusBarNotification sbn); in addNotification() 59 void removeNotification(StatusBarNotification sbn); in removeNotification()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ForegroundServiceControllerTest.java | 24 import android.service.notification.StatusBarNotification; 53 StatusBarNotification sbn_user1_app1_fg = makeMockFgSBN(USERID_ONE, "com.example.app1"); in testNotificationCRUD() 54 StatusBarNotification sbn_user2_app2_fg = makeMockFgSBN(USERID_TWO, "com.example.app2"); in testNotificationCRUD() 55 StatusBarNotification sbn_user1_app3_fg = makeMockFgSBN(USERID_ONE, "com.example.app3"); in testNotificationCRUD() 56 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, "com.example.app1", in testNotificationCRUD() 58 StatusBarNotification sbn_user2_app1 = makeMockSBN(USERID_TWO, "com.example.app1", in testNotificationCRUD() 102 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, "com.example.app1", in testDungeonPredicate() 104 StatusBarNotification sbn_user1_dungeon = makeMockSBN(USERID_ONE, "android", in testDungeonPredicate() 114 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, "com.example.app1", in testDungeonCRUD() 116 StatusBarNotification sbn_user1_dungeon = makeMockSBN(USERID_ONE, "android", in testDungeonCRUD() [all …]
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | NotificationRecordTest.java | 43 import android.service.notification.StatusBarNotification; 120 private StatusBarNotification getNotification(boolean preO, boolean noisy, boolean defaultSound, in getNotification() 172 return new StatusBarNotification(pkg, pkg, id1, tag1, uid, uid, n, in getNotification() 175 return new StatusBarNotification(pkg2, pkg2, id2, tag2, uid2, uid2, n, in getNotification() 188 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, in testSound_default_preUpgradeUsesNotification() 201 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, in testSound_custom_preUpgradeUsesNotification() 215 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, in testSound_default_userLocked_preUpgrade() 227 StatusBarNotification sbn = getNotification(true /*preO */, false /* noisy */, in testSound_noSound_preUpgrade() 240 StatusBarNotification sbn = getNotification(false /*preO */, true /* noisy */, in testSound_default_upgradeUsesChannel() 253 StatusBarNotification sbn = getNotification(true /*preO */, false /* noisy */, in testVibration_default_preUpgradeUsesNotification() [all …]
|
D | NotificationIntrusivenessExtractorTest.java | 33 import android.service.notification.StatusBarNotification; 47 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testNonIntrusive() 64 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testIntrusive_fillScreen() 82 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testOldNotificationsNotIntrusive()
|
D | GlobalSortKeyComparatorTest.java | 27 import android.service.notification.StatusBarNotification; 51 new StatusBarNotification(PKG, in testComparator() 58 new StatusBarNotification(PKG, in testComparator() 65 new StatusBarNotification(PKG, in testComparator() 90 new StatusBarNotification(PKG, in testNoCrash_leftNull() 96 new StatusBarNotification(PKG, in testNoCrash_leftNull() 120 new StatusBarNotification(PKG, in testNoCrash_rightNull() 127 new StatusBarNotification(PKG, in testNoCrash_rightNull()
|
D | NotificationComparatorTest.java | 36 import android.service.notification.StatusBarNotification; 106 mRecordMinCall = new NotificationRecord(mContext, new StatusBarNotification(callPkg, in setUp() 116 mRecordHighCall = new NotificationRecord(mContext, new StatusBarNotification(callPkg, in setUp() 125 mRecordDefaultMedia = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp() 132 mRecordInlineReply = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp() 140 mRecordSms = new NotificationRecord(mContext, new StatusBarNotification(smsPkg, in setUp() 146 mRecordStarredContact = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp() 153 mRecordContact = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp() 160 mRecordUrgent = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp() 170 mRecordCheater = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp() [all …]
|
D | GroupHelperTest.java | 37 import android.service.notification.StatusBarNotification; 60 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() 68 return new StatusBarNotification(pkg, pkg, id, tag, 0, 0, nb.build(), user, null, in getSbn() 72 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() 158 List<StatusBarNotification> posted = new ArrayList<>(); in testDropToZeroRemoveGroup() 160 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testDropToZeroRemoveGroup() 185 List<StatusBarNotification> posted = new ArrayList<>(); in testAppStartsGrouping() 187 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAppStartsGrouping() 199 final StatusBarNotification sbn = in testAppStartsGrouping() 208 final StatusBarNotification sbn = in testAppStartsGrouping() [all …]
|
D | NotificationManagerServiceTest.java | 69 import android.service.notification.StatusBarNotification; 250 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", mUid, 0, in generateNotificationRecord() 270 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", mUid, 0, in generateNotificationRecord() 442 final StatusBarNotification sbn = generateNotificationRecord(channel).sbn; in testBlockedNotifications_blockedChannel() 459 final StatusBarNotification sbn = generateNotificationRecord(channel).sbn; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 488 final StatusBarNotification sbn = generateNotificationRecord(channel).sbn; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 505 final StatusBarNotification sbn = generateNotificationRecord(null).sbn; in testEnqueuedBlockedNotifications_blockedApp() 518 final StatusBarNotification sbn = generateNotificationRecord(null).sbn; in testEnqueuedBlockedNotifications_blockedAppForegroundService() 532 StatusBarNotification[] notifs = mBinderService.getActiveNotifications(PKG); in testEnqueueNotificationWithTag_PopulatesGetActiveNotifications() 543 StatusBarNotification[] notifs = in testCancelNotificationImmediatelyAfterEnqueue() [all …]
|
D | NotificationChannelExtractorTest.java | 37 import android.service.notification.StatusBarNotification; 63 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testExtractsUpdatedChannel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationGroupManager.java | 19 import android.service.notification.StatusBarNotification; 45 private HashMap<String, StatusBarNotification> mIsolatedEntries = new HashMap<>(); 53 public boolean isGroupExpanded(StatusBarNotification sbn) { in isGroupExpanded() 61 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { in setGroupExpanded() 89 final StatusBarNotification sbn) { in onEntryRemovedInternal() 116 final StatusBarNotification sbn = added.notification; in onEntryAdded() 184 for (StatusBarNotification sbn : mIsolatedEntries.values()) { in getNumberOfIsolatedChildren() 193 for (StatusBarNotification sbn : mIsolatedEntries.values()) { in getIsolatedChild() 202 StatusBarNotification oldNotification) { in onEntryUpdated() 225 public boolean isSummaryOfSuppressedGroup(StatusBarNotification sbn) { in isSummaryOfSuppressedGroup() [all …]
|
D | NotificationListenerWithPlugins.java | 21 import android.service.notification.StatusBarNotification; 57 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() 58 StatusBarNotification[] activeNotifications = super.getActiveNotifications(); in getActiveNotifications() 83 public boolean onPluginNotificationPosted(StatusBarNotification sbn, in onPluginNotificationPosted() 97 public boolean onPluginNotificationRemoved(StatusBarNotification sbn, in onPluginNotificationRemoved() 127 public StatusBarNotification[] getActiveNotifications() { in getProvider() 137 public void addNotification(StatusBarNotification sbn) { in getProvider() 142 public void removeNotification(StatusBarNotification sbn) { in getProvider()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceController.java | 17 import android.service.notification.StatusBarNotification; 24 void addNotification(StatusBarNotification sbn, int importance); in addNotification() 30 void updateNotification(StatusBarNotification sbn, int newImportance); in updateNotification() 35 boolean removeNotification(StatusBarNotification sbn); in removeNotification() 48 boolean isDungeonNotification(StatusBarNotification sbn); in isDungeonNotification()
|
D | ForegroundServiceControllerImpl.java | 21 import android.service.notification.StatusBarNotification; 60 public void addNotification(StatusBarNotification sbn, int importance) { in addNotification() 65 public boolean removeNotification(StatusBarNotification sbn) { in removeNotification() 89 public void updateNotification(StatusBarNotification sbn, int newImportance) { in updateNotification() 114 public boolean isDungeonNotification(StatusBarNotification sbn) { in isDungeonNotification()
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 32 public class StatusBarNotification implements Parcelable { class 50 public StatusBarNotification(String pkg, String opPkg, int id, in StatusBarNotification() method in StatusBarNotification 74 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, in StatusBarNotification() method in StatusBarNotification 93 public StatusBarNotification(Parcel in) { in StatusBarNotification() method in StatusBarNotification 189 public static final Parcelable.Creator<StatusBarNotification> CREATOR 190 = new Parcelable.Creator<StatusBarNotification>() 192 public StatusBarNotification createFromParcel(Parcel parcel) 194 return new StatusBarNotification(parcel); 197 public StatusBarNotification[] newArray(int size) 199 return new StatusBarNotification[size]; [all …]
|
D | NotificationAssistantService.java | 78 abstract public void onNotificationSnoozedUntilContext(StatusBarNotification sbn, in onNotificationSnoozedUntilContext() 87 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn); in onNotificationEnqueued() 144 StatusBarNotification sbn; in onNotificationEnqueued() 162 StatusBarNotification sbn; in onNotificationSnoozedUntilContext() 191 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage() 208 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage()
|
D | NotificationListenerService.java | 303 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() 316 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() 337 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved() 361 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() 386 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved() 776 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() 789 public final StatusBarNotification[] getSnoozedNotifications() { in getSnoozedNotifications() 791 ParceledListSlice<StatusBarNotification> parceledList = getNotificationInterface() in getSnoozedNotifications() 811 public StatusBarNotification[] getActiveNotifications(int trim) { in getActiveNotifications() 827 public StatusBarNotification[] getActiveNotifications(String[] keys) { in getActiveNotifications() [all …]
|
D | IStatusBarNotificationHolder.aidl | 19 import android.service.notification.StatusBarNotification; 24 StatusBarNotification get(); in get()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationData.java | 35 import android.service.notification.StatusBarNotification; 73 public StatusBarNotification notification; 94 public Entry(StatusBarNotification n) { in Entry() 139 public void createIcons(Context context, StatusBarNotification sbn) in createIcons() 191 public void updateIcons(Context context, StatusBarNotification sbn) in updateIcons() 286 final StatusBarNotification na = a.notification; 287 final StatusBarNotification nb = b.notification; 458 final StatusBarNotification oldSbn = entry.notification.cloneLight(); in updateRankingAndSort() 494 StatusBarNotification sbn = entry.notification; in filterAndSort() 511 public boolean shouldFilterOut(StatusBarNotification sbn) { in shouldFilterOut() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarTest.java | 52 import android.service.notification.StatusBarNotification; 347 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testShouldPeek_nonSuppressedGroupSummary() 368 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testShouldPeek_suppressedGroupSummary() 388 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testShouldPeek_suppressedScreenOn_dozing() 408 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testShouldPeek_suppressedScreenOn_noDoze() 426 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testShouldPeek_suppressedScreenOff_dozing() 445 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testShouldPeek_suppressedScreenOff_noDoze() 463 StatusBarNotification sbn = in testForegroundServiceNotificationKeptForFiveSeconds() 464 new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in testForegroundServiceNotificationKeptForFiveSeconds() 488 StatusBarNotification sbn = in testForegroundServiceNotification_notRetainedIfShownForFiveSeconds() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | GroupHelper.java | 18 import android.service.notification.StatusBarNotification; 48 public void onNotificationPosted(StatusBarNotification sbn, boolean autogroupSummaryExists) { in onNotificationPosted() 90 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved() 101 private void maybeUngroup(StatusBarNotification sbn, boolean notificationGone, int userId) { in maybeUngroup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | ForegroundServiceLifetimeExtenderTest.java | 28 import android.service.notification.StatusBarNotification; 44 private StatusBarNotification mSbn; 55 mSbn = mock(StatusBarNotification.class); in setup()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
D | NotificationMenuRowPlugin.java | 18 import android.service.notification.StatusBarNotification; 81 public void createMenu(ViewGroup parent, StatusBarNotification sbn); in createMenu() 93 public void onNotificationUpdated(StatusBarNotification sbn); in onNotificationUpdated()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationMessagingUtil.java | 28 import android.service.notification.StatusBarNotification; 51 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { in isDefaultMessagingApp() 76 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDocumentsService.java | 27 import android.service.notification.StatusBarNotification; 98 final StatusBarNotification[] activeNotifications = in updateForegroundState() 100 for (final StatusBarNotification notification : activeNotifications) { in updateForegroundState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationBigPictureTemplateViewWrapper.java | 23 import android.service.notification.StatusBarNotification; 44 private void updateImageTag(StatusBarNotification notification) { in updateImageTag()
|