/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | BiometricNotificationLoggerTest.java | 22 import android.service.notification.StatusBarNotification; 68 final StatusBarNotification noti = createNotificationWithNullTag(); in testNotification_emptyStringTag_doesNothing() 76 final StatusBarNotification noti = createFaceNotification(); in testFaceNotification_posted() 86 final StatusBarNotification noti = createFingerprintNotification(); in testFingerprintNotification_posted() 96 final StatusBarNotification noti = createFaceNotification(); in testFaceNotification_clicked() 107 final StatusBarNotification noti = createFingerprintNotification(); in testFingerprintNotification_clicked() 118 final StatusBarNotification noti = createFaceNotification(); in testFaceNotification_dismissed() 129 final StatusBarNotification noti = createFingerprintNotification(); in testFingerprintNotification_dismissed() 138 private StatusBarNotification createNotificationWithNullTag() { in createNotificationWithNullTag() 139 final StatusBarNotification notification = mock(StatusBarNotification.class); in createNotificationWithNullTag() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ArchiveTest.java | 35 import android.service.notification.StatusBarNotification; 81 private StatusBarNotification getNotification(String pkg, int id, UserHandle user) { in getNotification() 86 return new StatusBarNotification( in getNotification() 94 StatusBarNotification sbn = getNotification("pkg" + i, i, in testRecordAndRead() 100 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testRecordAndRead() 102 for (StatusBarNotification sbn : actual) { in testRecordAndRead() 114 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testCrossUser() 116 for (StatusBarNotification sbn : actual) { in testCrossUser() 127 StatusBarNotification sbn = getNotification("pkg" + i, i, UserHandle.of(USER_SYSTEM)); in testRecordAndRead_overLimit() 134 List<StatusBarNotification> actual = Arrays.asList( in testRecordAndRead_overLimit() [all …]
|
D | NotificationRecordTest.java | 76 import android.service.notification.StatusBarNotification; 153 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification() 201 return new StatusBarNotification(pkg, pkg, id1, tag1, uid, uid, n, mUser, null, uid); in getNotification() 204 private StatusBarNotification getStyledNotification(boolean customContent, boolean customBig, in getStyledNotification() 223 return new StatusBarNotification(mPkg, mPkg, id1, tag1, uid, uid, n, mUser, null, uid); in getStyledNotification() 226 private StatusBarNotification getNotification( in getNotification() 244 return new StatusBarNotification(mPkg, mPkg, id1, tag1, uid, uid, n, mUser, null, uid); in getNotification() 247 private StatusBarNotification getNotification( in getNotification() 253 private StatusBarNotification getNotification( in getNotification() 259 private StatusBarNotification getMessagingStyleNotification() { in getMessagingStyleNotification() [all …]
|
D | GroupHelperTest.java | 62 import android.service.notification.StatusBarNotification; 119 StatusBarNotification sbn = getSbn("package", 0, "0", UserHandle.SYSTEM); in setUp() 125 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() 135 return new StatusBarNotification(pkg, pkg, id, tag, 0, 0, nb.build(), user, null, in getSbn() 139 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() 144 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn() 328 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildOngoing_summaryOngoing_alwaysAutogroup() 347 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildOngoing_summaryOngoing() 366 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildAutoCancel_summaryNotAutoCancel_alwaysAutogroup() 385 StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAddSummary_oneChildAutoCancel_summaryNotAutoCancel() [all …]
|
D | NotificationIntrusivenessExtractorTest.java | 33 import android.service.notification.StatusBarNotification; 49 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testNonIntrusive() 67 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testIntrusive_fillScreen() 86 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testOldNotificationsNotIntrusive()
|
D | GlobalSortKeyComparatorTest.java | 24 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 | RankingHelperTest.java | 51 import android.service.notification.StatusBarNotification; 168 mRecordGroupGSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp() 178 mRecordGroupGSortB = new NotificationRecord(mContext, new StatusBarNotification( in setUp() 186 mRecordNoGroup = new NotificationRecord(mContext, new StatusBarNotification( in setUp() 194 mRecordNoGroup2 = new NotificationRecord(mContext, new StatusBarNotification( in setUp() 203 mRecordNoGroupSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp() 210 mRecentlyIntrusive = new NotificationRecord(mContext, new StatusBarNotification( in setUp() 215 mNewest = new NotificationRecord(mContext, new StatusBarNotification( in setUp() 257 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in generateRecord() 322 NotificationRecord lowSummary = new NotificationRecord(mContext, new StatusBarNotification( in testGroupNotifications_highestIsProxy() [all …]
|
D | NotificationComparatorTest.java | 51 import android.service.notification.StatusBarNotification; 142 new StatusBarNotification(callPkg, in setUp() 153 mRecordMinCall = new NotificationRecord(mMockContext, new StatusBarNotification(callPkg, in setUp() 163 mRecordHighCall = new NotificationRecord(mMockContext, new StatusBarNotification(callPkg, in setUp() 175 mRecordHighCallStyle = new NotificationRecord(mMockContext, new StatusBarNotification( in setUp() 183 mRecordInlineReply = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp() 192 mRecordSms = new NotificationRecord(mMockContext, new StatusBarNotification(smsPkg, in setUp() 199 mRecordStarredContact = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp() 206 mRecordContact = new NotificationRecord(mMockContext, new StatusBarNotification(pkg2, in setUp() 213 mRecordSystemMax = new NotificationRecord(mMockContext, new StatusBarNotification(sysPkg, in setUp() [all …]
|
D | ZenModeFilteringTest.java | 50 import android.service.notification.StatusBarNotification; 109 StatusBarNotification sbn = mock(StatusBarNotification.class); in getNotificationRecord() 116 StatusBarNotification sbn) { in getConversationRecord() 137 StatusBarNotification sbn = mock(StatusBarNotification.class); in getCallRecordWithPeopleInfo() 258 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_allAllowed() 276 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_importantAllowed_isImportant() 294 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_importantAllowed_isNotImportant() 311 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_notCallOrMsg() 328 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_callAllowed() 348 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, n, in testConversation_noneAllowed_msgAllowed()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | NotificationListenerController.java | 20 import android.service.notification.StatusBarNotification; 38 default boolean onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() 45 default boolean onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() 61 default StatusBarNotification[] getActiveNotifications( in getActiveNotifications() 62 StatusBarNotification[] activeNotifications) { in getActiveNotifications() 75 StatusBarNotification[] getActiveNotifications(); in getActiveNotifications() 79 void addNotification(StatusBarNotification sbn); in addNotification() 80 void removeNotification(StatusBarNotification sbn); in removeNotification()
|
D | NotificationPersonExtractorPlugin.java | 21 import android.service.notification.StatusBarNotification; 40 PersonData extractPerson(StatusBarNotification sbn); in extractPerson() 49 default String extractPersonKey(StatusBarNotification sbn) { in extractPersonKey() 57 default boolean isPersonNotification(StatusBarNotification sbn) { in isPersonNotification()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | NotificationListener.kt | 20 import android.service.notification.StatusBarNotification 25 private val notifications: MutableMap<Any, StatusBarNotification> = mutableMapOf() 27 override fun onNotificationPosted(sbn: StatusBarNotification) { in onNotificationPosted() 32 override fun onNotificationRemoved(sbn: StatusBarNotification) { in onNotificationRemoved() 78 predicate: (StatusBarNotification) -> Boolean in findNotification() 79 ): StatusBarNotification? { in findNotification() 87 predicate: (StatusBarNotification) -> Boolean in waitForNotificationToAppear() 88 ): StatusBarNotification? { in waitForNotificationToAppear() 96 fun waitForNotificationToDisappear(predicate: (StatusBarNotification) -> Boolean): Boolean { in waitForNotificationToDisappear()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationListenerWithPlugins.java | 23 import android.service.notification.StatusBarNotification; 66 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() 67 StatusBarNotification[] activeNotifications = super.getActiveNotifications(); in getActiveNotifications() 88 public boolean onPluginNotificationPosted(StatusBarNotification sbn, in onPluginNotificationPosted() 102 public boolean onPluginNotificationRemoved(StatusBarNotification sbn, in onPluginNotificationRemoved() 149 public StatusBarNotification[] getActiveNotifications() { in getProvider() 159 public void addNotification(StatusBarNotification sbn) { in getProvider() 164 public void removeNotification(StatusBarNotification sbn) { in getProvider()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/ |
D | TvPipNotificationTests.kt | 22 import android.service.notification.StatusBarNotification 79 val notification: StatusBarNotification = in pipNotification_closeIntent() 100 val notification: StatusBarNotification = in pipNotification_menuIntent() 166 private val StatusBarNotification.extras: Bundle? constant 169 private val StatusBarNotification.title: String constant 173 private val StatusBarNotification.tvExtensions: Bundle? constant 177 private val StatusBarNotification.contentIntent: PendingIntent? constant 181 private val StatusBarNotification.deleteIntent: PendingIntent? constant 184 private fun StatusBarNotification.isPipNotificationWithTitle(expectedTitle: String): Boolean = method
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | StatusBarNotificationTest.java | 110 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData() 138 assertEquals(StatusBarNotification.MAX_LOG_TAG_LENGTH, loggedId.length()); in testLogMakerLongChannel() 157 assertEquals(StatusBarNotification.MAX_LOG_TAG_LENGTH, loggedId.length()); in testLogMakerLongGroup() 163 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup() 196 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testIsAppGroup() 215 StatusBarNotification sbn = new StatusBarNotification( in testGetPackageContext_worksWithUserAll() 225 StatusBarNotification sbn = getNotification("pkg", null, "channel"); in testGetUidFromKey() 227 assertEquals(UID, StatusBarNotification.getUidFromKey(sbn.getKey())); in testGetUidFromKey() 230 assertEquals(UID, StatusBarNotification.getUidFromKey(sbn.getKey())); in testGetUidFromKey() 235 StatusBarNotification sbn = getNotification("pkg", null, "channel"); in testGetPkgFromKey() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | RemoteInputNotificationRebuilder.java | 27 import android.service.notification.StatusBarNotification; 59 public StatusBarNotification rebuildForSendingSmartReply(NotificationEntry entry, in rebuildForSendingSmartReply() 72 public StatusBarNotification rebuildForCanceledSmartReplies( in rebuildForCanceledSmartReplies() 82 public StatusBarNotification rebuildWithExistingReplies(NotificationEntry entry) { in rebuildWithExistingReplies() 93 public StatusBarNotification rebuildForRemoteInputReply(NotificationEntry entry) { in rebuildForRemoteInputReply() 100 StatusBarNotification newSbn = rebuildWithRemoteInputInserted(entry, in rebuildForRemoteInputReply() 109 StatusBarNotification rebuildWithRemoteInputInserted(NotificationEntry entry, in rebuildWithRemoteInputInserted() 111 StatusBarNotification sbn = entry.getSbn(); in rebuildWithRemoteInputInserted() 167 return new StatusBarNotification( in rebuildWithRemoteInputInserted()
|
D | NotificationListener.java | 27 import android.service.notification.StatusBarNotification; 113 final StatusBarNotification[] notifications = getActiveNotifications(); in onListenerConnected() 126 for (StatusBarNotification sbn : notifications) { in onListenerConnected() 131 for (StatusBarNotification sbn : notifications) { in onListenerConnected() 145 public void onNotificationPosted(final StatusBarNotification sbn, in onNotificationPosted() 158 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved() 171 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() 316 void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap); in onNotificationPosted() 317 void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap); in onNotificationRemoved() 318 void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, int reason); in onNotificationRemoved()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationMessagingUtil.java | 29 import android.service.notification.StatusBarNotification; 53 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging() 61 public boolean isMessaging(StatusBarNotification sbn) { in isMessaging() 66 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { in isDefaultMessagingApp() 95 private boolean hasMessagingStyle(StatusBarNotification sbn) { in hasMessagingStyle() 99 private boolean isCategoryMessage(StatusBarNotification sbn) { in isCategoryMessage()
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 45 public class StatusBarNotification implements Parcelable { class 75 public StatusBarNotification(String pkg, String opPkg, int id, in StatusBarNotification() method in StatusBarNotification 99 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, in StatusBarNotification() method in StatusBarNotification 118 public StatusBarNotification(Parcel in) { in StatusBarNotification() method in StatusBarNotification 247 Parcelable.Creator<StatusBarNotification> CREATOR = 248 new Parcelable.Creator<StatusBarNotification>() { 249 public StatusBarNotification createFromParcel(Parcel parcel) { 250 return new StatusBarNotification(parcel); 253 public StatusBarNotification[] newArray(int size) { 254 return new StatusBarNotification[size]; [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/ |
D | HeadsUpManagerTestUtil.java | 24 import android.service.notification.StatusBarNotification; 37 protected static StatusBarNotification createSbn(int id, Notification.Builder n) { in createSbn() 41 protected static StatusBarNotification createSbn(int id, Context context) { in createSbn() 49 protected static StatusBarNotification createSbn(int id, Notification n) { in createSbn() 50 return new StatusBarNotification( in createSbn()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | TargetSdkResolver.kt | 23 import android.service.notification.StatusBarNotification 37 override fun onEntryBind(entry: NotificationEntry, sbn: StatusBarNotification) { in initialize() 43 private fun resolveNotificationSdk(sbn: StatusBarNotification): Int { in resolveNotificationSdk() 56 private fun getApplicationInfoFromPackageManager(sbn: StatusBarNotification): ApplicationInfo? { in getApplicationInfoFromExtras()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | RemoteInputNotificationRebuilderTest.java | 29 import android.service.notification.StatusBarNotification; 78 StatusBarNotification newSbn = in testRebuildWithRemoteInput_noExistingInput_image() 91 StatusBarNotification newSbn = in testRebuildWithRemoteInput_noExistingInputNoSpinner() 106 StatusBarNotification newSbn = in testRebuildWithRemoteInput_noExistingInputWithSpinner() 122 StatusBarNotification newSbn = in testRebuildWithRemoteInput_withExistingInput() 145 StatusBarNotification newSbn = in testRebuildWithRemoteInput_withExistingInput_image() 167 StatusBarNotification newSbn = in testRebuildNotificationForCanceledSmartReplies()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/ |
D | DreamOverlayNotificationCountProviderTest.java | 24 import android.service.notification.StatusBarNotification; 49 StatusBarNotification mNotification1; 51 StatusBarNotification mNotification2; 53 StatusBarNotification mNotification3; 68 final StatusBarNotification[] notifications = {mNotification1}; in setup()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubbleEntry.java | 26 import android.service.notification.StatusBarNotification; 38 private StatusBarNotification mSbn; 46 public BubbleEntry(@NonNull StatusBarNotification sbn, in BubbleEntry() 60 public StatusBarNotification getStatusBarNotification() { in getStatusBarNotification()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/ |
D | NotificationPersonExtractor.kt | 19 import android.service.notification.StatusBarNotification in <lambda>() 26 fun isPersonNotification(sbn: StatusBarNotification): Boolean in <lambda>() 47 override fun isPersonNotification(sbn: StatusBarNotification): Boolean =
|