Home
last modified time | relevance | path

Searched refs:mTopicsViewModel (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/activitydelegates/
DTopicsActivityActionDelegate.java51 private final TopicsViewModel mTopicsViewModel; field in TopicsActivityActionDelegate
56 mTopicsViewModel = topicsViewModel; in TopicsActivityActionDelegate()
68 switchBar -> mTopicsViewModel.consentSwitchClickHandler((MainSwitchBar) switchBar), in initGA()
69 mTopicsViewModel.getTopicsConsent(), in initGA()
99 mTopicsViewModel.getBlockedTopics(), in initGA()
122 topic -> view -> mTopicsViewModel.revokeTopicConsentButtonClickHandler(topic); in configureSharedElements()
125 mActivity, mTopicsViewModel.getTopics(), getOnclickListener, false); in configureSharedElements()
130 mTopicsViewModel.getTopics(), in configureSharedElements()
138 mTopicsViewModel.getTopics(), in configureSharedElements()
146 button -> mTopicsViewModel.blockedTopicsFragmentButtonClickHandler()); in configureSharedElements()
[all …]
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/delegates/
DTopicsActionDelegate.java47 private final TopicsViewModel mTopicsViewModel; field in TopicsActionDelegate
51 mTopicsViewModel = topicsViewModel; in TopicsActionDelegate()
72 mTopicsViewModel.setTopicsConsent(true); in listenToTopicsViewModelUiEvents()
73 mTopicsViewModel.refresh(); in listenToTopicsViewModelUiEvents()
78 mTopicsActivity, mTopicsViewModel); in listenToTopicsViewModelUiEvents()
80 mTopicsViewModel.setTopicsConsent(false); in listenToTopicsViewModelUiEvents()
81 mTopicsViewModel.refresh(); in listenToTopicsViewModelUiEvents()
89 mTopicsActivity, mTopicsViewModel, topic); in listenToTopicsViewModelUiEvents()
92 mTopicsActivity, mTopicsViewModel, topic); in listenToTopicsViewModelUiEvents()
95 mTopicsViewModel.revokeTopicConsent(topic); in listenToTopicsViewModelUiEvents()
[all …]
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/ui/settings/viewmodels/
DTopicsViewModelTest.java47 private TopicsViewModel mTopicsViewModel; field in TopicsViewModelTest
64 mTopicsViewModel = in setup()
86 mTopicsViewModel = in testGetTopicsReturnsNoTopics()
90 assertThat(mTopicsViewModel.getTopics().getValue()).containsExactlyElementsIn(topicsList); in testGetTopicsReturnsNoTopics()
103 mTopicsViewModel = in testGetTopicsReturnsTopics()
107 assertThat(mTopicsViewModel.getTopics().getValue()).containsExactlyElementsIn(topicsList); in testGetTopicsReturnsTopics()
114 mTopicsViewModel.revokeTopicConsent(topic1); in testBlockTopic()