/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_CommonDataKinds_StructuredPostalTest.java | 20 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 34 assertGetTypeLabel(StructuredPostal.TYPE_HOME); 35 assertGetTypeLabel(StructuredPostal.TYPE_OTHER); 36 assertGetTypeLabel(StructuredPostal.TYPE_WORK); 37 assertGetTypeLabel(StructuredPostal.TYPE_CUSTOM); 42 int res = StructuredPostal.getTypeLabelResource(type); 46 assertEquals(label, StructuredPostal.getTypeLabel(mResources, type, "")); 50 int res = StructuredPostal.getTypeLabelResource(StructuredPostal.TYPE_CUSTOM); 52 assertEquals(label, StructuredPostal.getTypeLabel(mResources [all...] |
ContactsContract_SearchSnippetsTest.java | 29 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 369 rawContact3.newDataRow(StructuredPostal.CONTENT_ITEM_TYPE) 370 .with(StructuredPostal.DATA, "123 Main Street Unit 3113") 371 .with(StructuredPostal.TYPE, StructuredPostal.TYPE_HOME)
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
StructuredPostalDataItem.java | 21 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 25 * {@link ContactsContract.CommonDataKinds.StructuredPostal}. 34 return getContentValues().getAsString(StructuredPostal.FORMATTED_ADDRESS); 38 return getContentValues().getAsString(StructuredPostal.LABEL); 42 return getContentValues().getAsString(StructuredPostal.STREET); 46 return getContentValues().getAsString(StructuredPostal.POBOX); 50 return getContentValues().getAsString(StructuredPostal.NEIGHBORHOOD); 54 return getContentValues().getAsString(StructuredPostal.CITY); 58 return getContentValues().getAsString(StructuredPostal.REGION); 62 return getContentValues().getAsString(StructuredPostal.POSTCODE) [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
StructuredPostalDataItem.java | 21 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 25 * ContactsContract.CommonDataKinds.StructuredPostal}. 34 return getContentValues().getAsString(StructuredPostal.FORMATTED_ADDRESS); 38 return getContentValues().getAsString(StructuredPostal.LABEL); 42 return getContentValues().getAsString(StructuredPostal.STREET); 46 return getContentValues().getAsString(StructuredPostal.POBOX); 50 return getContentValues().getAsString(StructuredPostal.NEIGHBORHOOD); 54 return getContentValues().getAsString(StructuredPostal.CITY); 58 return getContentValues().getAsString(StructuredPostal.REGION); 62 return getContentValues().getAsString(StructuredPostal.POSTCODE) [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardJapanizationTests.java | 23 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 207 entry.addContentValues(StructuredPostal.CONTENT_ITEM_TYPE) 208 .put(StructuredPostal.POBOX, "\u79C1\u66F8\u7BB107") 209 .put(StructuredPostal.STREET, "\u96DB\u898B\u6CA2\u6751") 210 .put(StructuredPostal.CITY, "\u9E7F\u9AA8\u5E02") 211 .put(StructuredPostal.REGION, "\u00D7\u00D7\u770C") 212 .put(StructuredPostal.POSTCODE, "494-1313") 213 .put(StructuredPostal.COUNTRY, "\u65E5\u672C") 214 .put(StructuredPostal.FORMATTED_ADDRESS, 217 .put(StructuredPostal.TYPE, StructuredPostal.TYPE_CUSTOM [all...] |
VCardExporterTests.java | 37 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForStructuredPostal.java | 22 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 37 StructuredPostal.STREET, 38 StructuredPostal.POBOX, 39 StructuredPostal.NEIGHBORHOOD, 40 StructuredPostal.CITY, 41 StructuredPostal.REGION, 42 StructuredPostal.POSTCODE, 43 StructuredPostal.COUNTRY, 50 super(context, dbHelper, aggregator, StructuredPostal.CONTENT_ITEM_TYPE); 76 * Prepares the given {@link StructuredPostal} row, buildin [all...] |
PostalSplitter.java | 19 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 25 * Split and join {@link StructuredPostal} fields. 42 street = values.getAsString(StructuredPostal.STREET); 43 pobox = values.getAsString(StructuredPostal.POBOX); 44 neighborhood = values.getAsString(StructuredPostal.NEIGHBORHOOD); 45 city = values.getAsString(StructuredPostal.CITY); 46 region = values.getAsString(StructuredPostal.REGION); 47 postcode = values.getAsString(StructuredPostal.POSTCODE); 48 country = values.getAsString(StructuredPostal.COUNTRY); 52 values.put(StructuredPostal.STREET, street) [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
PostalAddressListAdapter.java | 25 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 34 * A cursor adapter for the {@link StructuredPostal#CONTENT_TYPE} content type. 40 StructuredPostal._ID, // 0 41 StructuredPostal.TYPE, // 1 42 StructuredPostal.LABEL, // 2 43 StructuredPostal.DATA, // 3 44 StructuredPostal.PHOTO_ID, // 4 45 StructuredPostal.LOOKUP_KEY, // 5 46 StructuredPostal.DISPLAY_NAME_PRIMARY, // 6 50 StructuredPostal._ID, // [all...] |
LegacyPostalAddressListAdapter.java | 25 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 107 label = StructuredPostal.getTypeLabel(getContext().getResources(), type, customLabel);
|
/packages/apps/Contacts/src/com/android/contacts/ |
TypePrecedence.java | 24 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 62 StructuredPostal.TYPE_CUSTOM, 63 StructuredPostal.TYPE_HOME, 64 StructuredPostal.TYPE_WORK, 65 StructuredPostal.TYPE_OTHER}; 106 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) {
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
TypePrecedence.java | 25 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 54 StructuredPostal.TYPE_CUSTOM, 55 StructuredPostal.TYPE_HOME, 56 StructuredPostal.TYPE_WORK, 57 StructuredPostal.TYPE_OTHER}; 100 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) {
|
FallbackSource.java | 36 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 94 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); 250 DataKind kind = getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE); 252 kind = addKind(new DataKind(StructuredPostal.CONTENT_ITEM_TYPE, 255 kind.actionBody = new SimpleInflater(StructuredPostal.FORMATTED_ADDRESS); 261 kind.typeColumn = StructuredPostal.TYPE; 263 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME)); 264 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK)); 265 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER)); 266 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_CUSTOM).setSecondary(true [all...] |
ExchangeSource.java | 32 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 176 kind.typeColumn = StructuredPostal.TYPE; 178 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK).setSpecificMax(1)); 179 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME).setSpecificMax(1)); 180 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER).setSpecificMax(1)); 184 kind.fieldList.add(new EditField(StructuredPostal.COUNTRY, 186 kind.fieldList.add(new EditField(StructuredPostal.POSTCODE, 188 kind.fieldList.add(new EditField(StructuredPostal.REGION, 190 kind.fieldList.add(new EditField(StructuredPostal.CITY, 192 kind.fieldList.add(new EditField(StructuredPostal.STREET [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
ExchangeAccountType.java | 30 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 190 kind.typeColumn = StructuredPostal.TYPE; 192 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK).setSpecificMax(1)); 193 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME).setSpecificMax(1)); 194 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER).setSpecificMax(1)); 198 kind.fieldList.add(new EditField(StructuredPostal.COUNTRY, 200 kind.fieldList.add(new EditField(StructuredPostal.POSTCODE, 202 kind.fieldList.add(new EditField(StructuredPostal.REGION, 204 kind.fieldList.add(new EditField(StructuredPostal.CITY, 206 kind.fieldList.add(new EditField(StructuredPostal.STREET [all...] |
SamsungAccountType.java | 25 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 94 kind.typeColumn = StructuredPostal.TYPE; 96 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK).setSpecificMax(1)); 97 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME).setSpecificMax(1)); 98 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER).setSpecificMax(1)); 102 kind.fieldList.add(new EditField(StructuredPostal.COUNTRY, 104 kind.fieldList.add(new EditField(StructuredPostal.POSTCODE, 106 kind.fieldList.add(new EditField(StructuredPostal.REGION, 108 kind.fieldList.add(new EditField(StructuredPostal.CITY, 110 kind.fieldList.add(new EditField(StructuredPostal.STREET [all...] |
BaseAccountType.java | 35 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 136 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); 308 DataKind kind = addKind(new DataKind(StructuredPostal.CONTENT_ITEM_TYPE, 311 kind.actionBody = new SimpleInflater(StructuredPostal.FORMATTED_ADDRESS); 312 kind.typeColumn = StructuredPostal.TYPE; 314 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME)); 315 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK)); 316 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER)); 317 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_CUSTOM).setSecondary(true) 318 .setCustomColumn(StructuredPostal.LABEL)) [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/account/ |
SamsungAccountType.java | 25 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 91 kind.typeColumn = StructuredPostal.TYPE; 93 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK).setSpecificMax(1)); 94 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME).setSpecificMax(1)); 95 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER).setSpecificMax(1)); 100 new EditField(StructuredPostal.COUNTRY, R.string.postal_country, FLAGS_POSTAL) 103 new EditField(StructuredPostal.POSTCODE, R.string.postal_postcode, FLAGS_POSTAL)); 105 new EditField(StructuredPostal.REGION, R.string.postal_region, FLAGS_POSTAL)); 106 kind.fieldList.add(new EditField(StructuredPostal.CITY, R.string.postal_city, FLAGS_POSTAL)); 108 new EditField(StructuredPostal.STREET, R.string.postal_street, FLAGS_POSTAL)) [all...] |
ExchangeAccountType.java | 30 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 236 kind.typeColumn = StructuredPostal.TYPE; 238 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK).setSpecificMax(1)); 239 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME).setSpecificMax(1)); 240 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER).setSpecificMax(1)); 245 new EditField(StructuredPostal.COUNTRY, R.string.postal_country, FLAGS_POSTAL) 248 new EditField(StructuredPostal.POSTCODE, R.string.postal_postcode, FLAGS_POSTAL)); 250 new EditField(StructuredPostal.REGION, R.string.postal_region, FLAGS_POSTAL)); 251 kind.fieldList.add(new EditField(StructuredPostal.CITY, R.string.postal_city, FLAGS_POSTAL)); 253 new EditField(StructuredPostal.STREET, R.string.postal_street, FLAGS_POSTAL)) [all...] |
BaseAccountType.java | 35 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 131 return new EditType(type, StructuredPostal.getTypeLabelResource(type)); 371 StructuredPostal.CONTENT_ITEM_TYPE, 376 kind.actionBody = new SimpleInflater(StructuredPostal.FORMATTED_ADDRESS); 377 kind.typeColumn = StructuredPostal.TYPE; 379 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME)); 380 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK)); 381 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER)); 383 buildPostalType(StructuredPostal.TYPE_CUSTOM) 385 .setCustomColumn(StructuredPostal.LABEL)) [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
RawContactModifier.java | 38 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 653 // StructuredPostal 654 final DataKind kind = accountType.getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE); 656 Insert.POSTAL, StructuredPostal.FORMATTED_ADDRESS); 658 : child.getAsString(StructuredPostal.FORMATTED_ADDRESS); 663 if (StructuredPostal.FORMATTED_ADDRESS.equals(field.column)) { 671 child.put(StructuredPostal.STREET, address); 672 child.putNull(StructuredPostal.FORMATTED_ADDRESS); [all...] |
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactDetailFragment.java | 30 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 427 * {@link android.provider.ContactsContract.CommonDataKinds.StructuredPostal#TYPE} 429 * {@link android.provider.ContactsContract.CommonDataKinds.StructuredPostal#LABEL} 431 * {@link android.provider.ContactsContract.CommonDataKinds.StructuredPostal#FORMATTED_ADDRESS} 460 StructuredPostal.getTypeLabel(getResources(), addressType, addressTypeLabel); 670 StructuredPostal._ID, 671 StructuredPostal.FORMATTED_ADDRESS, 672 StructuredPostal.TYPE, 673 StructuredPostal.LABEL, 677 // StructuredPostal content mime type [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 38 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; 65 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { 66 colType = cursor.getColumnIndex(StructuredPostal.TYPE); 67 colLabel = cursor.getColumnIndex(StructuredPostal.LABEL); 96 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimetype)) { 97 defaultType = StructuredPostal.TYPE_HOME; 98 customType = StructuredPostal.TYPE_CUSTOM;
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
EventLocationAdapter.java | 100 CommonDataKinds.StructuredPostal._ID, 102 CommonDataKinds.StructuredPostal.FORMATTED_ADDRESS, 114 .append(CommonDataKinds.StructuredPostal.FORMATTED_ADDRESS) 116 .append(CommonDataKinds.StructuredPostal.FORMATTED_ADDRESS) 368 Cursor c = resolver.query(CommonDataKinds.StructuredPostal.CONTENT_URI,
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
RawContactModifierTests.java | 28 import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; [all...] |