Home
last modified time | relevance | path

Searched refs:dataId (Results 1 – 25 of 40) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameLookupBuilder.java82 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 …]
DDataRowHandler.java117 final long dataId = db.insert(Tables.DATA, null, values); in insert() local
123 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); in insert()
129 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert()
137 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert()
146 return dataId; in insert()
157 long dataId = c.getLong(DataUpdateQuery._ID); in update() local
160 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId); in update()
161 handleHashIdForUpdate(values, dataId); in update()
164 mSelectionArgs1[0] = String.valueOf(dataId); in update()
220 private void handleHashIdForUpdate(ContentValues values, long dataId) { in handleHashIdForUpdate() argument
[all …]
DDataRowHandlerForNickname.java43 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()
DDataRowHandlerForEmail.java41 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()
DDataRowHandlerForPhoneNumber.java46 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()
DDataRowHandlerForOrganization.java46 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()
DDataRowHandlerForStructuredName.java51 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()
DLegacyApiSupport.java1054 private int updateOrganizations(long dataId, ContentValues values) { in updateOrganizations() argument
1058 Data._ID + "=" + dataId, null); in updateOrganizations()
1061 private int updatePhones(long dataId, ContentValues values) { in updatePhones() argument
1065 Data._ID + "=" + dataId, null); in updatePhones()
1068 private int updateContactMethods(long dataId, ContentValues values) { in updateContactMethods() argument
1071 mDataMimetypeQuery.bindLong(1, dataId); in updateContactMethods()
1095 Data._ID + "=" + dataId, null); in updateContactMethods()
1098 private int updateExtensions(long dataId, ContentValues values) { in updateExtensions() argument
1102 Data._ID + "=" + dataId, null); in updateExtensions()
1118 long dataId = findFirstDataId(rawContactId, Photo.CONTENT_ITEM_TYPE); in updatePhoto() local
[all …]
DContactsDatabaseHelper.java887 long rawContactId, long dataId, int lookupType, String name) { in insertNameLookup() argument
891 mNameLookupInsert, rawContactId, dataId, lookupType, name); in insertNameLookup()
2791 long dataId = cursor.getLong(StructuredNameQuery.ID); in insertStructuredNameLookup() local
2796 nameLookupBuilder.insertNameLookup(rawContactId, dataId, name, fullNameStyle); in insertStructuredNameLookup()
2813 long dataId = cursor.getLong(EmailQuery.ID); in insertEmailLookup() local
2817 insertNameLookup(nameLookupInsert, rawContactId, dataId, in insertEmailLookup()
2835 long dataId = cursor.getLong(NicknameQuery.ID); in insertNicknameLookup() local
2838 insertNameLookup(nameLookupInsert, rawContactId, dataId, in insertNicknameLookup()
2849 public void insertNameLookup(SQLiteStatement stmt, long rawContactId, long dataId, in insertNameLookup() argument
2860 insertNormalizedNameLookup(stmt, rawContactId, dataId, lookupType, normalized); in insertNameLookup()
[all …]
DDataRowHandlerForIdentity.java37 final long dataId = super.insert(db, txContext, rawContactId, values); in insert() local
44 return dataId; in insert()
DDataRowHandlerForCommonDataKind.java53 final long dataId = c.getLong(DataUpdateQuery._ID); in update() local
54 final ContentValues augmented = getAugmentedValues(db, dataId, values); in update()
DDataRowHandlerForStructuredPostal.java64 final long dataId = c.getLong(DataUpdateQuery._ID); in update() local
65 final ContentValues augmented = getAugmentedValues(db, dataId, values); in update()
DDataRowHandlerForPhoto.java70 long dataId = super.insert(db, txContext, rawContactId, values); in insert() local
74 return dataId; in insert()
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java105 Optional<String> dataId = getDataId(phoneNumber); in doInBackground() local
106 if (dataId.isPresent()) { in doInBackground()
107 Optional<PhoneAccountHandle> preferred = getPreferredAccount(appContext, dataId.get()); in doInBackground()
109 return usePreferredSim(preferred.get(), candidates, dataId.get()); in doInBackground()
118 return useDefaultSim(defaultPhoneAccount, candidates, dataId.orNull()); in doInBackground()
126 return useSuggestedSim(suggestion.get(), candidates, dataId.orNull()); in doInBackground()
131 createDialogOptionsBuilder(candidates, dataId.orNull(), suggestion.orNull())); in doInBackground()
135 if (dataId.isPresent()) { in doInBackground()
136 resultBuilder.setDataId(dataId.get()); in doInBackground()
142 PhoneAccountHandle preferred, List<PhoneAccountHandle> candidates, String dataId) { in usePreferredSim() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/preferredsim/
DPreferredAccountRecorder.java39 @Nullable private final String dataId; field in PreferredAccountRecorder
42 @Nullable String number, @Nullable Suggestion suggestion, @Nullable String dataId) { in PreferredAccountRecorder() argument
45 this.dataId = dataId; in PreferredAccountRecorder()
65 if (dataId != null && setDefault) { in record()
72 new WritePreferredAccountWorkerInput(context, dataId, selectedAccountHandle)); in record()
109 private final String dataId; field in PreferredAccountRecorder.WritePreferredAccountWorkerInput
114 @NonNull String dataId, in WritePreferredAccountWorkerInput() argument
117 this.dataId = Assert.isNotNull(dataId); in WritePreferredAccountWorkerInput()
141 new String[] {String.valueOf(input.dataId)}); in doInBackground()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleRecipientEntry.java32 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/java/com/android/dialer/interactions/
DContactUpdateService.java35 public static Intent createSetSuperPrimaryIntent(Context context, long dataId) { in createSetSuperPrimaryIntent() argument
37 serviceIntent.putExtra(EXTRA_PHONE_NUMBER_DATA_ID, dataId); in createSetSuperPrimaryIntent()
44 long dataId = intent.getLongExtra(EXTRA_PHONE_NUMBER_DATA_ID, -1); in onHandleIntent() local
46 ContactUpdateUtils.setSuperPrimary(this, dataId); in onHandleIntent()
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DDataUtil.java34 public static void delete(ContentResolver resolver, long dataId) { in delete() argument
35 Uri uri = ContentUris.withAppendedId(URI, dataId); in delete()
39 public static void update(ContentResolver resolver, long dataId, ContentValues values) { in update() argument
40 Uri uri = ContentUris.withAppendedId(URI, dataId); in update()
/packages/apps/Contacts/src/com/android/contacts/database/
DContactUpdateUtils.java32 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/apps/Dialer/java/com/android/contacts/common/database/
DContactUpdateUtils.java30 public static void setSuperPrimary(Context context, long dataId) { in setSuperPrimary() argument
31 if (dataId == -1) { in setSuperPrimary()
44 ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, dataId), in setSuperPrimary()
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java470 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/
DContactsActor.java656 final long dataId = createEmail(rawContactId, address); in createRawContactWithStatus() local
657 createStatus(dataId, status); in createRawContactWithStatus()
706 public long createStatus(long dataId, String status) { in createStatus() argument
709 values.put(StatusUpdates.DATA_ID, dataId); in createStatus()
755 public void setSuperPrimaryPhone(long dataId) { in setSuperPrimaryPhone() argument
760 Uri updateUri = ContentUris.withAppendedId(Data.CONTENT_URI, dataId); in setSuperPrimaryPhone()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DContactListItemData.java56 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/
DBindingTest.java133 public TestBindableData(final Object dataId) { in TestBindableData() argument
134 mDataId = dataId; in TestBindableData()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java1126 public static Intent createSetSuperPrimaryIntent(Context context, long dataId) { in createSetSuperPrimaryIntent() argument
1129 serviceIntent.putExtra(ContactSaveService.EXTRA_DATA_ID, dataId); in createSetSuperPrimaryIntent()
1134 long dataId = intent.getLongExtra(EXTRA_DATA_ID, -1); in setSuperPrimary() local
1135 if (dataId == -1) { in setSuperPrimary()
1140 ContactUpdateUtils.setSuperPrimary(this, dataId); in setSuperPrimary()
1148 public static Intent createClearPrimaryIntent(Context context, long dataId) { in createClearPrimaryIntent() argument
1151 serviceIntent.putExtra(ContactSaveService.EXTRA_DATA_ID, dataId); in createClearPrimaryIntent()
1156 long dataId = intent.getLongExtra(EXTRA_DATA_ID, -1); in clearPrimary() local
1157 if (dataId == -1) { in clearPrimary()
1167 getContentResolver().update(ContentUris.withAppendedId(Data.CONTENT_URI, dataId), in clearPrimary()

12