Home
last modified time | relevance | path

Searched refs:promoter (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DListAttachState.kt49 var promoter: NotifPromoter? variable in com.android.systemui.statusbar.notification.collection.ListAttachState
58 promoter = other.promoter in clone()
67 promoter = null in reset()
DShadeListBuilder.java183 void addPromoter(NotifPromoter promoter) { in addPromoter() argument
187 mNotifPromoters.add(promoter); in addPromoter()
188 promoter.setInvalidationListener(this::onPromoterInvalidated); in addPromoter()
239 private void onPromoterInvalidated(NotifPromoter promoter) { in onPromoterInvalidated() argument
242 mLogger.logPromoterInvalidated(promoter.getName(), mPipelineState.getState()); in onPromoterInvalidated()
741 NotifPromoter promoter = findPromoter(entry); in applyTopLevelPromoters() local
742 entry.getAttachState().setPromoter(promoter); in applyTopLevelPromoters()
743 return promoter != null; in applyTopLevelPromoters()
748 NotifPromoter promoter = mNotifPromoters.get(i); in findPromoter() local
749 if (promoter.shouldPromoteToTopLevel(entry)) { in findPromoter()
[all …]
DNotifPipeline.java141 public void addPromoter(NotifPromoter promoter) { in addPromoter() argument
142 mShadeListBuilder.addPromoter(promoter); in addPromoter()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DConversationCoordinatorTest.kt47 private var promoter: NotifPromoter? = null variable in com.android.systemui.statusbar.notification.collection.coordinator.ConversationCoordinatorTest
65 promoter = notifPromoterCaptor.value in setUp()
74 assertTrue(promoter!!.shouldPromoteToTopLevel(entry)) in testPromotesCurrentHUN()
75 assertFalse(promoter!!.shouldPromoteToTopLevel(NotificationEntryBuilder().build())) in testPromotesCurrentHUN()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilderTest.java540 NotifPromoter promoter = spy(new IdPromoter(1, 2)); in testNotifsArePromoted() local
541 mListBuilder.addPromoter(promoter); in testNotifsArePromoted()
554 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(1)); in testNotifsArePromoted()
555 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(2)); in testNotifsArePromoted()
556 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(3)); in testNotifsArePromoted()
557 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(4)); in testNotifsArePromoted()
572 assertEquals(promoter, mEntrySet.get(2).getNotifPromoter()); in testNotifsArePromoted()
573 assertEquals(promoter, mEntrySet.get(3).getNotifPromoter()); in testNotifsArePromoted()
765 NotifPromoter promoter = spy(new IdPromoter(3)); in testListenersAndPluggablesAreFiredInOrder() local
771 mListBuilder.addPromoter(promoter); in testListenersAndPluggablesAreFiredInOrder()
[all …]