Searched defs:contactId (Results 1 - 25 of 58) sorted by relevance

123

/packages/apps/Contacts/src/com/android/contacts/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);
H A DPinnedPositionsCompat.java41 public static void undemote(ContentResolver contentResolver, long contactId) { argument
46 PinnedPositions.undemote(contentResolver, contactId);
50 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/Dialer/java/com/android/contacts/common/
H A DContactsUtils.java52 * @param contactId contact id
57 * directoryId and contactId as ContactsProvider can only access current and work user's
60 public static @UserType long determineUserType(Long directoryId, Long contactId) { argument
68 if (contactId != null && contactId != 0L && Contacts.isEnterpriseContactId(contactId)) {
/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/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
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);
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...]
/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
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
H A DPeopleActivityTest.java155 private void expectContactEntityQuery(String lookupKey, int contactId) { argument
157 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY);
161 row1.put(Contacts.Entity.CONTACT_ID, contactId);
162 row1.put(Contacts.Entity.DISPLAY_NAME, "Contact " + contactId);
/packages/apps/Contacts/tests/src/com/android/contacts/model/
H A DRawContactDeltaTests.java62 public static RawContact getRawContact(Context context, long contactId, long phoneId) { argument
66 contact.put(RawContacts._ID, contactId);
H A DContactLoaderTest.java311 Uri baseUri, long contactId, long rawContactId, long dataId, String encodedLookup) {
367 contactId,
310 fetchAllData( Uri baseUri, long contactId, long rawContactId, long dataId, String encodedLookup) argument
/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/apps/Messaging/src/com/android/messaging/ui/
H A DContactIconView.java111 public void setImageResourceUri(final Uri uri, final long contactId, argument
124 mContactId = contactId;
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
H A DParticipantRefreshTest.java76 private void addParticipant(final String normalizedDestination, final long contactId, argument
82 values.put(ParticipantColumns.CONTACT_ID, contactId);
98 private void verifyParticipant(final String normalizedDestination, final long contactId, argument
119 if (currentContactId != contactId) {
121 " expected=" + contactId + " actual=" + currentContactId);
/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/aggregation/
H A DProfileAggregator.java48 protected String computeLookupKeyForContact(SQLiteDatabase db, long contactId) { argument
/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)
/packages/apps/Contacts/src/com/android/contacts/
H A DContactsUtils.java246 * @param contactId contact id
251 * 2 kinds of users can be detected from the directoryId and contactId as
254 public static @UserType long determineUserType(Long directoryId, Long contactId) { argument
261 if (contactId != null && contactId != 0L
262 && ContactsCompat.isEnterpriseContactId(contactId)) {
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactEntryAdapter.java46 public long contactId; field in class:ContactEntryAdapter.Entry
/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);
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DPickRawContactLoader.java80 result.contactId = contactCursor.getLong(/* Contacts._ID */ 0);
96 new String[] {Long.toString(result.contactId)}, null);
202 public long contactId; field in class:PickRawContactLoader.RawContactsMetadata
210 contactId = in.readLong();
253 dest.writeLong(contactId);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DMultiSelectEntryContactListAdapter.java130 * Toggle the checkbox beside the contact for {@param contactId}.
132 public void toggleSelectionOfContactId(long contactId) { argument
133 if (mSelectedContactIds.contains(contactId)) {
134 mSelectedContactIds.remove(contactId);
136 mSelectedContactIds.add(contactId);
190 final long contactId = cursor.getLong(mContactIdColumnIndex);
191 checkBox.setChecked(mSelectedContactIds.contains(contactId));
193 checkBox.setTag(contactId);
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DDynamicShortcutsTests.java269 private ShortcutInfo shortcutFor(long contactId, String lookupKey, String name) { argument
271 .builderForContactShortcut(contactId, lookupKey, name).build();

Completed in 338 milliseconds

123