shadows/framework/src/main/java/org/robolectric/android/controller/ContentProviderController.java
public ContentProviderController<T> create() {
    Context baseContext = RuntimeEnvironment.application.getBaseContext();

    ComponentName componentName = createRelative(baseContext.getPackageName(), contentProvider.getClass().getName());

    ProviderInfo providerInfo = null;
    try {
      providerInfo =
          baseContext
              .getPackageManager()
              .getProviderInfo(componentName, PackageManager.MATCH_DISABLED_COMPONENTS);
    } catch (PackageManager.NameNotFoundException e) {
      Logger.strict("Unable to find provider info for " + componentName, e);
    }

    return create(providerInfo);
  }
public ContentProviderController<T> create() {
    Context baseContext = RuntimeEnvironment.application.getBaseContext();

    ComponentName componentName = createRelative(baseContext.getPackageName(), contentProvider.getClass().getName());

    ProviderInfo providerInfo = null;
    try {
      providerInfo =
          baseContext
              .getPackageManager()
              .getProviderInfo(componentName, PackageManager.MATCH_DISABLED_COMPONENTS);
    } catch (PackageManager.NameNotFoundException e) {
      Logger.strict("Unable to find provider info for " + componentName, e);
    }

    return create(providerInfo);
  }
public ContentProviderController < T > create ( ) { Context baseContext = RuntimeEnvironment . application . getBaseContext ( ) ; ComponentName componentName = createRelative ( baseContext . getPackageName ( ) , contentProvider . getClass ( ) . getName ( ) ) ; ProviderInfo providerInfo = null ; try { providerInfo = baseContext . getPackageManager ( ) . getProviderInfo ( componentName , PackageManager . MATCH_DISABLED_COMPONENTS ) ; } catch ( PackageManager . NameNotFoundException e ) { Logger . strict ( "Unable to find provider info for " + componentName , e ) ; } return create ( providerInfo ) ; }
Create and register {@link ContentProvider} using {@link ProviderInfo} found from manifest.
Create and register {