/packages/apps/Contacts/tests/ |
Android.mk | 15 LOCAL_INSTRUMENTATION_FOR := Contacts 29 --extra-packages com.android.contacts.common.tests
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
FilteredNumbersUtil.java | 26 import android.provider.ContactsContract.Contacts; 70 /** Checks if there exists a contact with {@code Contacts.SEND_TO_VOICEMAIL} set to true. */ 85 Contacts.CONTENT_URI, 114 * Blocks all the phone numbers of any contacts marked as SEND_TO_VOICEMAIL, then clears the 115 * SEND_TO_VOICEMAIL flag on those contacts. 131 // Get the phone number of contacts marked as SEND_TO_VOICEMAIL. 161 // Clear SEND_TO_VOICEMAIL on all contacts. The setting has been imported to Dialer. 163 newValues.put(Contacts.SEND_TO_VOICEMAIL, 0); 167 Contacts.CONTENT_URI, 329 static final String[] PROJECTION = {Contacts._ID} [all...] |
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
PhoneQuery.java | 24 import android.provider.ContactsContract.Contacts; 42 Contacts.DISPLAY_NAME_ALTERNATIVE,
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ContactLoader.java | 18 import android.provider.ContactsContract.Contacts; 66 mLookupUri = Contacts.getLookupUri(resolver, mLookupUri); 68 contactUri = Contacts.lookupContact(resolver, mLookupUri); 78 final Uri dataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY); 100 Contacts.NAME_RAW_CONTACT_ID, Contacts.DISPLAY_NAME_SOURCE 106 .getColumnIndex(Contacts.NAME_RAW_CONTACT_ID)); 108 .getColumnIndex(Contacts.DISPLAY_NAME_SOURCE)); 115 // Read the constituent raw contacts
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
ContactsManagerTest.java | 25 import android.provider.ContactsContract.Contacts; 77 mFakeContactsContentProvider.addQueryResult(Contacts.CONTENT_URI, mMatrixCursor); 79 final ArrayList<String> validNames = mManager.getValidNames(Contacts.CONTENT_URI); 92 mFakeContactsContentProvider.addQueryResult(Contacts.CONTENT_URI, mMatrixCursor); 94 final ArrayList<String> validNames = mManager.getValidNames(Contacts.CONTENT_URI); 109 mFakeContactsContentProvider.addQueryResult(Contacts.CONTENT_URI, mMatrixCursor); 111 Cursor cursor = mFakeContactsContentProvider.query(Contacts.CONTENT_URI, 127 mFakeContactsContentProvider.addQueryResult(Contacts.CONTENT_URI, mMatrixCursor);
|
ContactsContentObserverTest.java | 26 import android.provider.ContactsContract.Contacts; 75 when(mMockManager.getValidNames(eq(Contacts.CONTENT_URI))).thenReturn(STALE_NAMES_LIST); 90 when(mMockManager.getValidNames(eq(Contacts.CONTENT_URI))).thenReturn(UPDATED_NAMES_LIST);
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactsListFragment.java | 31 import android.provider.ContactsContract.Contacts; 32 import android.provider.ContactsContract.Contacts.Photo; 70 * This fragment displays a list of contacts stored in the Contacts Provider. Each item in the list 75 * This Fragment retrieves contacts based on a search string. If the user doesn't enter a search 76 * string, then the list contains all the contacts in the Contacts Provider. If the user enters a 77 * search string, then the list contains only those contacts whose data matches the string. The 78 * Contacts Provider itself controls the matching algorithm, which is a "substring" search: if the 79 * search string is a substring of any of the contacts data, then there is a match [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
DynamicShortcutsTests.java | 16 package com.android.contacts; 30 import android.provider.ContactsContract.Contacts; 36 import com.android.contacts.test.mocks.MockContentProvider; 94 assertEquals(Contacts.getLookupUri(1, "lookup_key"), shortcut.getIntent().getData()); 99 assertEquals(1l, shortcut.getExtras().getLong(Contacts._ID)); 145 queryForSingleRow(Contacts.getLookupUri(1l, "key1"), 11l, "key1", "New Name1"), 146 queryForSingleRow(Contacts.getLookupUri(2l, "key2"), 2l, "key2", "name2"), 147 queryForSingleRow(Contacts.getLookupUri(3l, "key3"), 33l, "key3", "name3") 174 queryFor(Contacts.CONTENT_STREQUENT_URI, 198 queryFor(Contacts.CONTENT_STREQUENT_URI [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
ContactLoader.java | 17 package com.android.contacts.model; 33 import android.provider.ContactsContract.Contacts; 41 import com.android.contacts.GeoUtil; 42 import com.android.contacts.GroupMetaDataLoader; 43 import com.android.contacts.compat.CompatUtils; 44 import com.android.contacts.group.GroupMetaData; 45 import com.android.contacts.model.account.AccountType; 46 import com.android.contacts.model.account.AccountTypeWithDataSet; 47 import com.android.contacts.model.dataitem.DataItem; 48 import com.android.contacts.model.dataitem.PhoneDataItem [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
ContactLoader.java | 17 package com.android.contacts.common.model; 33 import android.provider.ContactsContract.Contacts; 39 import com.android.contacts.common.GroupMetaData; 40 import com.android.contacts.common.model.account.AccountType; 41 import com.android.contacts.common.model.account.AccountTypeWithDataSet; 42 import com.android.contacts.common.model.dataitem.DataItem; 43 import com.android.contacts.common.model.dataitem.PhoneDataItem; 44 import com.android.contacts.common.model.dataitem.PhotoDataItem; 45 import com.android.contacts.common.util.Constants; 46 import com.android.contacts.common.util.ContactLoaderUtils [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
SmsMmsContacts.java | 27 import android.provider.ContactsContract.Contacts; 55 private static final String[] CONTACT_PROJECTION = {Contacts._ID, Contacts.DISPLAY_NAME}; 56 private static final String CONTACT_SEL_VISIBLE = Contacts.IN_VISIBLE_GROUP + "=1"; 58 Arrays.asList(CONTACT_PROJECTION).indexOf(Contacts._ID); 60 Arrays.asList(CONTACT_PROJECTION).indexOf(Contacts.DISPLAY_NAME); 63 * Get a contacts phone number based on the canonical addresses id of the contact. 141 * Lookup a contacts name in the Android Contacts database. 174 selection += "AND " + ContactsContract.Contacts.DISPLAY_NAME + " like ?" [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
GlobalSearchSupport.java | 17 package com.android.providers.contacts; 29 import android.provider.ContactsContract.Contacts; 36 import com.android.providers.contacts.ContactsDatabaseHelper.AggregatedPresenceColumns; 37 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns; 38 import com.android.providers.contacts.ContactsDatabaseHelper.Tables; 39 import com.android.providers.contacts.ContactsDatabaseHelper.Views; 44 * Support for global search integration for Contacts. 146 return Contacts.getLookupUri(contactId, lookupKey).toString(); 230 + Contacts._ID + ", " 231 + Contacts.LOOKUP_KEY + ", [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
ProviderPermissionTest.java | 25 import android.provider.Contacts; 44 assertReadingContentUriRequiresPermission(Contacts.People.CONTENT_URI, 54 assertWritingContentUriRequiresPermission(Contacts.People.CONTENT_URI,
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
LegacyPostalAddressListAdapter.java | 16 package com.android.contacts.list; 23 import android.provider.Contacts.ContactMethods; 24 import android.provider.Contacts.People; 63 loader.setSelection(ContactMethods.KIND + "=" + android.provider.Contacts.KIND_POSTAL);
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
ShortcutUsageReporter.java | 29 import android.provider.ContactsContract.Contacts; 60 * <p>Asynchronously queries the contacts database for the contact's lookup key which corresponds 122 .query(uri, new String[] {Contacts.LOOKUP_KEY}, null, null, null)) { 128 return cursor.getString(cursor.getColumnIndex(Contacts.LOOKUP_KEY));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ContactsContentObserver.java | 24 import android.provider.ContactsContract.Contacts; 36 * A content observer that listens to updates to content provider {@link Contacts#CONTENT_URI}. 56 Log.i(TAG, "No permission to read contacts. Not registering the observer."); 57 // do nothing if we do not have the permission to read contacts. 73 contentResolver.registerContentObserver(Contacts.CONTENT_URI, true, mContentObserver); 80 Log.i(TAG, "No permission to read contacts. Not updating the contacts."); 93 Log.d(TAG, "run() : Contacts have changed. Notifying listeners."); 103 Log.i(TAG, "No permission to read contacts. Marking contacts as not changed.") [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
ContactHeaderWidget.java | 34 import android.provider.ContactsContract.Contacts; 96 Contacts._ID, 97 Contacts.LOOKUP_KEY, 98 Contacts.PHOTO_ID, 99 Contacts.DISPLAY_NAME, 100 Contacts.PHONETIC_NAME, 101 Contacts.STARRED, 102 Contacts.CONTACT_PRESENCE, 103 Contacts.CONTACT_STATUS, 104 Contacts.CONTACT_STATUS_TIMESTAMP [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_StructuredPhoneticName.java | 17 package android.provider.cts.contacts; 26 import android.provider.ContactsContract.Contacts; 30 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 31 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; 32 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 71 contact.assertColumn(Contacts.DISPLAY_NAME_SOURCE, 103 // Execute: aggregate the two raw contacts together 107 // Sanity check: two contacts are aggregated 114 contact.assertColumn(Contacts.DISPLAY_NAME, "name"); 140 // Execute: aggregate the two raw contacts togethe [all...] |
Contacts_OrganizationsTest.java | 17 package android.provider.cts.contacts; 20 import android.provider.Contacts.Organizations;
|
Contacts_SettingsTest.java | 17 package android.provider.cts.contacts; 20 import android.provider.Contacts.Settings;
|
ContactsContract_QuickContactsTest.java | 17 package android.provider.cts.contacts; 27 import android.provider.Contacts; 42 final Uri FAKE_CONTACT_URI = ContentUris.withAppendedId(Contacts.CONTENT_URI, 0);
|
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
ContactsAdapter.java | 22 import android.provider.ContactsContract.Contacts; 28 import com.android.contacts.common.ContactPhotoManager; 31 /** List adapter for the union of all contacts associated with every account on the device. */ 41 // Number of contacts that correspond to each header in {@code headers}. 47 headers = cursor.getExtras().getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES); 48 counts = cursor.getExtras().getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); 76 context.getString(com.android.contacts.common.R.string.description_quick_contact_for, name); 138 return Contacts.getLookupUri(contactId, lookupKey);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
SqlInjectionDetectionTest.java | 17 package com.android.providers.contacts; 19 import static com.android.providers.contacts.EvenMoreAsserts.assertThrows; 20 import static com.android.providers.contacts.TestUtils.cv; 27 import android.provider.ContactsContract.Contacts; 31 import com.android.providers.contacts.testutil.RawContactUtil; 38 * adb shell am instrument -e class com.android.providers.contacts.SqlInjectionDetectionTest -w \ 39 * com.android.providers.contacts.tests/android.test.InstrumentationTestRunner 75 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, ";delete from contacts", null); 87 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, ";delete from contacts"); 101 Builder builder = Contacts.CONTENT_FILTER_URI.buildUpon() [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
ContactsFacade.java | 48 * Provides access to contacts related functionality. 52 private static final Uri CONTACTS_URI = ContactsContract.Contacts.CONTENT_URI; 73 ContactsContract.Contacts.CONTENT_URI, true, mContactsStatusReceiver); 84 Log.e(TAG, "Unable to get field from Contacts Database"); 89 return ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id); 93 description = "Displays a list of contacts to pick from.", 121 @Rpc(description = "Returns a List of all possible attributes for contacts.") 149 @Rpc(description = "Returns a List of all contacts.", returns = "a List of contacts as Maps") 152 List<JSONObject> contacts = new ArrayList<JSONObject>() local [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
QuickContactBadgeTest.java | 30 import android.provider.ContactsContract.Contacts; 50 final Uri nonExistentContactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, 0);
|