Lines Matching defs:provider

79 import android.provider.Settings;
356 ProviderClientRecord(String[] names, IContentProvider provider,
360 mProvider = provider;
1131 public void unstableProviderDied(IBinder provider) {
1132 sendMessage(H.UNSTABLE_PROVIDER_DIED, provider);
1195 public void scheduleInstallProvider(ProviderInfo provider) {
1196 sendMessage(H.INSTALL_PROVIDER, provider);
4673 // Allow disk access during application and provider setup. This could
4765 final IContentProvider provider = acquireExistingProvider(c, auth, userId, stable);
4766 if (provider != null) {
4767 return provider;
4771 // the same provider at the same time. When this happens, we want to ensure
4774 // provider since it might take a long time to run and it could also potentially
4775 // be re-entrant in the case where the provider is in the same process.
4783 Slog.e(TAG, "Failed to find provider info for " + auth);
4787 // Install provider will increment the reference count for us, and break
4791 return holder.provider;
4798 // We are acquiring a new stable reference on the provider.
4805 // Cancel the removal of the provider.
4808 + "snatched provider from the jaws of death");
4826 //do nothing content provider object is dead any way
4832 // We are acquiring a new unstable reference on the provider.
4835 // provider, which is still holding the last unstable
4840 + "snatched provider from the jaws of death");
4855 //do nothing content provider object is dead any way
4871 IContentProvider provider = pr.mProvider;
4872 IBinder jBinder = provider.asBinder();
4874 // The hosting process of the provider has died; we can't
4876 Log.i(TAG, "Acquiring provider " + auth + " for user " + userId
4883 // provider is not reference counted and never needs to be released.
4888 return provider;
4892 public final boolean releaseProvider(IContentProvider provider, boolean stable) {
4893 if (provider == null) {
4897 IBinder jBinder = provider.asBinder();
4901 // The provider has no ref count, no release is needed.
4917 // aren't, we need to enqueue this provider to be removed,
4929 //do nothing content provider object is dead any way
4941 // this provider to be removed instead of telling the
4953 //do nothing content provider object is dead any way
4964 // if we come back and need the same provider quickly
4974 Slog.w(TAG, "Duplicate remove pending of provider " + prc.holder.info.name);
4985 // the provider before the removal was completed.
4988 + "provider still in use");
4993 // provider and release it before the removal was completed.
4997 final IBinder jBinder = prc.holder.provider.asBinder();
5020 //do nothing content provider object is dead any way
5024 final void handleUnstableProviderDied(IBinder provider, boolean fromClient) {
5026 handleUnstableProviderDiedLocked(provider, fromClient);
5030 final void handleUnstableProviderDiedLocked(IBinder provider, boolean fromClient) {
5031 ProviderRefCount prc = mProviderRefCountMap.get(provider);
5033 if (DEBUG_PROVIDER) Slog.v(TAG, "Cleaning up dead provider "
5034 + provider + " " + prc.holder.info.name);
5035 mProviderRefCountMap.remove(provider);
5038 if (pr != null && pr.mProvider.asBinder() == provider) {
5039 Slog.i(TAG, "Removing dead content provider:" + pr.mProvider.toString());
5047 // that the next time we go to do anything with the provider
5054 //do nothing content provider object is dead any way
5060 final void appNotRespondingViaProvider(IBinder provider) {
5062 ProviderRefCount prc = mProviderRefCountMap.get(provider);
5073 private ProviderClientRecord installProviderAuthoritiesLocked(IContentProvider provider,
5079 auths, provider, localProvider, holder);
5084 Slog.w(TAG, "Content provider " + pcr.mHolder.info.name
5094 * Installs the provider.
5102 * This method detects when a provider has already been installed. When this happens,
5103 * it increments the reference count of the existing provider (if appropriate)
5104 * and returns the existing provider. This can happen due to concurrent
5105 * attempts to acquire the same provider.
5111 IContentProvider provider;
5112 if (holder == null || holder.provider == null) {
5114 Slog.d(TAG, "Loading provider " + info.authority + ": "
5135 " while loading content provider " +
5143 provider = localProvider.getIContentProvider();
5144 if (provider == null) {
5151 TAG, "Instantiating local provider " + info.name);
5152 // XXX Need to create the correct context for this provider.
5157 "Unable to get provider " + info.name
5163 provider = holder.provider;
5164 if (DEBUG_PROVIDER) Slog.v(TAG, "Installing external provider " + info.authority + ": "
5171 if (DEBUG_PROVIDER) Slog.v(TAG, "Checking to add " + provider
5173 IBinder jBinder = provider.asBinder();
5180 + "using existing local provider");
5182 provider = pr.mProvider;
5185 holder.provider = provider;
5187 pr = installProviderAuthoritiesLocked(provider, localProvider, holder);
5208 //do nothing content provider object is dead any way
5213 provider, localProvider, holder);