Home
last modified time | relevance | path

Searched refs:connectedRawContactSets (Results 1 – 4 of 4) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
DContactAggregatorHelperTest.java47 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in testMergeComponentsWithDisjointAccounts() local
53 connectedRawContactSets.add(rawContactSet); in testMergeComponentsWithDisjointAccounts()
71 ContactAggregatorHelper.mergeComponentsWithDisjointAccounts(connectedRawContactSets, in testMergeComponentsWithDisjointAccounts()
74 MoreAsserts.assertContentsInAnyOrder(connectedRawContactSets, Sets.newHashSet(100l, in testMergeComponentsWithDisjointAccounts()
79 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2() local
84 connectedRawContactSets.add(rawContactSet1); in testMergeComponentsWithDisjointAccounts2()
88 connectedRawContactSets.add(rawContactSet2); in testMergeComponentsWithDisjointAccounts2()
91 connectedRawContactSets.add(rawContactSet3); in testMergeComponentsWithDisjointAccounts2()
101 ContactAggregatorHelper.mergeComponentsWithDisjointAccounts(connectedRawContactSets, in testMergeComponentsWithDisjointAccounts2()
104 MoreAsserts.assertContentsInAnyOrder(connectedRawContactSets, Sets.newHashSet(100l, in testMergeComponentsWithDisjointAccounts2()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactAggregatorHelper.java40 public static void mergeComponentsWithDisjointAccounts(Set<Set<Long>> connectedRawContactSets, in mergeComponentsWithDisjointAccounts() argument
48 for (Set<Long> rIds : connectedRawContactSets) { in mergeComponentsWithDisjointAccounts()
62 connectedRawContactSets.clear(); in mergeComponentsWithDisjointAccounts()
69 connectedRawContactSets.add(rIdSet); in mergeComponentsWithDisjointAccounts()
86 connectedRawContactSets.add(mergedSet); in mergeComponentsWithDisjointAccounts()
96 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in findConnectedComponents() local
102 connectedRawContactSets.add(set); in findConnectedComponents()
105 return connectedRawContactSets; in findConnectedComponents()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java425 final Set<Set<Long>> connectedRawContactSets = findConnectedRawContacts(db, allIds); in reAggregateRawContacts() local
427 if (connectedRawContactSets.size() == 1) { in reAggregateRawContacts()
429 createContactForRawContacts(db, txContext, connectedRawContactSets.iterator().next(), in reAggregateRawContacts()
432 for (Set<Long> connectedRawContactIds : connectedRawContactSets) { in reAggregateRawContacts()
438 connectedRawContactSets.remove(connectedRawContactIds); in reAggregateRawContacts()
446 int index = connectedRawContactSets.size(); in reAggregateRawContacts()
447 for (Set<Long> connectedRawContactIds : connectedRawContactSets) { in reAggregateRawContacts()
DContactAggregator2.java321 final Set<Set<Long>> connectedRawContactSets = findConnectedRawContacts(db, allIds); in reAggregateRawContacts() local
325 ContactAggregatorHelper.mergeComponentsWithDisjointAccounts(connectedRawContactSets, in reAggregateRawContacts()
327 breakComponentsByExceptions(db, connectedRawContactSets); in reAggregateRawContacts()
332 for (Set<Long> connectedRawContactIds : connectedRawContactSets) { in reAggregateRawContacts()