/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | TransactionContext.java | 58 public void rawContactInserted(long rawContactId, long accountId) { argument 60 mInsertedRawContactsAccounts.put(rawContactId, accountId); 62 markRawContactChangedOrDeletedOrInserted(rawContactId); 65 public void rawContactUpdated(long rawContactId) { argument 67 mUpdatedRawContacts.add(rawContactId); 70 public void markRawContactDirtyAndChanged(long rawContactId, boolean isSyncAdapter) { argument 75 mDirtyRawContacts.add(rawContactId); 78 markRawContactChangedOrDeletedOrInserted(rawContactId); 81 public void markRawContactMetadataDirty(long rawContactId, boolean isMetadataSyncAdapter) { argument 86 mMetadataDirtyRawContacts.add(rawContactId); 90 markBackupIdChangedRawContact(long rawContactId) argument 97 markRawContactChangedOrDeletedOrInserted(long rawContactId) argument 109 invalidateSearchIndexForRawContact(long rawContactId) argument 164 getAccountIdOrNullForRawContact(long rawContactId) argument 169 isNewRawContact(long rawContactId) argument [all...] |
H A D | DataRowHandlerForIdentity.java | 35 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 D | DataRowHandlerForEmail.java | 37 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 D | DataRowHandlerForNickname.java | 39 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 D | DataRowHandlerForGroupMembership.java | 76 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 78 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, true); 79 long dataId = super.insert(db, txContext, rawContactId, values); 80 if (hasFavoritesGroupMembership(db, rawContactId)) { 81 updateRawContactsStar(db, rawContactId, true /* starred */); 83 updateVisibility(txContext, rawContactId); 90 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 91 boolean wasStarred = hasFavoritesGroupMembership(db, rawContactId); 92 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, false); 96 boolean isStarred = hasFavoritesGroupMembership(db, rawContactId); 104 updateRawContactsStar(SQLiteDatabase db, long rawContactId, boolean starred) argument 113 hasFavoritesGroupMembership(SQLiteDatabase db, long rawContactId) argument 136 updateVisibility(TransactionContext txContext, long rawContactId) argument 147 resolveGroupSourceIdInValues(TransactionContext txContext, long rawContactId, SQLiteDatabase db, ContentValues values, boolean isInsert) argument 189 getOrMakeGroup(SQLiteDatabase db, long rawContactId, String sourceId, Long accountIdOrNull) argument [all...] |
H A D | DataRowHandler.java | 112 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 123 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); 124 txContext.markRawContactMetadataDirty(rawContactId, /* isMetadataSyncAdapter =*/false); 130 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 132 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId); 137 if (mDbHelper.rawContactHasSuperPrimary(rawContactId, mimeTypeId)) { 138 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 144 txContext.invalidateSearchIndexForRawContact(rawContactId); 160 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 162 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId, 253 handlePrimaryAndSuperPrimary(TransactionContext txContext, ContentValues values, long dataId, long rawContactId, boolean callerIsMetadataSyncAdapter) argument 338 fixPrimary(SQLiteDatabase db, long rawContactId) argument 373 fixRawContactDisplayName(SQLiteDatabase db, TransactionContext txContext, long rawContactId) argument 381 isNewRawContact(TransactionContext txContext, long rawContactId) argument 421 triggerAggregation(TransactionContext txContext, long rawContactId) argument [all...] |
H A D | DataRowHandlerForPhoneNumber.java | 42 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 D | NameLookupBuilder.java | 82 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 D | DataRowHandlerForPhoto.java | 58 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);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | RawContactMatcher.java | 168 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 D | MatchScore.java | 38 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 D | SearchIndexManagerTest.java | 52 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 D | CallerInfoIntegrationTest.java | 46 long rawContactId = ContentUris.parseId(rawContactUri); 48 DataUtil.insertStructuredName(mResolver, rawContactId, "Hot", "Tamale"); 49 insertPhoneNumber(rawContactId, "800-466-4411");
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
H A D | DatabaseAsserts.java | 58 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 D | DataUtil.java | 44 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, argument 46 values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId); 53 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, argument 55 return insertStructuredName(resolver, rawContactId, givenName, familyName, 60 ContentResolver resolver, long rawContactId, String givenName, String familyName, 62 return insertStructuredName(resolver, rawContactId, givenName, familyName, phoneticFamily, 67 ContentResolver resolver, long rawContactId, String givenName, String familyName, 96 return insertStructuredName(resolver, rawContactId, values); 99 public static Uri insertPhoneticName(ContentResolver resolver, long rawContactId, argument 105 return insertStructuredName(resolver, rawContactId, value 59 insertStructuredName( ContentResolver resolver, long rawContactId, String givenName, String familyName, String phoneticFamily) argument 66 insertStructuredName( ContentResolver resolver, long rawContactId, String givenName, String familyName, String phoneticFamily, boolean isSuperPrimary) argument [all...] |
H A D | RawContactUtil.java | 36 public static void update(ContentResolver resolver, long rawContactId, argument 38 Uri uri = ContentUris.withAppendedId(URI, rawContactId); 43 long rawContactId, String[] projection) { 45 rawContactId); 50 public static void delete(ContentResolver resolver, long rawContactId, argument 52 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId) 111 long rawContactId = createRawContact(resolver, account); 112 DataUtil.insertStructuredName(resolver, rawContactId, firstName, lastName); 113 return rawContactId; 42 queryByRawContactId(ContentResolver resolver, long rawContactId, String[] projection) argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
H A D | ProfileAggregator.java | 54 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 D | ContactAggregator.java | 80 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 D | ContactAggregator2.java | 92 long rawContactId, long accountId, long currentContactId, 95 if (!needAggregate(db, rawContactId)) { 97 Log.v(TAG, "Skip rid=" + rawContactId + " which has already been aggregated."); 103 Log.v(TAG, "aggregateContact: rid=" + rawContactId + " cid=" + currentContactId); 108 Integer aggModeObject = mRawContactsMarkedForAggregation.remove(rawContactId); 121 matchingCandidates = findRawContactMatchingCandidates(db, rawContactId, candidates, 128 // # of raw_contacts in the [currentContactId] contact excluding the [rawContactId] 134 mRawContactCountQuery.bindLong(2, rawContactId); 140 // [currentContactId] excluding the [rawContactId]. 169 markAggregated(db, String.valueOf(rawContactId)); 91 aggregateContact(TransactionContext txContext, SQLiteDatabase db, long rawContactId, long accountId, long currentContactId, MatchCandidateList candidates) argument 191 needAggregate(SQLiteDatabase db, long rawContactId) argument 210 findRawContactMatchingCandidates(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) argument 312 reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, long currentCidForRawContact, long rawContactId, long accountId, long currentContactContentsCount, RawContactMatchingCandidates matchingCandidates) argument 501 updateMatchScoresBasedOnExceptions(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument 555 updateMatchScoresBasedOnIdentityMatch(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument 580 updateMatchScoresBasedOnNameMatches(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument 609 updateMatchScoresBasedOnEmailMatches(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument 666 updateMatchScoresBasedOnPhoneMatches(SQLiteDatabase db, long rawContactId, RawContactMatcher matcher) argument 841 updateMatchScoresForSuggestionsBasedOnDataMatches(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) argument 855 updateMatchScores(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, RawContactMatcher matcher) argument 885 rawContactWithoutName(SQLiteDatabase db, long rawContactId) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | SuggestionEditConfirmationDialogFragment.java | 31 private static final String ARG_RAW_CONTACT_ID = "rawContactId"; 33 public static void show(ContactEditorFragment fragment, Uri contactUri, long rawContactId) { argument 36 args.putLong(ARG_RAW_CONTACT_ID, rawContactId); 58 final long rawContactId = 60 targetFragment.doEditSuggestedContact(contactUri, rawContactId);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ContactLoaderUtils.java | 58 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/apps/Dialer/java/com/android/contacts/common/util/ |
H A D | ContactLoaderUtils.java | 58 final long rawContactId = ContentUris.parseId(uri); 60 resolver, ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId)); 71 final long rawContactId = ContentUris.parseId(uri); 73 resolver, ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
|
/packages/apps/EmergencyInfo/tests/common/src/com/android/emergency/ |
H A D | ContactTestUtils.java | 69 long rawContactId = ContentUris.parseId(rawContactUri); 70 insertStructuredName(contentResolver, rawContactId, name, values); 71 return insertPhoneNumber(contentResolver, rawContactId, 77 long rawContactId, 81 values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId); 87 long rawContactId, 91 values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId); 76 insertStructuredName(ContentResolver contentResolver, long rawContactId, String name, ContentValues values) argument 86 insertPhoneNumber(ContentResolver contentResolver, long rawContactId, String phoneNumber, int type) argument
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | EntitySet.java | 93 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/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | AccountImageHelper.java | 65 long rawContactId = 0; 71 rawContactId = c.getLong(2); 86 syncContactHiResPhoto(context, rawContactId); 93 private static void syncContactHiResPhoto(Context context, long rawContactId) { argument 98 rawContactId);
|