Lines Matching defs:provider
33 * isolated content provider. Instead of using the system map of
54 * An instance of the provider under test, running in an {@link IsolatedContext}.
67 * For more information on content provider testing, please see
68 * <a href="{@docRoot}tools/testing/contentprovider_testing.html">Content Provider Testing</a>.
100 * @param providerClass The class name of the provider under test
101 * @param providerAuthority The provider's authority string
111 * Returns the content provider created by this class in the {@link #setUp()} method.
112 * @return T An instance of the provider class given as a parameter to the test case class.
123 * that isolates the provider's file operations, and a new instance of
124 * the provider under test within the isolated environment.
147 * Creates and sets up a new instance of the provider.
173 * must use the methods of this resolver to access the provider under test.
191 * Creates a new content provider of the same type as that passed to the test case class,
194 * This method also creates a new {@link MockContentResolver} and adds the provider to it.
197 * Both the new provider and the new resolver are put into an {@link IsolatedContext}
203 * This is a convenience method for creating a "mock" provider that can contain test data.
208 * @param providerClass The type of the provider being tested
209 * @param authority The authority string to associated with the test provider
215 * @return ContentResolver A new {@link MockContentResolver} linked to the provider
232 T provider = createProviderForTest(context, providerClass, authority);
233 resolver.addProvider(authority, provider);