Home
last modified time | relevance | path

Searched refs:NotificationEntry (Results 1 – 25 of 187) sorted by relevance

12345678

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DGroupEntry.java35 @Nullable private NotificationEntry mSummary;
36 private final List<NotificationEntry> mChildren = new ArrayList<>();
38 private final List<NotificationEntry> mUnmodifiableChildren =
48 public NotificationEntry getRepresentativeEntry() { in getRepresentativeEntry()
53 public NotificationEntry getSummary() { in getSummary()
58 public List<NotificationEntry> getChildren() { in getChildren()
63 public void setSummary(@Nullable NotificationEntry summary) { in setSummary()
89 void addChild(NotificationEntry child) { in addChild()
93 void sortChildren(Comparator<? super NotificationEntry> c) { in sortChildren()
97 List<NotificationEntry> getRawChildren() { in getRawChildren()
DNotifCollection.java38 import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState…
39 import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState…
40 import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState…
134 private final Map<String, NotificationEntry> mNotificationSet = new ArrayMap<>();
135 private final Collection<NotificationEntry> mReadOnlyNotificationSet =
188 Collection<NotificationEntry> getAllNotifs() { in getAllNotifs()
225 List<Pair<NotificationEntry, DismissedByUserStats>> entriesToDismiss) { in dismissNotifications() argument
229 final List<NotificationEntry> entriesToLocallyDismiss = new ArrayList<>(); in dismissNotifications()
231 NotificationEntry entry = entriesToDismiss.get(i).first; in dismissNotifications()
278 NotificationEntry entry, in dismissNotification()
[all …]
DNotificationRankingManager.kt71 private val rankingComparator: Comparator<NotificationEntry> = Comparator { a, b -> in <lambda>()
114 entries: Collection<NotificationEntry>, in <lambda>()
116 ): List<NotificationEntry> { in <lambda>()
130 entries: Collection<NotificationEntry>, in <lambda>()
132 ): List<NotificationEntry> { in <lambda>()
142 private fun filter(entry: NotificationEntry): Boolean { in <lambda>()
152 private fun getBucketForEntry(entry: NotificationEntry): Int { in <lambda>()
164 private fun updateRankingForEntries(entries: Iterable<NotificationEntry>) { in <lambda>()
188 private fun NotificationEntry.isImportantMedia() = in <lambda>() method
191 private fun NotificationEntry.isConversation() = getPeopleNotificationType() != TYPE_NON_PERSON in <lambda>() method
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DPreparationCoordinator.java34 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
67 private final Map<NotificationEntry, Integer> mInflationStates = new ArrayMap<>();
74 private final Set<NotificationEntry> mInflatingNotifs = new ArraySet<>();
123 public void onEntryInit(NotificationEntry entry) {
128 public void onEntryUpdated(NotificationEntry entry) {
141 public void onEntryRemoved(NotificationEntry entry, int reason) {
146 public void onEntryCleanUp(NotificationEntry entry) {
162 public boolean shouldFilterOut(NotificationEntry entry, long now) {
172 public boolean shouldFilterOut(NotificationEntry entry, long now) {
180 public void onNotifInflationError(NotificationEntry entry, Exception e) {
[all …]
DHeadsUpCoordinator.java27 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
66 private @Nullable NotificationEntry mCurrentHun;
69 private NotificationEntry mNotifExtendingLifetime; // notif we've extended the lifetime for
96 private void onHeadsUpViewBound(NotificationEntry entry) { in onHeadsUpViewBound()
105 public void onEntryAdded(NotificationEntry entry) {
119 public void onEntryUpdated(NotificationEntry entry) {
144 public void onEntryRemoved(NotificationEntry entry, int reason) {
155 public void onEntryCleanUp(NotificationEntry entry) {
172 public boolean shouldExtendLifetime(NotificationEntry entry, int reason) {
181 public void cancelLifetimeExtension(NotificationEntry entry) {
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryListener.java26 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
36 default void onPendingEntryAdded(NotificationEntry entry) { in onPendingEntryAdded()
42 default void onNotificationAdded(@NonNull NotificationEntry entry) { in onNotificationAdded()
52 default void onPreEntryUpdated(NotificationEntry entry) { in onPreEntryUpdated()
58 default void onPostEntryUpdated(@NonNull NotificationEntry entry) { in onPostEntryUpdated()
64 default void onEntryInflated(NotificationEntry entry) { in onEntryInflated()
73 default void onEntryReinflated(NotificationEntry entry) { in onEntryReinflated()
93 @NonNull NotificationEntry entry, in onEntryRemoved()
DNotificationEntryManager.java47 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
107 private final Set<NotificationEntry> mAllNotifications = new ArraySet<>();
108 private final Set<NotificationEntry> mReadOnlyAllNotifications =
113 protected final HashMap<String, NotificationEntry> mPendingNotifications = new HashMap<>();
118 private final ArrayMap<String, NotificationEntry> mActiveNotifications = new ArrayMap<>();
121 protected final ArrayList<NotificationEntry> mSortedAndFiltered = new ArrayList<>();
122 private final List<NotificationEntry> mReadOnlyNotifications =
125 private final Map<NotificationEntry, NotificationLifetimeExtender> mRetainedNotifications =
159 for (NotificationEntry entry : mAllNotifications) { in dump()
168 for (NotificationEntry entry : mPendingNotifications.values()) { in dump()
[all …]
DDynamicChildBindController.java24 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
73 Map<NotificationEntry, List<NotificationEntry>> groupNotifs) { in updateContentViews() argument
74 for (NotificationEntry entry : groupNotifs.keySet()) { in updateContentViews()
75 List<NotificationEntry> children = groupNotifs.get(entry); in updateContentViews()
84 NotificationEntry childEntry = children.get(j); in updateContentViews()
98 private boolean hasContent(NotificationEntry entry) { in hasContent()
104 private void freeContent(NotificationEntry entry) { in freeContent()
111 private void bindContent(NotificationEntry entry) { in bindContent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java52 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
164 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testDefaultSuppressorDoesNotSuppress()
176 NotificationEntry entry = createNotification(IMPORTANCE_HIGH); in testShouldHeadsUpAwake()
186 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldNotHeadsUpAwake_flteredOut()
200 NotificationEntry entry = new NotificationEntryBuilder() in testShouldNotHeadsUp_suppressedForGroups()
220 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldHeadsUpWhenDozing()
233 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldNotHeadsUpWhenDozing_pulseDisabled()
246 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldNotHeadsUpWhenDozing_notDozing()
258 NotificationEntry entry = createNotification(IMPORTANCE_DEFAULT); in testShouldNotHeadsUpWhenDozing_suppressingAmbient()
272 NotificationEntry entry = createNotification(IMPORTANCE_LOW); in testShouldNotHeadsUpWhenDozing_lessImportant()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DBindStage.java25 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
41 private Map<NotificationEntry, Params> mContentParams = new ArrayMap<>();
50 @NonNull NotificationEntry entry, in executeStage()
60 @NonNull NotificationEntry entry, in abortStage()
67 public final Params getStageParams(@NonNull NotificationEntry entry) { in getStageParams()
85 final void createStageParams(@NonNull NotificationEntry entry) { in createStageParams()
92 final void deleteStageParams(@NonNull NotificationEntry entry) { in deleteStageParams()
110 void onStageFinished(NotificationEntry entry); in onStageFinished()
DNotifRemoteViewCacheImpl.java25 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
38 private final Map<NotificationEntry, SparseArray<RemoteViews>> mNotifCachedContentViews =
47 public boolean hasCachedView(NotificationEntry entry, @InflationFlag int flag) { in hasCachedView()
52 public @Nullable RemoteViews getCachedView(NotificationEntry entry, @InflationFlag int flag) { in getCachedView()
62 NotificationEntry entry, in putCachedView()
78 public void removeCachedView(NotificationEntry entry, @InflationFlag int flag) { in removeCachedView()
87 public void clearCache(NotificationEntry entry) { in clearCache()
97 public void onEntryInit(NotificationEntry entry) {
102 public void onEntryCleanUp(NotificationEntry entry) {
DNotifRemoteViewCache.java23 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
38 boolean hasCachedView(NotificationEntry entry, @InflationFlag int flag); in hasCachedView()
47 @Nullable RemoteViews getCachedView(NotificationEntry entry, @InflationFlag int flag); in getCachedView()
57 NotificationEntry entry, in putCachedView()
67 void removeCachedView(NotificationEntry entry, @InflationFlag int flag); in removeCachedView()
74 void clearCache(NotificationEntry entry); in clearCache()
DNotifInflationErrorManager.java22 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
39 Set<NotificationEntry> mErroredNotifs = new ArraySet<>();
50 public void setInflationError(NotificationEntry entry, Exception e) { in setInflationError()
60 public void clearInflationError(NotificationEntry entry) { in clearInflationError()
72 public boolean hasInflationError(@NonNull NotificationEntry entry) { in hasInflationError()
93 void onNotifInflationError(NotificationEntry entry, Exception e); in onNotifInflationError()
98 default void onNotifInflationErrorCleared(NotificationEntry entry) {} in onNotifInflationErrorCleared()
DNotifBindPipeline.java32 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
82 private final Map<NotificationEntry, BindEntry> mBindEntries = new ArrayMap<>();
113 @NonNull NotificationEntry entry, in manageRow()
128 @NonNull NotificationEntry entry, in onBindRequested()
156 private void requestPipelineRun(NotificationEntry entry) { in requestPipelineRun()
179 private void startPipeline(NotificationEntry entry) { in startPipeline()
192 private void onPipelineComplete(NotificationEntry entry) { in onPipelineComplete()
212 public void onEntryInit(NotificationEntry entry) {
218 public void onEntryCleanUp(NotificationEntry entry) {
229 private @NonNull BindEntry getBindEntry(NotificationEntry entry) { in getBindEntry()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DNotifCollectionListener.java24 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
36 default void onEntryBind(NotificationEntry entry, StatusBarNotification sbn) { in onEntryBind()
47 default void onEntryInit(@NonNull NotificationEntry entry) { in onEntryInit()
53 default void onEntryAdded(@NonNull NotificationEntry entry) { in onEntryAdded()
60 default void onEntryUpdated(NotificationEntry entry) { in onEntryUpdated()
68 default void onEntryRemoved(@NonNull NotificationEntry entry, @CancellationReason int reason) { in onEntryRemoved()
80 default void onEntryCleanUp(@NonNull NotificationEntry entry) { in onEntryCleanUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DRemoteInputController.java29 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
45 private final ArrayList<Pair<WeakReference<NotificationEntry>, Object>> mOpen
111 public void addRemoteInput(NotificationEntry entry, Object token) { in addRemoteInput()
132 public void removeRemoteInput(NotificationEntry entry, Object token) { in removeRemoteInput()
183 private void apply(NotificationEntry entry) { in apply()
195 public boolean isRemoteInputActive(NotificationEntry entry) { in isRemoteInputActive()
218 NotificationEntry contains, NotificationEntry remove, Object removeToken) { in pruneWeakThenRemoveAndContains()
221 NotificationEntry item = mOpen.get(i).first.get(); in pruneWeakThenRemoveAndContains()
245 public void remoteInputSent(NotificationEntry entry) { in remoteInputSent()
258 ArrayList<NotificationEntry> list = new ArrayList<>(mOpen.size()); in closeRemoteInputs()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationGroupTestHelper.java28 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
46 public NotificationEntry createSummaryNotification() { in createSummaryNotification()
50 public NotificationEntry createSummaryNotification(int groupAlertBehavior) { in createSummaryNotification()
54 public NotificationEntry createSummaryNotification(int groupAlertBehavior, int id) { in createSummaryNotification()
58 public NotificationEntry createChildNotification() { in createChildNotification()
62 public NotificationEntry createChildNotification(int groupAlertBehavior) { in createChildNotification()
66 public NotificationEntry createChildNotification(int groupAlertBehavior, int id) { in createChildNotification()
70 public NotificationEntry createEntry(int id, boolean isSummary, int groupAlertBehavior) { in createEntry()
78 NotificationEntry entry = new NotificationEntryBuilder() in createEntry()
DNotificationGroupManagerTest.java35 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
75 NotificationEntry childEntry = mGroupTestHelper.createChildNotification(); in testIsOnlyChildInGroup()
76 NotificationEntry summaryEntry = mGroupTestHelper.createSummaryNotification(); in testIsOnlyChildInGroup()
86 NotificationEntry childEntry = mGroupTestHelper.createChildNotification(); in testIsChildInGroupWithSummary()
87 NotificationEntry summaryEntry = mGroupTestHelper.createSummaryNotification(); in testIsChildInGroupWithSummary()
98 NotificationEntry childEntry = mGroupTestHelper.createChildNotification(); in testIsSummaryOfGroupWithChildren()
99 NotificationEntry summaryEntry = mGroupTestHelper.createSummaryNotification(); in testIsSummaryOfGroupWithChildren()
111 NotificationEntry childEntry = mGroupTestHelper.createChildNotification(); in testRemoveChildFromGroupWithSummary()
112 NotificationEntry summaryEntry = mGroupTestHelper.createSummaryNotification(); in testRemoveChildFromGroupWithSummary()
124 NotificationEntry childEntry = mGroupTestHelper.createChildNotification(); in testRemoveSummaryFromGroupWithSummary()
[all …]
DNotificationGroupAlertTransferHelperTest.java44 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
77 private final HashMap<String, NotificationEntry> mPendingEntries = new HashMap<>();
110 NotificationEntry summaryEntry = mGroupTestHelper.createSummaryNotification(); in testSuppressedSummaryHeadsUpTransfersToChild()
112 NotificationEntry childEntry = mGroupTestHelper.createChildNotification(); in testSuppressedSummaryHeadsUpTransfersToChild()
129 NotificationEntry summaryEntry = in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
131 NotificationEntry childEntry = in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
133 NotificationEntry childEntry2 = in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
153 NotificationEntry summaryEntry = in testSuppressedSummaryHeadsUpDoesntTransferBackOnDozingChanged()
155 NotificationEntry childEntry = in testSuppressedSummaryHeadsUpDoesntTransferBackOnDozingChanged()
157 NotificationEntry childEntry2 = in testSuppressedSummaryHeadsUpDoesntTransferBackOnDozingChanged()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifCollectionTest.java28 import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState…
29 import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState…
30 import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState…
126 @Captor private ArgumentCaptor<NotificationEntry> mEntryCaptor;
127 @Captor private ArgumentCaptor<Collection<NotificationEntry>> mBuildListCaptor;
179 final NotificationEntry entry = mCollectionListener.getEntry(notif1.key); in testEventDispatchedWhenNotifPosted()
202 NotificationEntry entry1 = buildNotif(TEST_PACKAGE, 1) in testEventDispatchedWhenNotifBatchPosted()
205 NotificationEntry entry2 = buildNotif(TEST_PACKAGE, 2) in testEventDispatchedWhenNotifBatchPosted()
209 NotificationEntry entry3 = buildNotif(TEST_PACKAGE, 3) in testEventDispatchedWhenNotifBatchPosted()
222 List<NotificationEntry> capturedAdds = mEntryCaptor.getAllValues(); in testEventDispatchedWhenNotifBatchPosted()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationEntryHelper.java23 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
27 public static ModifiedRankingBuilder modifyRanking(NotificationEntry entry) { in modifyRanking()
31 public static ModifiedSbnBuilder modifySbn(NotificationEntry entry) { in modifySbn()
36 private final NotificationEntry mTarget;
38 private ModifiedRankingBuilder(NotificationEntry target) { in ModifiedRankingBuilder()
52 private final NotificationEntry mTarget;
54 private ModifiedSbnBuilder(NotificationEntry target) { in ModifiedSbnBuilder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupAlertTransferHelper.java33 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
108 public boolean isAlertTransferPending(@NonNull NotificationEntry entry) { in isAlertTransferPending()
171 public void onHeadsUpStateChanged(NotificationEntry entry, boolean isHeadsUp) { in onHeadsUpStateChanged()
175 private void onAlertStateChanged(NotificationEntry entry, boolean isAlerting, in onAlertStateChanged()
187 public void onPendingEntryAdded(NotificationEntry entry) {
197 @Nullable NotificationEntry entry,
220 Iterable<NotificationEntry> values = mEntryManager.getPendingNotificationsIterator(); in getPendingChildrenNotAlerting()
221 for (NotificationEntry entry : values) { in getPendingChildrenNotAlerting()
239 Iterable<NotificationEntry> values = mEntryManager.getPendingNotificationsIterator(); in pendingInflationsWillAddChildren()
240 for (NotificationEntry entry : values) { in pendingInflationsWillAddChildren()
[all …]
DNotificationGroupManager.java29 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
123 public void onEntryRemoved(NotificationEntry removed) { in onEntryRemoved()
135 private void onEntryRemovedInternal(NotificationEntry removed, in onEntryRemovedInternal()
141 private void onEntryRemovedInternal(NotificationEntry removed, String notifGroupKey, boolean in onEntryRemovedInternal()
171 public void onEntryAdded(final NotificationEntry added) { in onEntryAdded()
176 private void onEntryAddedInternal(final NotificationEntry added) { in onEntryAddedInternal()
192 NotificationEntry existing = group.children.get(added.getKey()); in onEntryAddedInternal()
209 ArrayList<NotificationEntry> childrenCopy in onEntryAddedInternal()
211 for (NotificationEntry child : childrenCopy) { in onEntryAddedInternal()
221 private void onEntryBecomingChild(NotificationEntry entry) { in onEntryBecomingChild()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/
DHighPriorityProvider.java24 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
72 final NotificationEntry notifEntry = entry.getRepresentativeEntry(); in isHighPriority()
84 List<NotificationEntry> children = null; in hasHighPriorityChild()
96 for (NotificationEntry child : children) { in hasHighPriorityChild()
106 private boolean hasHighPriorityCharacteristics(NotificationEntry entry) { in hasHighPriorityCharacteristics()
114 private boolean isImportantOngoing(NotificationEntry entry) { in isImportantOngoing()
119 private boolean isMessagingStyle(NotificationEntry entry) { in isMessagingStyle()
124 private boolean isPeopleNotification(NotificationEntry entry) { in isPeopleNotification()
129 private boolean hasUserSetImportance(NotificationEntry entry) { in hasUserSetImportance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DDynamicChildBindControllerTest.java37 import com.android.systemui.statusbar.notification.collection.NotificationEntry;
59 private Map<NotificationEntry, List<NotificationEntry>> mGroupNotifs = new ArrayMap<>();
76 NotificationEntry summary = addGroup(TEST_CHILD_BIND_CUTOFF + 1); in testContentViewsOfChildrenBeyondCutoffAreFreed()
77 NotificationEntry lastChild = mGroupNotifs.get(summary).get(TEST_CHILD_BIND_CUTOFF); in testContentViewsOfChildrenBeyondCutoffAreFreed()
94 NotificationEntry summary = addGroup(TEST_CHILD_BIND_CUTOFF); in testContentViewsBeforeCutoffAreBound()
95 NotificationEntry lastChild = mGroupNotifs.get(summary).get(TEST_CHILD_BIND_CUTOFF - 1); in testContentViewsBeforeCutoffAreBound()
112 private NotificationEntry addGroup(int size) { in addGroup()
113 NotificationEntry summary = new NotificationEntryBuilder().build(); in addGroup()
115 ArrayList<NotificationEntry> children = new ArrayList<>(); in addGroup()
117 NotificationEntry child = new NotificationEntryBuilder().build(); in addGroup()

12345678