/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
ContactLoaderTest.java | 17 package com.android.contacts.model; 24 import android.provider.ContactsContract.Contacts; 32 import com.android.contacts.compat.CompatUtils; 33 import com.android.contacts.model.account.AccountType; 34 import com.android.contacts.model.account.AccountWithDataSet; 35 import com.android.contacts.model.account.BaseAccountType; 36 import com.android.contacts.test.mocks.ContactsMockContext; 37 import com.android.contacts.test.mocks.MockAccountTypeManager; 38 import com.android.contacts.test.mocks.MockContentProvider; 39 import com.android.contacts.testing.InjectedServices [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_PhotoTest.java | 17 package android.provider.cts.contacts; 24 import android.provider.ContactsContract.Contacts; 25 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 26 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; 27 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 67 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); 68 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); 78 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 79 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)) [all...] |
Contacts_ContactMethodsTest.java | 17 package android.provider.cts.contacts; 20 import android.provider.Contacts; 21 import android.provider.Contacts.ContactMethods; 56 String display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 62 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 66 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 70 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 75 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_IM, 79 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_ORGANIZATION, 83 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_PHONE [all...] |
ContactsContract_DataTest.java | 17 package android.provider.cts.contacts; 36 import android.provider.ContactsContract.Contacts; 37 import android.provider.ContactsContract.Contacts.Entity; 42 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 43 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; 44 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 99 Contacts.CUSTOM_RINGTONE, 100 Contacts.DISPLAY_NAME, 101 Contacts.DISPLAY_NAME_ALTERNATIVE, 102 Contacts.DISPLAY_NAME_SOURCE [all...] |
ContactsContractIntentsTest.java | 17 package android.provider.cts.contacts; 41 intent.setData(ContactsContract.Contacts.CONTENT_URI); 47 intent.setData(ContactsContract.Contacts.CONTENT_URI); 53 intent.setData(ContactsContract.Contacts.CONTENT_URI);
|
ContactsContract_AggregationSuggestionsTest.java | 17 package android.provider.cts.contacts; 26 import android.provider.ContactsContract.Contacts; 27 import android.provider.ContactsContract.Contacts.AggregationSuggestions; 29 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 33 * CTS tests for {@link android.provider.ContactsContract.Contacts.AggregationSuggestions} APIs. 37 = new String[] {Contacts.DISPLAY_NAME, Contacts._ID}; 73 values.put(Contacts._ID, contactIds[0]); 74 values.put(Contacts.DISPLAY_NAME, "first1 last1"); 95 values.put(Contacts._ID, contactIds[0]) [all...] |
/developers/samples/android/content/LoaderCursor/src/com/example/android/content/loadercursor/ |
CursorLoaderListFragment.java | 26 import android.provider.ContactsContract.Contacts; 41 * display a list of contacts accessed through a {@link Cursor}. 74 Contacts.DISPLAY_NAME, Contacts.CONTACT_STATUS 172 // These are the Contacts rows that we will retrieve. 174 Contacts._ID, 175 Contacts.DISPLAY_NAME, 176 Contacts.CONTACT_STATUS, 177 Contacts.LOOKUP_KEY, 188 baseUri = Uri.withAppendedPath(Contacts.CONTENT_FILTER_URI [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/group/ |
GroupUtilTest.java | 17 package com.android.contacts.group; 20 import android.provider.ContactsContract.Contacts; 25 import com.android.contacts.list.ContactsSectionIndexer; 62 assertNotNull(bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); 63 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle.getStringArray(Contacts 66 assertNotNull(bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)); 67 MoreAsserts.assertEquals("Wrong counts!", newCounts, bundle.getIntArray(Contacts 111 assertNotNull(bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); 112 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle.getStringArray(Contacts 115 assertNotNull(bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
ContactsTableUtil.java | 17 package com.android.providers.contacts.database; 19 import static android.provider.ContactsContract.Contacts; 20 import static com.android.providers.contacts.ContactsDatabaseHelper.Tables; 29 import com.android.providers.contacts.util.Clock; 34 * Methods for operating on the contacts table. 44 final String table = Tables.CONTACTS; 47 Contacts.HAS_PHONE_NUMBER + 51 Contacts.NAME_RAW_CONTACT_ID + 55 Contacts.CONTACT_LAST_UPDATED_TIMESTAMP)); 60 values.put(Contacts.CONTACT_LAST_UPDATED_TIMESTAMP [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
LegacyApiSupport.java | 16 package com.android.providers.contacts; 33 import android.provider.Contacts.ContactMethods; 34 import android.provider.Contacts.Extensions; 35 import android.provider.Contacts.People; 46 import android.provider.ContactsContract.Contacts; 55 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns; 56 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns; 57 import com.android.providers.contacts.ContactsDatabaseHelper.ExtensionsColumns; 58 import com.android.providers.contacts.ContactsDatabaseHelper.GroupsColumns; 59 import com.android.providers.contacts.ContactsDatabaseHelper.MimetypesColumns [all...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
EABContactManager.java | 59 public final static String COLUMN_ID = Contacts.Impl._ID; 66 Contacts.Impl.CONTACT_LAST_UPDATED_TIMESTAMP; 73 Contacts.Impl._ID, 74 Contacts.Impl.CONTACT_NUMBER, 75 Contacts.Impl.CONTACT_NAME, 76 Contacts.Impl.CONTACT_LAST_UPDATED_TIMESTAMP, 77 Contacts.Impl.VOLTE_CALL_SERVICE_CONTACT_ADDRESS, 78 Contacts.Impl.VOLTE_CALL_CAPABILITY, 79 Contacts.Impl.VOLTE_CALL_CAPABILITY_TIMESTAMP, 80 Contacts.Impl.VOLTE_CALL_AVAILABILITY [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ExpandableList2.java | 27 import android.provider.ContactsContract.Contacts; 37 Contacts._ID, 38 Contacts.DISPLAY_NAME 90 Uri.Builder builder = Contacts.CONTENT_URI.buildUpon(); 92 builder.appendEncodedPath(Contacts.Data.CONTENT_DIRECTORY); 115 new String[] { Contacts.DISPLAY_NAME }, // Name for group layouts 125 mQueryHandler.startQuery(TOKEN_GROUP, null, Contacts.CONTENT_URI, CONTACTS_PROJECTION, 126 Contacts.HAS_PHONE_NUMBER + "=1", null, null);
|
AutoComplete5.java | 25 import android.provider.ContactsContract.Contacts; 35 Cursor cursor = content.query(Contacts.CONTENT_URI,
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/ |
ContactsContract_Subquery.java | 17 package android.provider.cts.contacts.account; 23 import android.provider.ContactsContract.Contacts; 25 import android.provider.cts.contacts.ContactsContract_TestDataBuilder; 26 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 56 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, null, null, null)) { 61 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, 67 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null,
|
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactAccessorSdk5.java | 23 import android.provider.ContactsContract.Contacts; 27 * An implementation of {@link ContactAccessor} that uses current Contacts API. 33 * <li>It sees contacts from multiple accounts. 34 * <li>It works with aggregated contacts. So for example, if the contact is the result 35 * of aggregation of two raw contacts from different accounts, it may return the name from 47 * Returns a Pick Contact intent using the Eclair "contacts" URI. 51 return new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); 64 new String[]{Contacts._ID, Contacts.DISPLAY_NAME}, null, null, null);
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
ContactUtil.java | 17 package com.android.providers.contacts.testutil; 27 * Convenience methods for operating on the Contacts table. 31 private static final Uri URI = ContactsContract.Contacts.CONTENT_URI; 46 ContactsContract.Contacts._ID 58 ContactsContract.Contacts.CONTACT_LAST_UPDATED_TIMESTAMP 61 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
DirectoryTest.java | 17 package com.android.providers.contacts; 19 import static com.android.providers.contacts.ContactsActor.PACKAGE_GREY; 28 import android.provider.ContactsContract.Contacts; 33 import com.android.providers.contacts.testutil.RawContactUtil; 41 * adb shell am instrument -e class com.android.providers.contacts.DirectoryTest -w \ 42 * com.android.providers.contacts.tests/android.test.InstrumentationTestRunner 88 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter( 92 new String[]{Contacts._ID, Contacts.DISPLAY_NAME}, null, null, null); 113 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter [all...] |
ContactsProvider2Test.java | 17 package com.android.providers.contacts; 19 import static com.android.providers.contacts.TestUtils.createDatabaseSnapshot; 20 import static com.android.providers.contacts.TestUtils.cv; 21 import static com.android.providers.contacts.TestUtils.dumpCursor; 51 import android.provider.ContactsContract.Contacts; 80 import com.android.providers.contacts.ContactsActor.AlteringUserContext; 81 import com.android.providers.contacts.ContactsActor.MockUserManager; 82 import com.android.providers.contacts.ContactsDatabaseHelper.AggregationExceptionColumns; 83 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns; 84 import com.android.providers.contacts.ContactsDatabaseHelper.DataUsageStatColumns 8297 final VCardTestUriCreator contacts = createVCardTestContacts(); local 8332 final VCardTestUriCreator contacts = createVCardTestContacts(); local 8347 final VCardTestUriCreator contacts = createVCardTestContacts(); local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/ |
EnterpriseContactsCursorWrapper.java | 17 package com.android.providers.contacts.enterprise; 28 import android.provider.ContactsContract.Contacts; 36 import com.android.providers.contacts.ContactsProvider2; 84 case Contacts.PHOTO_THUMBNAIL_URI: 90 case Contacts.PHOTO_URI: 109 case Contacts.LOOKUP_KEY: 114 return Contacts.ENTERPRISE_CONTACT_LOOKUP_PREFIX + lookupKey; 130 return result + Contacts.ENTERPRISE_CONTACT_ID_BASE; 164 * Example: "content://com.android.contacts/contacts_corp/ID/photo" 169 final int thumbnailUriIndex = originalCursor.getColumnIndex(Contacts.PHOTO_THUMBNAIL_URI) [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
DefaultContactListAdapter.java | 16 package com.android.contacts.list; 27 import android.provider.ContactsContract.Contacts; 34 import com.android.contacts.compat.ContactsCompat; 35 import com.android.contacts.model.account.AccountWithDataSet; 36 import com.android.contacts.preference.ContactsPreferences; 42 * A cursor adapter for the {@link ContactsContract.Contacts#CONTENT_TYPE} content type. 49 // Contacts contacted within the last 3 days (in seconds) 52 // Contacts contacted within the last 7 days (in seconds) 55 // Contacts contacted within the last 14 days (in seconds) 58 // Contacts contacted within the last 30 days (in seconds [all...] |
FavoritesAndContactsLoader.java | 16 package com.android.contacts.list; 24 import android.provider.ContactsContract.Contacts; 31 * A loader for use in the default contact list, which will also query for favorite contacts 66 // Need to get the extras from the contacts cursor. 86 selection.append(Contacts.STARRED + "=?"); 90 selection.append(" AND ").append(Contacts.IN_VISIBLE_GROUP + "=1"); 93 Contacts.CONTENT_URI, mProjection, selection.toString(), new String[]{"1"},
|
/device/generic/car/common/product/ |
core.mk | 28 Contacts \
|
/packages/apps/Contacts/src/com/android/contacts/ |
NfcHandler.java | 17 package com.android.contacts; 27 import android.provider.ContactsContract.Contacts; 74 appendQueryParameter(Contacts.QUERY_PARAMETER_VCARD_NO_PHOTO, "true"). 77 shareUri = Contacts.CONTENT_VCARD_URI.buildUpon(). 79 appendQueryParameter(Contacts.QUERY_PARAMETER_VCARD_NO_PHOTO, "true").
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
PhotoDataItem.java | 17 package com.android.contacts.model.dataitem; 21 import android.provider.ContactsContract.Contacts.Photo; 25 * {@link ContactsContract.Contacts.Photo}.
|
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
PhotoDataItem.java | 17 package com.android.contacts.common.model.dataitem; 21 import android.provider.ContactsContract.Contacts.Photo; 24 * Represents a photo data item, wrapping the columns in {@link ContactsContract.Contacts.Photo}.
|