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
59 * map when an API call tries to acquire a provider.
67 * map when an API call tries to acquire a provider.
75 * Adds access to a provider based on its authority
77 * @param name The authority name associated with the provider.
78 * @param provider An instance of {@link android.content.ContentProvider} or one of its
81 public void addProvider(String name, ContentProvider provider) {
84 * Maps the authority to the provider locally.
86 mProviders.put(name, provider);
100 * Gets the content provider from the local map
102 final ContentProvider provider = mProviders.get(name);
104 if (provider != null) {
105 return provider.getIContentProvider();
113 public boolean releaseProvider(IContentProvider provider) {
139 * @param uri (Ignored) The uri of the content provider.