public final class

MAMContentProviderClientManagement

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

Class Overview

MAM wrapper around ContentProviderClient. 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.ContentProviderClient methods and Android docs should be consulted for further information.

Summary

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

Public Methods

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

Throws
OperationApplicationException
RemoteException

public static ContentProviderResult[] applyBatch (ContentProviderClient original, ArrayList<ContentProviderOperation> operations)

Throws
OperationApplicationException
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

public static String getType (ContentProviderClient original, Uri url)

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

public static AssetFileDescriptor openAssetFile (ContentProviderClient original, Uri uri, String mode)

Throws
FileNotFoundException
RemoteException

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

Throws
FileNotFoundException
RemoteException

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

Throws
FileNotFoundException
RemoteException

public static ParcelFileDescriptor openFile (ContentProviderClient original, Uri uri, String mode)

Throws
FileNotFoundException
RemoteException

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

Throws
FileNotFoundException
RemoteException

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

Throws
FileNotFoundException
RemoteException

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

Throws
FileNotFoundException
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException

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

Throws
RemoteException