HomeSort by relevance Sort by last modified time
    Searched refs:StructuredName (Results 1 - 25 of 48) sorted by null

1 2

  /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...]
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/
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...]
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...]
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 34 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/providers/ContactsProvider/src/com/android/providers/contacts/
DataRowHandlerForStructuredName.java 24 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
39 super(context, dbHelper, aggregator, StructuredName.CONTENT_ITEM_TYPE);
51 String name = values.getAsString(StructuredName.DISPLAY_NAME);
52 Integer fullNameStyle = values.getAsInteger(StructuredName.FULL_NAME_STYLE);
77 if (values.containsKey(StructuredName.DISPLAY_NAME) ||
78 values.containsKey(StructuredName.PHONETIC_FAMILY_NAME) ||
79 values.containsKey(StructuredName.PHONETIC_MIDDLE_NAME) ||
80 values.containsKey(StructuredName.PHONETIC_GIVEN_NAME)) {
82 String name = augmented.getAsString(StructuredName.DISPLAY_NAME);
84 Integer fullNameStyle = augmented.getAsInteger(StructuredName.FULL_NAME_STYLE)
    [all...]
NameSplitter.java 21 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
150 prefix = values.getAsString(StructuredName.PREFIX);
151 givenNames = values.getAsString(StructuredName.GIVEN_NAME);
152 middleName = values.getAsString(StructuredName.MIDDLE_NAME);
153 familyName = values.getAsString(StructuredName.FAMILY_NAME);
154 suffix = values.getAsString(StructuredName.SUFFIX);
156 Integer integer = values.getAsInteger(StructuredName.FULL_NAME_STYLE);
159 phoneticFamilyName = values.getAsString(StructuredName.PHONETIC_FAMILY_NAME);
160 phoneticMiddleName = values.getAsString(StructuredName.PHONETIC_MIDDLE_NAME);
161 phoneticGivenName = values.getAsString(StructuredName.PHONETIC_GIVEN_NAME)
    [all...]
LegacyContactImporter.java 45 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
173 mStructuredNameMimetypeId = mDbHelper.getMimeTypeId(StructuredName.CONTENT_ITEM_TYPE);
448 StructuredName.DISPLAY_NAME + "," +
449 StructuredName.PREFIX + "," +
450 StructuredName.GIVEN_NAME + "," +
451 StructuredName.MIDDLE_NAME + "," +
452 StructuredName.FAMILY_NAME + "," +
453 StructuredName.SUFFIX + "," +
454 StructuredName.FULL_NAME_STYLE + "," +
455 StructuredName.PHONETIC_FAMILY_NAME + ","
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
PhoneticNameEditorView.java 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
65 mValues.put(StructuredName.PHONETIC_FAMILY_NAME,
66 values.getAsString(StructuredName.PHONETIC_FAMILY_NAME));
67 mValues.put(StructuredName.PHONETIC_MIDDLE_NAME,
68 values.getAsString(StructuredName.PHONETIC_MIDDLE_NAME));
69 mValues.put(StructuredName.PHONETIC_GIVEN_NAME,
70 values.getAsString(StructuredName.PHONETIC_GIVEN_NAME));
74 String family = mValues.getAsString(StructuredName.PHONETIC_FAMILY_NAME);
75 String middle = mValues.getAsString(StructuredName.PHONETIC_MIDDLE_NAME);
76 String given = mValues.getAsString(StructuredName.PHONETIC_GIVEN_NAME)
    [all...]
StructuredNameEditorView.java 29 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
117 String displayName = values.getAsString(StructuredName.DISPLAY_NAME);
129 mSnapshot.put(StructuredName.DISPLAY_NAME, displayName);
136 values.put(StructuredName.DISPLAY_NAME,
137 mSnapshot.getAsString(StructuredName.DISPLAY_NAME));
146 values.put(StructuredName.DISPLAY_NAME, displayName);
150 mSnapshot.put(StructuredName.DISPLAY_NAME, values.getAsString(StructuredName.DISPLAY_NAME));
165 values.putNull(StructuredName.DISPLAY_NAME);
172 values.put(StructuredName.DISPLAY_NAME, displayName)
    [all...]
AggregationSuggestionEngine.java 35 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/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...]
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_DataTest.java 29 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
70 TestData data = rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
71 .with(StructuredName.DISPLAY_NAME, "test name")
94 TestData data = rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
95 .with(StructuredName.DISPLAY_NAME, "test name")
ContactsContract_RawContactsTest.java 28 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
68 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
69 .with(StructuredName.DISPLAY_NAME, "test name")
92 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
93 .with(StructuredName.DISPLAY_NAME, "test name")
  /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...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
SearchIndexManagerTest.java 24 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
52 values.put(StructuredName.DISPLAY_NAME, "Bob I. Parr");
55 values.put(StructuredName.PREFIX, "Mrs.");
56 values.put(StructuredName.GIVEN_NAME, "Helen");
57 values.put(StructuredName.MIDDLE_NAME, "I.");
58 values.put(StructuredName.FAMILY_NAME, "Parr");
59 values.put(StructuredName.SUFFIX, "PhD");
60 values.put(StructuredName.PHONETIC_FAMILY_NAME, "par");
61 values.put(StructuredName.PHONETIC_GIVEN_NAME, "helen");
77 values.put(StructuredName.DISPLAY_NAME, "\u695A\u8FAD"); // CHUC
    [all...]
ContactAggregatorTest.java 32 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...]
  /packages/apps/Contacts/tests/src/com/android/contacts/
EntityModifierTests.java 51 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
92 final DataKind nameKind = new DataKind(StructuredName.CONTENT_ITEM_TYPE,
715 first.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
716 first.put(StructuredName.GIVEN_NAME, TEST_NAME);
724 final int nameCount = state.getMimeEntriesCount(StructuredName.CONTENT_ITEM_TYPE, true);
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/model/
ExchangeAccountType.java 33 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
66 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE,
74 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix,
76 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME,
78 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME,
80 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME,
82 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,
103 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix
    [all...]
BaseAccountType.java 38 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
97 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE,
103 kind.fieldList.add(new EditField(StructuredName.DISPLAY_NAME,
105 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix,
107 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family,
109 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle,
111 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given,
113 kind.fieldList.add(new EditField(StructuredName.SUFFIX, R.string.name_suffix,
115 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
117 kind.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME
    [all...]
EntityModifier.java 47 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
590 // StructuredName
591 EntityModifier.ensureKindExists(state, accountType, StructuredName.CONTENT_ITEM_TYPE);
592 final ValuesDelta child = state.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE);
596 final DataKind kind = accountType.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE);
600 if (StructuredName.DISPLAY_NAME.equals(field.column)) {
608 child.put(StructuredName.DISPLAY_NAME, name);
612 .appendQueryParameter(StructuredName.DISPLAY_NAME, name)
616 StructuredName.PREFIX,
617 StructuredName.GIVEN_NAME
    [all...]
  /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...]
  /frameworks/opt/vcard/java/com/android/vcard/
VCardBuilder.java 31 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
54 * builder.appendNameProperties(contentValuesListMap.get(StructuredName.CONTENT_ITEM_TYPE))
240 final String familyName = contentValues.getAsString(StructuredName.FAMILY_NAME);
241 final String middleName = contentValues.getAsString(StructuredName.MIDDLE_NAME);
242 final String givenName = contentValues.getAsString(StructuredName.GIVEN_NAME);
243 final String prefix = contentValues.getAsString(StructuredName.PREFIX);
244 final String suffix = contentValues.getAsString(StructuredName.SUFFIX);
246 contentValues.getAsString(StructuredName.PHONETIC_FAMILY_NAME);
248 contentValues.getAsString(StructuredName.PHONETIC_MIDDLE_NAME);
250 contentValues.getAsString(StructuredName.PHONETIC_GIVEN_NAME)
    [all...]
  /packages/apps/Exchange/src/com/android/exchange/adapter/
ContactsSyncAdapter.java 49 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
    [all...]

Completed in 240 milliseconds

1 2