Lines Matching refs:type

312         public PhoneData(String data, int type, String label, boolean isPrimary) {
314 mType = type;
369 return String.format("type: %d, data: %s, label: %s, isPrimary: %s", mType, mNumber,
402 public EmailData(String data, int type, String label, boolean isPrimary) {
403 mType = type;
459 return String.format("type: %d, data: %s, label: %s, isPrimary: %s", mType, mAddress,
505 String region, String postalCode, String country, int type, String label,
507 mType = type;
524 final int type, final String label, boolean isPrimary, int vcardType) {
549 dataArray[4], dataArray[5], dataArray[6], type, label, isPrimary, vcardType);
678 return String.format("type: %d, label: %s, isPrimary: %s, pobox: %s, "
742 final String titleName, final String phoneticName, int type,
744 mType = type;
836 "type: %d, organization: %s, department: %s, title: %s, isPrimary: %s", mType,
878 final int type, final boolean isPrimary) {
881 mType = type;
939 "type: %d, protocol: %d, custom_protcol: %s, data: %s, isPrimary: %s", mType,
976 // used when type is not defined in ContactsContract.
1189 // There's no information about the type of URL in vCard.
1353 public SipData(String rawSip, int type, String label, boolean isPrimary) {
1359 mType = type;
1765 private void addPhone(int type, String data, String label, boolean isPrimary) {
1772 if (type == Phone.TYPE_PAGER || VCardConfig.refrainPhoneNumberFormatting(mVCardType)) {
1802 PhoneData phoneData = new PhoneData(formattedNumber, type, label, isPrimary);
1806 private void addSip(String sipData, int type, String label, boolean isPrimary) {
1810 mSipList.add(new SipData(sipData, type, label, isPrimary));
1820 private void addEmail(int type, String data, String label, boolean isPrimary) {
1824 mEmailList.add(new EmailData(data, type, label, isPrimary));
1827 private void addPostal(int type, List<String> propValueList, String label, boolean isPrimary) {
1831 mPostalList.add(PostalData.constructPostalData(propValueList, type, label, isPrimary,
1840 final String titleName, final String phoneticName, int type, final boolean isPrimary) {
1845 phoneticName, type, isPrimary));
1878 private void handleOrgValue(final int type, List<String> orgList,
1915 addNewOrganization(organizationName, departmentName, null, phoneticName, type,
1934 addNewOrganization(organizationName, departmentName, null, phoneticName, type, isPrimary);
1962 private void addIm(int protocol, String customProtocol, String propValue, int type,
1967 mImList.add(new ImData(protocol, customProtocol, propValue, type, isPrimary));
2059 * vCard 2.1 does not have "SORT-STRING" type. Also, in some cases, the
2181 int type = -1;
2191 type = StructuredPostal.TYPE_HOME;
2199 type = StructuredPostal.TYPE_WORK;
2205 } else if (type < 0) { // If no other type is specified before.
2206 type = StructuredPostal.TYPE_CUSTOM;
2216 if (type < 0) {
2217 type = StructuredPostal.TYPE_HOME;
2220 addPostal(type, propertyValueList, label, isPrimary);
2222 int type = -1;
2232 type = Email.TYPE_HOME;
2234 type = Email.TYPE_WORK;
2236 type = Email.TYPE_MOBILE;
2237 } else if (type < 0) { // If no other type is specified before
2243 type = Email.TYPE_CUSTOM;
2247 if (type < 0) {
2248 type = Email.TYPE_OTHER;
2250 addEmail(type, propValue, label, isPrimary);
2253 final int type = Organization.TYPE_WORK;
2263 handleOrgValue(type, propertyValueList, paramMap, isPrimary);
2320 final int type;
2323 type = (Integer) typeObject;
2326 type = Phone.TYPE_CUSTOM;
2338 addPhone(type, phoneNumber, label, isPrimary);
2343 final int type = Phone.TYPE_OTHER;
2351 addPhone(type, propValue, null, isPrimary);
2355 int type = -1;
2361 } else if (type < 0) {
2363 type = Im.TYPE_HOME;
2365 type = Im.TYPE_WORK;
2370 if (type < 0) {
2371 type = Im.TYPE_HOME;
2373 addIm(protocol, null, propValue, type, isPrimary);
2426 int type = -1;
2435 type = SipAddress.TYPE_HOME;
2437 type = SipAddress.TYPE_WORK;
2438 } else if (type < 0) { // If no other type is specified before
2444 type = SipAddress.TYPE_CUSTOM;
2448 if (type < 0) {
2449 type = SipAddress.TYPE_OTHER;
2451 addSip(propValue, type, label, isPrimary);
2552 builder.withValue(RawContacts.ACCOUNT_TYPE, mAccount.type);
2579 for (String type : list) {
2580 builder.append(type);