@Implements(android.content.ContentProviderClient.class) public class ShadowContentProviderClient extends Object
Constructor | Description |
---|---|
ShadowContentProviderClient() |
Modifier and Type | Method | Description |
---|---|---|
protected ContentProviderResult[] |
applyBatch(ArrayList<ContentProviderOperation> operations) |
|
protected int |
bulkInsert(Uri url,
ContentValues[] initialValues) |
|
protected Bundle |
call(String method,
String arg,
Bundle extras) |
|
protected int |
delete(Uri url,
String selection,
String[] selectionArgs) |
|
protected ContentProvider |
getLocalContentProvider() |
|
protected String[] |
getStreamTypes(Uri uri,
String mimeTypeFilter) |
|
protected String |
getType(Uri uri) |
|
protected Uri |
insert(Uri url,
ContentValues initialValues) |
|
boolean |
isReleased() |
|
boolean |
isStable() |
|
protected AssetFileDescriptor |
openAssetFile(Uri url,
String mode) |
|
protected ParcelFileDescriptor |
openFile(Uri url,
String mode) |
|
protected AssetFileDescriptor |
openTypedAssetFileDescriptor(Uri uri,
String mimeType,
Bundle opts) |
|
protected Cursor |
query(Uri url,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder) |
|
protected Cursor |
query(Uri url,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder,
CancellationSignal cancellationSignal) |
|
protected boolean |
release() |
|
protected int |
update(Uri url,
ContentValues values,
String selection,
String[] selectionArgs) |
@Implementation(minSdk=17) protected Bundle call(String method, String arg, Bundle extras) throws RemoteException
RemoteException
@Implementation protected String getType(Uri uri) throws RemoteException
RemoteException
@Implementation protected String[] getStreamTypes(Uri uri, String mimeTypeFilter)
@Implementation protected Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) throws RemoteException
RemoteException
@Implementation protected Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) throws RemoteException
RemoteException
@Implementation protected Uri insert(Uri url, ContentValues initialValues) throws RemoteException
RemoteException
@Implementation protected int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException
RemoteException
@Implementation protected int delete(Uri url, String selection, String[] selectionArgs) throws RemoteException
RemoteException
@Implementation protected int update(Uri url, ContentValues values, String selection, String[] selectionArgs) throws RemoteException
RemoteException
@Implementation protected ParcelFileDescriptor openFile(Uri url, String mode) throws RemoteException, FileNotFoundException
RemoteException
FileNotFoundException
@Implementation protected AssetFileDescriptor openAssetFile(Uri url, String mode) throws RemoteException, FileNotFoundException
RemoteException
FileNotFoundException
@Implementation protected final AssetFileDescriptor openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts) throws RemoteException, FileNotFoundException
RemoteException
FileNotFoundException
@Implementation protected ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) throws RemoteException, OperationApplicationException
@Implementation protected boolean release()
@Implementation protected ContentProvider getLocalContentProvider()
public boolean isStable()
public boolean isReleased()