Searched defs:dataId (Results 1 - 20 of 20) sorted by relevance

/packages/apps/ContactsCommon/src/com/android/contacts/common/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/src/com/android/dialer/contact/
H A DContactUpdateService.java38 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DDataUtil.java33 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/providers/ContactsProvider/src/com/android/providers/contacts/
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 DDataRowHandlerForStructuredName.java51 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 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.java111 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 DLegacyApiSupport.java1088 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 DContactsDatabaseHelper.java2593 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 DContactsProvider2.java1828 long dataId = c.getLong(0);
1831 photoFileIdToDataId.put(photoFileId, dataId);
1873 long dataId = photoFileIdToDataId.get(missingPhotoId);
1876 updateData(ContentUris.withAppendedId(Data.CONTENT_URI, dataId),
3004 public int deleteData(long dataId, String[] allowedMimeTypes) { argument
3010 mSelectionArgs1[0] = String.valueOf(dataId);
3169 Long dataId = values.getAsLong(StatusUpdates.DATA_ID);
3174 if (dataId != null) {
3178 mSelectionArgs.add(String.valueOf(dataId));
3239 dataId
7867 openDisplayPhotoForWrite(long rawContactId, long dataId, Uri uri, String mode) argument
7889 PipeMonitor(long rawContactId, long dataId, ParcelFileDescriptor descriptor) argument
8183 insertNameLookup(long rawContactId, long dataId, int lookupType, String name) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
H A DContactLoaderTest.java102 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 DNameLookupBuilderTest.java70 protected void insertNameLookup(long rawContactId, long dataId, int lookupType, argument
H A DContactsActor.java381 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 DBaseContactsProvider2Test.java404 long dataId, int presence, String status, long timestamp, int chatMode) {
405 return insertStatusUpdate(dataId, presence, status, timestamp, chatMode, false);
409 long dataId, int presence, String status, long timestamp, int chatMode,
412 values.put(StatusUpdates.DATA_ID, dataId);
403 insertStatusUpdate( long dataId, int presence, String status, long timestamp, int chatMode) argument
408 insertStatusUpdate( long dataId, int presence, String status, long timestamp, int chatMode, boolean isUserProfile) argument
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DRawContactDeltaListTests.java172 static ValuesDelta getPhone(RawContactDeltaList set, long rawContactId, long dataId) { argument
174 return match.getEntry(dataId);
/packages/apps/Exchange/src/com/android/exchange/provider/
H A DExchangeDirectoryProvider.java118 static long dataId = 1; field in class:ExchangeDirectoryProvider.GalContactRow
129 put(Contacts.Entity.DATA_ID, dataId++);
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactFragment.java363 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
/packages/apps/Contacts/src/com/android/contacts/
H A DContactSaveService.java112 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 DDialerDatabaseHelper.java229 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/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DContactAggregator.java1503 long rawContactId, long dataId, int lookupType, String string) {
1934 long dataId = c.getLong(RawContactsQuery.DATA_ID);
1950 bestPhotoId = dataId;
2093 long dataId = c.getLong(PhotoIdQuery.DATA_ID);
2106 bestPhotoId = dataId;
1502 insertNameLookup( long rawContactId, long dataId, int lookupType, String string) argument

Completed in 1229 milliseconds