Searched refs:callerCanLearnMap (Results 1 – 3 of 3) sorted by relevance
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/topics/ |
D | TopicsDao.java | 558 long epochId, Map<Topic, Set<String>> callerCanLearnMap) { in persistCallerCanLearnTopics() argument 564 for (Map.Entry<Topic, Set<String>> entry : callerCanLearnMap.entrySet()) { in persistCallerCanLearnTopics() 612 Map<Topic, Set<String>> callerCanLearnMap = new HashMap<>(); in retrieveCallerCanLearnTopicsMap() local 615 return callerCanLearnMap; in retrieveCallerCanLearnTopicsMap() 648 return callerCanLearnMap; in retrieveCallerCanLearnTopicsMap() 670 if (!callerCanLearnMap.containsKey(topic)) { in retrieveCallerCanLearnTopicsMap() 671 callerCanLearnMap.put(topic, new HashSet<>()); in retrieveCallerCanLearnTopicsMap() 673 callerCanLearnMap.get(topic).add(caller); in retrieveCallerCanLearnTopicsMap() 677 return callerCanLearnMap; in retrieveCallerCanLearnTopicsMap()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/ |
D | TopicsDaoTest.java | 469 Map<Topic, Set<String>> callerCanLearnMap = new HashMap<>(); in testPersistCallerCanLearnTopics() local 472 callerCanLearnMap.put(topic1, new HashSet<>(Arrays.asList("app1", "sdk1", "sdk2"))); in testPersistCallerCanLearnTopics() 476 callerCanLearnMap.put( in testPersistCallerCanLearnTopics() 480 callerCanLearnMap.put(topic3, new HashSet<>(Arrays.asList("sdk1", "sdk3", "sdk4"))); in testPersistCallerCanLearnTopics() 483 callerCanLearnMap.put(topic4, new HashSet<>(Arrays.asList("sdk1", "sdk5"))); in testPersistCallerCanLearnTopics() 488 callerCanLearnMap.put(topic5, new HashSet<>(Arrays.asList("sdk1", "sdk5", "app4"))); in testPersistCallerCanLearnTopics() 491 callerCanLearnMap.put(topic6, new HashSet<>(Collections.singletonList("app4"))); in testPersistCallerCanLearnTopics() 493 mTopicsDao.persistCallerCanLearnTopics(/* epochId = */ 3L, callerCanLearnMap); in testPersistCallerCanLearnTopics() 499 assertThat(callerCanLearnMapFromDb).isEqualTo(callerCanLearnMap); in testPersistCallerCanLearnTopics()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | AppUpdateManagerTest.java | 161 Map<Topic, Set<String>> callerCanLearnMap = new HashMap<>(); in testReconcileUninstalledApps() local 162 callerCanLearnMap.put(topic1, new HashSet<>(Arrays.asList(app1, app2, sdk1))); in testReconcileUninstalledApps() 163 mTopicsDao.persistCallerCanLearnTopics(epochId1, callerCanLearnMap); in testReconcileUninstalledApps() 477 Map<Topic, Set<String>> callerCanLearnMap = new HashMap<>(); in testDeleteAppDataFromTableByApps() local 478 callerCanLearnMap.put(topic1, new HashSet<>(List.of(app1, app2, app3, sdk1))); in testDeleteAppDataFromTableByApps() 479 mTopicsDao.persistCallerCanLearnTopics(epochId1, callerCanLearnMap); in testDeleteAppDataFromTableByApps()
|