Lines Matching full:builder
154 ContentProviderOperation.Builder builder =
158 builder.withValue(RawContacts.ACCOUNT_NAME, account.name);
159 builder.withValue(RawContacts.ACCOUNT_TYPE, account.type);
161 builder.withValues(sEmptyContentValues);
163 operationList.add(builder.build());
165 builder = ContentProviderOperation.newInsert(Data.CONTENT_URI);
166 builder.withValueBackReference(StructuredName.RAW_CONTACT_ID, 0);
167 builder.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
168 builder.withValue(StructuredName.DISPLAY_NAME, name);
169 operationList.add(builder.build());
171 builder = ContentProviderOperation.newInsert(Data.CONTENT_URI);
172 builder.withValueBackReference(Phone.RAW_CONTACT_ID, 0);
173 builder.withValue(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
174 builder.withValue(Phone.TYPE, phoneType);
175 builder.withValue(Phone.NUMBER, phoneNumber);
176 builder.withValue(Data.IS_PRIMARY, 1);
177 operationList.add(builder.build());
181 builder = ContentProviderOperation.newInsert(Data.CONTENT_URI);
182 builder.withValueBackReference(Email.RAW_CONTACT_ID, 0);
183 builder.withValue(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE);
184 builder.withValue(Email.TYPE, Email.TYPE_MOBILE);
185 builder.withValue(Email.DATA, emailAddress);
186 operationList.add(builder.build());
191 builder = ContentProviderOperation.newInsert(Data.CONTENT_URI);
192 builder.withValueBackReference(GroupMembership.RAW_CONTACT_ID, 0);
193 builder.withValue(Data.MIMETYPE, GroupMembership.CONTENT_ITEM_TYPE);
194 builder.withValue(GroupMembership.GROUP_SOURCE_ID, myGroupsId);
195 operationList.add(builder.build());