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

1 2 3 4

  /packages/apps/ContactsCommon/src/com/android/contacts/common/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...]
  /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 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...]
VCardBuilderTest.java 39 values.put(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, "??");
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
NameConverterTests.java 19 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
36 Map<String, String> structuredName = new HashMap<String, String>();
37 structuredName.put(StructuredName.PREFIX, "Mr.");
38 structuredName.put(StructuredName.GIVEN_NAME, "John");
39 structuredName.put(StructuredName.MIDDLE_NAME, "Quincy");
40 structuredName.put(StructuredName.FAMILY_NAME, "Adams")
    [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);
78 if (values.containsKey(StructuredName.DISPLAY_NAME)) {
80 String name = augmented.getAsString(StructuredName.DISPLAY_NAME);
82 Integer fullNameStyle = augmented.getAsInteger(StructuredName.FULL_NAME_STYLE);
110 StructuredName.PREFIX, StructuredName.GIVEN_NAME, StructuredName.MIDDLE_NAME
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_IsSuperPrimaryName.java 26 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
76 TestData name1 = rawContact1.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
77 .with(StructuredName.GIVEN_NAME, "name1")
78 .with(StructuredName.IS_SUPER_PRIMARY, isFirstNamePrimary ? 1 : 0)
87 TestData name2 = rawContact2.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
88 .with(StructuredName.GIVEN_NAME, "name2")
89 .with(StructuredName.IS_SUPER_PRIMARY, !isFirstNamePrimary ? 1 : 0)
103 name1.assertColumn(StructuredName.IS_SUPER_PRIMARY, isFirstNamePrimary ? 1 : 0);
104 name2.assertColumn(StructuredName.IS_SUPER_PRIMARY, !isFirstNamePrimary ? 1 : 0);
117 values.put(StructuredName.IS_SUPER_PRIMARY, 1)
    [all...]
ContactsContract_StructuredPhoneticName.java 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
64 TestData name1 = rawContact1.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
65 .with(StructuredName.PHONETIC_FAMILY_NAME, "phonetic name")
70 // Verify: DISPLAY_NAME_SOURCE notices that the StructuredName only has phonetic components
79 assertEquals(Data.DATA11, StructuredName.PHONETIC_NAME_STYLE);
88 TestData name1 = rawContact1.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
89 .with(StructuredName.GIVEN_NAME, "name")
98 TestData name2 = rawContact2.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
99 .with(StructuredName.PHONETIC_FAMILY_NAME, "name phonetic")
125 TestData name2 = rawContact2.newDataRow(StructuredName.CONTENT_ITEM_TYPE
    [all...]
ContactsContract_ProviderStatus.java 24 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
63 rawContact1.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
64 .with(StructuredName.GIVEN_NAME, "first1")
65 .with(StructuredName.FAMILY_NAME, "last1")
ContactsContract_ContactCountsTest.java 28 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
121 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
122 .with(StructuredName.DISPLAY_NAME, "Apple Pie")
131 rawContact2.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
132 .with(StructuredName.DISPLAY_NAME, "Banana Split")
141 rawContact3.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
142 .with(StructuredName.DISPLAY_NAME, "Blackberry Shortcake")
151 rawContact4.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
152 .with(StructuredName.DISPLAY_NAME, "Cherry icecream")
161 rawContact5.newDataRow(StructuredName.CONTENT_ITEM_TYPE
    [all...]
ContactsContract_AggregationSuggestionsTest.java 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
165 rawContact1.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
166 .with(StructuredName.GIVEN_NAME, "first1")
167 .with(StructuredName.FAMILY_NAME, "last1")
175 rawContact2.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
176 .with(StructuredName.GIVEN_NAME, "first2")
177 .with(StructuredName.FAMILY_NAME, "last2")
185 rawContact3.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
186 .with(StructuredName.GIVEN_NAME, "completely")
187 .with(StructuredName.FAMILY_NAME, "different"
    [all...]
ContactsContract_RawContactsTest.java 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
99 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
100 .with(StructuredName.DISPLAY_NAME, "test name")
116 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
117 .with(StructuredName.DISPLAY_NAME, "test name")
230 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
231 .with(StructuredName.DISPLAY_NAME, "test name")
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
DataUtil.java 24 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
49 ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE);
84 values.put(StructuredName.DISPLAY_NAME, sb.toString());
85 values.put(StructuredName.GIVEN_NAME, givenName);
86 values.put(StructuredName.FAMILY_NAME, familyName);
90 values.put(StructuredName.PHONETIC_FAMILY_NAME, phoneticFamily);
105 values.put(StructuredName.PHONETIC_FAMILY_NAME, phoneticFamilyName);
  /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/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
PhonebookPullRequest.java 20 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
58 int familyNameIndex = c.getColumnIndex(StructuredName.FAMILY_NAME);
59 int givenNameIndex = c.getColumnIndex(StructuredName.GIVEN_NAME);
60 int middleNameIndex = c.getColumnIndex(StructuredName.MIDDLE_NAME);
61 int prefixIndex = c.getColumnIndex(StructuredName.PREFIX);
62 int suffixIndex = c.getColumnIndex(StructuredName.SUFFIX);
69 if (mimeType.equals(StructuredName.CONTENT_ITEM_TYPE)) {
139 .withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE)
140 .withValue(StructuredName.FAMILY_NAME , e.name.family)
141 .withValue(StructuredName.GIVEN_NAME , e.name.given
    [all...]
  /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);
SearchIndexManagerTest.java 24 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
56 values.put(StructuredName.DISPLAY_NAME, "Bob I. Parr");
59 values.put(StructuredName.PREFIX, "Mrs.");
60 values.put(StructuredName.GIVEN_NAME, "Helen");
61 values.put(StructuredName.MIDDLE_NAME, "I.");
62 values.put(StructuredName.FAMILY_NAME, "Parr");
63 values.put(StructuredName.SUFFIX, "PhD");
64 values.put(StructuredName.PHONETIC_FAMILY_NAME, "par");
65 values.put(StructuredName.PHONETIC_GIVEN_NAME, "helen");
77 values.put(StructuredName.DISPLAY_NAME, "Bob I. Parr")
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
NameConverter.java 25 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
43 StructuredName.PREFIX,
44 StructuredName.GIVEN_NAME,
45 StructuredName.MIDDLE_NAME,
46 StructuredName.FAMILY_NAME,
47 StructuredName.SUFFIX
51 * Converts the given structured name (provided as a map from {@link StructuredName} fields to
58 * @param structuredName The structured name map to convert.
62 Map<String, String> structuredName) {
65 if (structuredName.containsKey(key))
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
RawContactModifierTests.java 29 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
94 final DataKind nameKind = new DataKind(StructuredName.CONTENT_ITEM_TYPE,
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
ValuesDelta.java 510 put(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME, value);
514 put(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_MIDDLE_NAME, value);
518 put(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_GIVEN_NAME, value);
522 return getAsString(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME);
526 return getAsString(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_MIDDLE_NAME);
530 return getAsString(ContactsContract.CommonDataKinds.StructuredName.PHONETIC_GIVEN_NAME);
534 return getAsString(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME);
539 putNull(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME);
541 put(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, name);
546 copyStringFrom(name, ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME)
    [all...]
RawContactModifier.java 37 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
595 // StructuredName
596 RawContactModifier.ensureKindExists(state, accountType, StructuredName.CONTENT_ITEM_TYPE);
597 final ValuesDelta child = state.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE);
601 final DataKind kind = accountType.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE);
605 if (StructuredName.DISPLAY_NAME.equals(field.column)) {
613 child.put(StructuredName.DISPLAY_NAME, name);
617 .appendQueryParameter(StructuredName.DISPLAY_NAME, name)
621 StructuredName.PREFIX,
622 StructuredName.GIVEN_NAME
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
ExchangeAccountType.java 29 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
82 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE,
90 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix,
92 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME,
94 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME,
96 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME,
98 kind.fieldList.add(new EditField(StructuredName.SUFFIX,
101 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
103 kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
119 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix
    [all...]
  /packages/apps/EmergencyInfo/tests/src/com/android/emergency/
ContactTestUtils.java 24 import android.provider.ContactsContract.CommonDataKinds.StructuredName;
80 values.put(StructuredName.DISPLAY_NAME, name);
82 values.put(ContactsContract.Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);

Completed in 5645 milliseconds

1 2 3 4