Searched refs:contactId (Results 1 - 25 of 91) sorted by relevance

1234

/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/
H A DContactsCompat.java52 public static boolean isEnterpriseContactId(long contactId) { argument
54 return Contacts.isEnterpriseContactId(contactId);
57 return (contactId >= ENTERPRISE_CONTACT_ID_BASE) &&
58 (contactId < ContactsContract.Profile.MIN_ID);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DDatabaseAsserts.java60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId);
61 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId);
63 return new ContactIdPair(contactId, rawContactId);
75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId);
76 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId);
78 return new ContactIdPair(contactId, rawContactId);
85 * @param contactId The contact id to check.
88 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, argument
90 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId));
93 contactId);
105 ContactIdPair(long contactId, long rawContactId) argument
[all...]
H A DContactUtil.java33 public static void update(ContentResolver resolver, long contactId, argument
35 Uri uri = ContentUris.withAppendedId(URI, contactId);
39 public static void delete(ContentResolver resolver, long contactId) { argument
40 Uri uri = ContentUris.withAppendedId(URI, contactId);
44 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) { argument
48 Uri uri = ContentUris.withAppendedId(URI, contactId);
56 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) { argument
61 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId);
H A DDeletedContactUtil.java35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { argument
39 Uri uri = ContentUris.withAppendedId(URI, contactId);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
H A DMatchScore.java38 public MatchScore(long rawContactId, long contactId, long accountId) { argument
40 this.mContactId = contactId;
44 public MatchScore(long contactId) { argument
46 this.mContactId = contactId;
50 public void reset(long rawContactId, long contactId, long accountId) { argument
52 this.mContactId = contactId;
61 public void reset(long contactId) { argument
62 this.reset(0l, contactId, 0l);
H A DContactMatcher.java163 private MatchScore getMatchingScore(long contactId) { argument
164 MatchScore matchingScore = mScores.get(contactId);
168 matchingScore.reset(contactId);
170 matchingScore = new MatchScore(contactId);
174 mScores.put(contactId, matchingScore);
182 public void matchIdentity(long contactId) { argument
183 updatePrimaryScore(contactId, MatchScore.MAX_SCORE);
193 public void matchName(long contactId, int candidateNameType, String candidateName, argument
201 updatePrimaryScore(contactId, maxScore);
241 updatePrimaryScore(contactId, scor
244 updateScoreWithPhoneNumberMatch(long contactId) argument
248 updateScoreWithEmailMatch(long contactId) argument
252 updateScoreWithNicknameMatch(long contactId) argument
256 updatePrimaryScore(long contactId, int score) argument
260 updateSecondaryScore(long contactId, int score) argument
264 keepIn(long contactId) argument
268 keepOut(long contactId) argument
[all...]
H A DRawContactMatcher.java168 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { argument
173 matchingScore.reset(rawContactId, contactId, accountId);
175 matchingScore = new MatchScore(rawContactId, contactId, accountId);
191 public void matchName(long rawContactId, long contactId, long accountId, int argument
199 updatePrimaryScore(rawContactId, contactId, accountId, maxScore);
239 updatePrimaryScore(rawContactId, contactId, accountId, score);
242 public void matchIdentity(long rawContactId, long contactId, long accountId) { argument
243 updateSecondaryScore(rawContactId, contactId, accountId, IDENTITY_MATCH_SCORE);
246 public void updateScoreWithPhoneNumberMatch(long rawContactId, long contactId, long accountId) { argument
247 updateSecondaryScore(rawContactId, contactId, accountI
250 updateScoreWithEmailMatch(long rawContactId, long contactId, long accountId) argument
254 updateScoreWithNicknameMatch(long rawContactId, long contactId, long accountId) argument
258 updatePrimaryScore(long rawContactId, long contactId, long accountId, int score) argument
262 updateSecondaryScore(long rawContactId, long contactId, long accountId, int score) argument
267 keepIn(long rawContactId, long contactId, long accountId) argument
271 keepOut(long rawContactId, long contactId, long accountId) argument
356 matchNoName(Long rawContactId, Long contactId, Long accountId) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/compat/
H A DPinnedPositionsCompat.java43 public static void undemote(ContentResolver contentResolver, long contactId) { argument
48 PinnedPositions.undemote(contentResolver, contactId);
52 String.valueOf(contactId), null);
H A DAggregationSuggestionsCompat.java47 * @param contactId contact to find aggregation suggestions for
50 public Builder setContactId(long contactId) { argument
51 this.mContactId = contactId;
/packages/apps/Contacts/src/com/android/contacts/list/
H A DMultiSelectEntryContactListAdapter.java95 * Toggle the checkbox beside the contact for {@param contactId}.
97 public void toggleSelectionOfContactId(long contactId) { argument
98 if (mSelectedContactIds.contains(contactId)) {
99 mSelectedContactIds.remove(contactId);
101 mSelectedContactIds.add(contactId);
129 final long contactId = cursor.getLong(ContactQuery.CONTACT_ID);
130 checkBox.setChecked(mSelectedContactIds.contains(contactId));
131 checkBox.setTag(contactId);
139 final Long contactId = (Long) checkBox.getTag();
141 mSelectedContactIds.add(contactId);
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBugleRecipientEntry.java32 final long contactId, final Long directoryId, final long dataId,
35 super(entryType, displayName, destination, destinationType, destinationLabel, contactId,
41 final String destinationLabel, final long contactId, final Long directoryId,
45 destinationLabel, contactId, directoryId, dataId, (thumbnailUriAsString != null
51 final String destinationLabel, final long contactId, final Long directoryId,
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/tests/src/com/android/providers/contacts/
H A DContactLookupKeyTest.java54 long contactId = queryContactId(rawContactId1);
55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
60 assertStoredValue(lookupUri, Contacts._ID, contactId);
63 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId),
64 Contacts._ID, contactId);
67 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1),
68 Contacts._ID, contactId);
89 long contactId = queryContactId(rawContactId1);
90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
94 assertStoredValue(lookupUri, Contacts._ID, contactId);
[all...]
H A DSearchIndexManagerTest.java53 long contactId = queryContactId(rawContactId);
69 contactId, null, "John Doe Bob I Parr Helen I Parr PhD par helen parhelen", null);
74 long contactId = queryContactId(rawContactId);
89 assertSearchIndex(contactId, null, "yamada taro", null);
99 long contactId = queryContactId(rawContactId);
105 contactId, null, "\u695A\u8FAD \u695A\u8FAD CI \u8FAD CHUCI CC C", null);
135 long contactId = queryContactId(rawContactId);
140 assertSearchIndex(contactId, null,
199 long contactId = queryContactId(rawContactId);
210 assertSearchIndex(contactId,
530 assertSearchIndex( long contactId, String expectedContent, String expectedName, String expectedTokens) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
H A DContactsTableUtil.java58 public static void updateContactLastUpdateByContactId(SQLiteDatabase db, long contactId) { argument
63 new String[] {String.valueOf(contactId)});
109 * @param contactId The contact id to delete.
112 public static int deleteContact(SQLiteDatabase db, long contactId) { argument
113 DeletedContactsTableUtil.insertDeletedContact(db, contactId);
114 return db.delete(Tables.CONTACTS, Contacts._ID + " = ?", new String[]{contactId + ""});
134 long contactId = cursor.getLong(0);
139 return deleteContact(db, contactId);
H A DDeletedContactsTableUtil.java53 * @param contactId The contact id to insert.
56 public static long insertDeletedContact(SQLiteDatabase db, long contactId) { argument
58 values.put(ContactsContract.DeletedContacts.CONTACT_ID, contactId);
/packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/
H A DPhoneBook.java125 * Loads photo for a given contactId asynchronously. It may call listener's callback function
128 public void getContactPictureAsync(int contactId, ContactPhotoLoadedListener listener) { argument
130 if (mContactsWithoutImage != null && mContactsWithoutImage.contains(contactId)) {
131 listener.onPhotoLoaded(contactId, null);
143 Bitmap photo = mContactPhotoById.get(contactId);
145 listener.onPhotoLoaded(contactId, photo);
151 fetchPhotoAsync(contactId, listener);
173 void onPhotoLoaded(int contactId, @Nullable Bitmap picture); argument
186 private void fetchPhotoAsync(int contactId, ContactPhotoLoadedListener listener) { argument
187 LoadPhotoAsyncTask.createAndExecute(this, contactId, listene
190 cacheContactPhoto(int contactId, Bitmap bitmap) argument
237 createAndExecute(PhoneBook phoneBook, int contactId, ContactPhotoLoadedListener listener) argument
243 LoadPhotoAsyncTask(PhoneBook phoneBook, int contactId, ContactPhotoLoadedListener listener) argument
251 fetchBitmap(int contactId) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
H A DAllIntentsActivity.java268 long contactId = findArbitraryContactWithPhoneNumber();
269 if (contactId != -1) {
270 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
278 final long contactId = findArbitraryContactWithPhoneNumber();
279 if (contactId != -1) {
280 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
287 final long contactId = findArbitraryContactWithPhoneNumber();
288 if (contactId != -1) {
289 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
300 final long contactId
481 findArbitraryRawContactOfContact(long contactId) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DContactAggregator.java94 long contactId = -1; // Best matching contact ID.
104 contactId = pickBestMatchBasedOnExceptions(db, rawContactId, matcher);
105 if (contactId == -1) {
111 contactId = pickBestMatchBasedOnData(db, rawContactId, candidates, matcher);
116 if (contactId != -1 && contactId != currentContactId) {
118 // [contactId] excluding raw_contact [rawContactId].
123 mSelectionArgs2[0] = String.valueOf(contactId);
159 contactId = -1;
181 if (contactId
248 clearSuperPrimarySetting(SQLiteDatabase db, long contactId, long rawContactId) argument
416 reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, long contactId, long currentContactId, long rawContactId, Set<Long> existingRawContactIds) argument
474 updateAggregationAfterVisibilityChange(long contactId) argument
516 setContactIdAndMarkAggregated(long rawContactId, long contactId) argument
894 findMatchingContacts(final SQLiteDatabase db, long contactId, ArrayList<AggregationSuggestionParameter> parameters) argument
[all...]
H A DAbstractContactAggregator.java516 long contactId = mDbHelper.getContactId(rawContactId);
518 if (contactId != 0) {
519 updateAggregateData(txContext, contactId);
574 protected final void markContactForAggregation(SQLiteDatabase db, long contactId) { argument
575 mSelectionArgs1[0] = String.valueOf(contactId);
643 long contactId = insertContact(db, rawContactId);
644 setContactId(rawContactId, contactId);
645 mDbHelper.updateContactVisible(txContext, contactId);
646 return contactId;
678 long contactId
697 updateAggregateData(TransactionContext txContext, long contactId) argument
711 updateAggregatedStatusUpdate(long contactId) argument
721 updateLastStatusUpdateId(long contactId) argument
866 createContactForRawContacts(SQLiteDatabase db, TransactionContext txContext, Set<Long> rawContactIds, Long contactId) argument
898 setContactId(long rawContactId, long contactId) argument
919 setContactIdAndMarkAggregated(long rawContactId, long contactId) argument
925 setPresenceContactId(long rawContactId, long contactId) argument
1366 computeAggregateData(SQLiteDatabase db, long contactId, SQLiteStatement statement) argument
1774 updateDisplayNameForContact(SQLiteDatabase db, long contactId) argument
1870 updateLookupKeyForContact(SQLiteDatabase db, long contactId) argument
1884 computeLookupKeyForContact(SQLiteDatabase db, long contactId) argument
1948 queryAggregationSuggestions(SQLiteQueryBuilder qb, String[] projection, long contactId, int maxSuggestions, String filter, ArrayList<AggregationSuggestionParameter> parameters) argument
2070 findMatchingContacts(final SQLiteDatabase db, long contactId, ArrayList<AggregationSuggestionParameter> parameters) argument
2073 updateAggregationAfterVisibilityChange(long contactId) argument
[all...]
/packages/apps/Dialer/tests/src/com/android/dialer/database/
H A DDatabaseTestUtils.java62 MatrixCursor nameCursor, int id, String number, int contactId, String lookupKey,
75 contactCursor.addRow(new Object[]{id, "", "", number, contactId, lookupKey, displayName,
78 nameCursor.addRow(new Object[]{displayName, contactId});
80 return new ContactNumber(contactId, id, displayName, number, lookupKey, 0, 0);
61 constructNewContact(MatrixCursor contactCursor, MatrixCursor nameCursor, int id, String number, int contactId, String lookupKey, String displayName, int photoId, int lastTimeUsed, int timesUsed, int starred, int isSuperPrimary, int inVisibleGroup, int isPrimary, int carrierPresence) argument
/packages/apps/Messaging/src/com/android/messaging/util/
H A DContactRecipientEntryUtils.java62 final long contactId) {
66 final Uri avatarUri = contactId == CONTACT_ID_SENDTO_DESTINATION ?
69 destination, RecipientEntry.INVALID_DESTINATION_TYPE, null, contactId,
70 null, contactId, avatarUri, true, null);
61 constructSpecialRecipientEntry(final String destination, final long contactId) argument
H A DContactUtil.java190 * @param contactId The id of the contact in the android contacts DB
195 public static void showOrAddContact(final View view, final long contactId, argument
198 if (contactId > ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED
201 ContactsContract.Contacts.getLookupUri(contactId, contactLookupKey);
413 private static CursorQueryData lookupStructuredName(final Context context, final long contactId, argument
421 .appendPath(String.valueOf(contactId))
443 public static String lookupFirstName(final Context context, final long contactId) { argument
444 if (isEnterpriseContactId(contactId)) {
450 nameCursor = ContactUtil.lookupStructuredName(context, contactId, true)
469 final String destinationLabel, final long contactId, fina
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
514 isValidContactId(final long contactId) argument
521 isEnterpriseContactId(final long contactId) argument
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DAccountImageChangeObserver.java147 long contactId = getContactIdForAccount(context, thisAccount);
148 if (contactId != -1) {
150 contactId);
174 long contactId = -1;
180 contactId = c.getLong(1);
189 if (contactId != -1 && !TextUtils.isEmpty(lookupKey)) {
190 return contactId;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLookupKey.java40 public long contactId; field in class:ContactLookupKey.LookupKeySegment
43 if (contactId > another.contactId) {
46 if (contactId < another.contactId) {
251 segment.contactId = -1;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
H A DEnterpriseContactsCursorWrapper.java82 final long contactId = super.getLong(contactIdIndices[0]);
88 return getCorpThumbnailUri(contactId, getWrappedCursor());
94 return getCorpDisplayPhotoUri(contactId, getWrappedCursor());
168 private static String getCorpThumbnailUri(long contactId, Cursor originalCursor) { argument
178 return ContentUris.appendId(Contacts.CORP_CONTENT_URI.buildUpon(), contactId)
194 private static String getCorpDisplayPhotoUri(long contactId, Cursor originalCursor) { argument
203 return ContentUris.appendId(Contacts.CORP_CONTENT_URI.buildUpon(), contactId)
207 return ContentUris.appendId(Contacts.CORP_CONTENT_URI.buildUpon(), contactId)

Completed in 862 milliseconds

1234