HomeSort by relevance Sort by last modified time
    Searched refs:contentResolver (Results 1 - 25 of 26) sorted by null

1 2

  /external/glide/library/src/main/java/com/bumptech/glide/load/data/
StreamLocalUriFetcher.java 3 import android.content.ContentResolver;
16 protected InputStream loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundException {
17 return contentResolver.openInputStream(uri);
FileDescriptorLocalUriFetcher.java 3 import android.content.ContentResolver;
16 protected ParcelFileDescriptor loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundException {
17 return contentResolver.openAssetFileDescriptor(uri, "r").getParcelFileDescriptor();
LocalUriFetcher.java 3 import android.content.ContentResolver;
26 * @see ContentResolver#openInputStream(android.net.Uri)
31 * {@link ContentResolver#openInputStream(android.net.Uri)}
44 ContentResolver contentResolver = context.getContentResolver();
45 data = loadResource(uri, contentResolver);
73 protected abstract T loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundException;
  /development/samples/BusinessCard/src/com/example/android/businesscard/
ContactAccessorSdk3_4.java 20 import android.content.ContentResolver;
55 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) {
57 Cursor cursor = contentResolver.query(contactUri,
68 cursor = contentResolver.query(phoneUri,
ContactAccessorSdk5.java 19 import android.content.ContentResolver;
58 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) {
63 Cursor cursor = contentResolver.query(contactUri,
75 cursor = contentResolver.query(Phone.CONTENT_URI,
ContactAccessor.java 19 import android.content.ContentResolver;
88 public abstract ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri);
  /external/chromium_org/base/android/java/src/org/chromium/base/
ContentUriUtils.java 7 import android.content.ContentResolver;
92 ContentResolver resolver = context.getContentResolver();
108 * @param contentResolver the content resolver to query.
114 Uri uri, ContentResolver contentResolver, String columnField) {
115 if (contentResolver == null || uri == null) return "";
118 cursor = contentResolver.query(uri, null, null, null, null);
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStoreAudioTestHelper.java 19 import android.content.ContentResolver;
52 public Uri insertToInternal(ContentResolver contentResolver) {
53 Uri uri = contentResolver.insert(Media.INTERNAL_CONTENT_URI, getContentValues(true));
58 public Uri insertToExternal(ContentResolver contentResolver) {
59 Uri uri = contentResolver.insert(Media.EXTERNAL_CONTENT_URI, getContentValues(false));
64 public int delete(ContentResolver contentResolver, Uri uri) {
65 return contentResolver.delete(uri, null, null)
    [all...]
ContactsContract_GroupMembershipTest.java 21 import android.content.ContentResolver;
37 ContentResolver contentResolver =
40 contentResolver.acquireContentProviderClient(ContactsContract.AUTHORITY);
  /developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DirectorySelectionFragment.java 21 import android.content.ContentResolver;
153 ContentResolver contentResolver = getActivity().getContentResolver();
159 Cursor docCursor = contentResolver.query(docUri, new String[]{
173 Cursor childCursor = contentResolver.query(childrenUri, new String[]{
200 ContentResolver contentResolver = getActivity().getContentResolver();
204 .createDocument(contentResolver, docUri, Document.MIME_TYPE_DIR, directoryName);
  /developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DirectorySelectionFragment.java 21 import android.content.ContentResolver;
153 ContentResolver contentResolver = getActivity().getContentResolver();
159 Cursor docCursor = contentResolver.query(docUri, new String[]{
173 Cursor childCursor = contentResolver.query(childrenUri, new String[]{
200 ContentResolver contentResolver = getActivity().getContentResolver();
204 .createDocument(contentResolver, docUri, Document.MIME_TYPE_DIR, directoryName);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
SensorFeaturesDeactivator.java 22 import android.content.ContentResolver;
99 ContentResolver contentResolver = mStateContainer.getContentResolver();
103 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue);
106 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue);
  /external/chromium_org/ui/android/java/src/org/chromium/ui/base/
SelectFileDialog.java 10 import android.content.ContentResolver;
190 * @param contentResolver The content resolver used to extract the path of the selected file.
196 ContentResolver contentResolver, Intent results) {
208 String path = ContentResolver.SCHEME_FILE.equals(mCameraOutputUri.getScheme()) ?
238 GetDisplayNameTask task = new GetDisplayNameTask(contentResolver, true);
243 if (ContentResolver.SCHEME_FILE.equals(results.getData().getScheme())) {
249 if (ContentResolver.SCHEME_CONTENT.equals(results.getScheme())) {
250 GetDisplayNameTask task = new GetDisplayNameTask(contentResolver, false);
315 final ContentResolver mContentResolver
    [all...]
WindowAndroid.java 10 import android.content.ContentResolver;
251 * @param contentResolver An instance of ContentResolver class for accessing returned data.
255 ContentResolver contentResolver, Intent data);
  /developers/build/prebuilts/gradle/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/
CalendarQueryService.java 34 import android.content.ContentResolver;
135 ContentResolver contentResolver = context.getContentResolver();
140 Cursor cursor = contentResolver.query(builder.build(), INSTANCE_PROJECTION,
163 Cursor contactCursor = contentResolver.query(Data.CONTENT_URI,
172 event.ownerProfilePic = getProfilePicture(contentResolver, context, ownerId);
198 private static Asset getProfilePicture(ContentResolver contentResolver, Context context,
203 InputStream inputStream = Contacts.openContactPhotoInputStream(contentResolver,
  /developers/samples/android/wearable/wear/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/
CalendarQueryService.java 34 import android.content.ContentResolver;
135 ContentResolver contentResolver = context.getContentResolver();
140 Cursor cursor = contentResolver.query(builder.build(), INSTANCE_PROJECTION,
163 Cursor contactCursor = contentResolver.query(Data.CONTENT_URI,
172 event.ownerProfilePic = getProfilePicture(contentResolver, context, ownerId);
198 private static Asset getProfilePicture(ContentResolver contentResolver, Context context,
203 InputStream inputStream = Contacts.openContactPhotoInputStream(contentResolver,
  /development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
CalendarQueryService.java 34 import android.content.ContentResolver;
135 ContentResolver contentResolver = context.getContentResolver();
140 Cursor cursor = contentResolver.query(builder.build(), INSTANCE_PROJECTION,
163 Cursor contactCursor = contentResolver.query(Data.CONTENT_URI,
172 event.ownerProfilePic = getProfilePicture(contentResolver, context, ownerId);
198 private static Asset getProfilePicture(ContentResolver contentResolver, Context context,
203 InputStream inputStream = Contacts.openContactPhotoInputStream(contentResolver,
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
AwWebContentsDelegateAdapter.java 7 import android.content.ContentResolver;
226 final ContentResolver mContentResolver;
228 public GetDisplayNameTask(ContentResolver contentResolver, int processId, int renderId,
234 mContentResolver = contentResolver;
  /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/
SyncAdapter.java 24 import android.content.ContentResolver;
83 private final ContentResolver mContentResolver;
205 final ContentResolver contentResolver = getContext().getContentResolver();
223 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null);
  /developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/
SyncAdapter.java 24 import android.content.ContentResolver;
83 private final ContentResolver mContentResolver;
205 final ContentResolver contentResolver = getContext().getContentResolver();
223 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null);
  /development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
VoicemailProviderHelpers.java 23 import android.content.ContentResolver;
56 private final ContentResolver mContentResolver;
63 * @param contentResolver the ContentResolver used for opening the output stream to read and
66 private VoicemailProviderHelpers(Uri baseUri, ContentResolver contentResolver) {
67 mContentResolver = contentResolver;
  /development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
SyncAdapter.java 24 import android.content.ContentResolver;
83 private final ContentResolver mContentResolver;
205 final ContentResolver contentResolver = getContext().getContentResolver();
223 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null);
  /cts/tests/tests/content/src/android/content/cts/
IntentTest.java 26 import android.content.ContentResolver;
258 final ContentResolver contentResolver = mContext.getContentResolver();
264 assertEquals(contentResolver.getType(TEST_URI), mIntent.resolveType(mContext));
270 final ContentResolver contentResolver = mContext.getContentResolver();
271 assertNull(mIntent.resolveType(contentResolver));
273 assertEquals(TEST_TYPE, mIntent.resolveType(contentResolver));
276 assertEquals(contentResolver.getType(TEST_URI), mIntent.resolveType(contentResolver));
    [all...]
  /development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
ContactDetailFragment.java 21 import android.content.ContentResolver;
548 // Instantiates a ContentResolver for retrieving the Uri of the image
549 final ContentResolver contentResolver = getActivity().getContentResolver();
552 // ContentResolver can return an AssetFileDescriptor for the file.
564 afd = contentResolver.openAssetFileDescriptor(displayImageUri, "r");
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
ContentViewCore.java 11 import android.content.ContentResolver;
    [all...]

Completed in 3283 milliseconds

1 2