Home
last modified time | relevance | path

Searched refs:Email (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/Contacts/src/com/android/contacts/list/
DMultiSelectEmailAddressesListAdapter.java26 import android.provider.ContactsContract.CommonDataKinds.Email;
39 Email._ID, // 0
40 Email.TYPE, // 1
41 Email.LABEL, // 2
42 Email.ADDRESS, // 3
43 Email.CONTACT_ID, // 4
44 Email.LOOKUP_KEY, // 5
45 Email.PHOTO_ID, // 6
46 Email.DISPLAY_NAME_PRIMARY, // 7
47 Email.PHOTO_THUMBNAIL_URI, // 8
[all …]
DEmailAddressListAdapter.java25 import android.provider.ContactsContract.CommonDataKinds.Email;
41 Email._ID, // 0
42 Email.TYPE, // 1
43 Email.LABEL, // 2
44 Email.DATA, // 3
45 Email.PHOTO_ID, // 4
46 Email.LOOKUP_KEY, // 5
47 Email.DISPLAY_NAME_PRIMARY, // 6
51 Email._ID, // 0
52 Email.TYPE, // 1
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForEmail.java22 import android.provider.ContactsContract.CommonDataKinds.Email;
33 super(context, dbHelper, aggregator, Email.CONTENT_ITEM_TYPE, Email.TYPE, Email.LABEL); in DataRowHandlerForEmail()
39 String email = values.getAsString(Email.DATA); in insert()
58 if (values.containsKey(Email.DATA)) { in update()
62 String address = values.getAsString(Email.DATA); in update()
88 case Email.TYPE_HOME: return 0; in getTypeRank()
89 case Email.TYPE_WORK: return 1; in getTypeRank()
90 case Email.TYPE_CUSTOM: return 2; in getTypeRank()
91 case Email.TYPE_OTHER: return 3; in getTypeRank()
98 return values.containsKey(Email.ADDRESS); in containsSearchableColumns()
[all …]
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DContactsPopulator.java49 .addEmail(new Email("m@example.com"))
58 .addEmail(new Email("l@example.com"))
67 .addEmail(new Email("r@example.com"))
123 .addEmail(new Email("no@example.com"))
237 for (Email email : contact.getEmails()) { in addContact()
243 ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE) in addContact()
244 .withValue(ContactsContract.CommonDataKinds.Email.DATA, email.value) in addContact()
245 .withValue(ContactsContract.CommonDataKinds.Email.TYPE, email.type) in addContact()
246 .withValue(ContactsContract.CommonDataKinds.Email.LABEL, email.label) in addContact()
273 abstract List<Email> getEmails(); in getEmails()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java25 import android.provider.ContactsContract.CommonDataKinds.Email;
129 public static final String SORT_KEY = Email.SORT_KEY_PRIMARY;
132 Email.CONTACT_ID, // 0
133 Email.DISPLAY_NAME_PRIMARY, // 1
134 Email.PHOTO_THUMBNAIL_URI, // 2
135 Email.ADDRESS, // 3
136 Email.TYPE, // 4
137 Email.LABEL, // 5
138 Email.LOOKUP_KEY, // 6
139 Email._ID, // 7
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java22 import android.provider.ContactsContract.CommonDataKinds.Email;
111 final DataKind emailKind = new DataKind(Email.CONTENT_ITEM_TYPE, -1, 10, true); in MockContactsSource()
114 emailKind.fieldList.add(new EditField(Email.DATA, -1, -1)); in MockContactsSource()
985 DataKind kind = newAccountType.getKindForMimetype(Email.CONTENT_ITEM_TYPE); in testMigrateEmailFromGoogleToExchange()
989 mockNameValues.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testMigrateEmailFromGoogleToExchange()
990 mockNameValues.put(Email.TYPE, Email.TYPE_CUSTOM); in testMigrateEmailFromGoogleToExchange()
991 mockNameValues.put(Email.LABEL, "custom_type"); in testMigrateEmailFromGoogleToExchange()
992 mockNameValues.put(Email.ADDRESS, "address1"); in testMigrateEmailFromGoogleToExchange()
995 mockNameValues.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testMigrateEmailFromGoogleToExchange()
996 mockNameValues.put(Email.TYPE, Email.TYPE_HOME); in testMigrateEmailFromGoogleToExchange()
[all …]
DRawContactDeltaListTests.java25 import android.provider.ContactsContract.CommonDataKinds.Email;
156 values.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in buildEmail()
157 values.put(Email.DATA, Long.toString(emailId)); in buildEmail()
158 values.put(Email.TYPE, Email.TYPE_HOME); in buildEmail()
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java19 import android.provider.ContactsContract.CommonDataKinds.Email;
105 mValues1.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
106 mValues2.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
107 mValues3.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
109 mValues1.put(Email.ADDRESS, email1); in testDataItemCollapsing_email()
110 mValues2.put(Email.ADDRESS, email1); in testDataItemCollapsing_email()
111 mValues3.put(Email.ADDRESS, email2); in testDataItemCollapsing_email()
113 mValues1.put(Email.TYPE, Email.TYPE_MOBILE); in testDataItemCollapsing_email()
114 mValues2.put(Email.TYPE, Email.TYPE_HOME); in testDataItemCollapsing_email()
115 mValues3.put(Email.TYPE, Email.TYPE_WORK); in testDataItemCollapsing_email()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DTypePrecedence.java20 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)) { in getTypePrecedenceList()
DSplitAggregateView.java23 import android.provider.ContactsContract.CommonDataKinds.Email;
58 Data.IS_PRIMARY, StructuredName.DISPLAY_NAME, Nickname.NAME, Email.DATA,
179 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DEmailDataItem.java20 import android.provider.ContactsContract.CommonDataKinds.Email;
33 return getContentValues().getAsString(Email.ADDRESS); in getAddress()
37 return getContentValues().getAsString(Email.DISPLAY_NAME); in getDisplayName()
41 return getContentValues().getAsString(Email.DATA); in getData()
45 return getContentValues().getAsString(Email.LABEL); in getLabel()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DEmailDataItem.java21 import android.provider.ContactsContract.CommonDataKinds.Email;
34 return getContentValues().getAsString(Email.ADDRESS); in getAddress()
38 return getContentValues().getAsString(Email.DISPLAY_NAME); in getDisplayName()
42 return getContentValues().getAsString(Email.DATA); in getData()
46 return getContentValues().getAsString(Email.LABEL); in getLabel()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DGoogleAccountType.java21 import android.provider.ContactsContract.CommonDataKinds.Email;
112 kind.typeColumn = Email.TYPE; in addDataKindEmail()
114 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); in addDataKindEmail()
115 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); in addDataKindEmail()
116 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); in addDataKindEmail()
117 kind.typeList.add(buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn( in addDataKindEmail()
118 Email.LABEL)); in addDataKindEmail()
121 kind.fieldList.add(new EditField(Email.DATA, R.string.emailLabelsGroup, FLAGS_EMAIL)); in addDataKindEmail()
DBaseAccountType.java23 import android.provider.ContactsContract.CommonDataKinds.Email;
132 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
288 DataKind kind = addKind(new DataKind(Email.CONTENT_ITEM_TYPE, R.string.emailLabelsGroup, in addDataKindEmail()
291 kind.actionBody = new SimpleInflater(Email.DATA); in addDataKindEmail()
292 kind.typeColumn = Email.TYPE; in addDataKindEmail()
294 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); in addDataKindEmail()
295 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); in addDataKindEmail()
296 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); in addDataKindEmail()
297 kind.typeList.add(buildEmailType(Email.TYPE_MOBILE)); in addDataKindEmail()
299 buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn(Email.LABEL)); in addDataKindEmail()
[all …]
DSamsungAccountType.java21 import android.provider.ContactsContract.CommonDataKinds.Email;
156 kind.typeColumn = Email.TYPE; in addDataKindEmail()
158 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); in addDataKindEmail()
159 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); in addDataKindEmail()
160 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); in addDataKindEmail()
161 kind.typeList.add(buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn( in addDataKindEmail()
162 Email.LABEL)); in addDataKindEmail()
165 kind.fieldList.add(new EditField(Email.DATA, R.string.emailLabelsGroup, FLAGS_EMAIL)); in addDataKindEmail()
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DGoogleAccountType.java21 import android.provider.ContactsContract.CommonDataKinds.Email;
108 kind.typeColumn = Email.TYPE; in addDataKindEmail()
110 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); in addDataKindEmail()
111 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); in addDataKindEmail()
112 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); in addDataKindEmail()
114 buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn(Email.LABEL)); in addDataKindEmail()
117 kind.fieldList.add(new EditField(Email.DATA, R.string.emailLabelsGroup, FLAGS_EMAIL)); in addDataKindEmail()
DSamsungAccountType.java21 import android.provider.ContactsContract.CommonDataKinds.Email;
153 kind.typeColumn = Email.TYPE; in addDataKindEmail()
155 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); in addDataKindEmail()
156 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); in addDataKindEmail()
157 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); in addDataKindEmail()
159 buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn(Email.LABEL)); in addDataKindEmail()
162 kind.fieldList.add(new EditField(Email.DATA, R.string.emailLabelsGroup, FLAGS_EMAIL)); in addDataKindEmail()
DBaseAccountType.java23 import android.provider.ContactsContract.CommonDataKinds.Email;
127 return new EditType(type, Email.getTypeLabelResource(type)); in buildEmailType()
349 new DataKind(Email.CONTENT_ITEM_TYPE, R.string.emailLabelsGroup, Weight.EMAIL, true)); in addDataKindEmail()
351 kind.actionBody = new SimpleInflater(Email.DATA); in addDataKindEmail()
352 kind.typeColumn = Email.TYPE; in addDataKindEmail()
354 kind.typeList.add(buildEmailType(Email.TYPE_HOME)); in addDataKindEmail()
355 kind.typeList.add(buildEmailType(Email.TYPE_WORK)); in addDataKindEmail()
356 kind.typeList.add(buildEmailType(Email.TYPE_OTHER)); in addDataKindEmail()
357 kind.typeList.add(buildEmailType(Email.TYPE_MOBILE)); in addDataKindEmail()
359 buildEmailType(Email.TYPE_CUSTOM).setSecondary(true).setCustomColumn(Email.LABEL)); in addDataKindEmail()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java22 import android.provider.ContactsContract.CommonDataKinds.Email;
169 values.put(Email.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testImEmailIntent()
170 values.put(Email.TYPE, Email.TYPE_HOME); in testImEmailIntent()
171 values.put(Email.DATA, TEST_ADDRESS); in testImEmailIntent()
172 values.put(Email.CHAT_CAPABILITY, Im.CAPABILITY_HAS_VOICE | Im.CAPABILITY_HAS_VIDEO | in testImEmailIntent()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java41 import android.provider.ContactsContract.CommonDataKinds.Email;
2543 values.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testEmailsQuery()
2544 values.put(Email.DATA, "meghan@acme.com"); in testEmailsQuery()
2545 values.put(Email.TYPE, Email.TYPE_HOME); in testEmailsQuery()
2546 values.putNull(Email.LABEL); in testEmailsQuery()
2554 assertStoredValues(Email.CONTENT_URI, values); in testEmailsQuery()
2555 assertStoredValues(ContentUris.withAppendedId(Email.CONTENT_URI, emailId), values); in testEmailsQuery()
2563 final Uri dedupeUri = Email.CONTENT_URI.buildUpon() in testEmailsQuery()
2568 assertStoredValues(ContentUris.withAppendedId(Email.CONTENT_URI, emailId), values); in testEmailsQuery()
2570 assertStoredValues(ContentUris.withAppendedId(Email.CONTENT_URI, emailId2), values2); in testEmailsQuery()
[all …]
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java37 import android.provider.ContactsContract.CommonDataKinds.Email;
182 builder.withValueBackReference(Email.RAW_CONTACT_ID, 0); in actuallyImportOneSimContact()
183 builder.withValue(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in actuallyImportOneSimContact()
184 builder.withValue(Email.TYPE, Email.TYPE_MOBILE); in actuallyImportOneSimContact()
185 builder.withValue(Email.DATA, emailAddress); in actuallyImportOneSimContact()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java32 import android.provider.ContactsContract.CommonDataKinds.Email;
179 new Intent(Intent.ACTION_PICK, Email.CONTENT_URI)); in onListItemClick()
633 row2.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in putDataExtra()
634 row2.put(Email.TYPE, Email.TYPE_CUSTOM); in putDataExtra()
635 row2.put(Email.LABEL, "Green Bot"); in putDataExtra()
636 row2.put(Email.ADDRESS, "android@android.com"); in putDataExtra()
/packages/apps/Contacts/src/com/android/contacts/activities/
DShowOrCreateActivity.java28 import android.provider.ContactsContract.CommonDataKinds.Email;
69 Email.CONTACT_ID,
70 Email.LOOKUP_KEY,
132 Uri uri = Uri.withAppendedPath(Email.CONTENT_FILTER_URI, Uri.encode(ssp)); in onCreate()
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DContactUtilTest.java99 ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE) in addTestContact()
100 .withValue(ContactsContract.CommonDataKinds.Email.DATA, email) in addTestContact()
101 .withValue(ContactsContract.CommonDataKinds.Email.TYPE, in addTestContact()
102 ContactsContract.CommonDataKinds.Email.TYPE_WORK) in addTestContact()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java24 import android.provider.ContactsContract.CommonDataKinds.Email;
104 ops.add(createInsertOp(rawContactOpIndex, Email.CONTENT_ITEM_TYPE, in appendCreateContactOperations()
105 Email.ADDRESS, email)); in appendCreateContactOperations()

123