/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_CommonDataKinds_EmailTest.java | 20 import android.provider.ContactsContract.CommonDataKinds.Email; 34 assertGetTypeLabel(Email.TYPE_HOME); 35 assertGetTypeLabel(Email.TYPE_MOBILE); 36 assertGetTypeLabel(Email.TYPE_OTHER); 37 assertGetTypeLabel(Email.TYPE_WORK); 38 assertGetTypeLabel(Email.TYPE_CUSTOM); 43 int res = Email.getTypeLabelResource(type); 47 assertEquals(label, Email.getTypeLabel(mResources, type, "")); 51 int res = Email.getTypeLabelResource(Email.TYPE_CUSTOM) [all...] |
ContactsContract_DataTest.java | 30 import android.provider.ContactsContract.CommonDataKinds.Email; 110 rawContact.newDataRow(CommonDataKinds.Email.CONTENT_ITEM_TYPE) 111 .with(Email.DATA, "test@test.com") 112 .with(Email.TYPE, Email.TYPE_WORK) 115 cv.put(Email.DATA, "test@test.com"); 116 cv.put(Email.TYPE, Email.TYPE_WORK); 135 // Contactables Uri should return only email and phone data items. 268 rawContact.newDataRow(Email.CONTENT_ITEM_TYPE [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
EmailDataItem.java | 21 import android.provider.ContactsContract.CommonDataKinds.Email; 24 * Represents an email data item, wrapping the columns in 25 * {@link ContactsContract.CommonDataKinds.Email}. 34 return getContentValues().getAsString(Email.ADDRESS); 38 return getContentValues().getAsString(Email.DISPLAY_NAME); 42 return getContentValues().getAsString(Email.DATA); 46 return getContentValues().getAsString(Email.LABEL);
|
ImDataItem.java | 21 import android.provider.ContactsContract.CommonDataKinds.Email; 50 return getContentValues().getAsString(Email.DATA);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForEmail.java | 22 import android.provider.ContactsContract.CommonDataKinds.Email; 28 * Handler for email address data rows. 34 super(context, dbHelper, aggregator, Email.CONTENT_ITEM_TYPE, Email.TYPE, Email.LABEL); 40 String email = values.getAsString(Email.DATA); local 45 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email); 59 if (values.containsKey(Email.DATA)) { 63 String address = values.getAsString(Email.DATA) [all...] |
/frameworks/ex/chips/src/com/android/ex/chips/ |
Queries.java | 21 import android.provider.ContactsContract.CommonDataKinds.Email; 26 * Phone and Email queries for supporting Chips UI. 48 public static final Query EMAIL = new Query(new String[]{ 50 Email.DATA, // 1 51 Email.TYPE, // 2 52 Email.LABEL, // 3 53 Email.CONTACT_ID, // 4 54 Email._ID, // 5 57 }, Email.CONTENT_FILTER_URI, Email.CONTENT_URI) [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
TypePrecedence.java | 20 import android.provider.ContactsContract.CommonDataKinds.Email; 56 Email.TYPE_CUSTOM, 57 Email.TYPE_HOME, 58 Email.TYPE_WORK, 59 Email.TYPE_OTHER}; 104 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
TypePrecedence.java | 21 import android.provider.ContactsContract.CommonDataKinds.Email; 48 Email.TYPE_CUSTOM, 49 Email.TYPE_HOME, 50 Email.TYPE_WORK, 51 Email.TYPE_OTHER}; 98 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
|
GoogleSource.java | 36 import android.provider.ContactsContract.CommonDataKinds.Email; 111 kind.typeColumn = Email.TYPE; 113 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); 114 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); 115 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); 116 kind.typeList.add(buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn( 117 Email.LABEL)); 120 kind.fieldList.add(new EditField(Email.DATA, R.string.emailLabelsGroup, FLAGS_EMAIL));
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
EmailAddressListAdapter.java | 25 import android.provider.ContactsContract.CommonDataKinds.Email; 36 * A cursor adapter for the {@link Email#CONTENT_TYPE} content type. 42 Email._ID, // 0 43 Email.TYPE, // 1 44 Email.LABEL, // 2 45 Email.DATA, // 3 46 Email.PHOTO_ID, // 4 47 Email.DISPLAY_NAME_PRIMARY, // 5 51 Email._ID, // 0 52 Email.TYPE, // [all...] |
/build/target/product/ |
large_emu_hw.mk | 29 Email \
|
/packages/apps/Email/tests/ |
oldAndroid.mk | 26 # Notice that we don't have to include the src files of Email because, by 27 # running the tests using an instrumentation targeting Email, we 32 LOCAL_INSTRUMENTATION_FOR := Email
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
SenderInfoLoader.java | 32 import android.provider.ContactsContract.CommonDataKinds.Email; 44 * A {@link Loader} to look up presence, contact URI, and photo data for a set of email 51 Email._ID, // 0 52 Email.DATA, // 1 53 Email.CONTACT_PRESENCE, // 2 54 Email.CONTACT_ID, // 3 55 Email.PHOTO_ID, // 4 102 * @param senderSet The email addresses of the sender images to return. 106 * @return A mapping of email addresses to {@link ContactInfo}s. The {@link ContactInfo} will 123 .append(Data.MIMETYPE).append("='").append(Email.CONTENT_ITEM_TYPE 138 String email = cursor.getString(DATA_EMAIL_COLUMN); local 186 String email = prev.first; local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
SuggestionsProvider.java | 38 * and contact email addresses on the device. The authority fro for this provider is obtained 60 ContactsContract.CommonDataKinds.Email.DISPLAY_NAME, 61 ContactsContract.CommonDataKinds.Email.DATA 90 // Get the custom suggestions for email which are from, to, etc. 141 ContactsContract.CommonDataKinds.Email.CONTENT_FILTER_URI, Uri.encode(query)); 152 .getColumnIndex(ContactsContract.CommonDataKinds.Email.DISPLAY_NAME); 154 .getColumnIndex(ContactsContract.CommonDataKinds.Email.DATA);
|
/packages/apps/Contacts/tests/src/com/android/contacts/detail/ |
ContactDetailFragmentTests.java | 22 import android.provider.ContactsContract.CommonDataKinds.Email; 121 // Email addresses are treated as Google Talk entries 125 values.put(Email.MIMETYPE, Email.CONTENT_ITEM_TYPE); 126 values.put(Email.TYPE, Email.TYPE_HOME); 127 values.put(Email.DATA, TEST_ADDRESS); 128 values.put(Email.CHAT_CAPABILITY, Im.CAPABILITY_HAS_VOICE | Im.CAPABILITY_HAS_VIDEO |
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
GoogleAccountType.java | 21 import android.provider.ContactsContract.CommonDataKinds.Email; 103 kind.typeColumn = Email.TYPE; 105 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); 106 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); 107 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); 108 kind.typeList.add(buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn( 109 Email.LABEL)); 112 kind.fieldList.add(new EditField(Email.DATA, R.string.emailLabelsGroup, FLAGS_EMAIL));
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactOperations.java | 27 import android.provider.ContactsContract.CommonDataKinds.Email; 155 * Adds an email 157 * @param the email address we're adding 160 public ContactOperations addEmail(String email) { 162 if (!TextUtils.isEmpty(email)) { 163 mValues.put(Email.DATA, email); 164 mValues.put(Email.TYPE, Email.TYPE_OTHER); 165 mValues.put(Email.MIMETYPE, Email.CONTENT_ITEM_TYPE) [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardExporterTests.java | 26 import android.provider.ContactsContract.CommonDataKinds.Email; [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 33 import android.provider.ContactsContract.CommonDataKinds.Email; 62 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { 63 colType = cursor.getColumnIndex(Email.TYPE); 64 colLabel = cursor.getColumnIndex(Email.LABEL); 92 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { 93 defaultType = Email.TYPE_HOME; 94 customType = Email.TYPE_CUSTOM; 232 * {@link Email} row. Returns null when missing protocol or data. 235 final boolean isEmail = Email.CONTENT_ITEM_TYPE.equals(values.getAsString(Data.MIMETYPE)); 244 String data = values.getAsString(isEmail ? Email.DATA : Im.DATA) [all...] |
/frameworks/ex/common/java/com/android/common/contacts/ |
DataUsageStatUpdater.java | 26 import android.provider.ContactsContract.CommonDataKinds.Email; 44 * Applications like Email, Sms, etc. can promote recipients for better sorting with this class 96 * Update usage statistics information using a list of email addresses. 116 // Email.ADDRESS == Email.DATA1. Email.ADDRESS can be available from API Level 11. 117 whereBuilder.append(Email.DATA1 + " IN (") 120 final Cursor cursor = mResolver.query(Email.CONTENT_URI, 121 new String[] {Email.CONTACT_ID, Email._ID}, whereBuilder.toString() [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
DataUtil.java | 57 public static long insertEmail(ContentResolver resolver, long rawContactId, String email) { 59 values.put(ContactsContract.Data.MIMETYPE, CommonDataKinds.Email.CONTENT_ITEM_TYPE); 60 values.put(CommonDataKinds.Email.ADDRESS, email);
|
/developers/samples/android/content/contacts/BasicContactables/BasicContactablesSample/src/main/java/com/example/android/basiccontactables/ |
ContactablesLoaderCallbacks.java | 50 // display name, email address and phone number. In this case, the query was extracted 101 int emailColumnIndex = cursor.getColumnIndex(CommonDataKinds.Email.ADDRESS); 126 } else if (mimeType.equals(CommonDataKinds.Email.CONTENT_ITEM_TYPE)) {
|
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
ContactAdder.java | 89 // Also, be aware that type IDs differ between Phone and Email, and MUST be computed 97 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_HOME); 98 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_WORK); 99 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_MOBILE); 100 mContactEmailTypes.add(ContactsContract.CommonDataKinds.Email.TYPE_OTHER); 122 // Populate list of account types for email 127 adapter.add(ContactsContract.CommonDataKinds.Email.getTypeLabel( 174 String email = mContactEmailEditText.getText().toString(); local 206 ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE) 207 .withValue(ContactsContract.CommonDataKinds.Email.DATA, email [all...] |
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/ |
ContactablesLoaderCallbacks.java | 50 // display name, email address and phone number. In this case, the query was extracted 101 int emailColumnIndex = cursor.getColumnIndex(CommonDataKinds.Email.ADDRESS); 126 } else if (mimeType.equals(CommonDataKinds.Email.CONTENT_ITEM_TYPE)) {
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactModifierTests.java | 28 import android.provider.ContactsContract.CommonDataKinds.Email; 117 // Email is unlimited 118 final DataKind emailKind = new DataKind(Email.CONTENT_ITEM_TYPE, -1, 10, true); 121 emailKind.fieldList.add(new EditField(Email.DATA, -1, -1)); [all...] |