/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
NameConverterTests.java | 19 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 34 Map<String, String> structuredName = new HashMap<String, String>(); 35 structuredName.put(StructuredName.PREFIX, "Mr."); 36 structuredName.put(StructuredName.GIVEN_NAME, "John"); 37 structuredName.put(StructuredName.MIDDLE_NAME, "Quincy"); 38 structuredName.put(StructuredName.FAMILY_NAME, "Adams") [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
StructuredNameDataItem.java | 21 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 26 * {@link ContactsContract.CommonDataKinds.StructuredName}. 32 getContentValues().put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); 40 return getContentValues().getAsString(StructuredName.DISPLAY_NAME); 44 getContentValues().put(StructuredName.DISPLAY_NAME, name); 48 return getContentValues().getAsString(StructuredName.GIVEN_NAME); 52 return getContentValues().getAsString(StructuredName.FAMILY_NAME); 56 return getContentValues().getAsString(StructuredName.PREFIX); 60 return getContentValues().getAsString(StructuredName.MIDDLE_NAME); 64 return getContentValues().getAsString(StructuredName.SUFFIX) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForStructuredName.java | 22 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 41 super(context, dbHelper, aggregator, StructuredName.CONTENT_ITEM_TYPE); 53 String name = values.getAsString(StructuredName.DISPLAY_NAME); 54 Integer fullNameStyle = values.getAsInteger(StructuredName.FULL_NAME_STYLE); 79 if (values.containsKey(StructuredName.DISPLAY_NAME) || 80 values.containsKey(StructuredName.PHONETIC_FAMILY_NAME) || 81 values.containsKey(StructuredName.PHONETIC_MIDDLE_NAME) || 82 values.containsKey(StructuredName.PHONETIC_GIVEN_NAME)) { 84 String name = augmented.getAsString(StructuredName.DISPLAY_NAME); 86 Integer fullNameStyle = augmented.getAsInteger(StructuredName.FULL_NAME_STYLE) [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardExporterTests.java | 36 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 53 mVerifier.addInputEntry().addContentValues(StructuredName.CONTENT_ITEM_TYPE) 54 .put(StructuredName.FAMILY_NAME, "Ando") 55 .put(StructuredName.GIVEN_NAME, "Roid"); 64 mVerifier.addInputEntry().addContentValues(StructuredName.CONTENT_ITEM_TYPE) 65 .put(StructuredName.FAMILY_NAME, "AppropriateFamilyName") 66 .put(StructuredName.GIVEN_NAME, "AppropriateGivenName") 67 .put(StructuredName.MIDDLE_NAME, "AppropriateMiddleName") 68 .put(StructuredName.PREFIX, "AppropriatePrefix") 69 .put(StructuredName.SUFFIX, "AppropriateSuffix" [all...] |
VCardTestUtilsTests.java | 18 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 60 .addExpected(StructuredName.CONTENT_ITEM_TYPE) 61 .put(StructuredName.GIVEN_NAME, "A;B\\") 62 .put(StructuredName.MIDDLE_NAME, "C\\;") 63 .put(StructuredName.PREFIX, "D") 64 .put(StructuredName.SUFFIX, ":E"); 80 verifier.addInputEntry().addContentValues(StructuredName.CONTENT_ITEM_TYPE) 81 .put(StructuredName.FAMILY_NAME, "\\") 82 .put(StructuredName.GIVEN_NAME, ";") 83 .put(StructuredName.MIDDLE_NAME, "," [all...] |
VCardJapanizationTests.java | 22 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 38 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) 39 .put(StructuredName.FAMILY_NAME, "\u3075\u308B\u3069") 40 .put(StructuredName.GIVEN_NAME, "\u3091\u308A\u304B") 41 .put(StructuredName.MIDDLE_NAME, "B") 42 .put(StructuredName.PREFIX, "Dr.") 43 .put(StructuredName.SUFFIX, "Ph.D"); 66 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) 67 .put(StructuredName.FAMILY_NAME, "\u3075\u308B\u3069") 68 .put(StructuredName.GIVEN_NAME, "\u3091\u308A\u304B" [all...] |
VCardImporterTests.java | 28 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 420 .addExpected(StructuredName.CONTENT_ITEM_TYPE) 421 .put(StructuredName.FAMILY_NAME, "Ando") 422 .put(StructuredName.GIVEN_NAME, "Roid") 423 .put(StructuredName.DISPLAY_NAME, "Roid Ando"); 429 .addExpected(StructuredName.CONTENT_ITEM_TYPE) 430 .put(StructuredName.FAMILY_NAME, "Ando") 431 .put(StructuredName.GIVEN_NAME, "Roid") 435 .put(StructuredName.DISPLAY_NAME, "Roid Ando"); 441 .addExpected(StructuredName.CONTENT_ITEM_TYPE [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
NameConverter.java | 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 41 StructuredName.PREFIX, 42 StructuredName.GIVEN_NAME, 43 StructuredName.MIDDLE_NAME, 44 StructuredName.FAMILY_NAME, 45 StructuredName.SUFFIX 49 * Converts the given structured name (provided as a map from {@link StructuredName} fields to 56 * @param structuredName The structured name map to convert. 60 Map<String, String> structuredName) { 63 if (structuredName.containsKey(key)) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
DataUtil.java | 46 values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); 64 values.put(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, sb.toString()); 65 values.put(ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME, givenName); 66 values.put(ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME, familyName);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ExchangeSource.java | 31 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 74 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, 77 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, 79 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, 81 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, 83 kind.fieldList.add(new EditField(StructuredName.SUFFIX, 85 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME, 87 kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME, 90 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, 92 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME [all...] |
FallbackSource.java | 35 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 106 DataKind kind = getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE); 108 kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, 117 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, 120 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family, 122 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle, 124 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given, 126 kind.fieldList.add(new EditField(StructuredName.SUFFIX, R.string.name_suffix, 128 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME, 130 kind.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
ValuesDelta.java | 486 put(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME, value); 490 put(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_MIDDLE_NAME, value); 494 put(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_GIVEN_NAME, value); 498 return getAsString(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME); 502 return getAsString(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_MIDDLE_NAME); 506 return getAsString(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_GIVEN_NAME); 510 return getAsString(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME); 515 putNull(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME); 517 put(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, name); 522 copyStringFrom(name, ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
RawContactModifierTests.java | 33 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 93 final DataKind nameKind = new DataKind(StructuredName.CONTENT_ITEM_TYPE, 713 first.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
ExchangeAccountType.java | 29 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 80 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, 88 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, 90 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, 92 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, 94 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, 96 kind.fieldList.add(new EditField(StructuredName.SUFFIX, 99 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME, 101 kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME, 117 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix [all...] |
BaseAccountType.java | 34 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 150 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, 157 kind.fieldList.add(new EditField(StructuredName.DISPLAY_NAME, 159 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, 161 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family, 163 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle, 165 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given, 167 kind.fieldList.add(new EditField(StructuredName.SUFFIX, R.string.name_suffix, 169 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME, 171 kind.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME [all...] |
/packages/apps/ContactsCommon/tests/res/xml/ |
test_basic_contacts.xml | 42 StructuredName.DISPLAY_NAME if supportsDisplayName == true 43 StructuredName.PREFIX if supportsPrefix == true 44 StructuredName.FAMILY_NAME (always) 45 StructuredName.MIDDLE_NAME if supportsPrefix == true 46 StructuredName.GIVEN_NAME (always) 47 StructuredName.SUFFIX if supportsSuffix == true 48 StructuredName.PHONETIC_FAMILY_NAME if supportsPhoneticFamilyName == true 49 StructuredName.PHONETIC_MIDDLE_NAME if supportsPhoneticMiddleName == true 50 StructuredName.PHONETIC_GIVEN_NAME if supportsPhoneticGivenName == true
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsProvider2TransactionTest.java | 26 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 187 b.withValue(StructuredName.DISPLAY_NAME, "Regular Contact"); 188 b.withValue(StructuredName.GIVEN_NAME, "Regular"); 189 b.withValue(StructuredName.FAMILY_NAME, "Contact"); 190 b.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); 216 b.withValue(StructuredName.DISPLAY_NAME, "Profile Contact"); 217 b.withValue(StructuredName.GIVEN_NAME, "Profile"); 218 b.withValue(StructuredName.FAMILY_NAME, "Contact"); 219 b.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EditorUiUtils.java | 22 import static android.provider.ContactsContract.CommonDataKinds.StructuredName; 59 mimetypeLayoutMap.put(StructuredName.CONTENT_ITEM_TYPE, 69 * @param mimetype The mime type (e.g. StructuredName.CONTENT_ITEM_TYPE)
|
AggregationSuggestionEngine.java | 32 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 202 appendValue(nameSb, values, StructuredName.PREFIX); 203 appendValue(nameSb, values, StructuredName.GIVEN_NAME); 204 appendValue(nameSb, values, StructuredName.MIDDLE_NAME); 205 appendValue(nameSb, values, StructuredName.FAMILY_NAME); 206 appendValue(nameSb, values, StructuredName.SUFFIX); 209 appendValue(nameSb, values, StructuredName.DISPLAY_NAME); 213 appendValue(phoneticNameSb, values, StructuredName.PHONETIC_FAMILY_NAME); 214 appendValue(phoneticNameSb, values, StructuredName.PHONETIC_MIDDLE_NAME); 215 appendValue(phoneticNameSb, values, StructuredName.PHONETIC_GIVEN_NAME) [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
RawContactModifier.java | 37 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 605 // StructuredName 606 RawContactModifier.ensureKindExists(state, accountType, StructuredName.CONTENT_ITEM_TYPE); 607 final ValuesDelta child = state.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE); 611 final DataKind kind = accountType.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE); 615 if (StructuredName.DISPLAY_NAME.equals(field.column)) { 623 child.put(StructuredName.DISPLAY_NAME, name); 627 .appendQueryParameter(StructuredName.DISPLAY_NAME, name) 631 StructuredName.PREFIX, 632 StructuredName.GIVEN_NAME [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactOperations.java | 31 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 136 mValues.put(StructuredName.DISPLAY_NAME, fullName); 137 mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); 140 mValues.put(StructuredName.GIVEN_NAME, firstName); 141 mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); 144 mValues.put(StructuredName.FAMILY_NAME, lastName); 145 mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_RawContactsTest.java | 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 65 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 66 .with(StructuredName.DISPLAY_NAME, "test name") 82 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 83 .with(StructuredName.DISPLAY_NAME, "test name")
|
ContactsContract_DataTest.java | 33 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 76 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 77 .with(CommonDataKinds.StructuredName.DISPLAY_NAME, "test name") 93 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 94 .with(CommonDataKinds.StructuredName.DISPLAY_NAME, "test name") 265 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 266 .with(StructuredName.DISPLAY_NAME, "Hot Tamale") 285 rawContact2.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 286 .with(StructuredName.DISPLAY_NAME, "Cold Tamago") 297 rawContact3.newDataRow(StructuredName.CONTENT_ITEM_TYPE [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
ContactAggregatorTest.java | 29 import android.provider.ContactsContract.CommonDataKinds.StructuredName; 248 values.put(StructuredName.DISPLAY_NAME, "604 Arizona Ave"); 249 values.put(StructuredName.GIVEN_NAME, "604"); 250 values.put(StructuredName.MIDDLE_NAME, "Arizona"); 251 values.put(StructuredName.FAMILY_NAME, "Ave"); 256 values.put(StructuredName.DISPLAY_NAME, "604 Arizona Ave"); 257 values.put(StructuredName.GIVEN_NAME, "604"); 258 values.put(StructuredName.FAMILY_NAME, "Arizona Ave"); 267 values.put(StructuredName.GIVEN_NAME, "John"); 268 values.put(StructuredName.GIVEN_NAME, "Abigale") [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
DataUtil.java | 44 CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); 45 values.put(CommonDataKinds.StructuredName.DISPLAY_NAME, name);
|