Package org.robolectric.shadows
Class ShadowContentProviderClient
- java.lang.Object
-
- org.robolectric.shadows.ShadowContentProviderClient
-
@Implements(android.content.ContentProviderClient.class) public class ShadowContentProviderClient extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowContentProviderClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected android.content.ContentProviderResult[]applyBatch(java.util.ArrayList<android.content.ContentProviderOperation> operations)protected intbulkInsert(android.net.Uri url, android.content.ContentValues[] initialValues)protected android.os.Bundlecall(java.lang.String method, java.lang.String arg, android.os.Bundle extras)protected intdelete(android.net.Uri url, java.lang.String selection, java.lang.String[] selectionArgs)protected android.content.ContentProvidergetLocalContentProvider()protected java.lang.String[]getStreamTypes(android.net.Uri uri, java.lang.String mimeTypeFilter)protected java.lang.StringgetType(android.net.Uri uri)protected android.net.Uriinsert(android.net.Uri url, android.content.ContentValues initialValues)booleanisReleased()booleanisStable()protected android.content.res.AssetFileDescriptoropenAssetFile(android.net.Uri url, java.lang.String mode)protected android.os.ParcelFileDescriptoropenFile(android.net.Uri url, java.lang.String mode)protected android.content.res.AssetFileDescriptoropenTypedAssetFileDescriptor(android.net.Uri uri, java.lang.String mimeType, android.os.Bundle opts)protected android.database.Cursorquery(android.net.Uri url, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder)protected android.database.Cursorquery(android.net.Uri url, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder, android.os.CancellationSignal cancellationSignal)protected booleanrelease()protected intupdate(android.net.Uri url, android.content.ContentValues values, java.lang.String selection, java.lang.String[] selectionArgs)
-
-
-
Method Detail
-
call
@Implementation(minSdk=17) protected android.os.Bundle call(java.lang.String method, java.lang.String arg, android.os.Bundle extras) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
getType
@Implementation protected java.lang.String getType(android.net.Uri uri) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
getStreamTypes
@Implementation protected java.lang.String[] getStreamTypes(android.net.Uri uri, java.lang.String mimeTypeFilter)
-
query
@Implementation protected android.database.Cursor query(android.net.Uri url, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
query
@Implementation protected android.database.Cursor query(android.net.Uri url, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder, android.os.CancellationSignal cancellationSignal) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
insert
@Implementation protected android.net.Uri insert(android.net.Uri url, android.content.ContentValues initialValues) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
bulkInsert
@Implementation protected int bulkInsert(android.net.Uri url, android.content.ContentValues[] initialValues) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
delete
@Implementation protected int delete(android.net.Uri url, java.lang.String selection, java.lang.String[] selectionArgs) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
update
@Implementation protected int update(android.net.Uri url, android.content.ContentValues values, java.lang.String selection, java.lang.String[] selectionArgs) throws android.os.RemoteException- Throws:
android.os.RemoteException
-
openFile
@Implementation protected android.os.ParcelFileDescriptor openFile(android.net.Uri url, java.lang.String mode) throws android.os.RemoteException, java.io.FileNotFoundException- Throws:
android.os.RemoteExceptionjava.io.FileNotFoundException
-
openAssetFile
@Implementation protected android.content.res.AssetFileDescriptor openAssetFile(android.net.Uri url, java.lang.String mode) throws android.os.RemoteException, java.io.FileNotFoundException- Throws:
android.os.RemoteExceptionjava.io.FileNotFoundException
-
openTypedAssetFileDescriptor
@Implementation protected final android.content.res.AssetFileDescriptor openTypedAssetFileDescriptor(android.net.Uri uri, java.lang.String mimeType, android.os.Bundle opts) throws android.os.RemoteException, java.io.FileNotFoundException- Throws:
android.os.RemoteExceptionjava.io.FileNotFoundException
-
applyBatch
@Implementation protected android.content.ContentProviderResult[] applyBatch(java.util.ArrayList<android.content.ContentProviderOperation> operations) throws android.os.RemoteException, android.content.OperationApplicationException- Throws:
android.os.RemoteExceptionandroid.content.OperationApplicationException
-
release
@Implementation protected boolean release()
-
getLocalContentProvider
@Implementation protected android.content.ContentProvider getLocalContentProvider()
-
isStable
public boolean isStable()
-
isReleased
public boolean isReleased()
-
-