Searched refs:rawContactId (Results 1 - 25 of 66) sorted by relevance

123

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForIdentity.java35 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
37 final long dataId = super.insert(db, txContext, rawContactId, values);
41 triggerAggregation(txContext, rawContactId);
54 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
56 triggerAggregation(txContext, rawContactId);
67 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
68 triggerAggregation(txContext, rawContactId);
H A DDataRowHandlerForEmail.java37 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
41 long dataId = super.insert(db, txContext, rawContactId, values);
43 fixRawContactDisplayName(db, txContext, rawContactId);
44 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email);
46 triggerAggregation(txContext, rawContactId);
60 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
64 mDbHelper.insertNameLookupForEmail(rawContactId, dataId, address);
65 fixRawContactDisplayName(db, txContext, rawContactId);
66 triggerAggregation(txContext, rawContactId);
75 long rawContactId
[all...]
H A DDataRowHandlerForNickname.java39 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
43 long dataId = super.insert(db, txContext, rawContactId, values);
46 fixRawContactDisplayName(db, txContext, rawContactId);
47 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname);
48 triggerAggregation(txContext, rawContactId);
57 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
66 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname);
67 fixRawContactDisplayName(db, txContext, rawContactId);
68 triggerAggregation(txContext, rawContactId);
77 long rawContactId
[all...]
H A DTransactionContext.java55 public void rawContactInserted(long rawContactId, long accountId) { argument
57 mInsertedRawContactsAccounts.put(rawContactId, accountId);
59 markRawContactChangedOrDeletedOrInserted(rawContactId);
62 public void rawContactUpdated(long rawContactId) { argument
64 mUpdatedRawContacts.add(rawContactId);
67 public void markRawContactDirtyAndChanged(long rawContactId, boolean isSyncAdapter) { argument
72 mDirtyRawContacts.add(rawContactId);
75 markRawContactChangedOrDeletedOrInserted(rawContactId);
78 public void markRawContactChangedOrDeletedOrInserted(long rawContactId) { argument
82 mChangedRawContacts.add(rawContactId);
90 invalidateSearchIndexForRawContact(long rawContactId) argument
135 getAccountIdOrNullForRawContact(long rawContactId) argument
140 isNewRawContact(long rawContactId) argument
[all...]
H A DDataRowHandlerForGroupMembership.java75 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
77 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, true);
78 long dataId = super.insert(db, txContext, rawContactId, values);
79 if (hasFavoritesGroupMembership(db, rawContactId)) {
80 updateRawContactsStar(db, rawContactId, true /* starred */);
82 updateVisibility(txContext, rawContactId);
89 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
90 boolean wasStarred = hasFavoritesGroupMembership(db, rawContactId);
91 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, false);
95 boolean isStarred = hasFavoritesGroupMembership(db, rawContactId);
103 updateRawContactsStar(SQLiteDatabase db, long rawContactId, boolean starred) argument
112 hasFavoritesGroupMembership(SQLiteDatabase db, long rawContactId) argument
135 updateVisibility(TransactionContext txContext, long rawContactId) argument
146 resolveGroupSourceIdInValues(TransactionContext txContext, long rawContactId, SQLiteDatabase db, ContentValues values, boolean isInsert) argument
188 getOrMakeGroup(SQLiteDatabase db, long rawContactId, String sourceId, Long accountIdOrNull) argument
[all...]
H A DDataRowHandler.java108 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
116 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId);
122 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId);
124 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId);
129 if (mDbHelper.rawContactHasSuperPrimary(rawContactId, mimeTypeId)) {
130 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId);
136 txContext.invalidateSearchIndexForRawContact(rawContactId);
151 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
153 handlePrimaryAndSuperPrimary(values, dataId, rawContactId);
161 txContext.invalidateSearchIndexForRawContact(rawContactId);
184 handlePrimaryAndSuperPrimary(ContentValues values, long dataId, long rawContactId) argument
266 fixPrimary(SQLiteDatabase db, long rawContactId) argument
301 fixRawContactDisplayName(SQLiteDatabase db, TransactionContext txContext, long rawContactId) argument
309 isNewRawContact(TransactionContext txContext, long rawContactId) argument
349 triggerAggregation(TransactionContext txContext, long rawContactId) argument
[all...]
H A DDataRowHandlerForPhoneNumber.java42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
46 final long dataId = super.insert(db, txContext, rawContactId, values);
50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber);
51 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
52 fixRawContactDisplayName(db, txContext, rawContactId);
54 triggerAggregation(txContext, rawContactId);
70 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
71 updatePhoneLookup(db, rawContactId, dataId,
74 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
75 fixRawContactDisplayName(db, txContext, rawContactId);
114 updatePhoneLookup(SQLiteDatabase db, long rawContactId, long dataId, String number, String numberE164) argument
[all...]
H A DNameLookupBuilder.java82 protected abstract void insertNameLookup(long rawContactId, long dataId, int lookupType, argument
99 public void insertNameLookup(long rawContactId, long dataId, String name, int fullNameStyle) { argument
111 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true);
126 insertCollationKey(rawContactId, dataId, MAX_NAME_TOKENS);
138 insertNameVariants(rawContactId, dataId, 0, tokenCount, !tooManyTokens, true);
139 insertNicknamePermutations(rawContactId, dataId, 0, tokenCount);
239 private void insertNameVariants(long rawContactId, long dataId, int fromIndex, int toIndex, argument
242 insertNameVariant(rawContactId, dataId, toIndex,
255 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex,
266 private void insertNameVariant(long rawContactId, lon argument
287 insertCollationKey(long rawContactId, long dataId, int tokenCount) argument
302 insertNicknamePermutations(long rawContactId, long dataId, int fromIndex, int tokenCount) argument
[all...]
H A DDataRowHandlerForPhoto.java58 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
70 long dataId = super.insert(db, txContext, rawContactId, values);
71 if (!txContext.isNewRawContact(rawContactId)) {
72 mContactAggregator.updatePhotoId(db, rawContactId);
80 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
96 mContactAggregator.updatePhotoId(db, rawContactId);
132 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID);
134 mContactAggregator.updatePhotoId(db, rawContactId);
H A DContactLookupKey.java40 public String rawContactId; field in class:ContactLookupKey.LookupKeySegment
68 String accountName, long rawContactId, String sourceId,
80 lookupKey.append('r').append(rawContactId).append('-').append(
128 String rawContactId = null;
230 rawContactId = string.substring(start, dash);
248 segment.rawContactId = rawContactId;
67 appendToLookupKey(StringBuilder lookupKey, String accountTypeWithDataSet, String accountName, long rawContactId, String sourceId, String displayName) argument
H A DDataRowHandlerForOrganization.java41 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
46 long dataId = super.insert(db, txContext, rawContactId, values);
48 fixRawContactDisplayName(db, txContext, rawContactId);
63 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
89 fixRawContactDisplayName(db, txContext, rawContactId);
97 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID);
100 fixRawContactDisplayName(db, txContext, rawContactId);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
H A DRawContactMatcher.java168 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { argument
169 MatchScore matchingScore = mScores.get(rawContactId);
173 matchingScore.reset(rawContactId, contactId, accountId);
175 matchingScore = new MatchScore(rawContactId, contactId, accountId);
179 mScores.put(rawContactId, matchingScore);
191 public void matchName(long rawContactId, long contactId, long accountId, int argument
199 updatePrimaryScore(rawContactId, contactId, accountId, maxScore);
239 updatePrimaryScore(rawContactId, contactId, accountId, score);
242 public void matchIdentity(long rawContactId, long contactId, long accountId) { argument
243 updateSecondaryScore(rawContactId, contactI
246 updateScoreWithPhoneNumberMatch(long rawContactId, long contactId, long accountId) argument
250 updateScoreWithEmailMatch(long rawContactId, long contactId, long accountId) argument
254 updateScoreWithNicknameMatch(long rawContactId, long contactId, long accountId) argument
258 updatePrimaryScore(long rawContactId, long contactId, long accountId, int score) argument
262 updateSecondaryScore(long rawContactId, long contactId, long accountId, int score) argument
267 keepIn(long rawContactId, long contactId, long accountId) argument
271 keepOut(long rawContactId, long contactId, long accountId) argument
356 matchNoName(Long rawContactId, Long contactId, Long accountId) argument
[all...]
H A DMatchScore.java38 public MatchScore(long rawContactId, long contactId, long accountId) { argument
39 this.mRawContactId = rawContactId;
50 public void reset(long rawContactId, long contactId, long accountId) { argument
51 this.mRawContactId = rawContactId;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DSearchIndexManagerTest.java52 long rawContactId = RawContactUtil.createRawContact(mResolver);
53 long contactId = queryContactId(rawContactId);
54 DataUtil.insertStructuredName(mResolver, rawContactId, "John", "Doe");
57 DataUtil.insertStructuredName(mResolver, rawContactId, values);
66 DataUtil.insertStructuredName(mResolver, rawContactId, values);
73 long rawContactId = RawContactUtil.createRawContact(mResolver);
74 long contactId = queryContactId(rawContactId);
75 DataUtil.insertStructuredName(mResolver, rawContactId, "John", "Doe");
78 DataUtil.insertStructuredName(mResolver, rawContactId, values);
87 DataUtil.insertStructuredName(mResolver, rawContactId, value
[all...]
H A DSqlInjectionDetectionTest.java46 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
47 insertPhoneNumber(rawContactId, "555-123-4567");
54 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
55 insertPhoneNumber(rawContactId, "555-123-4567");
62 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
63 insertPhoneNumber(rawContactId, "555-123-4567");
70 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
71 insertPhoneNumber(rawContactId, "555-123-4567");
79 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
80 insertPhoneNumber(rawContactId, "55
[all...]
H A DCallerInfoIntegrationTest.java46 long rawContactId = ContentUris.parseId(rawContactUri);
48 DataUtil.insertStructuredName(mResolver, rawContactId, "Hot", "Tamale");
49 insertPhoneNumber(rawContactId, "800-466-4411");
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DDatabaseAsserts.java58 long rawContactId = RawContactUtil.createRawContactWithName(resolver);
60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId);
63 return new ContactIdPair(contactId, rawContactId);
73 long rawContactId = RawContactUtil.createRawContactWithName(resolver, firstName, lastName);
75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId);
78 return new ContactIdPair(contactId, rawContactId);
105 public ContactIdPair(long contactId, long rawContactId) { argument
107 this.mRawContactId = rawContactId;
H A DDataUtil.java45 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, argument
47 values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId);
54 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, argument
56 return insertStructuredName(resolver, rawContactId, givenName, familyName,
61 ContentResolver resolver, long rawContactId, String givenName, String familyName,
63 return insertStructuredName(resolver, rawContactId, givenName, familyName, phoneticFamily,
68 ContentResolver resolver, long rawContactId, String givenName, String familyName,
97 return insertStructuredName(resolver, rawContactId, values);
100 public static Uri insertPhoneticName(ContentResolver resolver, long rawContactId, argument
106 return insertStructuredName(resolver, rawContactId, value
60 insertStructuredName( ContentResolver resolver, long rawContactId, String givenName, String familyName, String phoneticFamily) argument
67 insertStructuredName( ContentResolver resolver, long rawContactId, String givenName, String familyName, String phoneticFamily, boolean isSuperPrimary) argument
[all...]
H A DRawContactUtil.java37 public static void update(ContentResolver resolver, long rawContactId, argument
39 Uri uri = ContentUris.withAppendedId(URI, rawContactId);
44 long rawContactId, String[] projection) {
46 rawContactId);
63 public static void delete(ContentResolver resolver, long rawContactId, argument
65 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId)
113 long rawContactId = createRawContact(resolver, account);
114 DataUtil.insertStructuredName(resolver, rawContactId, firstName, lastName);
115 return rawContactId;
43 queryByRawContactId(ContentResolver resolver, long rawContactId, String[] projection) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DProfileAggregator.java54 String accountName, long rawContactId, String sourceId, String displayName) {
63 long rawContactId) {
64 aggregateContact(txContext, db, rawContactId);
75 long rawContactId) {
89 mContactId = insertContact(db, rawContactId);
93 setContactId(rawContactId, mContactId);
53 appendLookupKey(StringBuilder sb, String accountTypeWithDataSet, String accountName, long rawContactId, String sourceId, String displayName) argument
62 onRawContactInsert(TransactionContext txContext, SQLiteDatabase db, long rawContactId) argument
74 aggregateContact(TransactionContext txContext, SQLiteDatabase db, long rawContactId) argument
H A DContactAggregator.java80 long rawContactId, long accountId, long currentContactId,
84 Log.v(TAG, "aggregateContact: rid=" + rawContactId + " cid=" + currentContactId);
89 Integer aggModeObject = mRawContactsMarkedForAggregation.remove(rawContactId);
104 contactId = pickBestMatchBasedOnExceptions(db, rawContactId, matcher);
111 contactId = pickBestMatchBasedOnData(db, rawContactId, candidates, matcher);
118 // [contactId] excluding raw_contact [rawContactId].
124 mSelectionArgs2[1] = String.valueOf(rawContactId);
155 actionCode = canJoinIntoContact(db, rawContactId,
169 // # of raw_contacts in the [currentContactId] contact excluding the [rawContactId]
175 mRawContactCountQuery.bindLong(2, rawContactId);
79 aggregateContact(TransactionContext txContext, SQLiteDatabase db, long rawContactId, long accountId, long currentContactId, MatchCandidateList candidates) argument
248 clearSuperPrimarySetting(SQLiteDatabase db, long contactId, long rawContactId) argument
315 canJoinIntoContact(SQLiteDatabase db, long rawContactId, Set<Long> rawContactIdsInSameAccount, Set<Long> rawContactIdsInOtherAccount ) argument
416 reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, long contactId, long currentContactId, long rawContactId, Set<Long> existingRawContactIds) argument
516 setContactIdAndMarkAggregated(long rawContactId, long contactId) argument
550 pickBestMatchBasedOnExceptions(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument
613 pickBestMatchBasedOnData(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, ContactMatcher matcher) argument
638 pickBestMatchBasedOnSecondaryData(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, ContactMatcher matcher) argument
670 updateMatchScoresBasedOnDataMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument
713 updateMatchScoresBasedOnIdentityMatch(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument
760 updateMatchScoresBasedOnNameMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument
784 updateMatchScoresBasedOnEmailMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument
801 updateMatchScoresBasedOnPhoneMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument
926 updateMatchScoresForSuggestionsBasedOnDataMatches(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, ContactMatcher matcher) argument
[all...]
H A DContactAggregator2.java90 long rawContactId, long accountId, long currentContactId,
93 if (!needAggregate(db, rawContactId)) {
95 Log.v(TAG, "Skip rid=" + rawContactId + " which has already been aggregated.");
101 Log.v(TAG, "aggregateContact: rid=" + rawContactId + " cid=" + currentContactId);
106 Integer aggModeObject = mRawContactsMarkedForAggregation.remove(rawContactId);
119 matchingCandidates = findRawContactMatchingCandidates(db, rawContactId, candidates,
126 // # of raw_contacts in the [currentContactId] contact excluding the [rawContactId]
132 mRawContactCountQuery.bindLong(2, rawContactId);
138 // [currentContactId] excluding the [rawContactId].
167 markAggregated(db, String.valueOf(rawContactId));
89 aggregateContact(TransactionContext txContext, SQLiteDatabase db, long rawContactId, long accountId, long currentContactId, MatchCandidateList candidates) argument
189 needAggregate(SQLiteDatabase db, long rawContactId) argument
208 findRawContactMatchingCandidates(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) argument
310 reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, long currentCidForRawContact, long rawContactId, long accountId, long currentContactContentsCount, RawContactMatchingCandidates matchingCandidates) argument
499 updateMatchScoresBasedOnExceptions(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument
553 updateMatchScoresBasedOnIdentityMatch(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument
578 updateMatchScoresBasedOnNameMatches(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument
607 updateMatchScoresBasedOnEmailMatches(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument
664 updateMatchScoresBasedOnPhoneMatches(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument
839 updateMatchScoresForSuggestionsBasedOnDataMatches(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) argument
853 updateMatchScores(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) argument
883 rawContactWithoutName(SQLiteDatabase db, long rawContactId) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DContactLoaderUtils.java58 final long rawContactId = ContentUris.parseId(uri);
60 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
71 final long rawContactId = ContentUris.parseId(uri);
73 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntitySet.java93 final Long rawContactId = remoteEntity.getValues().getId();
96 final EntityDelta localEntity = local.getByRawContactId(rawContactId);
117 final long rawContactId = this.findRawContactId();
142 if (rawContactId != -1) {
145 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId);
233 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID);
234 if (rawContactId != null && rawContactId >= 0) {
235 return rawContactId;
255 public EntityDelta getByRawContactId(Long rawContactId) { argument
263 indexOfRawContactId(Long rawContactId) argument
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DAccountImageHelper.java67 long rawContactId = 0;
73 rawContactId = c.getLong(2);
88 syncContactHiResPhoto(context, rawContactId);
95 private static void syncContactHiResPhoto(Context context, long rawContactId) { argument
100 rawContactId);

Completed in 577 milliseconds

123