/packages/apps/Contacts/src/com/android/contacts/model/ |
SimContact.java | 16 package com.android.contacts.model; 29 import com.android.contacts.ContactPhotoManager; 30 import com.android.contacts.model.account.AccountWithDataSet; 43 * Holds data for contacts loaded from the SIM card. 120 cursor.newRow().add(ContactsContract.Contacts._ID, mId) 121 .add(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY, mName) 122 .add(ContactsContract.Contacts.LOOKUP_KEY, getLookupKey()); 212 * Convert a collection of SIM contacts to a Cursor matching a query from 213 * {@link android.provider.ContactsContract.Contacts#CONTENT_URI} with the provided projection. 215 * This allows a collection of SIM contacts to be displayed using the existing adapters fo [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
ContactDeletionInteractionTest.java | 17 package com.android.contacts.interactions; 21 import android.provider.ContactsContract.Contacts; 22 import android.provider.ContactsContract.Contacts.Entity; 26 import com.android.contacts.ContactsApplication; 27 import com.android.contacts.R; 28 import com.android.contacts.model.AccountTypeManager; 29 import com.android.contacts.model.account.AccountType; 30 import com.android.contacts.model.account.BaseAccountType; 31 import com.android.contacts.test.FragmentTestActivity; 32 import com.android.contacts.test.IntegrationTestUtils [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
ContactStatusLoader.java | 28 import android.provider.ContactsContract.Contacts; 46 Contacts.PHOTO_ID, 47 Contacts.CONTACT_PRESENCE
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
EmergencyContactManager.java | 32 * Provides methods to read name, phone number, photo, etc. from contacts. 47 ContactsContract.Contacts.getLookupUri(context.getContentResolver(), 51 new String[]{ContactsContract.Contacts.DISPLAY_NAME, 71 new String[]{ContactsContract.Contacts.Photo.PHOTO},
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
ContactSectionIndexer.java | 20 import android.provider.ContactsContract.Contacts; 103 Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES); 104 final int[] counts = cursorExtras.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); 141 // named "Bob" will go into section "B". The Contacts provider generally uses a
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ContactsBinaryDictionary.java | 23 import android.provider.ContactsContract.Contacts; 42 private static final String NAME = "contacts"; 86 loadDictionaryForUriLocked(Contacts.CONTENT_URI); 115 Log.i(TAG, "No permission to read contacts. Not loading the Dictionary."); 122 if (uri.equals(Contacts.CONTENT_URI)) {
|
/developers/build/prebuilts/gradle/LNotifications/Application/src/main/java/com/example/android/lnotifications/ |
OtherMetadataFragment.java | 214 Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); 232 int idx = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID); 234 Uri photoUri = Uri.withAppendedPath(contactUri, ContactsContract.Contacts.Photo 261 int idx = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME); 263 idx = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID); 266 Uri photoUri = Uri.withAppendedPath(contactUri, ContactsContract.Contacts.Photo
|
/developers/samples/android/notification/LNotifications/Application/src/main/java/com/example/android/lnotifications/ |
OtherMetadataFragment.java | 214 Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); 232 int idx = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID); 234 Uri photoUri = Uri.withAppendedPath(contactUri, ContactsContract.Contacts.Photo 261 int idx = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME); 263 idx = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID); 266 Uri photoUri = Uri.withAppendedPath(contactUri, ContactsContract.Contacts.Photo
|
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/ |
OtherMetadataFragment.java | 214 Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); 232 int idx = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID); 234 Uri photoUri = Uri.withAppendedPath(contactUri, ContactsContract.Contacts.Photo 261 int idx = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME); 263 idx = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID); 266 Uri photoUri = Uri.withAppendedPath(contactUri, ContactsContract.Contacts.Photo
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactsDatabaseHelper.java | 17 package com.android.providers.contacts; 19 import com.android.providers.contacts.sqlite.DatabaseAnalyzer; 20 import com.android.providers.contacts.sqlite.SqlChecker; 21 import com.android.providers.contacts.sqlite.SqlChecker.InvalidSqlException; 22 import com.android.providers.contacts.util.PropertyUtils; 67 import android.provider.ContactsContract.Contacts; 68 import android.provider.ContactsContract.Contacts.Photo; 100 import com.android.providers.contacts.aggregation.util.CommonNicknameCache; 101 import com.android.providers.contacts.database.ContactsTableUtil; 102 import com.android.providers.contacts.database.DeletedContactsTableUtil [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
Contacts_PeopleTest.java | 17 package android.provider.cts.contacts; 30 import android.provider.Contacts; 31 import android.provider.Contacts.GroupMembership; 32 import android.provider.Contacts.Groups; 33 import android.provider.Contacts.GroupsColumns; 34 import android.provider.Contacts.People; 71 mProvider = mContentResolver.acquireContentProviderClient(Contacts.AUTHORITY); 117 // Add the My Contacts group, since it is no longer automatically created. 137 cursor.getColumnIndex(android.provider.Contacts.GroupMembership.GROUP_ID); 139 cursor.getColumnIndex(android.provider.Contacts.GroupMembership.PERSON_ID) [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
EventLocationAdapter.java | 29 import android.provider.ContactsContract.Contacts; 96 // Constants for contacts query: 101 Contacts.DISPLAY_NAME, 104 Contacts.PHOTO_ID, 111 // TODO: Only query visible contacts? 118 .append(Contacts.DISPLAY_NAME) 120 .append(Contacts.DISPLAY_NAME) 142 // The cache for contacts photos. We don't have to worry about clearing this, as a 234 InputStream imageStream = Contacts.openContactPhotoInputStream( 256 * Return filter for matching against contacts info and recent locations 288 List<Result> contacts = queryContacts(mResolver, filter, contactsAddresses); local [all...] |
/packages/apps/Contacts/ |
Android.mk | 38 LOCAL_PACKAGE_NAME := Contacts
|
/packages/apps/Contacts/src/com/android/contacts/ |
ContactsApplication.java | 17 package com.android.contacts; 29 import android.provider.ContactsContract.Contacts; 32 import com.android.contacts.testing.InjectedServices; 33 import com.android.contacts.util.Constants; 128 // Warm up the preferences and the contacts provider. We delay initialization 129 // of the account type manager because we may not have the contacts group permission 132 getContentResolver().getType(ContentUris.withAppendedId(Contacts.CONTENT_URI, 1));
|
NonPhoneActivity.java | 17 package com.android.contacts; 28 import android.provider.ContactsContract.Contacts; 33 import com.android.contacts.activities.RequestPermissionsActivity; 34 import com.android.contacts.util.ImplicitIntentsUtil; 91 intent.setType(Contacts.CONTENT_ITEM_TYPE);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionView.java | 17 package com.android.contacts.editor; 21 import android.provider.ContactsContract.Contacts; 29 import com.android.contacts.ContactPhotoManager; 30 import com.android.contacts.R; 31 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 101 Contacts.getLookupUri(mSuggestion.contactId, mSuggestion.contactLookupKey),
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
LegacyPhoneNumberListAdapter.java | 16 package com.android.contacts.list; 23 import android.provider.Contacts.People; 24 import android.provider.Contacts.Phones;
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/ |
Cp2Projections.java | 22 import android.provider.ContactsContract.Contacts; 117 infoBuilder.setLookupUri(Contacts.getLookupUri(contactId, lookupKey).toString());
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
StrequentContactsCursorLoader.java | 26 import android.provider.ContactsContract.Contacts; 28 /** Cursor Loader for strequent contacts. */ 87 return Contacts.CONTENT_STREQUENT_URI
|
/packages/apps/EmergencyInfo/tests/common/src/com/android/emergency/ |
ContactTestUtils.java | 27 * Utils to create and delete contacts. 31 /** Deletes contacts that match the given name and phone number. */ 45 cursor.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY)); 46 Uri uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_LOOKUP_URI,
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
HomeXLarge.java | 70 startActivity(new Intent(Intent.ACTION_INSERT, ContactsContract.Contacts.CONTENT_URI)); 105 startActivity(new Intent(Intent.ACTION_INSERT, ContactsContract.Contacts.CONTENT_URI));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsDatabaseHelperUpgradeTest.java | 17 package com.android.providers.contacts; 19 import static com.android.providers.contacts.TestUtils.cv; 20 import static com.android.providers.contacts.TestUtils.executeSqlFromAssetFile; 27 import android.provider.ContactsContract.Contacts; 46 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns; 47 import com.android.providers.contacts.ContactsDatabaseHelper.AggregatedPresenceColumns; 48 import com.android.providers.contacts.ContactsDatabaseHelper.AggregationExceptionColumns; 49 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns; 50 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns; 51 import com.android.providers.contacts.ContactsDatabaseHelper.DataUsageStatColumns [all...] |
GroupsTest.java | 17 package com.android.providers.contacts; 30 import android.provider.ContactsContract.Contacts; 37 import com.android.providers.contacts.testutil.RawContactUtil; 46 * adb shell am instrument -e class com.android.providers.contacts.GroupsTest -w \ 47 * com.android.providers.contacts.tests/android.test.InstrumentationTestRunner 81 // Create a handful of contacts 92 // Add phone numbers to specific contacts 99 // Add contacts to various mixture of groups. Grey will have all 100 // contacts, Red only with phone numbers, Green with no phones, and Blue 101 // with no contacts at all [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
AbstractContactAggregator.java | 17 package com.android.providers.contacts.aggregation; 20 import com.android.providers.contacts.ContactLookupKey; 21 import com.android.providers.contacts.ContactsDatabaseHelper; 22 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns; 23 import com.android.providers.contacts.ContactsDatabaseHelper.AggregatedPresenceColumns; 24 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns; 25 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns; 26 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupColumns; 27 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 28 import com.android.providers.contacts.ContactsDatabaseHelper.PhoneLookupColumns [all...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
EABDbUtil.java | 44 import android.provider.ContactsContract.Contacts; 60 // Get the last stored contact changed timestamp and sync only delta contacts. 65 ContactsContract.Contacts._ID, 66 ContactsContract.Contacts.HAS_PHONE_NUMBER, 67 ContactsContract.Contacts.DISPLAY_NAME, 68 ContactsContract.Contacts.CONTACT_LAST_UPDATED_TIMESTAMP }; 69 String selection = ContactsContract.Contacts.HAS_PHONE_NUMBER + "> '0' AND " 70 + ContactsContract.Contacts.CONTACT_LAST_UPDATED_TIMESTAMP 72 String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + " asc"; 75 cursor = contentResolver.query(Contacts.CONTENT_URI, projection, selection [all...] |