Home | History | Annotate | Download | only in mock

Lines Matching refs:provider

37  *      authority. To have access to a provider based on its authority, users of
38 * MockContentResolver first instantiate the provider and
43 * Users can also set an authority's entry in the map to null, so that a provider is completely
53 * API call tries to acquire a provider.
61 * Adds access to a provider based on its authority
63 * @param name The authority name associated with the provider.
64 * @param provider An instance of {@link android.content.ContentProvider} or one of its
67 public void addProvider(String name, ContentProvider provider) {
70 * Maps the authority to the provider locally.
72 mProviders.put(name, provider);
86 * Gets the content provider from the local map
88 final ContentProvider provider = mProviders.get(name);
90 if (provider != null) {
91 return provider.getIContentProvider();
99 public boolean releaseProvider(IContentProvider provider) {
108 * @param uri (Ignored) The uri of the content provider.