Class ShadowContentProviderClient


  • @Implements(android.content.ContentProviderClient.class)
    public class ShadowContentProviderClient
    extends java.lang.Object
    • 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 int bulkInsert​(android.net.Uri url, android.content.ContentValues[] initialValues)  
      protected android.os.Bundle call​(java.lang.String method, java.lang.String arg, android.os.Bundle extras)  
      protected int delete​(android.net.Uri url, java.lang.String selection, java.lang.String[] selectionArgs)  
      protected android.content.ContentProvider getLocalContentProvider()  
      protected java.lang.String[] getStreamTypes​(android.net.Uri uri, java.lang.String mimeTypeFilter)  
      protected java.lang.String getType​(android.net.Uri uri)  
      protected android.net.Uri insert​(android.net.Uri url, android.content.ContentValues initialValues)  
      boolean isReleased()  
      boolean isStable()  
      protected android.content.res.AssetFileDescriptor openAssetFile​(android.net.Uri url, java.lang.String mode)  
      protected android.os.ParcelFileDescriptor openFile​(android.net.Uri url, java.lang.String mode)  
      protected android.content.res.AssetFileDescriptor openTypedAssetFileDescriptor​(android.net.Uri uri, java.lang.String mimeType, android.os.Bundle opts)  
      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)  
      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)  
      protected boolean release()  
      protected int update​(android.net.Uri url, android.content.ContentValues values, java.lang.String selection, java.lang.String[] selectionArgs)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowContentProviderClient

        public ShadowContentProviderClient()
    • 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.RemoteException
        java.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.RemoteException
        java.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.RemoteException
        java.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.RemoteException
        android.content.OperationApplicationException
      • release

        @Implementation
        protected boolean release()
      • getLocalContentProvider

        @Implementation
        protected android.content.ContentProvider getLocalContentProvider()
      • isStable

        public boolean isStable()
      • isReleased

        public boolean isReleased()