Lines Matching refs:resolver

446         public static void markAsContacted(ContentResolver resolver, long personId) {
455 public static long tryGetMyContactsGroupId(ContentResolver resolver) {
456 Cursor groupsCursor = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION,
473 * @param resolver the resolver to use
480 public static Uri addToMyContactsGroup(ContentResolver resolver, long personId) {
481 long groupId = tryGetMyContactsGroupId(resolver);
486 return addToGroup(resolver, personId, groupId);
492 * @param resolver the resolver to use
500 public static Uri addToGroup(ContentResolver resolver, long personId, String groupName) {
502 Cursor groupsCursor = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION,
518 return addToGroup(resolver, personId, groupId);
524 * @param resolver the resolver to use
531 public static Uri addToGroup(ContentResolver resolver, long personId, long groupId) {
535 return resolver.insert(GroupMembership.CONTENT_URI, values);
545 * @param resolver the ContentResolver to use
551 public static Uri createPersonInMyContactsGroup(ContentResolver resolver,
554 Uri contactUri = resolver.insert(People.CONTENT_URI, values);
560 if (addToMyContactsGroup(resolver, ContentUris.parseId(contactUri)) == null) {
561 resolver.delete(contactUri, null, null);
571 public static Cursor queryGroups(ContentResolver resolver, long person) {
572 return resolver.query(GroupMembership.CONTENT_URI, null, "person=?",
1446 final ContentResolver resolver = context.getContentResolver();
1451 Uri loc = resolver.insert(CONTENT_URI, values);
1457 resolver.update(ContentUris.withAppendedId(CONTENT_URI, postalId), values, null, null);