/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameLookupBuilder.java | 82 protected abstract void insertNameLookup(long rawContactId, long dataId, int lookupType, in insertNameLookup() argument 99 public void insertNameLookup(long rawContactId, long dataId, String name, int fullNameStyle) { in insertNameLookup() argument 111 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true); in insertNameLookup() 126 insertCollationKey(rawContactId, dataId, MAX_NAME_TOKENS); in insertNameLookup() 138 insertNameVariants(rawContactId, dataId, 0, tokenCount, !tooManyTokens, true); in insertNameLookup() 139 insertNicknamePermutations(rawContactId, dataId, 0, tokenCount); in insertNameLookup() 239 private void insertNameVariants(long rawContactId, long dataId, int fromIndex, int toIndex, in insertNameVariants() argument 242 insertNameVariant(rawContactId, dataId, toIndex, in insertNameVariants() 255 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex, in insertNameVariants() 266 private void insertNameVariant(long rawContactId, long dataId, int tokenCount, in insertNameVariant() argument [all …]
|
D | DataRowHandler.java | 117 final long dataId = db.insert(Tables.DATA, null, values); in insert() local 123 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); in insert() 130 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert() 138 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert() 147 return dataId; in insert() 159 long dataId = c.getLong(DataUpdateQuery._ID); in update() local 162 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId, in update() 164 handleHashIdForUpdate(values, dataId); in update() 167 mSelectionArgs1[0] = String.valueOf(dataId); in update() 223 private void handleHashIdForUpdate(ContentValues values, long dataId) { in handleHashIdForUpdate() argument [all …]
|
D | DataRowHandlerForNickname.java | 43 long dataId = super.insert(db, txContext, rawContactId, values); in insert() local 47 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); in insert() 50 return dataId; in insert() 56 long dataId = c.getLong(DataUpdateQuery._ID); in update() local 65 mDbHelper.deleteNameLookup(dataId); in update() 66 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); in update() 76 long dataId = c.getLong(DataDeleteQuery._ID); in delete() local 81 mDbHelper.deleteNameLookup(dataId); in delete()
|
D | DataRowHandlerForEmail.java | 41 long dataId = super.insert(db, txContext, rawContactId, values); in insert() local 44 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email); in insert() 48 return dataId; in insert() 59 long dataId = c.getLong(DataUpdateQuery._ID); in update() local 63 mDbHelper.deleteNameLookup(dataId); in update() 64 mDbHelper.insertNameLookupForEmail(rawContactId, dataId, address); in update() 74 long dataId = c.getLong(DataDeleteQuery._ID); in delete() local 79 mDbHelper.deleteNameLookup(dataId); in delete()
|
D | DataRowHandlerForPhoneNumber.java | 46 final long dataId = super.insert(db, txContext, rawContactId, values); in insert() local 50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber); in insert() 56 return dataId; in insert() 69 long dataId = c.getLong(DataUpdateQuery._ID); in update() local 71 updatePhoneLookup(db, rawContactId, dataId, in update() 102 long dataId = c.getLong(DataDeleteQuery._ID); in delete() local 107 updatePhoneLookup(db, rawContactId, dataId, null, null); in delete() 114 private void updatePhoneLookup(SQLiteDatabase db, long rawContactId, long dataId, in updatePhoneLookup() argument 116 mSelectionArgs1[0] = String.valueOf(dataId); in updatePhoneLookup() 123 phoneValues.put(PhoneLookupColumns.DATA_ID, dataId); in updatePhoneLookup()
|
D | DataRowHandlerForOrganization.java | 46 long dataId = super.insert(db, txContext, rawContactId, values); in insert() local 49 return dataId; in insert() 62 long dataId = c.getLong(DataUpdateQuery._ID); in update() local 70 mSelectionArgs1[0] = String.valueOf(dataId); in update() 81 mSelectionArgs1[0] = String.valueOf(dataId); in update() 88 mDbHelper.deleteNameLookup(dataId); in update() 96 long dataId = c.getLong(DataUpdateQuery._ID); in delete() local 101 mDbHelper.deleteNameLookup(dataId); in delete()
|
D | DataRowHandlerForStructuredName.java | 51 long dataId = super.insert(db, txContext, rawContactId, values); in insert() local 55 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, in insert() 61 return dataId; in insert() 67 final long dataId = c.getLong(DataUpdateQuery._ID); in update() local 70 final ContentValues augmented = getAugmentedValues(db, dataId, values); in update() 81 mDbHelper.deleteNameLookup(dataId); in update() 83 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, in update() 95 long dataId = c.getLong(DataDeleteQuery._ID); in delete() local 100 mDbHelper.deleteNameLookup(dataId); in delete()
|
D | LegacyApiSupport.java | 1088 private int updateOrganizations(long dataId, ContentValues values) { in updateOrganizations() argument 1092 Data._ID + "=" + dataId, null); in updateOrganizations() 1095 private int updatePhones(long dataId, ContentValues values) { in updatePhones() argument 1099 Data._ID + "=" + dataId, null); in updatePhones() 1102 private int updateContactMethods(long dataId, ContentValues values) { in updateContactMethods() argument 1105 mDataMimetypeQuery.bindLong(1, dataId); in updateContactMethods() 1129 Data._ID + "=" + dataId, null); in updateContactMethods() 1132 private int updateExtensions(long dataId, ContentValues values) { in updateExtensions() argument 1136 Data._ID + "=" + dataId, null); in updateExtensions() 1181 long dataId = findFirstDataId(rawContactId, Photo.CONTENT_ITEM_TYPE); in updatePhoto() local [all …]
|
D | ContactsDatabaseHelper.java | 946 long rawContactId, long dataId, int lookupType, String name) { in insertNameLookup() argument 950 mNameLookupInsert, rawContactId, dataId, lookupType, name); in insertNameLookup() 3074 long dataId = c.getLong(0); in upgradeToVersion202() local 3078 update.bindLong(2, dataId); in upgradeToVersion202() 3235 long dataId = cursor.getLong(StructName205Query.ID); in upgradeStructuredNamesToVersion205() local 3249 upgradeNameToVersion205(dataId, rawContactId, displayNameSource, name, in upgradeStructuredNamesToVersion205() 3258 long dataId, in upgradeNameToVersion205() argument 3276 structuredNameUpdate.bindLong(4, dataId); in upgradeNameToVersion205() 3319 long dataId = cursor.getLong(Organization205Query.ID); in upgradeOrganizationsToVersion205() local 3327 organizationUpdate.bindLong(2, dataId); in upgradeOrganizationsToVersion205() [all …]
|
D | DataRowHandlerForIdentity.java | 37 final long dataId = super.insert(db, txContext, rawContactId, values); in insert() local 44 return dataId; in insert()
|
D | DataRowHandlerForCommonDataKind.java | 53 final long dataId = c.getLong(DataUpdateQuery._ID); in update() local 54 final ContentValues augmented = getAugmentedValues(db, dataId, values); in update()
|
D | DataRowHandlerForStructuredPostal.java | 64 final long dataId = c.getLong(DataUpdateQuery._ID); in update() local 65 final ContentValues augmented = getAugmentedValues(db, dataId, values); in update()
|
D | DataRowHandlerForPhoto.java | 70 long dataId = super.insert(db, txContext, rawContactId, values); in insert() local 74 return dataId; in insert()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleRecipientEntry.java | 32 final long contactId, final Long directoryId, final long dataId, in BugleRecipientEntry() argument 36 directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid, lookupKey); in BugleRecipientEntry() 42 final long dataId, final String thumbnailUriAsString, final boolean isValid, in constructTopLevelEntry() argument 45 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null in constructTopLevelEntry() 52 final long dataId, final String thumbnailUriAsString, final boolean isValid, in constructSecondLevelEntry() argument 55 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null in constructSecondLevelEntry()
|
/packages/apps/Dialer/src/com/android/dialer/contact/ |
D | ContactUpdateService.java | 38 public static Intent createSetSuperPrimaryIntent(Context context, long dataId) { in createSetSuperPrimaryIntent() argument 40 serviceIntent.putExtra(EXTRA_PHONE_NUMBER_DATA_ID, dataId); in createSetSuperPrimaryIntent() 47 long dataId = intent.getLongExtra(EXTRA_PHONE_NUMBER_DATA_ID, -1); in onHandleIntent() local 49 ContactUpdateUtils.setSuperPrimary(this, dataId); in onHandleIntent()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/ |
D | ContactUpdateUtils.java | 32 public static void setSuperPrimary(Context context, long dataId) { in setSuperPrimary() argument 33 if (dataId == -1) { in setSuperPrimary() 44 ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, dataId), in setSuperPrimary()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
D | DataUtil.java | 35 public static void delete(ContentResolver resolver, long dataId) { in delete() argument 36 Uri uri = ContentUris.withAppendedId(URI, dataId); in delete() 40 public static void update(ContentResolver resolver, long dataId, ContentValues values) { in update() argument 41 Uri uri = ContentUris.withAppendedId(URI, dataId); in update()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContactUtil.java | 470 final long dataId, final String photoThumbnailUri, final boolean firstLevel) { in createRecipientEntry() argument 473 destination, destinationType, destinationLabel, contactId, null, dataId, in createRecipientEntry() 477 destination, destinationType, destinationLabel, contactId, null, dataId, in createRecipientEntry() 503 final long dataId = contactId; in createRecipientEntryForPhoneQuery() local 507 destinationLabel, contactId, lookupKey, dataId, photoThumbnailUri, in createRecipientEntryForPhoneQuery()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 573 final long dataId = createEmail(rawContactId, address); in createRawContactWithStatus() local 574 createStatus(dataId, status); in createRawContactWithStatus() 623 public long createStatus(long dataId, String status) { in createStatus() argument 626 values.put(StatusUpdates.DATA_ID, dataId); in createStatus() 672 public void setSuperPrimaryPhone(long dataId) { in setSuperPrimaryPhone() argument 677 Uri updateUri = ContentUris.withAppendedId(Data.CONTENT_URI, dataId); in setSuperPrimaryPhone()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 1018 public static Intent createSetSuperPrimaryIntent(Context context, long dataId) { in createSetSuperPrimaryIntent() argument 1021 serviceIntent.putExtra(ContactSaveService.EXTRA_DATA_ID, dataId); in createSetSuperPrimaryIntent() 1026 long dataId = intent.getLongExtra(EXTRA_DATA_ID, -1); in setSuperPrimary() local 1027 if (dataId == -1) { in setSuperPrimary() 1032 ContactUpdateUtils.setSuperPrimary(this, dataId); in setSuperPrimary() 1040 public static Intent createClearPrimaryIntent(Context context, long dataId) { in createClearPrimaryIntent() argument 1043 serviceIntent.putExtra(ContactSaveService.EXTRA_DATA_ID, dataId); in createClearPrimaryIntent() 1048 long dataId = intent.getLongExtra(EXTRA_DATA_ID, -1); in clearPrimary() local 1049 if (dataId == -1) { in clearPrimary() 1059 getContentResolver().update(ContentUris.withAppendedId(Data.CONTENT_URI, dataId), in clearPrimary()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ContactListItemData.java | 56 final long dataId = cursor.getLong(ContactUtil.INDEX_DATA_ID); in bind() local 82 contactId, lookupKey, dataId, photoThumbnailUri, isFirstLevel); in bind()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | BindingTest.java | 133 public TestBindableData(final Object dataId) { in TestBindableData() argument 134 mDataId = dataId; in TestBindableData()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ContactLoader.java | 89 final long dataId = cursor.getLong(StatusQuery._ID); in loadInBackground() local 90 statuses.put(dataId, status); in loadInBackground()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | ContactFragment.java | 363 final long dataId = entryValues.getAsLong(Data._ID); in buildEntries() local 372 rawContactId, dataId, entryValues); in buildEntries() 414 imMime, imKind, rawContactId, dataId, entryValues); in buildEntries() 551 long rawContactId, long dataId, ContentValues values) { in fromValues() argument 555 entry.id = dataId; in fromValues()
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 272 public final long dataId; field in DialerDatabaseHelper.ContactNumber 281 this.dataId = dataID; in ContactNumber() 292 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId, in hashCode() 304 && Objects.equal(this.dataId, that.dataId) in equals()
|