Lines Matching refs:Tags
93 private static final int[] HOME_ADDRESS_TAGS = new int[] {Tags.CONTACTS_HOME_ADDRESS_CITY,
94 Tags.CONTACTS_HOME_ADDRESS_COUNTRY,
95 Tags.CONTACTS_HOME_ADDRESS_POSTAL_CODE,
96 Tags.CONTACTS_HOME_ADDRESS_STATE,
97 Tags.CONTACTS_HOME_ADDRESS_STREET};
99 private static final int[] WORK_ADDRESS_TAGS = new int[] {Tags.CONTACTS_BUSINESS_ADDRESS_CITY,
100 Tags.CONTACTS_BUSINESS_ADDRESS_COUNTRY,
101 Tags.CONTACTS_BUSINESS_ADDRESS_POSTAL_CODE,
102 Tags.CONTACTS_BUSINESS_ADDRESS_STATE,
103 Tags.CONTACTS_BUSINESS_ADDRESS_STREET};
105 private static final int[] OTHER_ADDRESS_TAGS = new int[] {Tags.CONTACTS_HOME_ADDRESS_CITY,
106 Tags.CONTACTS_OTHER_ADDRESS_COUNTRY,
107 Tags.CONTACTS_OTHER_ADDRESS_POSTAL_CODE,
108 Tags.CONTACTS_OTHER_ADDRESS_STATE,
109 Tags.CONTACTS_OTHER_ADDRESS_STREET};
117 private static final int[] IM_TAGS = new int[] {Tags.CONTACTS2_IM_ADDRESS,
118 Tags.CONTACTS2_IM_ADDRESS_2, Tags.CONTACTS2_IM_ADDRESS_3};
120 private static final int[] EMAIL_TAGS = new int[] {Tags.CONTACTS_EMAIL1_ADDRESS,
121 Tags.CONTACTS_EMAIL2_ADDRESS, Tags.CONTACTS_EMAIL3_ADDRESS};
123 private static final int[] WORK_PHONE_TAGS = new int[] {Tags.CONTACTS_BUSINESS_TELEPHONE_NUMBER,
124 Tags.CONTACTS_BUSINESS2_TELEPHONE_NUMBER};
126 private static final int[] HOME_PHONE_TAGS = new int[] {Tags.CONTACTS_HOME_TELEPHONE_NUMBER,
127 Tags.CONTACTS_HOME2_TELEPHONE_NUMBER};
154 // These are the tags we support for upload; whenever we add/remove support
156 s.start(Tags.SYNC_SUPPORTED);
157 s.tag(Tags.CONTACTS_FIRST_NAME);
158 s.tag(Tags.CONTACTS_LAST_NAME);
159 s.tag(Tags.CONTACTS_MIDDLE_NAME);
160 s.tag(Tags.CONTACTS_SUFFIX);
161 s.tag(Tags.CONTACTS_COMPANY_NAME);
162 s.tag(Tags.CONTACTS_JOB_TITLE);
163 s.tag(Tags.CONTACTS_EMAIL1_ADDRESS);
164 s.tag(Tags.CONTACTS_EMAIL2_ADDRESS);
165 s.tag(Tags.CONTACTS_EMAIL3_ADDRESS);
166 s.tag(Tags.CONTACTS_BUSINESS2_TELEPHONE_NUMBER);
167 s.tag(Tags.CONTACTS_BUSINESS_TELEPHONE_NUMBER);
168 s.tag(Tags.CONTACTS2_MMS);
169 s.tag(Tags.CONTACTS_BUSINESS_FAX_NUMBER);
170 s.tag(Tags.CONTACTS2_COMPANY_MAIN_PHONE);
171 s.tag(Tags.CONTACTS_HOME_FAX_NUMBER);
172 s.tag(Tags.CONTACTS_HOME_TELEPHONE_NUMBER);
173 s.tag(Tags.CONTACTS_HOME2_TELEPHONE_NUMBER);
174 s.tag(Tags.CONTACTS_MOBILE_TELEPHONE_NUMBER);
175 s.tag(Tags.CONTACTS_CAR_TELEPHONE_NUMBER);
176 s.tag(Tags.CONTACTS_RADIO_TELEPHONE_NUMBER);
177 s.tag(Tags.CONTACTS_PAGER_NUMBER);
178 s.tag(Tags.CONTACTS_ASSISTANT_TELEPHONE_NUMBER);
179 s.tag(Tags.CONTACTS2_IM_ADDRESS);
180 s.tag(Tags.CONTACTS2_IM_ADDRESS_2);
181 s.tag(Tags.CONTACTS2_IM_ADDRESS_3);
182 s.tag(Tags.CONTACTS_BUSINESS_ADDRESS_CITY);
183 s.tag(Tags.CONTACTS_BUSINESS_ADDRESS_COUNTRY);
184 s.tag(Tags.CONTACTS_BUSINESS_ADDRESS_POSTAL_CODE);
185 s.tag(Tags.CONTACTS_BUSINESS_ADDRESS_STATE);
186 s.tag(Tags.CONTACTS_BUSINESS_ADDRESS_STREET);
187 s.tag(Tags.CONTACTS_HOME_ADDRESS_CITY);
188 s.tag(Tags.CONTACTS_HOME_ADDRESS_COUNTRY);
189 s.tag(Tags.CONTACTS_HOME_ADDRESS_POSTAL_CODE);
190 s.tag(Tags.CONTACTS_HOME_ADDRESS_STATE);
191 s.tag(Tags.CONTACTS_HOME_ADDRESS_STREET);
192 s.tag(Tags.CONTACTS_OTHER_ADDRESS_CITY);
193 s.tag(Tags.CONTACTS_OTHER_ADDRESS_COUNTRY);
194 s.tag(Tags.CONTACTS_OTHER_ADDRESS_POSTAL_CODE);
195 s.tag(Tags.CONTACTS_OTHER_ADDRESS_STATE);
196 s.tag(Tags.CONTACTS_OTHER_ADDRESS_STREET);
197 s.tag(Tags.CONTACTS_YOMI_COMPANY_NAME);
198 s.tag(Tags.CONTACTS_YOMI_FIRST_NAME);
199 s.tag(Tags.CONTACTS_YOMI_LAST_NAME);
200 s.tag(Tags.CONTACTS2_NICKNAME);
201 s.tag(Tags.CONTACTS_ASSISTANT_NAME);
202 s.tag(Tags.CONTACTS2_MANAGER_NAME);
203 s.tag(Tags.CONTACTS_SPOUSE);
204 s.tag(Tags.CONTACTS_DEPARTMENT);
205 s.tag(Tags.CONTACTS_TITLE);
206 s.tag(Tags.CONTACTS_OFFICE_LOCATION);
207 s.tag(Tags.CONTACTS2_CUSTOMER_ID);
208 s.tag(Tags.CONTACTS2_GOVERNMENT_ID);
209 s.tag(Tags.CONTACTS2_ACCOUNT_NAME);
210 s.tag(Tags.CONTACTS_ANNIVERSARY);
211 s.tag(Tags.CONTACTS_BIRTHDAY);
212 s.tag(Tags.CONTACTS_WEBPAGE);
213 s.tag(Tags.CONTACTS_PICTURE);
456 while (nextTag(Tags.SYNC_APPLICATION_DATA) != END) {
458 case Tags.CONTACTS_FIRST_NAME:
461 case Tags.CONTACTS_LAST_NAME:
464 case Tags.CONTACTS_MIDDLE_NAME:
467 case Tags.CONTACTS_SUFFIX:
470 case Tags.CONTACTS_COMPANY_NAME:
473 case Tags.CONTACTS_JOB_TITLE:
476 case Tags.CONTACTS_EMAIL1_ADDRESS:
477 case Tags.CONTACTS_EMAIL2_ADDRESS:
478 case Tags.CONTACTS_EMAIL3_ADDRESS:
481 case Tags.CONTACTS_BUSINESS2_TELEPHONE_NUMBER:
482 case Tags.CONTACTS_BUSINESS_TELEPHONE_NUMBER:
485 case Tags.CONTACTS2_MMS:
488 case Tags.CONTACTS_BUSINESS_FAX_NUMBER:
491 case Tags.CONTACTS2_COMPANY_MAIN_PHONE:
494 case Tags.CONTACTS_HOME_FAX_NUMBER:
497 case Tags.CONTACTS_HOME_TELEPHONE_NUMBER:
498 case Tags.CONTACTS_HOME2_TELEPHONE_NUMBER:
501 case Tags.CONTACTS_MOBILE_TELEPHONE_NUMBER:
504 case Tags.CONTACTS_CAR_TELEPHONE_NUMBER:
507 case Tags.CONTACTS_RADIO_TELEPHONE_NUMBER:
510 case Tags.CONTACTS_PAGER_NUMBER:
513 case Tags.CONTACTS_ASSISTANT_TELEPHONE_NUMBER:
516 case Tags.CONTACTS2_IM_ADDRESS:
517 case Tags.CONTACTS2_IM_ADDRESS_2:
518 case Tags.CONTACTS2_IM_ADDRESS_3:
521 case Tags.CONTACTS_BUSINESS_ADDRESS_CITY:
524 case Tags.CONTACTS_BUSINESS_ADDRESS_COUNTRY:
527 case Tags.CONTACTS_BUSINESS_ADDRESS_POSTAL_CODE:
530 case Tags.CONTACTS_BUSINESS_ADDRESS_STATE:
533 case Tags.CONTACTS_BUSINESS_ADDRESS_STREET:
536 case Tags.CONTACTS_HOME_ADDRESS_CITY:
539 case Tags.CONTACTS_HOME_ADDRESS_COUNTRY:
542 case Tags.CONTACTS_HOME_ADDRESS_POSTAL_CODE:
545 case Tags.CONTACTS_HOME_ADDRESS_STATE:
548 case Tags.CONTACTS_HOME_ADDRESS_STREET:
551 case Tags.CONTACTS_OTHER_ADDRESS_CITY:
554 case Tags.CONTACTS_OTHER_ADDRESS_COUNTRY:
557 case Tags.CONTACTS_OTHER_ADDRESS_POSTAL_CODE:
560 case Tags.CONTACTS_OTHER_ADDRESS_STATE:
563 case Tags.CONTACTS_OTHER_ADDRESS_STREET:
567 case Tags.CONTACTS_CHILDREN:
571 case Tags.CONTACTS_YOMI_COMPANY_NAME:
574 case Tags.CONTACTS_YOMI_FIRST_NAME:
577 case Tags.CONTACTS_YOMI_LAST_NAME:
581 case Tags.CONTACTS2_NICKNAME:
585 case Tags.CONTACTS_ASSISTANT_NAME:
588 case Tags.CONTACTS2_MANAGER_NAME:
591 case Tags.CONTACTS_SPOUSE:
594 case Tags.CONTACTS_DEPARTMENT:
597 case Tags.CONTACTS_TITLE:
602 case Tags.CONTACTS_OFFICE_LOCATION:
605 case Tags.CONTACTS2_CUSTOMER_ID:
608 case Tags.CONTACTS2_GOVERNMENT_ID:
611 case Tags.CONTACTS2_ACCOUNT_NAME:
616 case Tags.CONTACTS_ANNIVERSARY:
619 case Tags.CONTACTS_BIRTHDAY:
622 case Tags.CONTACTS_WEBPAGE:
626 case Tags.CONTACTS_PICTURE:
630 case Tags.BASE_BODY:
633 case Tags.CONTACTS_BODY:
637 case Tags.CONTACTS_CATEGORIES:
709 while (nextTag(Tags.CONTACTS_CATEGORIES) != END) {
711 case Tags.CONTACTS_CATEGORY:
721 while (nextTag(Tags.CONTACTS_CHILDREN) != END) {
723 case Tags.CONTACTS_CHILD:
736 while (nextTag(Tags.BASE_BODY) != END) {
738 case Tags.BASE_DATA:
750 while (nextTag(Tags.SYNC_ADD) != END) {
752 case Tags.SYNC_SERVER_ID: // same as
755 case Tags.SYNC_APPLICATION_DATA:
777 while (nextTag(Tags.SYNC_DELETE) != END) {
779 case Tags.SYNC_SERVER_ID:
816 while (nextTag(Tags.SYNC_CHANGE) != END) {
818 case Tags.SYNC_SERVER_ID:
839 case Tags.SYNC_APPLICATION_DATA:
850 while (nextTag(Tags.SYNC_COMMANDS) != END) {
851 if (tag == Tags.SYNC_ADD) {
854 } else if (tag == Tags.SYNC_DELETE) {
857 } else if (tag == Tags.SYNC_CHANGE) {
895 while (nextTag(Tags.SYNC_ADD) != END) {
897 case Tags.SYNC_SERVER_ID:
900 case Tags.SYNC_CLIENT_ID:
903 case Tags.SYNC_STATUS:
935 while (nextTag(Tags.SYNC_CHANGE) != END) {
937 case Tags.SYNC_SERVER_ID:
940 case Tags.SYNC_STATUS:
956 while (nextTag(Tags.SYNC_RESPONSES) != END) {
957 if (tag == Tags.SYNC_ADD) {
959 } else if (tag == Tags.SYNC_CHANGE) {
1668 sendStringData(s, cv, StructuredName.FAMILY_NAME, Tags.CONTACTS_LAST_NAME);
1669 sendStringData(s, cv, StructuredName.GIVEN_NAME, Tags.CONTACTS_FIRST_NAME);
1670 sendStringData(s, cv, StructuredName.MIDDLE_NAME, Tags.CONTACTS_MIDDLE_NAME);
1671 sendStringData(s, cv, StructuredName.SUFFIX, Tags.CONTACTS_SUFFIX);
1672 sendStringData(s, cv, StructuredName.PHONETIC_GIVEN_NAME, Tags.CONTACTS_YOMI_FIRST_NAME);
1673 sendStringData(s, cv, StructuredName.PHONETIC_FAMILY_NAME, Tags.CONTACTS_YOMI_LAST_NAME);
1674 sendStringData(s, cv, StructuredName.PREFIX, Tags.CONTACTS_TITLE);
1679 sendStringData(s, cv, EasBusiness.ACCOUNT_NAME, Tags.CONTACTS2_ACCOUNT_NAME);
1680 sendStringData(s, cv, EasBusiness.CUSTOMER_ID, Tags.CONTACTS2_CUSTOMER_ID);
1681 sendStringData(s, cv, EasBusiness.GOVERNMENT_ID, Tags.CONTACTS2_GOVERNMENT_ID);
1685 sendStringData(s, cv, EasPersonal.ANNIVERSARY, Tags.CONTACTS_ANNIVERSARY);
1686 sendStringData(s, cv, EasPersonal.FILE_AS, Tags.CONTACTS_FILE_AS);
1690 sendStringData(s, cv, Event.START_DATE, Tags.CONTACTS_BIRTHDAY);
1697 s.data(Tags.CONTACTS_PICTURE, pic);
1700 s.tag(Tags.CONTACTS_PICTURE);
1705 sendStringData(s, cv, Organization.TITLE, Tags.CONTACTS_JOB_TITLE);
1706 sendStringData(s, cv, Organization.COMPANY, Tags.CONTACTS_COMPANY_NAME);
1707 sendStringData(s, cv, Organization.DEPARTMENT, Tags.CONTACTS_DEPARTMENT);
1708 sendStringData(s, cv, Organization.OFFICE_LOCATION, Tags.CONTACTS_OFFICE_LOCATION);
1712 sendStringData(s, cv, Nickname.NAME, Tags.CONTACTS2_NICKNAME);
1716 sendStringData(s, cv, Website.URL, Tags.CONTACTS_WEBPAGE);
1729 s.start(Tags.BASE_BODY);
1730 s.data(Tags.BASE_TYPE, Eas.BODY_PREFERENCE_TEXT).data(Tags.BASE_DATA, note);
1733 s.data(Tags.CONTACTS_BODY, note);
1743 s.start(Tags.CONTACTS_CHILDREN);
1746 s.data(Tags.CONTACTS_CHILD, cv.getAsString(row));
1765 s.data(Tags.CONTACTS2_MMS, value);
1768 s.data(Tags.CONTACTS_ASSISTANT_TELEPHONE_NUMBER, value);
1771 s.data(Tags.CONTACTS_BUSINESS_FAX_NUMBER, value);
1774 s.data(Tags.CONTACTS2_COMPANY_MAIN_PHONE, value);
1782 s.data(Tags.CONTACTS_MOBILE_TELEPHONE_NUMBER, value);
1785 s.data(Tags.CONTACTS_CAR_TELEPHONE_NUMBER, value);
1788 s.data(Tags.CONTACTS_PAGER_NUMBER, value);
1791 s.data(Tags.CONTACTS_RADIO_TELEPHONE_NUMBER, value);
1794 s.data(Tags.CONTACTS_HOME_FAX_NUMBER, value);
1806 s.data(Tags.CONTACTS_ASSISTANT_NAME, value);
1809 s.data(Tags.CONTACTS2_MANAGER_NAME, value);
1812 s.data(Tags.CONTACTS_SPOUSE, value);
1878 s.start(Tags.SYNC_COMMANDS);
1886 s.start(Tags.SYNC_ADD).data(Tags.SYNC_CLIENT_ID, clientId);
1896 s.start(Tags.SYNC_DELETE).data(Tags.SYNC_SERVER_ID, serverId).end();
1901 s.start(Tags.SYNC_CHANGE).data(Tags.SYNC_SERVER_ID, serverId);
1903 s.start(Tags.SYNC_APPLICATION_DATA);
1975 s.start(Tags.CONTACTS_CATEGORIES);
1978 s.data(Tags.CONTACTS_CATEGORY, c.getString(0));