Home
last modified time | relevance | path

Searched refs:StatusBarNotification (Results 1 – 25 of 118) sorted by relevance

12345

/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DNotificationListenerController.java18 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/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java59 import android.service.notification.StatusBarNotification;
120 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, in getNotification()
168 return new StatusBarNotification(pkg, pkg, id1, tag1, uid, uid, n, mUser, null, uid); in getNotification()
179 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_preUpgradeUsesNotification()
192 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_custom_preUpgradeUsesNotification()
206 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, in testSound_default_userLocked_preUpgrade()
218 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testSound_noSound_preUpgrade()
231 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, in testSound_default_upgradeUsesChannel()
244 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_default_preUpgradeUsesNotification()
256 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, in testVibration_custom_preUpgradeUsesNotification()
[all …]
DNotificationIntrusivenessExtractorTest.java33 import android.service.notification.StatusBarNotification;
49 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testNonIntrusive()
66 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testIntrusive_fillScreen()
84 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in testOldNotificationsNotIntrusive()
DGlobalSortKeyComparatorTest.java24 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()
DNotificationComparatorTest.java37 import android.service.notification.StatusBarNotification;
112 mRecordMinCall = new NotificationRecord(mContext, new StatusBarNotification(callPkg, in setUp()
121 mRecordHighCall = new NotificationRecord(mContext, new StatusBarNotification(callPkg, in setUp()
130 mRecordDefaultMedia = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
137 mRecordInlineReply = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
146 mRecordSms = new NotificationRecord(mContext, new StatusBarNotification(smsPkg, in setUp()
153 mRecordStarredContact = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
160 mRecordContact = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
167 mRecordUrgent = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
177 mRecordCheater = new NotificationRecord(mContext, new StatusBarNotification(pkg2, in setUp()
[all …]
DGroupHelperTest.java30 import android.service.notification.StatusBarNotification;
64 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn()
72 return new StatusBarNotification(pkg, pkg, id, tag, 0, 0, nb.build(), user, null, in getSbn()
76 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn()
160 List<StatusBarNotification> posted = new ArrayList<>(); in testDropToZeroRemoveGroup()
162 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testDropToZeroRemoveGroup()
187 List<StatusBarNotification> posted = new ArrayList<>(); in testAppStartsGrouping()
189 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); in testAppStartsGrouping()
201 final StatusBarNotification sbn = in testAppStartsGrouping()
210 final StatusBarNotification sbn = in testAppStartsGrouping()
[all …]
DNotificationManagerServiceTest.java122 import android.service.notification.StatusBarNotification;
433 private StatusBarNotification generateSbn(String pkg, int uid, long postTime, int userId) { in generateSbn()
437 StatusBarNotification sbn = new StatusBarNotification(pkg, pkg, uid, "tag", uid, 0, in generateSbn()
450 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", mUid, 0, in generateNotificationRecord()
478 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", mUid, 0, in generateNotificationRecord()
678 final StatusBarNotification sbn = generateNotificationRecord(channel).sbn; in testBlockedNotifications_blockedChannel()
695 final StatusBarNotification sbn = generateNotificationRecord(channel).sbn; in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
724 StatusBarNotification sbn = generateNotificationRecord(channel).sbn; in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
778 final StatusBarNotification sbn = generateNotificationRecord(null).sbn; in testEnqueuedBlockedNotifications_blockedApp()
791 final StatusBarNotification sbn = generateNotificationRecord(null).sbn; in testEnqueuedBlockedNotifications_blockedAppForegroundService()
[all …]
DRankingHelperTest.java44 import android.service.notification.StatusBarNotification;
154 mRecordGroupGSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
164 mRecordGroupGSortB = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
172 mRecordNoGroup = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
180 mRecordNoGroup2 = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
189 mRecordNoGroupSortA = new NotificationRecord(mContext, new StatusBarNotification( in setUp()
237 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, in generateRecord()
302 NotificationRecord lowSummary = new NotificationRecord(mContext, new StatusBarNotification( in testGroupNotifications_highestIsProxy()
308 NotificationRecord low = new NotificationRecord(mContext, new StatusBarNotification( in testGroupNotifications_highestIsProxy()
318 NotificationRecord highChild = new NotificationRecord(mContext, new StatusBarNotification( in testGroupNotifications_highestIsProxy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupManager.java20 import android.service.notification.StatusBarNotification;
56 private HashMap<String, StatusBarNotification> mIsolatedEntries = new HashMap<>();
75 public boolean isGroupExpanded(StatusBarNotification sbn) { in isGroupExpanded()
83 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { in setGroupExpanded()
113 final StatusBarNotification sbn) { in onEntryRemovedInternal()
143 final StatusBarNotification sbn = added.notification; in onEntryAdded()
216 for (StatusBarNotification sbn : mIsolatedEntries.values()) { in getNumberOfIsolatedChildren()
225 for (StatusBarNotification sbn : mIsolatedEntries.values()) { in getIsolatedChild()
234 StatusBarNotification oldNotification) { in onEntryUpdated()
257 public boolean isSummaryOfSuppressedGroup(StatusBarNotification sbn) { in isSummaryOfSuppressedGroup()
[all …]
DNotificationListenerWithPlugins.java21 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/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java33 import android.service.notification.StatusBarNotification;
117 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, "com.example.app1", in testDisclosurePredicate()
119 StatusBarNotification sbn_user1_disclosure = makeMockSBN(USERID_ONE, "android", in testDisclosurePredicate()
131 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, PKG1, in testNeedsDisclosureAfterRemovingUnrelatedNotification()
133 StatusBarNotification sbn_user1_app1_fg = makeMockFgSBN(USERID_ONE, PKG1); in testNeedsDisclosureAfterRemovingUnrelatedNotification()
158 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, PKG1, in testSimpleAddRemove()
203 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, PKG1, in testDisclosureBasic()
205 StatusBarNotification sbn_user1_app1_fg = makeMockFgSBN(USERID_ONE, PKG1); in testDisclosureBasic()
223 StatusBarNotification sbn_user1_app1_fg_sneaky = makeMockFgSBN(USERID_ONE, PKG1); in testDisclosureBasic()
275 StatusBarNotification sbn_user1_app1 = makeMockSBN(USERID_ONE, "com.example.app1", in testOverlayPredicate()
[all …]
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java42 public class StatusBarNotification implements Parcelable { class
70 public StatusBarNotification(String pkg, String opPkg, int id, in StatusBarNotification() method in StatusBarNotification
94 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, in StatusBarNotification() method in StatusBarNotification
113 public StatusBarNotification(Parcel in) { in StatusBarNotification() method in StatusBarNotification
211 Parcelable.Creator<StatusBarNotification> CREATOR =
212 new Parcelable.Creator<StatusBarNotification>() {
213 public StatusBarNotification createFromParcel(Parcel parcel) {
214 return new StatusBarNotification(parcel);
217 public StatusBarNotification[] newArray(int size) {
218 return new StatusBarNotification[size];
[all …]
DNotificationListenerService.java332 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted()
345 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted()
366 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved()
390 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved()
415 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved()
428 public void onNotificationRemoved(@NonNull StatusBarNotification sbn, in onNotificationRemoved()
832 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications()
833 StatusBarNotification[] activeNotifications = getActiveNotifications(null, TRIM_FULL); in getActiveNotifications()
834 return activeNotifications != null ? activeNotifications : new StatusBarNotification[0]; in getActiveNotifications()
846 public final StatusBarNotification[] getSnoozedNotifications() { in getSnoozedNotifications()
[all …]
DNotificationAssistantService.java121 abstract public void onNotificationSnoozedUntilContext(@NonNull StatusBarNotification sbn, in onNotificationSnoozedUntilContext()
133 abstract public @Nullable Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn); in onNotificationEnqueued()
142 public @Nullable Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn, in onNotificationEnqueued()
170 public void onNotificationRemoved(@NonNull StatusBarNotification sbn, in onNotificationRemoved()
289 StatusBarNotification sbn; in onNotificationEnqueuedWithChannel()
307 StatusBarNotification sbn; in onNotificationSnoozedUntilContext()
398 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage()
423 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage()
DIStatusBarNotificationHolder.aidl19 import android.service.notification.StatusBarNotification;
24 StatusBarNotification get(); in get()
/frameworks/base/core/java/com/android/internal/util/
DNotificationMessagingUtil.java28 import android.service.notification.StatusBarNotification;
49 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { in isImportantMessaging()
57 public boolean isMessaging(StatusBarNotification sbn) { in isMessaging()
62 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { in isDefaultMessagingApp()
87 private boolean hasMessagingStyle(StatusBarNotification sbn) { in hasMessagingStyle()
92 private boolean isCategoryMessage(StatusBarNotification sbn) { in isCategoryMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationUpdateHandler.java20 import android.service.notification.StatusBarNotification;
32 void addNotification(StatusBarNotification notification, in addNotification()
51 void updateNotification(StatusBarNotification notification, in updateNotification()
DNotificationListener.java30 import android.service.notification.StatusBarNotification;
71 final StatusBarNotification[] notifications = getActiveNotifications(); in onListenerConnected()
78 for (StatusBarNotification sbn : notifications) { in onListenerConnected()
87 public void onNotificationPosted(final StatusBarNotification sbn, in onNotificationPosted()
125 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved()
137 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationDataTest.java60 import android.service.notification.StatusBarNotification;
100 private final StatusBarNotification mMockStatusBarNotification =
101 mock(StatusBarNotification.class);
368 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, in notificationDataEntry_testIsLastMessageFromReply()
390 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, in personHighPriority()
403 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, in messagingStyleHighPriority()
414 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, in minForegroundNotHighPriority()
429 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, in lowForegroundHighPriority()
454 StatusBarNotification sbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, in userChangeTrumpsHighPriorityCharacteristics()
474 StatusBarNotification aSbn = new StatusBarNotification("pkg", "pkg", 0, "tag", 0, 0, in testSort_highPriorityTrumpsNMSRank()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationData.java26 import android.service.notification.StatusBarNotification;
80 final StatusBarNotification na = a.notification;
81 final StatusBarNotification nb = b.notification;
177 final StatusBarNotification sbn = entry.notification; in getNotificationsForCurrentUser()
215 StatusBarNotification notification) { in update()
217 final StatusBarNotification oldNotification = entry.notification; in update()
248 public boolean isHighPriority(StatusBarNotification statusBarNotification) { in isHighPriority()
270 StatusBarNotification statusBarNotification) { in hasHighPriorityCharacteristics()
380 final StatusBarNotification oldSbn = entry.notification.cloneLight(); in updateRankingAndSort()
463 StatusBarNotification n = e.notification; in dumpEntry()
[all …]
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java100 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerNoStaleData()
128 assertEquals(StatusBarNotification.MAX_LOG_TAG_LENGTH, loggedId.length()); in testLogMakerLongChannel()
147 assertEquals(StatusBarNotification.MAX_LOG_TAG_LENGTH, loggedId.length()); in testLogMakerLongGroup()
153 StatusBarNotification sbn = getNotification(PKG, GROUP_ID_1, CHANNEL_ID); in testLogMakerOverrideGroup()
184 private StatusBarNotification getNotification(String pkg, String group, String channelId) { in getNotification()
199 private StatusBarNotification getNotification(String pkg, Notification.Builder builder) { in getNotification()
201 return new StatusBarNotification( in getNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationInterruptionStateProvider.java34 import android.service.notification.StatusBarNotification;
150 final StatusBarNotification sbn = entry.notification; in shouldBubbleUp()
189 StatusBarNotification sbn = entry.notification; in shouldHeadsUp()
255 StatusBarNotification sbn = entry.notification; in shouldPulse()
315 StatusBarNotification sbn = entry.notification; in canAlertCommon()
345 StatusBarNotification sbn = entry.notification; in canHeadsUpCommon()
378 private boolean isSnoozedPackage(StatusBarNotification sbn) { in isSnoozedPackage()
402 boolean canHeadsUp(NotificationEntry entry, StatusBarNotification sbn); in canHeadsUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationPresenterTest.java28 import android.service.notification.StatusBarNotification;
86 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testHeadsUp_disabledStatusBar()
100 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n, in testHeadsUp_disabledNotificationShade()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java18 import android.service.notification.StatusBarNotification;
63 private StatusBarNotification mSbn;
77 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
143 StatusBarNotification newSbn = in testRebuildWithRemoteInput_noExistingInputNoSpinner()
157 StatusBarNotification newSbn = in testRebuildWithRemoteInput_noExistingInputWithSpinner()
172 StatusBarNotification newSbn = in testRebuildWithRemoteInput_withExistingInput()
188 StatusBarNotification newSbn = in testRebuildNotificationForCanceledSmartReplies()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceNotificationListener.java23 import android.service.notification.StatusBarNotification;
74 private void addNotification(StatusBarNotification sbn, int importance) { in addNotification()
81 private void removeNotification(StatusBarNotification sbn) { in removeNotification()
115 private void updateNotification(StatusBarNotification sbn, int newImportance) { in updateNotification()

12345