Package org.robolectric.shadows
Class ShadowContentProviderClient
java.lang.Object
org.robolectric.shadows.ShadowContentProviderClient
@Implements(android.content.ContentProviderClient.class)
public class ShadowContentProviderClient
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentProviderResult[]applyBatch(ArrayList<ContentProviderOperation> operations) protected intbulkInsert(Uri url, ContentValues[] initialValues) protected Bundleprotected intprotected ContentProviderprotected String[]getStreamTypes(Uri uri, String mimeTypeFilter) protected Stringprotected Uriinsert(Uri url, ContentValues initialValues) booleanbooleanisStable()protected AssetFileDescriptoropenAssetFile(Uri url, String mode) protected ParcelFileDescriptorprotected AssetFileDescriptoropenTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts) protected Cursorprotected Cursorquery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) protected intupdate(Uri url, ContentValues values, String selection, String[] selectionArgs)
-
Constructor Details
-
ShadowContentProviderClient
public ShadowContentProviderClient()
-
-
Method Details
-
call
@Implementation protected Bundle call(String method, String arg, Bundle extras) throws RemoteException - Throws:
RemoteException
-
getType
- Throws:
RemoteException
-
getStreamTypes
-
query
@Implementation protected Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) throws RemoteException - Throws:
RemoteException
-
query
@Implementation protected Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) throws RemoteException - Throws:
RemoteException
-
insert
- Throws:
RemoteException
-
bulkInsert
@Implementation protected int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException - Throws:
RemoteException
-
delete
@Implementation protected int delete(Uri url, String selection, String[] selectionArgs) throws RemoteException - Throws:
RemoteException
-
update
@Implementation protected int update(Uri url, ContentValues values, String selection, String[] selectionArgs) throws RemoteException - Throws:
RemoteException
-
openFile
@Implementation protected ParcelFileDescriptor openFile(Uri url, String mode) throws RemoteException, FileNotFoundException - Throws:
RemoteExceptionFileNotFoundException
-
openAssetFile
@Implementation protected AssetFileDescriptor openAssetFile(Uri url, String mode) throws RemoteException, FileNotFoundException - Throws:
RemoteExceptionFileNotFoundException
-
openTypedAssetFileDescriptor
@Implementation protected AssetFileDescriptor openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts) throws RemoteException, FileNotFoundException - Throws:
RemoteExceptionFileNotFoundException
-
applyBatch
@Implementation protected ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) throws RemoteException, OperationApplicationException -
getLocalContentProvider
-
isStable
public boolean isStable() -
isReleased
public boolean isReleased()
-