Lines Matching refs:provider
32 * isolated content provider. Instead of using the system map of
53 * An instance of the provider under test, running in an {@link IsolatedContext}.
66 * For more information on content provider testing, please see
67 * <a href="{@docRoot}tools/testing/contentprovider_testing.html">Content Provider Testing</a>.
99 * @param providerClass The class name of the provider under test
100 * @param providerAuthority The provider's authority string
110 * Returns the content provider created by this class in the {@link #setUp()} method.
111 * @return T An instance of the provider class given as a parameter to the test case class.
122 * that isolates the provider's file operations, and a new instance of
123 * the provider under test within the isolated environment.
162 * must use the methods of this resolver to access the provider under test.
180 * Creates a new content provider of the same type as that passed to the test case class,
183 * This method also creates a new {@link MockContentResolver} and adds the provider to it.
186 * Both the new provider and the new resolver are put into an {@link IsolatedContext}
192 * This is a convenience method for creating a "mock" provider that can contain test data.
197 * @param providerClass The type of the provider being tested
198 * @param authority The authority string to associated with the test provider
204 * @return ContentResolver A new {@link MockContentResolver} linked to the provider
221 T provider = providerClass.newInstance();
222 provider.attachInfoForTesting(context, null);
223 resolver.addProvider(authority, provider);