/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
TransactionContext.java | 57 public void rawContactInserted(long rawContactId, long accountId) { 59 mInsertedRawContactsAccounts.put(rawContactId, accountId); 61 markRawContactChangedOrDeletedOrInserted(rawContactId); 64 public void rawContactUpdated(long rawContactId) { 66 mUpdatedRawContacts.add(rawContactId); 69 public void markRawContactDirtyAndChanged(long rawContactId, boolean isSyncAdapter) { 74 mDirtyRawContacts.add(rawContactId); 77 markRawContactChangedOrDeletedOrInserted(rawContactId); 80 public void markRawContactMetadataDirty(long rawContactId, boolean isMetadataSyncAdapter) { 85 mMetadataDirtyRawContacts.add(rawContactId); [all...] |
DataRowHandlerForIdentity.java | 35 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 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);
|
DataRowHandlerForEmail.java | 37 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 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 = c.getLong(DataDeleteQuery.RAW_CONTACT_ID) [all...] |
DataRowHandlerForNickname.java | 39 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 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 = c.getLong(DataDeleteQuery.RAW_CONTACT_ID) [all...] |
DataRowHandlerForGroupMembership.java | 75 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 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); [all...] |
DataRowHandler.java | 112 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 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, [all...] |
DataRowHandlerForPhoneNumber.java | 42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 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); [all...] |
NameLookupBuilder.java | 82 protected abstract void insertNameLookup(long rawContactId, long dataId, int lookupType, 99 public void insertNameLookup(long rawContactId, long dataId, String name, int fullNameStyle) { 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, 242 insertNameVariant(rawContactId, dataId, toIndex, 255 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex, 266 private void insertNameVariant(long rawContactId, long dataId, int tokenCount [all...] |
DataRowHandlerForPhoto.java | 58 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 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);
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
RawContactUtil.java | 36 public static void update(ContentResolver resolver, long rawContactId, 38 Uri uri = ContentUris.withAppendedId(URI, rawContactId); 44 Long rawContactId = insertRawContact(resolver, account); 45 DataUtil.insertName(resolver, rawContactId, name); 46 return rawContactId; 51 Long rawContactId = insertRawContact(resolver, account); 52 DataUtil.insertAutoGeneratedName(resolver, rawContactId); 53 return rawContactId; 65 long rawContactId, String[] projection) { 66 Uri uri = ContentUris.withAppendedId(URI, rawContactId); [all...] |
DataUtil.java | 41 public static void insertName(ContentResolver resolver, long rawContactId, String name) { 46 insertData(resolver, rawContactId, values); 49 public static long insertPhoneNumber(ContentResolver resolver, long rawContactId, 54 return DataUtil.insertData(resolver, rawContactId, values); 57 public static long insertEmail(ContentResolver resolver, long rawContactId, String email) { 61 return DataUtil.insertData(resolver, rawContactId, values); 64 public static void insertAutoGeneratedName(ContentResolver resolver, long rawContactId) { 65 insertName(resolver, rawContactId, "test raw contact " + rawContactId); 68 public static long insertData(ContentResolver resolver, long rawContactId, [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
RawContactMatcher.java | 168 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { 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 199 updatePrimaryScore(rawContactId, contactId, accountId, maxScore); 239 updatePrimaryScore(rawContactId, contactId, accountId, score); 242 public void matchIdentity(long rawContactId, long contactId, long accountId) { 243 updateSecondaryScore(rawContactId, contactId, accountId, IDENTITY_MATCH_SCORE) [all...] |
MatchScore.java | 38 public MatchScore(long rawContactId, long contactId, long accountId) { 39 this.mRawContactId = rawContactId; 50 public void reset(long rawContactId, long contactId, long accountId) { 51 this.mRawContactId = rawContactId;
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
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, values) [all...] |
SqlInjectionDetectionTest.java | 46 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, "555-123-4567") [all...] |
CallerInfoIntegrationTest.java | 46 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/ |
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) { 107 this.mRawContactId = rawContactId;
|
DataUtil.java | 45 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, 47 values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId); 54 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, 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, 106 return insertStructuredName(resolver, rawContactId, values) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
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);
|
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); [all...] |
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)); [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
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/EmergencyInfo/tests/src/com/android/emergency/ |
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);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
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) { [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_StreamItemsTest.java | 56 long rawContactId = insertRawContact(mResolver); 57 Uri streamItemUri = insertViaContentDirectoryUri(mResolver, rawContactId); 63 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId).buildUpon() 73 values.put(Data.RAW_CONTACT_ID, rawContactId); 91 long rawContactId = ContentUris.parseId(contactUri); 92 assertTrue(rawContactId != -1); 93 return rawContactId; 96 static Uri insertViaContentDirectoryUri(ContentResolver resolver, long rawContactId) { 106 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId), 130 long rawContactId = ContentUris.parseId(results[0].uri) [all...] |