/packages/apps/Contacts/src/com/android/contacts/compat/ |
H A D | ContactsCompat.java | 52 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 D | PinnedPositionsCompat.java | 41 public static void undemote(ContentResolver contentResolver, long contactId) { argument 46 PinnedPositions.undemote(contentResolver, contactId); 50 String.valueOf(contactId), null);
|
H A D | AggregationSuggestionsCompat.java | 47 * @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 D | ContactsUtils.java | 52 * @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 D | ContactsTableUtil.java | 58 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 D | DeletedContactsTableUtil.java | 53 * @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 D | ContactUtil.java | 33 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 D | DeletedContactUtil.java | 35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { argument 39 Uri uri = ContentUris.withAppendedId(URI, contactId);
|
H A D | DatabaseAsserts.java | 60 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 D | ContactRecipientEntryUtils.java | 62 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 D | PeopleActivityTest.java | 155 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 D | RawContactDeltaTests.java | 62 public static RawContact getRawContact(Context context, long contactId, long phoneId) { argument 66 contact.put(RawContacts._ID, contactId);
|
H A D | ContactLoaderTest.java | 311 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 D | BugleRecipientEntry.java | 32 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 D | ContactIconView.java | 111 public void setImageResourceUri(final Uri uri, final long contactId, argument 124 mContactId = contactId;
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
H A D | ParticipantRefreshTest.java | 76 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 D | ContactLookupKey.java | 40 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 D | ProfileAggregator.java | 48 protected String computeLookupKeyForContact(SQLiteDatabase db, long contactId) { argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
H A D | EnterpriseContactsCursorWrapper.java | 82 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 D | ContactsUtils.java | 246 * @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 D | ContactEntryAdapter.java | 46 public long contactId; field in class:ContactEntryAdapter.Entry
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | MatchScore.java | 38 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 D | PickRawContactLoader.java | 80 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 D | MultiSelectEntryContactListAdapter.java | 130 * 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 D | DynamicShortcutsTests.java | 269 private ShortcutInfo shortcutFor(long contactId, String lookupKey, String name) { argument 271 .builderForContactShortcut(contactId, lookupKey, name).build();
|