Home
last modified time | relevance | path

Searched refs:contentResolver (Results 1 – 9 of 9) sorted by relevance

/development/samples/BusinessCard/src/com/example/android/businesscard/
DContactAccessorSdk5.java58 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) { in loadContact() argument
63 Cursor cursor = contentResolver.query(contactUri, in loadContact()
75 cursor = contentResolver.query(Phone.CONTENT_URI, in loadContact()
DContactAccessorSdk3_4.java55 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) { in loadContact() argument
57 Cursor cursor = contentResolver.query(contactUri, in loadContact()
68 cursor = contentResolver.query(phoneUri, in loadContact()
DContactAccessor.java88 public abstract ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri); in loadContact() argument
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectorySelectionFragment.java151 ContentResolver contentResolver = getActivity().getContentResolver(); in updateDirectoryEntries() local
157 Cursor docCursor = contentResolver.query(docUri, new String[]{ in updateDirectoryEntries()
171 Cursor childCursor = contentResolver.query(childrenUri, new String[]{ in updateDirectoryEntries()
198 ContentResolver contentResolver = getActivity().getContentResolver(); in createDirectory() local
202 .createDocument(contentResolver, docUri, Document.MIME_TYPE_DIR, directoryName); in createDirectory()
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
DCalendarQueryService.java135 ContentResolver contentResolver = context.getContentResolver(); in queryEvents() local
140 Cursor cursor = contentResolver.query(builder.build(), INSTANCE_PROJECTION, in queryEvents()
163 Cursor contactCursor = contentResolver.query(Data.CONTENT_URI, in queryEvents()
172 event.ownerProfilePic = getProfilePicture(contentResolver, context, ownerId); in queryEvents()
198 private static Asset getProfilePicture(ContentResolver contentResolver, Context context, in getProfilePicture() argument
203 InputStream inputStream = Contacts.openContactPhotoInputStream(contentResolver, in getProfilePicture()
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DScopedDirectoryAccessFragment.java187 ContentResolver contentResolver = getActivity().getContentResolver(); in updateDirectoryEntries() local
193 try (Cursor docCursor = contentResolver in updateDirectoryEntries()
201 try (Cursor childCursor = contentResolver in updateDirectoryEntries()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java205 final ContentResolver contentResolver = getContext().getContentResolver(); in updateLocalFeedData() local
223 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null); in updateLocalFeedData()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailProviderHelpers.java66 private VoicemailProviderHelpers(Uri baseUri, ContentResolver contentResolver) { in VoicemailProviderHelpers() argument
67 mContentResolver = contentResolver; in VoicemailProviderHelpers()
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
DContactDetailFragment.java549 final ContentResolver contentResolver = getActivity().getContentResolver(); in loadContactPhoto() local
564 afd = contentResolver.openAssetFileDescriptor(displayImageUri, "r"); in loadContactPhoto()