/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 17 package com.android.contacts.tests.allintents; 29 import android.provider.Contacts.ContactMethods; 30 import android.provider.Contacts.People; 31 import android.provider.Contacts.Phones; 36 import android.provider.ContactsContract.Contacts; 47 import com.android.contacts.group.GroupUtil; 48 import com.android.contacts.list.UiIntentActions; 49 import com.android.contacts.tests.R; 50 import com.android.contacts.tests.quickcontact.QuickContactTestsActivity; 55 * An activity that provides access to various modes of the contacts application [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_ContactCountsTest.java | 17 package android.provider.cts.contacts; 29 import android.provider.ContactsContract.Contacts; 31 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 32 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 42 final String[] TEST_PROJECTION = new String[] {Contacts.DISPLAY_NAME}; 61 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, TEST_PROJECTION, 65 assertFalse(extras.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)); 66 assertFalse(extras.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); 74 final Uri uri = Contacts.CONTENT_URI.buildUpon() 75 .appendQueryParameter(Contacts.EXTRA_ADDRESS_BOOK_INDEX, "true").build() [all...] |
ContactUtil.java | 17 package android.provider.cts.contacts; 30 * Convenience methods for operating on the Contacts table. 34 private static final Uri URI = ContactsContract.Contacts.CONTENT_URI; 49 ContactsContract.Contacts._ID 61 ContactsContract.Contacts.CONTACT_LAST_UPDATED_TIMESTAMP 64 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId); 115 * manually trigger the forced aggregation, splitting of two raw contacts or specify that 116 * the provider should automatically decide whether or not to aggregate the two raw contacts. 132 // Actually set the aggregation exception in the contacts database, and check that a
|
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
AlarmBroadcastReceiver.java | 36 import com.android.service.ims.presence.Contacts; 47 Contacts.ACTION_NEW_CONTACT_INSERTED; 71 String number = intent.getStringExtra(Contacts.NEW_PHONE_NUMBER);
|
Contacts.java | 39 public final class Contacts { 40 private Contacts() {} 78 Uri.withAppendedPath(Contacts.CONTENT_URI, TABLE_NAME); 272 if (!(o instanceof Contacts.Item)) return false; 274 Contacts.Item that = (Contacts.Item) o; 281 .append("Contacts.Item { ")
|
PollingsQueue.java | 77 public synchronized void add(int type, List<Contacts.Item> list) { 82 List<Contacts.Item> contacts = new ArrayList<Contacts.Item>(); local 83 contacts.clear(); 85 Contacts.Item item = list.get(i); 88 for(int j = 0; j < contacts.size(); j++) { 89 Contacts.Item item0 = contacts.get(j); 102 Contacts.Item item0 = task.mContacts.get(k) [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
ContactLoaderUtils.java | 17 package com.android.contacts.util; 22 import android.provider.Contacts; 36 * For legacy contacts, a raw-contact lookup is performed. An {@link IllegalArgumentException} 52 if (ContactsContract.Contacts.CONTENT_ITEM_TYPE.equals(type)) { 68 final String OBSOLETE_AUTHORITY = Contacts.AUTHORITY;
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
ContactLoaderUtils.java | 17 package com.android.contacts.common.util; 22 import android.provider.Contacts; 34 * contacts, a raw-contact lookup is performed. An {@link IllegalArgumentException} can be thrown 52 if (ContactsContract.Contacts.CONTENT_ITEM_TYPE.equals(type)) { 68 final String OBSOLETE_AUTHORITY = Contacts.AUTHORITY;
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
AutoComplete4.java | 27 import android.provider.ContactsContract.Contacts; 44 Cursor cursor = content.query(Contacts.CONTENT_URI, 89 Contacts.CONTENT_FILTER_URI, 98 Contacts._ID, 99 Contacts.DISPLAY_NAME
|
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
ContactManager.java | 104 Uri uri = ContactsContract.Contacts.CONTENT_URI; 106 ContactsContract.Contacts._ID, 107 ContactsContract.Contacts.DISPLAY_NAME 109 String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '" + 112 String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + " COLLATE LOCALIZED ASC";
|
/frameworks/base/core/java/android/provider/ |
ContactsInternal.java | 33 * Contacts related internal methods. 48 // Contacts URI matching table 50 matcher.addURI(ContactsContract.AUTHORITY, "contacts/lookup/*", CONTACTS_URI_LOOKUP); 51 matcher.addURI(ContactsContract.AUTHORITY, "contacts/lookup/*/#", CONTACTS_URI_LOOKUP_ID); 97 ? ContactsContract.Contacts.ENTERPRISE_CONTACT_ID_BASE //contact id will be ignored 108 ContactsContract.Contacts.ENTERPRISE_CONTACT_LOOKUP_PREFIX)) { 112 if (!ContactsContract.Contacts.isEnterpriseContactId(contactId)) { 122 ContactsContract.Contacts.ENTERPRISE_CONTACT_LOOKUP_PREFIX.length()); 124 (contactId - ContactsContract.Contacts.ENTERPRISE_CONTACT_ID_BASE);
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
DefaultContactListAdapter.java | 16 package com.android.contacts.common.list; 26 import android.provider.ContactsContract.Contacts; 31 import com.android.contacts.common.compat.ContactsCompat; 32 import com.android.contacts.common.preference.ContactsPreferences; 36 /** A cursor adapter for the {@link ContactsContract.Contacts#CONTENT_TYPE} content type. */ 55 loader.setUri(Contacts.CONTENT_URI); 73 sortOrder = Contacts.SORT_KEY_PRIMARY; 75 sortOrder += ", " + Contacts.SORT_KEY_PRIMARY; 79 sortOrder = Contacts.SORT_KEY_ALTERNATIVE; 81 sortOrder += ", " + Contacts.SORT_KEY_ALTERNATIVE [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/ |
ContactListItemViewTest.java | 20 import android.provider.ContactsContract.Contacts; 83 verifyContent(view, (String) cursor.getAt(Contacts.DISPLAY_NAME, row), 85 (String) cursor.getAt(Contacts.PHOTO_THUMBNAIL_URI, row), true); 94 verifyContent(view, (String) cursor.getAt(Contacts.DISPLAY_NAME, row), 96 (String) cursor.getAt(Contacts.PHOTO_THUMBNAIL_URI, row), false); 118 verifyContent(view, (String) cursor.getAt(Contacts.DISPLAY_NAME, 1), 120 (String) cursor.getAt(Contacts.PHOTO_THUMBNAIL_URI, 1), true);
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
PinnedShortcuts.java | 28 import android.provider.ContactsContract.Contacts; 48 * the user's contacts, and if so, we disable the pinned shortcut. 56 Contacts._ID, Contacts.DISPLAY_NAME_PRIMARY, Contacts.CONTACT_LAST_UPDATED_TIMESTAMP, 75 * all contacts which currently have pinned shortcuts. The query results are used to compute a 77 * changes) or disabled (if contacts were deleted). Note that pinned shortcuts cannot be deleted 128 .setContactId(cursor.getLong(cursor.getColumnIndexOrThrow(Contacts._ID))) 131 cursor.getString(cursor.getColumnIndexOrThrow(Contacts.DISPLAY_NAME_PRIMARY)))
|
DialerShortcut.java | 23 import android.provider.ContactsContract.Contacts; 41 * Contact ID from contacts provider. Note that this a numeric row ID from the 42 * ContactsContract.Contacts._ID column. 47 * Lookup key from contacts provider. An example lookup key is: "0r8-47392D". This is the value 48 * from ContactsContract.Contacts.LOOKUP_KEY. 53 /** Display name from contacts provider. */ 114 * <p>"content://com.android.contacts/contacts/lookup/0r8-47392D/8" 124 return Contacts.getLookupUri(contactId, lookupKey); 128 * Contacts provider URI which uses the contact lookup key [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
ProfileAggregator.java | 16 package com.android.providers.contacts.aggregation; 21 import android.provider.ContactsContract.Contacts; 23 import com.android.providers.contacts.ContactLookupKey; 24 import com.android.providers.contacts.ContactsDatabaseHelper; 25 import com.android.providers.contacts.ContactsDatabaseHelper.Tables; 26 import com.android.providers.contacts.ContactsProvider2; 27 import com.android.providers.contacts.NameSplitter; 28 import com.android.providers.contacts.PhotoPriorityResolver; 29 import com.android.providers.contacts.TransactionContext; 30 import com.android.providers.contacts.aggregation.util.CommonNicknameCache [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
JoinContactListAdapter.java | 16 package com.android.contacts.list; 24 import android.provider.ContactsContract.Contacts; 25 import android.provider.ContactsContract.Contacts.AggregationSuggestions; 33 import com.android.contacts.R; 34 import com.android.contacts.preference.ContactsPreferences; 59 // Partition 1: All contacts 71 final Builder builder = Contacts.CONTENT_URI.buildUpon(); 88 allContactsUri = buildSectionIndexerUri(Contacts.CONTENT_FILTER_URI).buildUpon() 94 allContactsUri = buildSectionIndexerUri(Contacts.CONTENT_URI).buildUpon() 100 loader.setSelection(Contacts._ID + "!=?") [all...] |
/external/guice/examples/src/example/xml/ |
Main.java | 35 bind(Contacts.class).to(SimCard.class);
|
/frameworks/base/core/tests/coretests/src/android/content/ |
ContentResolverTest.java | 40 mContentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
FrequentContactsCursorQueryData.java | 23 import android.provider.ContactsContract.Contacts; 31 * Helper for querying frequent (and/or starred) contacts. 77 // Some phones have a buggy implementation of the Contacts provider which crashes 78 // when we query for strequent (starred+frequent) contacts (b/17991485). 79 // If this happens, switch to just querying for frequent contacts. 80 return Contacts.CONTENT_FREQUENT_URI; 91 // contacts. This is the last-ditch effort; if this fails, we will display an 95 // TODO: Handle enterprise contacts post M once contacts provider supports it 96 return Contacts.CONTENT_STREQUENT_URI.buildUpon( [all...] |
/build/make/target/product/ |
core.mk | 33 Contacts \
|
/cts/tests/tests/permission/src/android/permission/cts/ |
ContactsProviderTest.java | 30 * Verifies that query(ContactsContract.Contacts.CONTENT_URI) requires 38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, 40 fail("query(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException" 48 * Verifies that insert(ContactsContract.Contacts.CONTENT_URI) requires 56 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, 58 fail("insert(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException"
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
ContactsProviderTest.java | 26 * Verify that deprecated contacts permissions are not enforced. 31 * Verifies that query(ContactsContract.Contacts.CONTENT_URI) only requires 36 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, 41 * Verifies that insert(ContactsContract.Contacts.CONTENT_URI) only requires 47 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, 50 fail("insert(ContactsContract.Contacts.CONTENT_URI) threw SecurityException");
|
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactAccessorSdk3_4.java | 24 import android.provider.Contacts.People; 25 import android.provider.Contacts.People.Phones; 28 * An implementation of {@link ContactAccessor} that uses legacy Contacts API.
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
AggregationSuggestionsCompat.java | 17 package com.android.contacts.compat; 82 android.net.Uri.Builder builder = ContactsContract.Contacts.CONTENT_URI.buildUpon(); 84 builder.appendPath(ContactsContract.Contacts.AggregationSuggestions.CONTENT_DIRECTORY);
|