/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 | 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 | 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 | DataRowHandlerForCommonDataKind.java | 44 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 47 return super.insert(db, txContext, rawContactId, values);
|
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 | 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 | 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 | 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 | DataRowHandlerForStructuredPostal.java | 55 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument 58 return super.insert(db, txContext, rawContactId, values);
|
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 | 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 | 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 | 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 | 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...] |
/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
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
H A D | DataItem.java | 109 public void setRawContactId(long rawContactId) { argument 110 mContentValues.put(Data.RAW_CONTACT_ID, rawContactId);
|
/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/tests/src/com/android/contacts/tests/streamitems/ |
H A D | StreamItemPopulatorActivity.java | 165 long rawContactId = -1; 181 rawContactId = c.getLong(0); 187 if (rawContactId != -1) { 188 addStreamItemsToRawContact(rawContactId, accountType, accountName); 212 private void addStreamItemsToRawContact(long rawContactId, String accountType, argument 224 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | NameLookupBuilderTest.java | 70 protected void insertNameLookup(long rawContactId, long dataId, int lookupType, argument
|
H A D | GroupsTest.java | 229 public void assertRawContactVisible(long rawContactId, boolean expected) { argument 230 final long contactId = this.queryContactId(rawContactId); 257 final long rawContactId = this.createRawContact(sTestAccount); 258 final long contactId = this.queryContactId(rawContactId); 261 this.insertGroupMembership(rawContactId, groupId); 280 final long rawContactId = this.createRawContact(); 283 assertRawContactVisible(rawContactId, true); 311 final long rawContactId = this.createRawContact(sTestAccount); 319 assertRawContactVisible(rawContactId, false); 328 assertRawContactVisible(rawContactId, tru [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...] |
/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/experimental/LoaderApp/src/com/android/loaderapp/util/ |
H A D | ContactsUtils.java | 273 public static long queryForContactId(ContentResolver cr, long rawContactId) { argument 279 RawContacts._ID + "=" + rawContactId, null, null); 317 long rawContactId = -1; 324 rawContactId = rawContactIdCursor.getLong(0); 331 return rawContactId;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | AggregationSuggestionEngine.java | 58 public long rawContactId; field in class:AggregationSuggestionEngine.RawContact 65 return "ID: " + rawContactId + " account: " + accountType + "/" + accountName 391 long rawContactId = mDataCursor.getLong(DataQuery.RAW_CONTACT_ID); 392 if (!containsRawContact(suggestion, rawContactId)) { 394 rawContact.rawContactId = rawContactId; 433 public boolean containsRawContact(Suggestion suggestion, long rawContactId) { argument 437 if (suggestion.rawContacts.get(i).rawContactId == rawContactId) {
|