Home
last modified time | relevance | path

Searched refs:blockedTopics (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/dao/
DAppSearchTopicsConsentDao.java72 @Nullable List<Integer> blockedTopics, in AppSearchTopicsConsentDao() argument
78 mBlockedTopics.addAll(blockedTopics != null ? blockedTopics : List.of()); in AppSearchTopicsConsentDao()
152 String blockedTopics = Arrays.toString(mBlockedTopics.toArray()); in toString() local
163 + blockedTopics in toString()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DAppSearchWriterActivity.java77 List<Integer> blockedTopics = in onCreate() local
87 setBlockedTopics(userId, blockedTopics); in onCreate()
129 private void setBlockedTopics(String userId, List<Integer> blockedTopics) { in setBlockedTopics() argument
140 blockedTopics, in setBlockedTopics()
141 Collections.nCopies(blockedTopics.size(), 2L), in setBlockedTopics()
142 Collections.nCopies(blockedTopics.size(), 1L)); in setBlockedTopics()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DBlockedTopicsManager.java53 List<Topic> blockedTopics = in recordBlockedTopic() local
57 mTopicsDao.recordBlockedTopic(blockedTopics, mUserIdentifier); in recordBlockedTopic()
109 List<TopicParcel> blockedTopics = retrieveAllBlockedTopics(); in dump() local
110 int size = blockedTopics.size(); in dump()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/data/topics/
DTopicsDaoTest.java64 Set<Topic> blockedTopics = mTopicsDao.retrieveAllBlockedTopics(user0); in testRecordBlockedTopicAndRetrieveBlockedTopics() local
67 assertThat(blockedTopics).hasSize(1); in testRecordBlockedTopicAndRetrieveBlockedTopics()
68 assertThat(blockedTopics).containsExactly(topicToBlock); in testRecordBlockedTopicAndRetrieveBlockedTopics()
86 Set<Topic> blockedTopics = mTopicsDao.retrieveAllBlockedTopics(user); in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics() local
89 assertThat(blockedTopics).hasSize(1); in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics()
90 assertThat(blockedTopics).containsExactly(topicToBlock); in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/data/topics/
DTopicsDao.java148 Set<Topic> blockedTopics = new HashSet<>(); in retrieveAllBlockedTopics() local
150 return blockedTopics; in retrieveAllBlockedTopics()
179 blockedTopics.add(topic); in retrieveAllBlockedTopics()
183 return blockedTopics; in retrieveAllBlockedTopics()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchTopicsConsentDao.java86 @Nullable List<Integer> blockedTopics, in AppSearchTopicsConsentDao() argument
92 mBlockedTopics.addAll(blockedTopics != null ? blockedTopics : List.of()); in AppSearchTopicsConsentDao()
172 String blockedTopics = Arrays.toString(mBlockedTopics.toArray()); in toString() local
183 + blockedTopics in toString()
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/
DAppSearchDataMigrationHostTest.java196 List<Integer> blockedTopics = getBlockedTopics(); in testAppSearchConsentMigration() local
197 expect.withMessage("Blocked topics").that(blockedTopics).containsExactly(10004, 10410); in testAppSearchConsentMigration()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/
DTopicsDaoTest.java763 List<Topic> blockedTopics = mTopicsDao.retrieveAllBlockedTopics(); in testRecordBlockedTopicAndRetrieveBlockedTopics() local
766 assertThat(blockedTopics).hasSize(1); in testRecordBlockedTopicAndRetrieveBlockedTopics()
767 assertThat(blockedTopics).containsExactly(topicToBlock); in testRecordBlockedTopicAndRetrieveBlockedTopics()
778 List<Topic> blockedTopics = mTopicsDao.retrieveAllBlockedTopics(); in testRecordBlockedTopicAndRemoveBlockedTopic() local
781 assertThat(blockedTopics).hasSize(1); in testRecordBlockedTopicAndRemoveBlockedTopic()
782 assertThat(blockedTopics).containsExactly(topicToBlock); in testRecordBlockedTopicAndRemoveBlockedTopic()
785 blockedTopics = mTopicsDao.retrieveAllBlockedTopics(); in testRecordBlockedTopicAndRemoveBlockedTopic()
788 assertThat(blockedTopics).isEmpty(); in testRecordBlockedTopicAndRemoveBlockedTopic()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentManagerTest.java479 List<Topic> blockedTopics = List.of(TOPIC1, TOPIC2, TOPIC3); in testMigrateConsentData() local
490 when(mAppSearchConsentWorker.getBlockedTopics()).thenReturn(blockedTopics); in testMigrateConsentData()
516 assertThat(argument.getValue().size()).isEqualTo(blockedTopics.size()); in testMigrateConsentData()
DAppSearchConsentStorageManagerTest.java472 List<Topic> blockedTopics = List.of(TOPIC1, TOPIC2, TOPIC3); in testMigrateConsentData() local
483 when(mAppSearchConsentWorker.getBlockedTopics()).thenReturn(blockedTopics); in testMigrateConsentData()
509 expect.that(argument.getValue().size()).isEqualTo(blockedTopics.size()); in testMigrateConsentData()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/
DTopicsDao.java1057 List<Topic> blockedTopics = new ArrayList<>(); in retrieveAllBlockedTopics() local
1059 return blockedTopics; in retrieveAllBlockedTopics()
1089 blockedTopics.add(topic); in retrieveAllBlockedTopics()
1093 return blockedTopics; in retrieveAllBlockedTopics()