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 Constructor Description ShadowContentProviderClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContentProviderResult[]applyBatch(ArrayList<ContentProviderOperation> operations)protected intbulkInsert(Uri url, ContentValues[] initialValues)protected Bundlecall(String method, String arg, Bundle extras)protected intdelete(Uri url, String selection, String[] selectionArgs)protected ContentProvidergetLocalContentProvider()protected String[]getStreamTypes(Uri uri, String mimeTypeFilter)protected StringgetType(Uri uri)protected Uriinsert(Uri url, ContentValues initialValues)booleanisReleased()booleanisStable()protected AssetFileDescriptoropenAssetFile(Uri url, String mode)protected ParcelFileDescriptoropenFile(Uri url, String mode)protected AssetFileDescriptoropenTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts)protected Cursorquery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder)protected Cursorquery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)protected intupdate(Uri url, ContentValues values, String selection, String[] selectionArgs)
-
-
-
Method Detail
-
call
@Implementation(minSdk=17) protected Bundle call(String method, String arg, Bundle extras) throws RemoteException
- Throws:
RemoteException
-
getType
@Implementation protected String getType(Uri uri) throws RemoteException
- Throws:
RemoteException
-
getStreamTypes
@Implementation protected String[] getStreamTypes(Uri uri, String mimeTypeFilter)
-
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
@Implementation protected Uri insert(Uri url, ContentValues initialValues) throws RemoteException
- 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 final 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
@Implementation protected ContentProvider getLocalContentProvider()
-
isStable
public boolean isStable()
-
isReleased
public boolean isReleased()
-
-