/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchTopicsConsentDaoTest.java | 155 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 …]
|
D | AppSearchConsentManagerTest.java | 327 when(mAppSearchConsentWorker.getBlockedTopics()) in testRetrieveAllBlockedTopics() 330 verify(mAppSearchConsentWorker).getBlockedTopics(); in testRetrieveAllBlockedTopics() 490 when(mAppSearchConsentWorker.getBlockedTopics()).thenReturn(blockedTopics); in testMigrateConsentData()
|
D | AppSearchConsentStorageManagerTest.java | 322 when(mAppSearchConsentWorker.getBlockedTopics()) in testRetrieveAllBlockedTopics() 325 verify(mAppSearchConsentWorker).getBlockedTopics(); in testRetrieveAllBlockedTopics() 483 when(mAppSearchConsentWorker.getBlockedTopics()).thenReturn(blockedTopics); in testMigrateConsentData()
|
D | AppSearchConsentWorkerTest.java | 713 .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/ |
D | AppSearchTopicsConsentDao.java | 135 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()
|
D | AppSearchConsentManager.java | 346 return mAppSearchConsentWorker.getBlockedTopics(); in retrieveAllBlockedTopics() 525 for (Topic topic : mAppSearchConsentWorker.getBlockedTopics()) { in migrateConsentDataIfNeeded()
|
D | AppSearchConsentStorageManager.java | 390 for (Topic topic : mAppSearchConsentWorker.getBlockedTopics()) { in migrateConsentDataIfNeeded() 434 return mAppSearchConsentWorker.getBlockedTopics(); in retrieveAllBlockedTopics()
|
D | AppSearchConsentWorker.java | 443 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/ |
D | BlockedTopicsActivityActionDelegate.java | 77 mBlockedTopicsViewModel.getBlockedTopics(), in configureSharedElements() 91 mBlockedTopicsViewModel.getBlockedTopics(), in configureSharedElements() 95 configureNotifyAdapterDataChange(mBlockedTopicsViewModel.getBlockedTopics(), adapter); in configureSharedElements()
|
D | TopicsActivityActionDelegate.java | 99 mTopicsViewModel.getBlockedTopics(), in initGA()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/fragments/ |
D | AdServicesSettingsBlockedTopicsFragment.java | 74 requireContext(), viewModel.getBlockedTopics(), getOnclickListener, true); in setupViewModel() 83 .getBlockedTopics() in setupViewModel()
|
D | AdServicesSettingsTopicsFragment.java | 120 .getBlockedTopics() in setupViewModel()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/ |
D | AppSearchDataMigrationHostTest.java | 196 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/ |
D | BlockedTopicsViewModel.java | 75 public LiveData<ImmutableList<Topic>> getBlockedTopics() { in getBlockedTopics() method in BlockedTopicsViewModel
|
D | TopicsViewModel.java | 101 public LiveData<ImmutableList<Topic>> getBlockedTopics() { in getBlockedTopics() method in TopicsViewModel
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/dao/ |
D | AppSearchTopicsConsentDao.java | 121 public List<Integer> getBlockedTopics() { in getBlockedTopics() method in AppSearchTopicsConsentDao
|