/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | DataRowHandlerForIdentity.java | 36 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 38 final long dataId = super.insert(db, txContext, rawContactId, values); 42 triggerAggregation(txContext, rawContactId); 55 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 57 triggerAggregation(txContext, rawContactId); 68 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 69 triggerAggregation(txContext, rawContactId);
|
H A D | DataRowHandlerForEmail.java | 38 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 42 long dataId = super.insert(db, txContext, rawContactId, values); 44 fixRawContactDisplayName(db, txContext, rawContactId); 45 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email); 47 triggerAggregation(txContext, rawContactId); 61 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 65 mDbHelper.insertNameLookupForEmail(rawContactId, dataId, address); 66 fixRawContactDisplayName(db, txContext, rawContactId); 67 triggerAggregation(txContext, rawContactId); 76 long rawContactId [all...] |
H A D | DataRowHandlerForNickname.java | 40 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 44 long dataId = super.insert(db, txContext, rawContactId, values); 47 fixRawContactDisplayName(db, txContext, rawContactId); 48 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); 49 triggerAggregation(txContext, rawContactId); 58 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 67 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); 68 fixRawContactDisplayName(db, txContext, rawContactId); 69 triggerAggregation(txContext, rawContactId); 78 long rawContactId [all...] |
H A D | TransactionContext.java | 50 public void rawContactInserted(long rawContactId, long accountId) { argument 52 mInsertedRawContactsAccounts.put(rawContactId, accountId); 55 public void rawContactUpdated(long rawContactId) { argument 57 mUpdatedRawContacts.add(rawContactId); 60 public void markRawContactDirty(long rawContactId) { argument 62 mDirtyRawContacts.add(rawContactId); 70 public void invalidateSearchIndexForRawContact(long rawContactId) { argument 72 mStaleSearchIndexRawContacts.add(rawContactId); 110 public Long getAccountIdOrNullForRawContact(long rawContactId) { argument 112 return mInsertedRawContactsAccounts.get(rawContactId); 115 isNewRawContact(long rawContactId) argument [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 | 109 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 117 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); 123 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 125 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId); 130 if (mDbHelper.rawContactHasSuperPrimary(rawContactId, mimeTypeId)) { 131 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 137 txContext.invalidateSearchIndexForRawContact(rawContactId); 152 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 154 handlePrimaryAndSuperPrimary(values, dataId, rawContactId); 162 txContext.invalidateSearchIndexForRawContact(rawContactId); 187 handlePrimaryAndSuperPrimary(ContentValues values, long dataId, long rawContactId) argument 269 fixPrimary(SQLiteDatabase db, long rawContactId) argument 304 fixRawContactDisplayName(SQLiteDatabase db, TransactionContext txContext, long rawContactId) argument 312 isNewRawContact(TransactionContext txContext, long rawContactId) argument 352 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);
|
H A D | DataRowHandlerForStructuredName.java | 46 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 50 long dataId = super.insert(db, txContext, rawContactId, values); 54 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 58 insertNameLookupForPhoneticName(rawContactId, dataId, values); 59 fixRawContactDisplayName(db, txContext, rawContactId); 60 triggerAggregation(txContext, rawContactId); 68 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 86 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 90 insertNameLookupForPhoneticName(rawContactId, dataId, augmented); 92 fixRawContactDisplayName(db, txContext, rawContactId); 164 insertNameLookupForPhoneticName(long rawContactId, long dataId, ContentValues values) argument [all...] |
H A D | ContactLookupKey.java | 40 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 D | DataRowHandlerForOrganization.java | 42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 47 long dataId = super.insert(db, txContext, rawContactId, values); 49 fixRawContactDisplayName(db, txContext, rawContactId); 64 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 90 fixRawContactDisplayName(db, txContext, rawContactId); 98 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID); 101 fixRawContactDisplayName(db, txContext, rawContactId);
|
H A D | DataRowHandlerForCommonDataKind.java | 44 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 47 return super.insert(db, txContext, rawContactId, values);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | SearchIndexManagerTest.java | 49 long rawContactId = createRawContact(); 50 long contactId = queryContactId(rawContactId); 51 insertStructuredName(rawContactId, "John", "Doe"); 54 insertStructuredName(rawContactId, values); 63 insertStructuredName(rawContactId, values); 75 long rawContactId = createRawContact(); 76 long contactId = queryContactId(rawContactId); 79 insertStructuredName(rawContactId, values); 91 long rawContactId = createRawContact(); 94 insertStructuredName(rawContactId, value [all...] |
H A D | SqlInjectionDetectionTest.java | 44 long rawContactId = createRawContactWithName("Hot", "Tamale"); 45 insertPhoneNumber(rawContactId, "555-123-4567"); 52 long rawContactId = createRawContactWithName("Hot", "Tamale"); 53 insertPhoneNumber(rawContactId, "555-123-4567"); 60 long rawContactId = createRawContactWithName("Hot", "Tamale"); 61 insertPhoneNumber(rawContactId, "555-123-4567"); 68 long rawContactId = createRawContactWithName("Hot", "Tamale"); 69 insertPhoneNumber(rawContactId, "555-123-4567"); 77 long rawContactId = createRawContactWithName("Hot", "Tamale"); 78 insertPhoneNumber(rawContactId, "55 [all...] |
H A D | CallerInfoIntegrationTest.java | 45 long rawContactId = ContentUris.parseId(rawContactUri); 47 insertStructuredName(rawContactId, "Hot", "Tamale"); 48 insertPhoneNumber(rawContactId, "800-466-4411");
|
H A D | ContactsProvider2Test.java | 724 long rawContactId = ContentUris.parseId(rowUri); 727 assertSelection(RawContacts.CONTENT_URI, values, RawContacts._ID, rawContactId); 734 long rawContactId = createRawContactWithName(); 735 insertPhoneNumber(rawContactId, "555-GOOG-411"); 736 insertEmail(rawContactId, "google@android.com"); 738 long contactId = queryContactId(rawContactId); 895 long rawContactId = createRawContactWithName("John", "Doe"); 898 putDataValues(values, rawContactId); 902 long contactId = queryContactId(rawContactId); 909 Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 4763 assertVisibility(long rawContactId, String expectedValue) argument 7210 putDataValues(ContentValues values, long rawContactId) argument [all...] |
H A D | BaseContactsProvider2Test.java | 180 long rawContactId = createRawContact(account); 181 insertStructuredName(rawContactId, firstName, lastName); 182 return rawContactId; 265 protected Uri insertStructuredName(long rawContactId, String givenName, String familyName) { argument 281 return insertStructuredName(rawContactId, values); 284 protected Uri insertStructuredName(long rawContactId, ContentValues values) { argument 285 values.put(Data.RAW_CONTACT_ID, rawContactId); 291 protected Uri insertOrganization(long rawContactId, ContentValues values) { argument 292 return insertOrganization(rawContactId, values, false); 295 protected Uri insertOrganization(long rawContactId, ContentValue argument 307 insertPhoneNumber(long rawContactId, String phoneNumber) argument 311 insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary) argument 315 insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, int type) argument 330 insertEmail(long rawContactId, String email) argument 334 insertEmail(long rawContactId, String email, boolean primary) argument 338 insertEmail(long rawContactId, String email, boolean primary, int type, String label) argument 354 insertSipAddress(long rawContactId, String sipAddress) argument 358 insertSipAddress(long rawContactId, String sipAddress, boolean primary) argument 371 insertNickname(long rawContactId, String nickname) argument 382 insertPostalAddress(long rawContactId, String formattedAddress) argument 392 insertPostalAddress(long rawContactId, ContentValues values) argument 399 insertPhoto(long rawContactId) argument 408 insertPhoto(long rawContactId, int resourceId) argument 417 insertGroupMembership(long rawContactId, String sourceId) argument 425 insertGroupMembership(long rawContactId, Long groupId) argument 433 removeGroupMemberships(long rawContactId) argument 494 insertStreamItem(long rawContactId, ContentValues values, Account account) argument 514 insertImHandle(long rawContactId, int protocol, String customProtocol, String handle) argument 528 insertEvent(long rawContactId, int type, String date) argument 538 insertNote(long rawContactId, String note) argument 547 insertIdentity(long rawContactId, String identity, String namespace) argument 558 setContactAccount(long rawContactId, String accountType, String accountName) argument 583 queryRawContact(long rawContactId) argument 598 getContactUriForRawContact(long rawContactId) argument 602 queryContactId(long rawContactId) argument 623 queryRawContactIsStarred(long rawContactId) argument 671 assertStructuredName(long rawContactId, String prefix, String givenName, String middleName, String familyName, String suffix) argument 706 assertSingleGroupMembership(Long rowId, Long rawContactId, Long groupRowId, String sourceId) argument 719 assertGroupMembership(Cursor c, Long rowId, Long rawContactId, Long groupRowId, String sourceId) argument 1224 dumpData(ContentResolver resolver, long rawContactId) argument 1277 private final long rawContactId; field in class:BaseContactsProvider2Test.GoldenContact 1297 GoldenContact(GoldenContactBuilder builder, long rawContactId, long contactId) argument 1524 insertPhoto(long rawContactId) argument 1532 insertOrganization(long rawContactId) argument 1547 insertEmail(long rawContactId) argument 1568 insertPhone(long rawContactId) argument [all...] |
/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 | 239 long rawContactId; field in class:ContactAggregator.DisplayNameCandidate 250 rawContactId = -1; 423 for (long rawContactId : mRawContactsMarkedForAggregation.keySet()) { 427 sbQuery.append(rawContactId); 475 public void triggerAggregation(TransactionContext txContext, long rawContactId) { argument 480 int aggregationMode = mDbHelper.getAggregationMode(rawContactId); 486 markForAggregation(rawContactId, aggregationMode, false); 491 long contactId = mDbHelper.getContactId(rawContactId); 500 aggregateContact(txContext, mDbHelper.getWritableDatabase(), rawContactId); 512 public void markNewForAggregation(long rawContactId, in argument 516 markForAggregation(long rawContactId, int aggregationMode, boolean force) argument 614 onRawContactInsert( TransactionContext txContext, SQLiteDatabase db, long rawContactId) argument 622 insertContact(SQLiteDatabase db, long rawContactId) argument 642 aggregateContact( TransactionContext txContext, SQLiteDatabase db, long rawContactId) argument 704 aggregateContact(TransactionContext txContext, SQLiteDatabase db, long rawContactId, long accountId, long currentContactId, MatchCandidateList candidates, ContactMatcher matcher) argument 813 canJoinIntoContact(SQLiteDatabase db, long contactId, long rawContactId, long rawContactAccountId) argument 997 createNewContactForRawContact( TransactionContext txContext, SQLiteDatabase db, long rawContactId) argument 1074 setContactId(long rawContactId, long contactId) argument 1083 markAggregated(long rawContactId) argument 1091 setContactIdAndMarkAggregated(long rawContactId, long contactId) argument 1097 setPresenceContactId(long rawContactId, long contactId) argument 1177 pickBestMatchBasedOnExceptions(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument 1240 pickBestMatchBasedOnData(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, ContactMatcher matcher) argument 1265 pickBestMatchBasedOnSecondaryData(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, ContactMatcher matcher) argument 1310 loadNameMatchCandidates(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, boolean structuredNameBased) argument 1333 updateMatchScoresBasedOnDataMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument 1376 updateMatchScoresBasedOnIdentityMatch(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument 1423 updateMatchScoresBasedOnNameMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument 1483 insertNameLookup( long rawContactId, long dataId, int lookupType, String string) argument 1565 updateMatchScoresBasedOnEmailMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument 1608 updateMatchScoresBasedOnPhoneMatches(SQLiteDatabase db, long rawContactId, ContactMatcher matcher) argument 1962 appendLookupKey(StringBuilder sb, String accountTypeWithDataSet, String accountName, long rawContactId, String sourceId, String displayName) argument 1973 processDisplayNameCandidate(long rawContactId, String displayName, int displayNameSource, boolean writableAccount, boolean verified) argument 2025 updatePhotoId(SQLiteDatabase db, long rawContactId) argument 2171 updateDisplayNameForRawContact(SQLiteDatabase db, long rawContactId) argument 2224 updateHasPhoneNumber(SQLiteDatabase db, long rawContactId) argument 2267 updateLookupKeyForRawContact(SQLiteDatabase db, long rawContactId) argument 2313 updateStarred(long rawContactId) argument 2470 updateMatchScoresForSuggestionsBasedOnDataMatches(SQLiteDatabase db, long rawContactId, MatchCandidateList candidates, ContactMatcher matcher) argument [all...] |
/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/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/Contacts/tests/src/com/android/contacts/model/ |
H A D | ContactLoaderTest.java | 101 final long rawContactId = 11; 113 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 118 assertEquals(rawContactId, contact.getNameRawContactId()); 130 final long rawContactId = 11; 135 Uri.parse("content://contacts"), rawContactId); 136 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 145 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 150 assertEquals(rawContactId, contact.getNameRawContactId()); 162 final long rawContactId = 11; 166 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 289 fetchAllData( Uri baseUri, long contactId, long rawContactId, long dataId, String encodedLookup) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | RawContactDeltaList.java | 112 final Long rawContactId = remoteEntity.getValues().getId(); 115 final RawContactDelta localEntity = local.getByRawContactId(rawContactId); 139 final long rawContactId = this.findRawContactId(); 166 if (rawContactId != -1) { 167 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId); 182 if (rawContactId != -1) { 185 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); 294 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); 295 if (rawContactId != null && rawContactId > 319 getByRawContactId(Long rawContactId) argument 327 indexOfRawContactId(Long rawContactId) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | SplitAggregateView.java | 81 void onContactSelected(long rawContactId); argument 100 mListener.onContactSelected(list.get(position).rawContactId); 116 final long rawContactId; field in class:SplitAggregateView.RawContactInfo 124 public RawContactInfo(long rawContactId) { argument 125 this.rawContactId = rawContactId; 162 long rawContactId = cursor.getLong(SplitQuery.RAW_CONTACT_ID); 163 RawContactInfo info = rawContactInfos.get(rawContactId); 165 info = new RawContactInfo(rawContactId); 166 rawContactInfos.put(rawContactId, inf [all...] |