summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/contacts/aggregation/ContactAggregator2.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/providers/contacts/aggregation/ContactAggregator2.java')
-rw-r--r--src/com/android/providers/contacts/aggregation/ContactAggregator2.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/providers/contacts/aggregation/ContactAggregator2.java b/src/com/android/providers/contacts/aggregation/ContactAggregator2.java
index 5372bbd..133a508 100644
--- a/src/com/android/providers/contacts/aggregation/ContactAggregator2.java
+++ b/src/com/android/providers/contacts/aggregation/ContactAggregator2.java
@@ -19,6 +19,8 @@ package com.android.providers.contacts.aggregation;
import static com.android.providers.contacts.aggregation.util.RawContactMatcher.SCORE_THRESHOLD_PRIMARY;
import static com.android.providers.contacts.aggregation.util.RawContactMatcher.SCORE_THRESHOLD_SECONDARY;
import static com.android.providers.contacts.aggregation.util.RawContactMatcher.SCORE_THRESHOLD_SUGGEST;
+
+import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.ContactsContract.AggregationExceptions;
@@ -71,6 +73,10 @@ public class ContactAggregator2 extends AbstractContactAggregator {
private final RawContactMatcher mMatcher = new RawContactMatcher();
+ private static final String ACTION_CONTACTS_AUTO_MERGE =
+ "com.android.contacts.incall.CONTACTS_AUTO_MERGE";
+ private static final String CONTACT_AUTO_MERGE_KEY_RAW_IDS = "RAW_IDS";
+
/**
* Constructor.
*/
@@ -367,6 +373,11 @@ public class ContactAggregator2 extends AbstractContactAggregator {
if (VERBOSE_LOGGING) {
Log.v(TAG, "Aggregating rids=" + connectedRawContactIds);
}
+ // metrics
+ Intent intent = new Intent(ACTION_CONTACTS_AUTO_MERGE);
+ intent.putExtra(CONTACT_AUTO_MERGE_KEY_RAW_IDS, connectedRids);
+ mContactsProvider.getContext().sendBroadcast(intent);
+
markAggregated(db, connectedRids);
for (Long cid : cidsNeedToBeUpdated) {