Home | History | Annotate | Download | only in emergency

Lines Matching defs:contentResolver

18 import android.content.ContentResolver;
32 public static boolean deleteContact(ContentResolver contentResolver,
37 Cursor cursor = contentResolver.query(contactUri, null, null, null, null);
48 contentResolver.delete(uri, null, null);
63 public static Uri createContact(ContentResolver contentResolver,
67 Uri rawContactUri = contentResolver.insert(ContactsContract.RawContacts.CONTENT_URI,
70 insertStructuredName(contentResolver, rawContactId, name, values);
71 return insertPhoneNumber(contentResolver, rawContactId,
76 private static void insertStructuredName(ContentResolver contentResolver,
83 contentResolver.insert(ContactsContract.Data.CONTENT_URI, values);
86 private static Uri insertPhoneNumber(ContentResolver contentResolver,
97 return contentResolver.insert(ContactsContract.Data.CONTENT_URI, values);