Lines Matching defs:contentResolver
18 import android.content.ContentResolver;
211 * fields using a {@link ContentResolver}.
223 final ContentResolver contentResolver = getContext().getContentResolver();
224 String contentType = contentResolver.getType(contentUri);
237 metadataCursor = contentResolver.query(
259 metadataCursor = getOptionalColumn(contentResolver, contentUri,
271 getOptionalColumn(contentResolver, contentUri, OpenableColumns.SIZE);
276 attachment.size = getSizeFromFile(contentUri, contentResolver);
290 attachment.size = getSizeFromFile(contentUri, contentResolver);
325 private static int getSizeFromFile(Uri uri, ContentResolver contentResolver) {
329 file = contentResolver.openFileDescriptor(uri, "r");
351 private static Cursor getOptionalColumn(ContentResolver contentResolver, Uri uri,
355 result = contentResolver.query(uri, new String[]{columnName}, null, null, null);