/packages/apps/Dialer/src/com/android/dialer/contact/ |
H A D | ContactUpdateService.java | 38 public static Intent createSetSuperPrimaryIntent(Context context, long dataId) { argument 40 serviceIntent.putExtra(EXTRA_PHONE_NUMBER_DATA_ID, dataId); 47 long dataId = intent.getLongExtra(EXTRA_PHONE_NUMBER_DATA_ID, -1); 49 ContactUpdateUtils.setSuperPrimary(this, dataId);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/ |
H A D | ContactUpdateUtils.java | 32 public static void setSuperPrimary(Context context, long dataId) { argument 33 if (dataId == -1) { 44 ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, dataId),
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | DataRowHandlerForEmail.java | 42 long dataId = super.insert(db, txContext, rawContactId, values); 45 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email); 49 return dataId; 60 long dataId = c.getLong(DataUpdateQuery._ID); 64 mDbHelper.deleteNameLookup(dataId); 65 mDbHelper.insertNameLookupForEmail(rawContactId, dataId, address); 75 long dataId = c.getLong(DataDeleteQuery._ID); 80 mDbHelper.deleteNameLookup(dataId);
|
H A D | DataRowHandlerForNickname.java | 44 long dataId = super.insert(db, txContext, rawContactId, values); 48 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); 51 return dataId; 57 long dataId = c.getLong(DataUpdateQuery._ID); 66 mDbHelper.deleteNameLookup(dataId); 67 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); 77 long dataId = c.getLong(DataDeleteQuery._ID); 82 mDbHelper.deleteNameLookup(dataId);
|
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, 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 D | DataRowHandlerForOrganization.java | 47 long dataId = super.insert(db, txContext, rawContactId, values); 50 return dataId; 63 long dataId = c.getLong(DataUpdateQuery._ID); 71 mSelectionArgs1[0] = String.valueOf(dataId); 82 mSelectionArgs1[0] = String.valueOf(dataId); 89 mDbHelper.deleteNameLookup(dataId); 97 long dataId = c.getLong(DataUpdateQuery._ID); 102 mDbHelper.deleteNameLookup(dataId);
|
H A D | DataRowHandler.java | 111 final long dataId = db.insert(Tables.DATA, null, values); 117 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); 123 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 131 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 140 return dataId; 151 long dataId = c.getLong(DataUpdateQuery._ID); 154 handlePrimaryAndSuperPrimary(values, dataId, rawContactId); 157 mSelectionArgs1[0] = String.valueOf(dataId); 185 private void handlePrimaryAndSuperPrimary(ContentValues values, long dataId, argument 203 mSelectionArgs1[0] = String.valueOf(dataId); 319 getAugmentedValues(SQLiteDatabase db, long dataId, ContentValues update) argument [all...] |
H A D | DataRowHandlerForPhoneNumber.java | 46 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 D | DataRowHandlerForStructuredName.java | 51 long dataId = super.insert(db, txContext, rawContactId, values); 55 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 59 insertNameLookupForPhoneticName(rawContactId, dataId, values); 62 return dataId; 68 final long dataId = c.getLong(DataUpdateQuery._ID); 71 final ContentValues augmented = getAugmentedValues(db, dataId, values); 85 mDbHelper.deleteNameLookup(dataId); 87 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 91 insertNameLookupForPhoneticName(rawContactId, dataId, augmented); 100 long dataId 169 insertNameLookupForPhoneticName(long rawContactId, long dataId, ContentValues values) argument [all...] |
H A D | DataRowHandlerForCommonDataKind.java | 53 final long dataId = c.getLong(DataUpdateQuery._ID); 54 final ContentValues augmented = getAugmentedValues(db, dataId, values);
|
H A D | DataRowHandlerForIdentity.java | 38 final long dataId = super.insert(db, txContext, rawContactId, values); 45 return dataId;
|
H A D | DataRowHandlerForStructuredPostal.java | 64 final long dataId = c.getLong(DataUpdateQuery._ID); 65 final ContentValues augmented = getAugmentedValues(db, dataId, values);
|
H A D | DataRowHandlerForPhoto.java | 70 long dataId = super.insert(db, txContext, rawContactId, values); 74 return dataId;
|
H A D | LegacyApiSupport.java | 1088 private int updateOrganizations(long dataId, ContentValues values) { argument 1092 Data._ID + "=" + dataId, null); 1095 private int updatePhones(long dataId, ContentValues values) { argument 1099 Data._ID + "=" + dataId, null); 1102 private int updateContactMethods(long dataId, ContentValues values) { argument 1105 mDataMimetypeQuery.bindLong(1, dataId); 1129 Data._ID + "=" + dataId, null); 1132 private int updateExtensions(long dataId, ContentValues values) { argument 1136 Data._ID + "=" + dataId, null); 1181 long dataId 1203 updatePhotoByDataId(long dataId, ContentValues values) argument 1228 updateLegacyPhotoData(long rawContactId, long dataId, ContentValues values) argument [all...] |
H A D | ContactsDatabaseHelper.java | 2593 long dataId = c.getLong(0); 2597 update.bindLong(2, dataId); 2787 long dataId = cursor.getLong(StructName205Query.ID); 2802 upgradeNameToVersion205(dataId, rawContactId, displayNameSource, displayName, name, 2810 private void upgradeNameToVersion205(long dataId, long rawContactId, int displayNameSource, argument 2825 structuredNameUpdate.bindLong(4, dataId); 2884 long dataId = cursor.getLong(Organization205Query.ID); 2892 organizationUpdate.bindLong(2, dataId); 2969 long dataId = cursor.getLong(Upgrade303Query.ID); 2975 values.put(NameLookupColumns.DATA_ID, dataId); 3262 insertNameLookup(long rawContactId, long dataId, int lookupType, String name) argument 3400 insertNameLookup(SQLiteStatement stmt, long rawContactId, long dataId, int lookupType, String name) argument 3414 insertNormalizedNameLookup(SQLiteStatement stmt, long rawContactId, long dataId, int lookupType, String normalizedName) argument 4457 getDataMimeType(long dataId) argument 5061 deleteStatusUpdate(long dataId) argument 5071 replaceStatusUpdate(Long dataId, long timestamp, String status, String resPackage, Integer iconResource, Integer labelResource) argument 5093 insertStatusUpdate(Long dataId, String status, String resPackage, Integer iconResource, Integer labelResource) argument 5431 setIsPrimary(long rawContactId, long dataId, long mimeTypeId) argument 5468 setIsSuperPrimary(long rawContactId, long dataId, long mimeTypeId) argument 5491 insertNameLookup(long rawContactId, long dataId, int lookupType, String name) argument 5515 deleteNameLookup(long dataId) argument 5525 insertNameLookupForEmail(long rawContactId, long dataId, String email) argument 5543 insertNameLookupForNickname(long rawContactId, long dataId, String nickname) argument 5552 insertNameLookupForPhoneticName(long rawContactId, long dataId, String familyName, String middleName, String givenName) argument [all...] |
H A D | DataRowHandlerForGroupMembership.java | 79 long dataId = super.insert(db, txContext, rawContactId, values); 84 return dataId;
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
H A D | DataUtil.java | 33 public static void delete(ContentResolver resolver, long dataId) { argument 34 Uri uri = ContentUris.withAppendedId(URI, dataId); 38 public static void update(ContentResolver resolver, long dataId, ContentValues values) { argument 39 Uri uri = ContentUris.withAppendedId(URI, dataId);
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | ContactLoaderTest.java | 102 final long dataId = 21; 113 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 131 final long dataId = 21; 145 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 163 final long dataId = 21; 176 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 195 final long dataId = 21; 205 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 223 final long dataId = 21; 234 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKe 289 fetchAllData( Uri baseUri, long contactId, long rawContactId, long dataId, String encodedLookup) argument [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactsActor.java | 381 final long dataId = createEmail(rawContactId, address); 382 createStatus(dataId, status); 431 public long createStatus(long dataId, String status) { argument 434 values.put(StatusUpdates.DATA_ID, dataId); 480 public void setSuperPrimaryPhone(long dataId) { argument 485 Uri updateUri = ContentUris.withAppendedId(Data.CONTENT_URI, dataId);
|
H A D | NameLookupBuilderTest.java | 70 protected void insertNameLookup(long rawContactId, long dataId, int lookupType, argument
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
H A D | SmartDialCursorLoader.java | 92 row[PhoneQuery.PHONE_ID] = contact.dataId;
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | ContactLoader.java | 89 final long dataId = cursor.getLong(StatusQuery._ID); 90 statuses.put(dataId, status);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ContactSaveService.java | 112 public static final String EXTRA_DATA_ID = "dataId"; 889 public static Intent createSetSuperPrimaryIntent(Context context, long dataId) { argument 892 serviceIntent.putExtra(ContactSaveService.EXTRA_DATA_ID, dataId); 897 long dataId = intent.getLongExtra(EXTRA_DATA_ID, -1); 898 if (dataId == -1) { 903 ContactUpdateUtils.setSuperPrimary(this, dataId); 911 public static Intent createClearPrimaryIntent(Context context, long dataId) { argument 914 serviceIntent.putExtra(ContactSaveService.EXTRA_DATA_ID, dataId); 919 long dataId = intent.getLongExtra(EXTRA_DATA_ID, -1); 920 if (dataId [all...] |
/packages/apps/Dialer/src/com/android/dialer/database/ |
H A D | DialerDatabaseHelper.java | 229 public final long dataId; field in class:DialerDatabaseHelper.ContactNumber 237 this.dataId = dataID; 247 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId); 258 && Objects.equal(this.dataId, that.dataId)
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
H A D | ContactFragment.java | 363 final long dataId = entryValues.getAsLong(Data._ID); 372 rawContactId, dataId, entryValues); 414 imMime, imKind, rawContactId, dataId, entryValues); 551 long rawContactId, long dataId, ContentValues values) { 555 entry.id = dataId; 550 fromValues(Context context, String mimeType, DataKind kind, long rawContactId, long dataId, ContentValues values) argument
|