public abstract class

MAMDocumentsProvider

extends DocumentsProvider
implements HookedDocumentsProvider
java.lang.Object
   ↳ android.content.ContentProvider
     ↳ android.provider.DocumentsProvider
       ↳ com.microsoft.intune.mam.client.content.MAMDocumentsProvider

Class Overview

MAM version of DocumentsProvider.

Summary

[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
MAMDocumentsProvider()
Public Methods
final ContentProviderResult[] applyBatch(String authority, ArrayList<ContentProviderOperation> operations)
final ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations)
ContentProviderResult[] applyBatchMAM(ArrayList<ContentProviderOperation> operations)
ContentProviderResult[] applyBatchMAM(String authority, ArrayList<ContentProviderOperation> operations)
void attachInfo(Context context, ProviderInfo info)
void attachInfoMAM(Context context, ProviderInfo info)
final int bulkInsert(Uri uri, ContentValues[] values)
int bulkInsertMAM(Uri uri, ContentValues[] values)
final Bundle call(String authority, String method, String arg, Bundle extras)
final Bundle call(String method, String arg, Bundle extras)
Bundle callMAM(String authority, String method, String arg, Bundle extras)
Bundle callMAM(String method, String arg, Bundle extras)
String copyDocument(String sourceDocumentId, String targetParentDocumentId)
String copyDocumentMAM(String sourceDocumentId, String targetParentDocumentId)
final String createDocument(String parentDocumentId, String mimeType, String displayName)
String createDocumentMAM(String parentDocumentId, String mimeType, String displayName)
IntentSender createWebLinkIntent(String documentId, Bundle options)
IntentSender createWebLinkIntentMAM(String documentId, Bundle options)
final int delete(Uri uri, Bundle extras)
final void deleteDocument(String documentId)
void deleteDocumentMAM(String parentDocumentId)
int deleteMAM(Uri uri, String selection, String[] selectionArgs)
int deleteMAM(Uri uri, Bundle extras)
final void ejectRoot(String rootId)
void ejectRootMAM(String rootId)
final DocumentsContract.Path findDocumentPath(String parentDocumentId, String childDocumentId)
DocumentsContract.Path findDocumentPathMAM(String parentDocumentId, String childDocumentId)
final Uri insert(Uri uri, ContentValues values, Bundle extras)
Uri insertMAM(Uri uri, ContentValues values, Bundle extras)
Uri insertMAM(Uri uri, ContentValues values)
String moveDocument(String sourceDocumentId, String sourceParentDocumentId, String targetParentDocumentId)
String moveDocumentMAM(String sourceDocumentId, String sourceParentDocumentId, String targetParentDocumentId)
final AssetFileDescriptor openAssetFileMAM(Uri uri, String mode)
final AssetFileDescriptor openAssetFileMAM(Uri uri, String mode, CancellationSignal signal)
final ParcelFileDescriptor openDocument(String documentId, String mode, CancellationSignal signal)
final AssetFileDescriptor openDocumentThumbnail(String documentId, Point sizeHint, CancellationSignal signal)
AssetFileDescriptor openDocumentThumbnailMAM(String documentId, Point sizeHint, CancellationSignal signal)
final ParcelFileDescriptor openFileMAM(Uri uri, String mode)
final ParcelFileDescriptor openFileMAM(Uri uri, String mode, CancellationSignal signal)
final AssetFileDescriptor openTypedAssetFileMAM(Uri uri, String mimeTypeFilter, Bundle opts)
final AssetFileDescriptor openTypedAssetFileMAM(Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal)
AssetFileDescriptor openTypedDocument(String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal)
AssetFileDescriptor openTypedDocumentMAM(String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal)
final Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)
final Cursor queryChildDocuments(String parentDocumentId, String[] projection, Bundle queryArgs)
final Cursor queryChildDocuments(String parentDocumentId, String[] projection, String sortOrder)
Note, there are other overloads of query which we do not override because they are final.
Cursor queryChildDocumentsMAM(String parentDocumentId, String[] projection, Bundle queryArgs)
final Cursor queryDocument(String documentId, String[] projection)
Cursor queryMAM(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
Cursor queryMAM(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)
Cursor queryMAM(Uri uri, String[] projection, Bundle queryArgs, CancellationSignal cancellationSignal)
final Cursor queryRecentDocuments(String rootId, String[] projection)
Cursor queryRecentDocumentsMAM(String rootId, String[] projection)
final Cursor queryRoots(String[] projection)
final Cursor querySearchDocuments(String rootId, String query, String[] projection)
Cursor querySearchDocumentsMAM(String rootId, String query, String[] projection)
void removeDocument(String documentId, String parentDocumentId)
void removeDocumentMAM(String documentId, String parentDocumentId)
final int update(Uri uri, ContentValues values, Bundle extras)
int updateMAM(Uri uri, ContentValues values, String selection, String[] selectionArgs)
int updateMAM(Uri uri, ContentValues values, Bundle extras)
[Expand]
Inherited Methods
From class android.provider.DocumentsProvider
From class android.content.ContentProvider
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface com.microsoft.intune.mam.client.app.MAMIdentityRequirementListener
From interface com.microsoft.intune.mam.client.content.HookedContentProvider
From interface com.microsoft.intune.mam.client.content.HookedDocumentsProvider

Public Constructors

public MAMDocumentsProvider ()

Public Methods

public final ContentProviderResult[] applyBatch (String authority, ArrayList<ContentProviderOperation> operations)

Throws
OperationApplicationException

public final ContentProviderResult[] applyBatch (ArrayList<ContentProviderOperation> operations)

Throws
OperationApplicationException

public ContentProviderResult[] applyBatchMAM (ArrayList<ContentProviderOperation> operations)

Throws
OperationApplicationException

public ContentProviderResult[] applyBatchMAM (String authority, ArrayList<ContentProviderOperation> operations)

Throws
OperationApplicationException

public void attachInfo (Context context, ProviderInfo info)

public void attachInfoMAM (Context context, ProviderInfo info)

public final int bulkInsert (Uri uri, ContentValues[] values)

public int bulkInsertMAM (Uri uri, ContentValues[] values)

public final Bundle call (String authority, String method, String arg, Bundle extras)

public final Bundle call (String method, String arg, Bundle extras)

public Bundle callMAM (String authority, String method, String arg, Bundle extras)

public Bundle callMAM (String method, String arg, Bundle extras)

public String copyDocument (String sourceDocumentId, String targetParentDocumentId)

Throws
FileNotFoundException

public String copyDocumentMAM (String sourceDocumentId, String targetParentDocumentId)

Throws
FileNotFoundException

public final String createDocument (String parentDocumentId, String mimeType, String displayName)

Throws
FileNotFoundException

public String createDocumentMAM (String parentDocumentId, String mimeType, String displayName)

Throws
FileNotFoundException

public IntentSender createWebLinkIntent (String documentId, Bundle options)

Throws
FileNotFoundException

public IntentSender createWebLinkIntentMAM (String documentId, Bundle options)

Throws
FileNotFoundException

public final int delete (Uri uri, Bundle extras)

public final void deleteDocument (String documentId)

Throws
FileNotFoundException

public void deleteDocumentMAM (String parentDocumentId)

Throws
FileNotFoundException

public int deleteMAM (Uri uri, String selection, String[] selectionArgs)

public int deleteMAM (Uri uri, Bundle extras)

public final void ejectRoot (String rootId)

public void ejectRootMAM (String rootId)

public final DocumentsContract.Path findDocumentPath (String parentDocumentId, String childDocumentId)

Throws
FileNotFoundException

public DocumentsContract.Path findDocumentPathMAM (String parentDocumentId, String childDocumentId)

Throws
FileNotFoundException

public final Uri insert (Uri uri, ContentValues values, Bundle extras)

public Uri insertMAM (Uri uri, ContentValues values, Bundle extras)

public Uri insertMAM (Uri uri, ContentValues values)

public String moveDocument (String sourceDocumentId, String sourceParentDocumentId, String targetParentDocumentId)

Throws
FileNotFoundException

public String moveDocumentMAM (String sourceDocumentId, String sourceParentDocumentId, String targetParentDocumentId)

Throws
FileNotFoundException

public final AssetFileDescriptor openAssetFileMAM (Uri uri, String mode)

Throws
FileNotFoundException

public final AssetFileDescriptor openAssetFileMAM (Uri uri, String mode, CancellationSignal signal)

Throws
FileNotFoundException

public final ParcelFileDescriptor openDocument (String documentId, String mode, CancellationSignal signal)

Throws
FileNotFoundException

public final AssetFileDescriptor openDocumentThumbnail (String documentId, Point sizeHint, CancellationSignal signal)

Throws
FileNotFoundException

public AssetFileDescriptor openDocumentThumbnailMAM (String documentId, Point sizeHint, CancellationSignal signal)

Throws
FileNotFoundException

public final ParcelFileDescriptor openFileMAM (Uri uri, String mode)

Throws
FileNotFoundException

public final ParcelFileDescriptor openFileMAM (Uri uri, String mode, CancellationSignal signal)

Throws
FileNotFoundException

public final AssetFileDescriptor openTypedAssetFileMAM (Uri uri, String mimeTypeFilter, Bundle opts)

Throws
FileNotFoundException

public final AssetFileDescriptor openTypedAssetFileMAM (Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal)

Throws
FileNotFoundException

public AssetFileDescriptor openTypedDocument (String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal)

Throws
FileNotFoundException

public AssetFileDescriptor openTypedDocumentMAM (String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal)

Throws
FileNotFoundException

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

public final Cursor queryChildDocuments (String parentDocumentId, String[] projection, Bundle queryArgs)

Throws
FileNotFoundException

public final Cursor queryChildDocuments (String parentDocumentId, String[] projection, String sortOrder)

Note, there are other overloads of query which we do not override because they are final. Data leak will not occur, because the DocumentsProvider implementation of these always calls into one of the non-final documents-specific query* methods (queryRoots, queryRecentDocuments, etc).

Throws
FileNotFoundException

public Cursor queryChildDocumentsMAM (String parentDocumentId, String[] projection, Bundle queryArgs)

Throws
FileNotFoundException

public final Cursor queryDocument (String documentId, String[] projection)

Throws
FileNotFoundException

public Cursor queryMAM (Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)

public Cursor queryMAM (Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)

public Cursor queryMAM (Uri uri, String[] projection, Bundle queryArgs, CancellationSignal cancellationSignal)

public final Cursor queryRecentDocuments (String rootId, String[] projection)

Throws
FileNotFoundException

public Cursor queryRecentDocumentsMAM (String rootId, String[] projection)

Throws
FileNotFoundException

public final Cursor queryRoots (String[] projection)

Throws
FileNotFoundException

public final Cursor querySearchDocuments (String rootId, String query, String[] projection)

Throws
FileNotFoundException

public Cursor querySearchDocumentsMAM (String rootId, String query, String[] projection)

Throws
FileNotFoundException

public void removeDocument (String documentId, String parentDocumentId)

Throws
FileNotFoundException

public void removeDocumentMAM (String documentId, String parentDocumentId)

Throws
FileNotFoundException

public final int update (Uri uri, ContentValues values, Bundle extras)

public int updateMAM (Uri uri, ContentValues values, String selection, String[] selectionArgs)

public int updateMAM (Uri uri, ContentValues values, Bundle extras)