Searched refs:dataId (Results 1 - 25 of 38) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/interactions/
H A DContactUpdateService.java35 public static Intent createSetSuperPrimaryIntent(Context context, long dataId) { argument
37 serviceIntent.putExtra(EXTRA_PHONE_NUMBER_DATA_ID, dataId);
44 long dataId = intent.getLongExtra(EXTRA_PHONE_NUMBER_DATA_ID, -1);
46 ContactUpdateUtils.setSuperPrimary(this, dataId);
/packages/apps/Contacts/src/com/android/contacts/database/
H A DContactUpdateUtils.java32 public static void setSuperPrimary(Context context, long dataId) { argument
33 if (dataId == -1) {
44 ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, dataId),
/packages/apps/Dialer/java/com/android/contacts/common/database/
H A DContactUpdateUtils.java30 public static void setSuperPrimary(Context context, long dataId) { argument
31 if (dataId == -1) {
44 ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, dataId),
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBugleRecipientEntry.java32 final long contactId, final Long directoryId, final long dataId,
36 directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid, lookupKey);
42 final long dataId, final String thumbnailUriAsString, final boolean isValid,
45 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null
52 final long dataId, final String thumbnailUriAsString, final boolean isValid,
55 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null
30 BugleRecipientEntry(final int entryType, final String displayName, final String destination, final int destinationType, final String destinationLabel, final long contactId, final Long directoryId, final long dataId, final Uri photoThumbnailUri, final boolean isFirstLevel, final boolean isValid, final String lookupKey) argument
39 constructTopLevelEntry(final String displayName, final int displayNameSource, final String destination, final int destinationType, final String destinationLabel, final long contactId, final Long directoryId, final long dataId, final String thumbnailUriAsString, final boolean isValid, final String lookupKey) argument
49 constructSecondLevelEntry(final String displayName, final int displayNameSource, final String destination, final int destinationType, final String destinationLabel, final long contactId, final Long directoryId, final long dataId, final String thumbnailUriAsString, final boolean isValid, final String lookupKey) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForEmail.java41 long dataId = super.insert(db, txContext, rawContactId, values);
44 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email);
48 return dataId;
59 long dataId = c.getLong(DataUpdateQuery._ID);
63 mDbHelper.deleteNameLookup(dataId);
64 mDbHelper.insertNameLookupForEmail(rawContactId, dataId, address);
74 long dataId = c.getLong(DataDeleteQuery._ID);
79 mDbHelper.deleteNameLookup(dataId);
H A DDataRowHandlerForNickname.java43 long dataId = super.insert(db, txContext, rawContactId, values);
47 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname);
50 return dataId;
56 long dataId = c.getLong(DataUpdateQuery._ID);
65 mDbHelper.deleteNameLookup(dataId);
66 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname);
76 long dataId = c.getLong(DataDeleteQuery._ID);
81 mDbHelper.deleteNameLookup(dataId);
H A DNameLookupBuilder.java82 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, long dataId, in argument
287 insertCollationKey(long rawContactId, long dataId, int tokenCount) argument
302 insertNicknamePermutations(long rawContactId, long dataId, int fromIndex, int tokenCount) argument
[all...]
H A DDataRowHandler.java117 final long dataId = db.insert(Tables.DATA, null, values);
123 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId);
130 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId);
138 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId);
147 return dataId;
159 long dataId = c.getLong(DataUpdateQuery._ID);
162 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId,
164 handleHashIdForUpdate(values, dataId);
167 mSelectionArgs1[0] = String.valueOf(dataId);
223 private void handleHashIdForUpdate(ContentValues values, long dataId) { argument
253 handlePrimaryAndSuperPrimary(TransactionContext txContext, ContentValues values, long dataId, long rawContactId, boolean callerIsMetadataSyncAdapter) argument
390 getAugmentedValues(SQLiteDatabase db, long dataId, ContentValues update) argument
[all...]
H A DDataRowHandlerForOrganization.java46 long dataId = super.insert(db, txContext, rawContactId, values);
49 return dataId;
62 long dataId = c.getLong(DataUpdateQuery._ID);
70 mSelectionArgs1[0] = String.valueOf(dataId);
81 mSelectionArgs1[0] = String.valueOf(dataId);
88 mDbHelper.deleteNameLookup(dataId);
96 long dataId = c.getLong(DataUpdateQuery._ID);
101 mDbHelper.deleteNameLookup(dataId);
H A DDataRowHandlerForPhoneNumber.java46 final long dataId = super.insert(db, txContext, rawContactId, values);
50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber);
56 return dataId;
69 long dataId = c.getLong(DataUpdateQuery._ID);
71 updatePhoneLookup(db, rawContactId, dataId,
102 long dataId = c.getLong(DataDeleteQuery._ID);
107 updatePhoneLookup(db, rawContactId, dataId, null, null);
114 private void updatePhoneLookup(SQLiteDatabase db, long rawContactId, long dataId, argument
116 mSelectionArgs1[0] = String.valueOf(dataId);
123 phoneValues.put(PhoneLookupColumns.DATA_ID, dataId);
[all...]
H A DDataRowHandlerForIdentity.java37 final long dataId = super.insert(db, txContext, rawContactId, values);
44 return dataId;
H A DDataRowHandlerForStructuredName.java51 long dataId = super.insert(db, txContext, rawContactId, values);
55 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name,
61 return dataId;
67 final long dataId = c.getLong(DataUpdateQuery._ID);
70 final ContentValues augmented = getAugmentedValues(db, dataId, values);
81 mDbHelper.deleteNameLookup(dataId);
83 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name,
95 long dataId = c.getLong(DataDeleteQuery._ID);
100 mDbHelper.deleteNameLookup(dataId);
H A DDataRowHandlerForCommonDataKind.java53 final long dataId = c.getLong(DataUpdateQuery._ID);
54 final ContentValues augmented = getAugmentedValues(db, dataId, values);
H A DDataRowHandlerForStructuredPostal.java64 final long dataId = c.getLong(DataUpdateQuery._ID);
65 final ContentValues augmented = getAugmentedValues(db, dataId, values);
H A DDataRowHandlerForPhoto.java70 long dataId = super.insert(db, txContext, rawContactId, values);
74 return dataId;
H A DLegacyApiSupport.java1054 private int updateOrganizations(long dataId, ContentValues values) { argument
1058 Data._ID + "=" + dataId, null);
1061 private int updatePhones(long dataId, ContentValues values) { argument
1065 Data._ID + "=" + dataId, null);
1068 private int updateContactMethods(long dataId, ContentValues values) { argument
1071 mDataMimetypeQuery.bindLong(1, dataId);
1095 Data._ID + "=" + dataId, null);
1098 private int updateExtensions(long dataId, ContentValues values) { argument
1102 Data._ID + "=" + dataId, null);
1118 long dataId
1140 updatePhotoByDataId(long dataId, ContentValues values) argument
1165 updateLegacyPhotoData(long rawContactId, long dataId, ContentValues values) argument
[all...]
H A DContactsDatabaseHelper.java917 long rawContactId, long dataId, int lookupType, String name) {
921 mNameLookupInsert, rawContactId, dataId, lookupType, name);
2859 long dataId = cursor.getLong(StructuredNameQuery.ID);
2864 nameLookupBuilder.insertNameLookup(rawContactId, dataId, name, fullNameStyle);
2881 long dataId = cursor.getLong(EmailQuery.ID);
2885 insertNameLookup(nameLookupInsert, rawContactId, dataId,
2903 long dataId = cursor.getLong(NicknameQuery.ID);
2906 insertNameLookup(nameLookupInsert, rawContactId, dataId,
2917 public void insertNameLookup(SQLiteStatement stmt, long rawContactId, long dataId, argument
2928 insertNormalizedNameLookup(stmt, rawContactId, dataId, lookupTyp
916 insertNameLookup( long rawContactId, long dataId, int lookupType, String name) argument
2931 insertNormalizedNameLookup(SQLiteStatement stmt, long rawContactId, long dataId, int lookupType, String normalizedName) argument
3947 getDataMimeType(long dataId) argument
4504 deleteStatusUpdate(long dataId) argument
4512 replaceStatusUpdate(Long dataId, long timestamp, String status, String resPackage, Integer iconResource, Integer labelResource) argument
4532 insertStatusUpdate(Long dataId, String status, String resPackage, Integer iconResource, Integer labelResource) argument
4814 setIsPrimary(long rawContactId, long dataId, long mimeTypeId) argument
4847 setIsSuperPrimary(long rawContactId, long dataId, long mimeTypeId) argument
4868 insertNameLookup(long rawContactId, long dataId, int lookupType, String name) argument
4890 deleteNameLookup(long dataId) argument
4898 insertNameLookupForEmail(long rawContactId, long dataId, String email) argument
4916 insertNameLookupForNickname(long rawContactId, long dataId, String nickname) argument
[all...]
H A DDataRowHandlerForGroupMembership.java79 long dataId = super.insert(db, txContext, rawContactId, values);
84 return dataId;
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
H A DDataUtil.java34 public static void delete(ContentResolver resolver, long dataId) { argument
35 Uri uri = ContentUris.withAppendedId(URI, dataId);
39 public static void update(ContentResolver resolver, long dataId, ContentValues values) { argument
40 Uri uri = ContentUris.withAppendedId(URI, dataId);
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DContactListItemData.java56 final long dataId = cursor.getLong(ContactUtil.INDEX_DATA_ID);
82 contactId, lookupKey, dataId, photoThumbnailUri, isFirstLevel);
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
H A DBindingTest.java133 public TestBindableData(final Object dataId) { argument
134 mDataId = dataId;
/packages/apps/Messaging/src/com/android/messaging/util/
H A DContactUtil.java470 final long dataId, final String photoThumbnailUri, final boolean firstLevel) {
473 destination, destinationType, destinationLabel, contactId, null, dataId,
477 destination, destinationType, destinationLabel, contactId, null, dataId,
503 final long dataId = contactId;
507 destinationLabel, contactId, lookupKey, dataId, photoThumbnailUri,
467 createRecipientEntry(final String displayName, final int displayNameSource, final String destination, final int destinationType, final String destinationLabel, final long contactId, final String lookupKey, final long dataId, final String photoThumbnailUri, final boolean firstLevel) argument
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DContactLoader.java89 final long dataId = cursor.getLong(StatusQuery._ID);
90 statuses.put(dataId, status);
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/
H A DSmartDialCursorLoader.java98 row[PhoneQuery.PHONE_ID] = contact.dataId;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DNameLookupBuilderTest.java70 protected void insertNameLookup(long rawContactId, long dataId, int lookupType, argument

Completed in 405 milliseconds

12