/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/dao/ |
D | AppSearchTopicsConsentDao.java | 72 @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/ |
D | AppSearchWriterActivity.java | 77 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/ |
D | BlockedTopicsManager.java | 53 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/ |
D | TopicsDaoTest.java | 64 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/ |
D | TopicsDao.java | 148 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/ |
D | AppSearchTopicsConsentDao.java | 86 @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/ |
D | AppSearchDataMigrationHostTest.java | 196 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/ |
D | TopicsDaoTest.java | 763 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/ |
D | AppSearchConsentManagerTest.java | 479 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()
|
D | AppSearchConsentStorageManagerTest.java | 472 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/ |
D | TopicsDao.java | 1057 List<Topic> blockedTopics = new ArrayList<>(); in retrieveAllBlockedTopics() local 1059 return blockedTopics; in retrieveAllBlockedTopics() 1089 blockedTopics.add(topic); in retrieveAllBlockedTopics() 1093 return blockedTopics; in retrieveAllBlockedTopics()
|