Searched refs:promoter (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | ListAttachState.kt | 48 var promoter: NotifPromoter?, variable in com.android.systemui.statusbar.notification.collection.ListAttachState 79 promoter = other.promoter in clone() 90 promoter = null in reset() 104 promoter = null in detach()
|
D | NotifPipeline.kt | 149 fun addPromoter(promoter: NotifPromoter) { in addPromoter() 150 mShadeListBuilder.addPromoter(promoter) in addPromoter()
|
D | ShadeListBuilder.java | 235 void addPromoter(NotifPromoter promoter) { in addPromoter() argument 239 mNotifPromoters.add(promoter); in addPromoter() 240 promoter.setInvalidationListener(this::onPromoterInvalidated); in addPromoter() 357 private void onPromoterInvalidated(NotifPromoter promoter, @Nullable String reason) { in onPromoterInvalidated() argument 360 mLogger.logPromoterInvalidated(promoter, mPipelineState.getState(), reason); in onPromoterInvalidated() 1304 NotifPromoter promoter = findPromoter(entry); in applyTopLevelPromoters() local 1305 entry.getAttachState().setPromoter(promoter); in applyTopLevelPromoters() 1306 return promoter != null; in applyTopLevelPromoters() 1311 NotifPromoter promoter = mNotifPromoters.get(i); in findPromoter() local 1312 if (promoter.shouldPromoteToTopLevel(entry)) { in findPromoter() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | ConversationCoordinatorTest.kt | 72 private lateinit var promoter: NotifPromoter variable in com.android.systemui.statusbar.notification.collection.coordinator.ConversationCoordinatorTest 103 promoter = withArgCaptor { verify(pipeline).addPromoter(capture()) } in setUp() 128 assertTrue(promoter.shouldPromoteToTopLevel(makeEntryOfPeopleType(TYPE_IMPORTANT_PERSON))) in testPromotesImportantConversations() 129 assertFalse(promoter.shouldPromoteToTopLevel(makeEntryOfPeopleType(TYPE_FULL_PERSON))) in testPromotesImportantConversations() 130 assertFalse(promoter.shouldPromoteToTopLevel(makeEntryOfPeopleType(TYPE_PERSON))) in testPromotesImportantConversations() 131 assertFalse(promoter.shouldPromoteToTopLevel(makeEntryOfPeopleType(TYPE_NON_PERSON))) in testPromotesImportantConversations() 132 assertFalse(promoter.shouldPromoteToTopLevel(NotificationEntryBuilder().build())) in testPromotesImportantConversations() 159 assertTrue(promoter.shouldPromoteToTopLevel(importantChild)) in testPromotedImportantConversationsMakesSummaryUnimportant() 160 assertFalse(promoter.shouldPromoteToTopLevel(altChildA)) in testPromotedImportantConversationsMakesSummaryUnimportant() 161 assertFalse(promoter.shouldPromoteToTopLevel(altChildB)) in testPromotedImportantConversationsMakesSummaryUnimportant()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | ShadeListBuilderTest.java | 621 NotifPromoter promoter = spy(new IdPromoter(1, 2)); in testNotifsArePromoted() local 622 mListBuilder.addPromoter(promoter); in testNotifsArePromoted() 635 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(1)); in testNotifsArePromoted() 636 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(2)); in testNotifsArePromoted() 637 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(3)); in testNotifsArePromoted() 638 verify(promoter).shouldPromoteToTopLevel(mEntrySet.get(4)); in testNotifsArePromoted() 653 assertEquals(promoter, mEntrySet.get(2).getNotifPromoter()); in testNotifsArePromoted() 654 assertEquals(promoter, mEntrySet.get(3).getNotifPromoter()); in testNotifsArePromoted() 958 NotifPromoter promoter = spy(new IdPromoter(3)); in testListenersAndPluggablesAreFiredInOrder() local 964 mListBuilder.addPromoter(promoter); in testListenersAndPluggablesAreFiredInOrder() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/ |
D | ShadeListBuilderLogger.kt | 105 promoter: NotifPromoter, 108 ) = logPluggableInvalidated("NotifPromoter", promoter, pipelineState, reason)
|