Home
last modified time | relevance | path

Searched refs:getBlockedTopics (Results 1 – 16 of 16) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchTopicsConsentDaoTest.java155 assertThat(dao.getBlockedTopics().size()).isEqualTo(1); in testAddTopic_null()
159 assertThat(dao.getBlockedTopics()).contains(5); in testAddTopic_null()
170 assertThat(dao.getBlockedTopics()).doesNotContain(5); in testAddTopic()
176 assertThat(dao.getBlockedTopics().size()).isEqualTo(4); in testAddTopic()
180 assertThat(dao.getBlockedTopics()).contains(5); in testAddTopic()
193 assertThat(dao.getBlockedTopics().size()).isEqualTo(3); in testRemoveTopic_notExists()
197 assertThat(dao.getBlockedTopics()).doesNotContain(5); in testRemoveTopic_notExists()
207 assertThat(dao.getBlockedTopics()).contains(0); in testRemoveTopic()
214 assertThat(dao.getBlockedTopics().size()).isEqualTo(2); in testRemoveTopic()
218 assertThat(dao.getBlockedTopics()).doesNotContain(0); in testRemoveTopic()
[all …]
DAppSearchConsentManagerTest.java327 when(mAppSearchConsentWorker.getBlockedTopics()) in testRetrieveAllBlockedTopics()
330 verify(mAppSearchConsentWorker).getBlockedTopics(); in testRetrieveAllBlockedTopics()
490 when(mAppSearchConsentWorker.getBlockedTopics()).thenReturn(blockedTopics); in testMigrateConsentData()
DAppSearchConsentStorageManagerTest.java322 when(mAppSearchConsentWorker.getBlockedTopics()) in testRetrieveAllBlockedTopics()
325 verify(mAppSearchConsentWorker).getBlockedTopics(); in testRetrieveAllBlockedTopics()
483 when(mAppSearchConsentWorker.getBlockedTopics()).thenReturn(blockedTopics); in testMigrateConsentData()
DAppSearchConsentWorkerTest.java713 .when(() -> AppSearchTopicsConsentDao.getBlockedTopics(any(), any(), any(), any())); in testGetBlockedTopics()
716 assertThat(appSearchConsentWorker.getBlockedTopics()).isEqualTo(mTopics); in testGetBlockedTopics()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchTopicsConsentDao.java135 public List<Integer> getBlockedTopics() { in getBlockedTopics() method in AppSearchTopicsConsentDao
208 && (Objects.equals(this.getBlockedTopics(), obj.getBlockedTopics())) in equals()
288 public static List<Topic> getBlockedTopics( in getBlockedTopics() method in AppSearchTopicsConsentDao
315 if (dao == null || dao.getBlockedTopics() == null) { in convertToTopics()
318 if (dao.getBlockedTopics().size() != dao.getBlockedTopicsTaxonomyVersions().size() in convertToTopics()
319 || dao.getBlockedTopics().size() != dao.getBlockedTopicsModelVersions().size()) { in convertToTopics()
324 for (int i = 0; i < dao.getBlockedTopics().size(); ++i) { in convertToTopics()
327 dao.getBlockedTopics().get(i), in convertToTopics()
DAppSearchConsentManager.java346 return mAppSearchConsentWorker.getBlockedTopics(); in retrieveAllBlockedTopics()
525 for (Topic topic : mAppSearchConsentWorker.getBlockedTopics()) { in migrateConsentDataIfNeeded()
DAppSearchConsentStorageManager.java390 for (Topic topic : mAppSearchConsentWorker.getBlockedTopics()) { in migrateConsentDataIfNeeded()
434 return mAppSearchConsentWorker.getBlockedTopics(); in retrieveAllBlockedTopics()
DAppSearchConsentWorker.java443 List<Topic> getBlockedTopics() { in getBlockedTopics() method in AppSearchConsentWorker
446 return AppSearchTopicsConsentDao.getBlockedTopics( in getBlockedTopics()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/activitydelegates/
DBlockedTopicsActivityActionDelegate.java77 mBlockedTopicsViewModel.getBlockedTopics(), in configureSharedElements()
91 mBlockedTopicsViewModel.getBlockedTopics(), in configureSharedElements()
95 configureNotifyAdapterDataChange(mBlockedTopicsViewModel.getBlockedTopics(), adapter); in configureSharedElements()
DTopicsActivityActionDelegate.java99 mTopicsViewModel.getBlockedTopics(), in initGA()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/fragments/
DAdServicesSettingsBlockedTopicsFragment.java74 requireContext(), viewModel.getBlockedTopics(), getOnclickListener, true); in setupViewModel()
83 .getBlockedTopics() in setupViewModel()
DAdServicesSettingsTopicsFragment.java120 .getBlockedTopics() in setupViewModel()
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/
DAppSearchDataMigrationHostTest.java196 List<Integer> blockedTopics = getBlockedTopics(); in testAppSearchConsentMigration()
242 private List<Integer> getBlockedTopics() { in getBlockedTopics() method in AppSearchDataMigrationHostTest
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/
DBlockedTopicsViewModel.java75 public LiveData<ImmutableList<Topic>> getBlockedTopics() { in getBlockedTopics() method in BlockedTopicsViewModel
DTopicsViewModel.java101 public LiveData<ImmutableList<Topic>> getBlockedTopics() { in getBlockedTopics() method in TopicsViewModel
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/dao/
DAppSearchTopicsConsentDao.java121 public List<Integer> getBlockedTopics() { in getBlockedTopics() method in AppSearchTopicsConsentDao