Home
last modified time | relevance | path

Searched refs:Topic (Results 1 – 25 of 85) sorted by relevance

1234

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DEpochManagerTest.java42 import com.android.adservices.data.topics.Topic;
173 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap()
174 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap()
175 Topic topic3 = Topic.create(/* topic */ 3, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap()
176 Topic topic4 = Topic.create(/* topic */ 4, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap()
177 Topic topic5 = Topic.create(/* topic */ 5, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap()
178 Topic topic6 = Topic.create(/* topic */ 6, TAXONOMY_VERSION, MODEL_VERSION); in testComputeCallersCanLearnMap()
180 Map<String, List<Topic>> appClassificationTopicsMap = new HashMap<>(); in testComputeCallersCanLearnMap()
189 Map<Topic, Set<String>> expectedCallerCanLearnMap = new HashMap<>(); in testComputeCallersCanLearnMap()
213 Map<Topic, Set<String>> canLearnMap = in testComputeCallersCanLearnMap()
[all …]
DAppUpdateManagerTest.java44 import com.android.adservices.data.topics.Topic;
130 Topic topic1 = Topic.create(topicId1, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileUninstalledApps()
132 Map<String, List<Topic>> appClassificationTopicsMap1 = new HashMap<>(); in testReconcileUninstalledApps()
161 Map<Topic, Set<String>> callerCanLearnMap = new HashMap<>(); in testReconcileUninstalledApps()
173 Map<Pair<String, String>, Topic> returnedAppSdkTopics = new HashMap<>(); in testReconcileUninstalledApps()
180 Map<Pair<String, String>, Topic> expectedReturnedTopics = new HashMap<>(); in testReconcileUninstalledApps()
218 Map<Pair<String, String>, Topic> expectedReturnedTopicsAfterWiping = new HashMap<>(); in testReconcileUninstalledApps()
250 Topic topic1 = Topic.create(1, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
251 Topic topic2 = Topic.create(2, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
252 Topic topic3 = Topic.create(3, TAXONOMY_VERSION, MODEL_VERSION); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
[all …]
DTopicsWorkerTest.java51 import com.android.adservices.data.topics.Topic;
156 Topic topic1 = Topic.create(/* topic */ 1, /* taxonomyVersion */ 1L, /* modelVersion */ 4L); in testGetTopics()
157 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics()
158 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics()
159 Topic[] topics = {topic1, topic2, topic3}; in testGetTopics()
162 Topic currentTopic = topics[numberOfLookBackEpochs - numEpoch]; in testGetTopics()
163 Map<Pair<String, String>, Topic> returnedAppSdkTopicsMap = new HashMap<>(); in testGetTopics()
204 Topic topic1 = Topic.create(/* topic */ 1, /* taxonomyVersion */ 1L, /* modelVersion */ 4L); in testGetTopics_enableEncryption_disablePlaintextTopics()
210 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 2L, /* modelVersion */ 5L); in testGetTopics_enableEncryption_disablePlaintextTopics()
216 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 3L, /* modelVersion */ 6L); in testGetTopics_enableEncryption_disablePlaintextTopics()
[all …]
DCacheManagerTest.java42 import com.android.adservices.data.topics.Topic;
150 List<Topic> topics = in testGetTopics_emptyCache()
175 ArgumentCaptor<List<Topic>> cobaltArgumentCaptor = ArgumentCaptor.forClass(List.class); in testGetTopics()
184 Topic topic1 = Topic.create(/* topic */ 1, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics()
185 Topic topic2 = Topic.create(/* topic */ 2, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics()
186 Topic topic3 = Topic.create(/* topic */ 3, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics()
187 Topic topic4 = Topic.create(/* topic */ 4, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics()
188 Topic topic5 = Topic.create(/* topic */ 5, /* taxonomyVersion */ 1L, /* modelVersion */ 1L); in testGetTopics()
191 Map<Pair<String, String>, Topic> returnedAppSdkTopicsMap1 = new HashMap<>(); in testGetTopics()
208 Map<Pair<String, String>, Topic> returnedAppSdkTopicsMap2 = new HashMap<>(); in testGetTopics()
[all …]
DEncryptionManagerTest.java47 import com.android.adservices.data.topics.Topic;
143 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_success()
163 Topic returnedTopic = in testEncryption_success()
164 Topic.create( in testEncryption_success()
178 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_verifyLatestKeys()
195 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_useTestingKeys()
215 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_missingKeys()
234 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_incompatibleKeys()
250 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_missingEnrollmentData()
267 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_missingEnrollmentId()
[all …]
DHpkeEncrypterTest.java35 import com.android.adservices.data.topics.Topic;
60 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_success()
73 Topic returnedTopic = in testEncryption_success()
74 Topic.create( in testEncryption_success()
86 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_invalidKeyLength_returnsEmpty()
114 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_nullPublicKey_throwsException()
124 Topic topic = Topic.create(/* topic */ 5, /* taxonomyVersion */ 6L, /* modelVersion */ 7L); in testEncryption_nullContextInfo_throwsException()
134 private byte[] generateTopicsPlainText(Topic topic) { in generateTopicsPlainText()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/
DTopicsDaoTest.java103 Map<String, List<Topic>> appClassificationTopicsMap1 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
104 Map<String, List<Topic>> appClassificationTopicsMap2 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
105 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testPersistAndGetAppClassificationTopics()
106 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testPersistAndGetAppClassificationTopics()
121 Map<String, List<Topic>> expectedTopicsMap1 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
122 Map<String, List<Topic>> expectedTopicsMap2 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
127 Map<String, List<Topic>> topicsMapFromDb1 = in testPersistAndGetAppClassificationTopics()
129 Map<String, List<Topic>> topicsMapFromDb2 = in testPersistAndGetAppClassificationTopics()
150 Topic topic1 = Topic.create(/* topic */ 1, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics()
151 Topic topic2 = Topic.create(/* topic */ 2, TAXONOMY_VERSION, MODEL_VERSION); in testGetTopTopicsAndPersistTopics()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/data/topics/
DTopicsDaoTest.java26 import android.adservices.topics.Topic;
61 Topic topicToBlock = new Topic(TAXONOMY_VERSION, DUMMY_MODEL_VERSION, topicId); in testRecordBlockedTopicAndRetrieveBlockedTopics()
64 Set<Topic> blockedTopics = mTopicsDao.retrieveAllBlockedTopics(user0); in testRecordBlockedTopicAndRetrieveBlockedTopics()
81 Topic topicToBlock = new Topic(TAXONOMY_VERSION, DUMMY_MODEL_VERSION, topicId); in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics()
86 Set<Topic> blockedTopics = mTopicsDao.retrieveAllBlockedTopics(user); in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics()
98 Topic topicToBlock = new Topic(TAXONOMY_VERSION, DUMMY_MODEL_VERSION, topicId); in testRecordBlockedTopicAndRemoveBlockedTopic()
102 Set<Topic> blockedTopics0 = mTopicsDao.retrieveAllBlockedTopics(user0); in testRecordBlockedTopicAndRemoveBlockedTopic()
103 Set<Topic> blockedTopics1 = mTopicsDao.retrieveAllBlockedTopics(user1); in testRecordBlockedTopicAndRemoveBlockedTopic()
123 Topic topicToBlock = new Topic(TAXONOMY_VERSION, DUMMY_MODEL_VERSION, topicId); in testRecordBlockedTopicAndRemoveBlockedTopic_duplicateTopics()
127 Set<Topic> blockedTopics0 = mTopicsDao.retrieveAllBlockedTopics(user); in testRecordBlockedTopicAndRemoveBlockedTopic_duplicateTopics()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DCommonClassifierHelperTest.java34 import com.android.adservices.data.topics.Topic;
171 Map<String, List<Topic>> appTopics = new HashMap<>(); in testGetTopTopics_legalInput()
180 List<Topic> testResponse = in testGetTopTopics_legalInput()
214 Map<String, List<Topic>> appTopics = new HashMap<>(); in testGetTopTopics_largeTopTopicsInput()
219 List<Topic> testResponse = in testGetTopTopics_largeTopTopicsInput()
243 Map<String, List<Topic>> appTopics = new HashMap<>(); in testGetTopTopics_zeroTopTopics()
261 Map<String, List<Topic>> appTopics = new HashMap<>(); in testGetTopTopics_zeroRandomTopics()
278 Map<String, List<Topic>> appTopics = new HashMap<>(); in testGetTopTopics_negativeTopTopics()
296 Map<String, List<Topic>> appTopics = new HashMap<>(); in testGetTopTopics_negativeRandomTopics()
315 Map<String, List<Topic>> appTopics = new HashMap<>(); in testGetTopTopics_emptyAppTopicsMap()
[all …]
DPrecomputedClassifierTest.java28 import com.android.adservices.data.topics.Topic;
122 List<Topic> expectedSampleAppTopics = in testClassify_existingApp()
125 Map<String, List<Topic>> expectedAppTopicsResponse = new HashMap<>(); in testClassify_existingApp()
129 Map<String, List<Topic>> testResponse = in testClassify_existingApp()
161 Map<String, List<Topic>> testResponse = in testClassify_nonExistingApp()
206 List<Topic> expectedAppClassificationTopics = createRealTopics(nonBlockedTopicIds); in testClassify_appWithBlockedTopic()
207 Map<String, List<Topic>> classifications = in testClassify_appWithBlockedTopic()
229 Map<String, List<Topic>> classifications = in testClassify_appWithAllTopicsBlocked()
239 Map<String, List<Topic>> testResponse = in testClassify_emptyStringApp()
249 Map<String, List<Topic>> testResponse = in testClassify_emptyAppList()
[all …]
DClassifierManagerTest.java31 import com.android.adservices.data.topics.Topic;
101 List<Topic> onDeviceTopics = createTopics(/* TopicIds */ 123, 72); in testClassify_onDeviceClassifier()
105 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_onDeviceClassifier()
122 List<Topic> precomputedTopics = createTopics(/* TopicIds */ 13, 235); in testClassify_preComputedClassifier()
126 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_preComputedClassifier()
143 List<Topic> precomputedTopics = createTopics(/* TopicIds */ 13, 235); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier()
149 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier()
166 List<Topic> onDeviceTopics = createTopics(/* TopicIds */ 123, 72); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
170 List<Topic> precomputedTopics = createTopics(); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
174 Map<String, List<Topic>> classifications = mClassifierManager.classify(appPackages); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics()
[all …]
DOnDeviceClassifierTest.java35 import com.android.adservices.data.topics.Topic;
157 ImmutableMap<String, List<Topic>> classifications = in testClassify_earlyReturnIfNoModelAvailable()
175 ImmutableMap<String, List<Topic>> classifications = in testClassify_emptyClassifierInput_returnsDefaultClassifications()
227 ImmutableMap<String, List<Topic>> classifications = in testClassify_successfulClassifications()
309 .map(Topic::getTopic) in testClassify_appWithBlockedTopic()
329 .map(Topic::getTopic) in testClassify_appWithBlockedTopic()
350 .map(Topic::getTopic) in testClassify_appWithAllTopicsBlocked()
368 List<Topic> topTopicsAfterBlocking = in testClassify_appWithAllTopicsBlocked()
388 ImmutableMap<String, List<Topic>> classifications = in testClassify_successfulClassifications_overrideNumberOfTopLabels()
429 ImmutableMap<String, List<Topic>> classifications = in testClassify_successfulClassifications_overrideClassifierThreshold()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DEpochManager.java31 import com.android.adservices.data.topics.Topic;
199 Map<String, List<Topic>> appClassificationTopicsMap = in processEpoch()
208 Map<Topic, Set<String>> callersCanLearnThisEpochMap = in processEpoch()
220 Map<Topic, Set<String>> callersCanLearnMap = in processEpoch()
228 List<Topic> topTopics = in processEpoch()
259 Map<Pair<String, String>, Topic> returnedAppSdkTopics = in processEpoch()
353 @NonNull Topic topic, in isTopicLearnableByCaller()
355 @NonNull Map<Topic, Set<String>> callersCanLearnMap, in isTopicLearnableByCaller() argument
356 @NonNull List<Topic> topTopics, in isTopicLearnableByCaller()
403 static Map<Topic, Set<String>> computeCallersCanLearnMap( in computeCallersCanLearnMap()
[all …]
DAppUpdateManager.java33 import com.android.adservices.data.topics.Topic;
325 Map<Long, Map<Pair<String, String>, Topic>> pastReturnedTopics = in assignTopicsToSdkForAppInstallation()
327 for (Map<Pair<String, String>, Topic> returnedTopics : pastReturnedTopics.values()) { in assignTopicsToSdkForAppInstallation()
348 Topic appReturnedTopic = pastReturnedTopics.get(epochId).get(appOnlyCaller); in assignTopicsToSdkForAppInstallation()
354 Map<Topic, Set<String>> pastCallerCanLearnTopicsMap = in assignTopicsToSdkForAppInstallation()
356 List<Topic> pastTopTopic = mTopicsDao.retrieveTopTopics(epochId); in assignTopicsToSdkForAppInstallation()
386 Topic selectAssignedTopicFromTopTopics( in selectAssignedTopicFromTopTopics()
387 @NonNull List<Topic> regularTopics, in selectAssignedTopicFromTopTopics()
388 @NonNull List<Topic> randomTopics, in selectAssignedTopicFromTopTopics()
462 List<Topic> topTopics = mTopicsDao.retrieveTopTopics(epochId);
[all …]
DCacheManager.java35 import com.android.adservices.data.topics.Topic;
92 private Map<Long, Map<Pair<String, String>, Topic>> mCachedTopics = new HashMap<>();
98 private HashSet<Topic> mCachedBlockedTopics = new HashSet<>();
166 Map<Long, Map<Pair<String, String>, Topic>> cachedTopicsFromDb = in loadCache()
197 HashSet<Topic> blockedTopicsCacheFromDb = in loadCache()
201 .map(Topic::getTopic) in loadCache()
240 List<Topic> topics = new ArrayList<>(); in getTopics()
249 Topic topic = mCachedTopics.get(epochId - numEpoch).get(Pair.create(app, sdk)); in getTopics()
356 public List<Topic> getTopicsInEpochRange( in getTopicsInEpochRange()
358 List<Topic> topics = new ArrayList<>(); in getTopicsInEpochRange()
[all …]
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/ui/settings/viewmodels/
DTopicsViewModelTest.java27 import com.android.adservices.data.topics.Topic;
83 ImmutableList<Topic> topicsList = ImmutableList.of(); in testGetTopicsReturnsNoTopics()
98 Topic topic1 = Topic.create(1, 1, 1); in testGetTopicsReturnsTopics()
99 Topic topic2 = Topic.create(2, 1, 1); in testGetTopicsReturnsTopics()
100 ImmutableList<Topic> topicsList = ImmutableList.copyOf(new Topic[] {topic1, topic2}); in testGetTopicsReturnsTopics()
113 Topic topic1 = Topic.create(1, 1, 1); in testBlockTopic()
122 Topic topic1 = Topic.create(1, 1, 1); in testRestoreTopic()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DCommonClassifierHelper.java29 import com.android.adservices.data.topics.Topic;
130 static List<Topic> getTopTopics( in getTopTopics()
131 @NonNull Map<String, List<Topic>> appTopics, in getTopTopics()
143 Map<Topic, Integer> topicsToAppTopicCount = new HashMap<>(); in getTopTopics()
144 for (List<Topic> appTopic : appTopics.values()) { in getTopTopics()
145 for (Topic topic : appTopic) { in getTopTopics()
165 List<Topic> allSortedTopics = in getTopTopics()
173 List<Topic> topTopics = in getTopTopics()
194 private static List<Topic> getRandomTopics( in getRandomTopics()
197 @NonNull List<Topic> topTopics, in getRandomTopics()
[all …]
DClassifierManager.java28 import com.android.adservices.data.topics.Topic;
99 public Map<String, List<Topic>> classify(Set<String> apps) { in classify()
122 Map<String, List<Topic>> precomputedClassifications = in classify()
131 Map<String, List<Topic>> onDeviceClassifications = in classify()
136 Map<String, List<Topic>> combinedClassifications = in classify()
155 public List<Topic> getTopTopics( in getTopTopics()
156 Map<String, List<Topic>> appTopics, int numberOfTopTopics, int numberOfRandomTopics) { in getTopTopics()
210 private static List<Topic> combineTopics( in combineTopics()
211 List<Topic> onDeviceValue, List<Topic> precomputedValue) { in combineTopics()
219 private boolean isValidValue(String packageName, Map<String, List<Topic>> classifications) { in isValidValue()
DOnDeviceClassifier.java30 import com.android.adservices.data.topics.Topic;
104 public ImmutableMap<String, List<Topic>> classify(@NonNull Set<String> appPackageNames) { in classify()
120 ImmutableMap.Builder<String, List<Topic>> packageNameToTopics = ImmutableMap.builder(); in classify()
125 List<Topic> appClassificationTopics = getAppClassificationTopics(classifierInput); in classify()
138 private void logEpochComputationClassifierStats(List<Topic> topics) { in logEpochComputationClassifierStats()
141 for (Topic topic : topics) { in logEpochComputationClassifierStats()
164 public List<Topic> getTopTopics( in getTopTopics()
165 Map<String, List<Topic>> appTopics, int numberOfTopTopics, int numberOfRandomTopics) { in getTopTopics()
176 private List<Topic> getAppClassificationTopics(@NonNull String classifierInput) { in getAppClassificationTopics()
291 private Topic createTopic(int topicId) { in createTopic()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchTopicsConsentDaoTest.java29 import com.android.adservices.data.topics.Topic;
50 private static final Topic TOPIC1 = Topic.create(0, 1, 11);
51 private static final Topic TOPIC2 = Topic.create(12, 2, 22);
52 private static final Topic TOPIC3 = Topic.create(123, 3, 33);
152 Topic topic = Topic.create(5, 6L, 7L); in testAddTopic_null()
169 Topic topic = Topic.create(5, 6L, 7L); in testAddTopic()
190 Topic topic = Topic.create(5, 6L, 7L); in testRemoveTopic_notExists()
211 Topic topic = Topic.create(0, 1L, 11L); in testRemoveTopic()
241 List<Topic> result = in testGetBlockedTopics()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewmodels/
DTopicsViewModel.java28 import com.android.adservices.data.topics.Topic;
48 private final MutableLiveData<Pair<TopicsViewModelUiEvent, Topic>> mEventTrigger =
50 private final MutableLiveData<ImmutableList<Topic>> mTopics;
51 private final MutableLiveData<ImmutableList<Topic>> mBlockedTopics;
92 public LiveData<ImmutableList<Topic>> getTopics() { in getTopics()
101 public LiveData<ImmutableList<Topic>> getBlockedTopics() { in getBlockedTopics()
110 public void revokeTopicConsent(Topic topic) { in revokeTopicConsent()
132 public LiveData<Pair<TopicsViewModelUiEvent, Topic>> getUiEvents() { in getUiEvents()
150 public void revokeTopicConsentButtonClickHandler(Topic topic) { in revokeTopicConsentButtonClickHandler()
169 private ImmutableList<Topic> getTopicsFromConsentManager() { in getTopicsFromConsentManager()
[all …]
DBlockedTopicsViewModel.java28 import com.android.adservices.data.topics.Topic;
45 private final MutableLiveData<Pair<BlockedTopicsViewModelUiEvent, Topic>> mEventTrigger =
47 private final MutableLiveData<ImmutableList<Topic>> mBlockedTopics;
75 public LiveData<ImmutableList<Topic>> getBlockedTopics() { in getBlockedTopics()
84 public void restoreTopicConsent(Topic topic) { in restoreTopicConsent()
99 public LiveData<Pair<BlockedTopicsViewModelUiEvent, Topic>> getUiEvents() { in getUiEvents()
117 public void restoreTopicConsentButtonClickHandler(Topic topic) { in restoreTopicConsentButtonClickHandler()
121 private ImmutableList<Topic> getBlockedTopicsFromConsentManager() { in getBlockedTopicsFromConsentManager()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/
DTopicsDao.java116 long epochId, Map<String, List<Topic>> appClassificationTopicsMap) { in persistAppClassificationTopics()
124 for (Map.Entry<String, List<Topic>> entry : appClassificationTopicsMap.entrySet()) { in persistAppClassificationTopics()
128 for (Topic topic : entry.getValue()) { in persistAppClassificationTopics()
162 public Map<String, List<Topic>> retrieveAppClassificationTopics(long epochId) { in retrieveAppClassificationTopics()
164 Map<String, List<Topic>> appTopicsMap = new HashMap<>(); in retrieveAppClassificationTopics()
208 Topic topic = Topic.create(topicId, taxonomyVersion, modelVersion); in retrieveAppClassificationTopics()
210 List<Topic> list = appTopicsMap.getOrDefault(app, new ArrayList<>()); in retrieveAppClassificationTopics()
225 public void persistTopTopics(long epochId, List<Topic> topTopics) { in persistTopTopics()
270 public List<Topic> retrieveTopTopics(long epochId) { in retrieveTopTopics()
333 Topic topic1 = Topic.create(topicId1, taxonomyVersion, modelVersion); in retrieveTopTopics()
[all …]
DTopic.java35 public abstract class Topic { class
76 public static Topic create( in create()
97 public static Topic create( in create()
127 public abstract Topic build(); in build()
156 if (!(object instanceof Topic)) { in equals()
161 Topic topic = (Topic) object; in equals()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/topics/
DTopicTest.java36 private Topic mTopic1;
37 private Topic mTopic2;
72 Topic different = in testNotEquals()
73 new Topic( in testNotEquals()
80 mTopic1 = new Topic(TAXONOMY_VERSION_2, MODEL_VERSION_5, TOPIC_ID_1); in generateTopics()
81 mTopic2 = new Topic(TAXONOMY_VERSION_2, MODEL_VERSION_5, TOPIC_ID_1); in generateTopics()

1234