public final class

MAMContentResolverManagement

extends Object
java.lang.Object
   ↳ com.microsoft.intune.mam.client.content.MAMContentResolverManagement

Class Overview

MAM wrapper around ContentResolver. This must be used in place of direct calls into ContentResolver. It is recommended to call into ContentResolver as normal and allow the Build Plugin to apply this wrapper. All the methods in this class are android.content.ContentResolver methods and Android docs should be consulted for further information.

Summary

Public Methods
static ContentProviderClient acquireContentProviderClient(ContentResolver original, String name)
static ContentProviderClient acquireContentProviderClient(ContentResolver original, Uri uri)
static ContentProviderClient acquireUnstableContentProviderClient(ContentResolver original, Uri uri)
static ContentProviderClient acquireUnstableContentProviderClient(ContentResolver original, String name)
static ContentProviderResult[] applyBatch(ContentResolver original, String authority, ArrayList<ContentProviderOperation> operations)
static int bulkInsert(ContentResolver original, Uri url, ContentValues[] values)
static Bundle call(ContentResolver original, String authority, String method, String arg, Bundle extras)
static Bundle call(ContentResolver original, Uri uri, String method, String arg, Bundle extras)
static int delete(ContentResolver original, Uri url, String where, String[] selectionArgs)
static int delete(ContentResolver original, Uri url, Bundle extras)
static String[] getStreamTypes(ContentResolver original, Uri url, String mimeTypeFilter)
static String getType(ContentResolver original, Uri url)
static Uri insert(ContentResolver original, Uri url, ContentValues values, Bundle extras)
static Uri insert(ContentResolver original, Uri url, ContentValues values)
static Bitmap loadThumbnail(ContentResolver original, Uri uri, Size size, CancellationSignal signal)
static AssetFileDescriptor openAssetFile(ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)
static AssetFileDescriptor openAssetFileDescriptor(ContentResolver original, Uri uri, String mode)
static AssetFileDescriptor openAssetFileDescriptor(ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)
static ParcelFileDescriptor openFile(ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)
static ParcelFileDescriptor openFileDescriptor(ContentResolver original, Uri uri, String mode)
static ParcelFileDescriptor openFileDescriptor(ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)
static InputStream openInputStream(ContentResolver original, Uri uri)
static OutputStream openOutputStream(ContentResolver original, Uri uri, String mode)
static OutputStream openOutputStream(ContentResolver original, Uri uri)
static AssetFileDescriptor openTypedAssetFile(ContentResolver original, Uri uri, String mimeType, Bundle opts, CancellationSignal cancellationSignal)
static AssetFileDescriptor openTypedAssetFileDescriptor(ContentResolver original, Uri uri, String mimeType, Bundle opts)
static AssetFileDescriptor openTypedAssetFileDescriptor(ContentResolver original, Uri uri, String mimeType, Bundle opts, CancellationSignal cancellationSignal)
static Cursor query(ContentResolver original, Uri uri, String[] projection, Bundle queryArgs, CancellationSignal cancellationSignal)
static Cursor query(ContentResolver original, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
static Cursor query(ContentResolver original, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)
static boolean refresh(ContentResolver original, Uri url, Bundle args, CancellationSignal cancellationSignal)
static int update(ContentResolver original, Uri uri, ContentValues values, String where, String[] selectionArgs)
static int update(ContentResolver original, Uri uri, ContentValues values, Bundle extras)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static ContentProviderClient acquireContentProviderClient (ContentResolver original, String name)

public static ContentProviderClient acquireContentProviderClient (ContentResolver original, Uri uri)

public static ContentProviderClient acquireUnstableContentProviderClient (ContentResolver original, Uri uri)

public static ContentProviderClient acquireUnstableContentProviderClient (ContentResolver original, String name)

public static ContentProviderResult[] applyBatch (ContentResolver original, String authority, ArrayList<ContentProviderOperation> operations)

Throws
OperationApplicationException
RemoteException

public static int bulkInsert (ContentResolver original, Uri url, ContentValues[] values)

public static Bundle call (ContentResolver original, String authority, String method, String arg, Bundle extras)

public static Bundle call (ContentResolver original, Uri uri, String method, String arg, Bundle extras)

public static int delete (ContentResolver original, Uri url, String where, String[] selectionArgs)

public static int delete (ContentResolver original, Uri url, Bundle extras)

public static String[] getStreamTypes (ContentResolver original, Uri url, String mimeTypeFilter)

public static String getType (ContentResolver original, Uri url)

public static Uri insert (ContentResolver original, Uri url, ContentValues values, Bundle extras)

public static Uri insert (ContentResolver original, Uri url, ContentValues values)

public static Bitmap loadThumbnail (ContentResolver original, Uri uri, Size size, CancellationSignal signal)

Throws
IOException

public static AssetFileDescriptor openAssetFile (ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)

Throws
FileNotFoundException

public static AssetFileDescriptor openAssetFileDescriptor (ContentResolver original, Uri uri, String mode)

Throws
FileNotFoundException

public static AssetFileDescriptor openAssetFileDescriptor (ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)

Throws
FileNotFoundException

public static ParcelFileDescriptor openFile (ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)

Throws
FileNotFoundException

public static ParcelFileDescriptor openFileDescriptor (ContentResolver original, Uri uri, String mode)

Throws
FileNotFoundException

public static ParcelFileDescriptor openFileDescriptor (ContentResolver original, Uri uri, String mode, CancellationSignal cancellationSignal)

Throws
FileNotFoundException

public static InputStream openInputStream (ContentResolver original, Uri uri)

Throws
FileNotFoundException

public static OutputStream openOutputStream (ContentResolver original, Uri uri, String mode)

Throws
FileNotFoundException

public static OutputStream openOutputStream (ContentResolver original, Uri uri)

Throws
FileNotFoundException

public static AssetFileDescriptor openTypedAssetFile (ContentResolver original, Uri uri, String mimeType, Bundle opts, CancellationSignal cancellationSignal)

Throws
FileNotFoundException

public static AssetFileDescriptor openTypedAssetFileDescriptor (ContentResolver original, Uri uri, String mimeType, Bundle opts)

Throws
FileNotFoundException

public static AssetFileDescriptor openTypedAssetFileDescriptor (ContentResolver original, Uri uri, String mimeType, Bundle opts, CancellationSignal cancellationSignal)

Throws
FileNotFoundException

public static Cursor query (ContentResolver original, Uri uri, String[] projection, Bundle queryArgs, CancellationSignal cancellationSignal)

public static Cursor query (ContentResolver original, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)

public static Cursor query (ContentResolver original, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)

public static boolean refresh (ContentResolver original, Uri url, Bundle args, CancellationSignal cancellationSignal)

public static int update (ContentResolver original, Uri uri, ContentValues values, String where, String[] selectionArgs)

public static int update (ContentResolver original, Uri uri, ContentValues values, Bundle extras)