Lines Matching defs:provider

96 import org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl;
333 ProviderClientRecord(String[] names, IContentProvider provider,
337 mProvider = provider;
1106 public void unstableProviderDied(IBinder provider) {
1107 queueOrSendMessage(H.UNSTABLE_PROVIDER_DIED, provider);
4357 // Allow disk access during application and provider setup. This could
4447 final IContentProvider provider = acquireExistingProvider(c, auth, userId, stable);
4448 if (provider != null) {
4449 return provider;
4453 // the same provider at the same time. When this happens, we want to ensure
4456 // provider since it might take a long time to run and it could also potentially
4457 // be re-entrant in the case where the provider is in the same process.
4465 Slog.e(TAG, "Failed to find provider info for " + auth);
4469 // Install provider will increment the reference count for us, and break
4473 return holder.provider;
4480 // We are acquiring a new stable reference on the provider.
4487 // Cancel the removal of the provider.
4490 + "snatched provider from the jaws of death");
4506 //do nothing content provider object is dead any way
4512 // We are acquiring a new unstable reference on the provider.
4515 // provider, which is still holding the last unstable
4520 + "snatched provider from the jaws of death");
4535 //do nothing content provider object is dead any way
4551 IContentProvider provider = pr.mProvider;
4552 IBinder jBinder = provider.asBinder();
4554 // The hosting process of the provider has died; we can't
4556 Log.i(TAG, "Acquiring provider " + auth + " for user " + userId
4563 // provider is not reference counted and never needs to be released.
4568 return provider;
4572 public final boolean releaseProvider(IContentProvider provider, boolean stable) {
4573 if (provider == null) {
4577 IBinder jBinder = provider.asBinder();
4581 // The provider has no ref count, no release is needed.
4597 // aren't, we need to enqueue this provider to be removed,
4609 //do nothing content provider object is dead any way
4621 // this provider to be removed instead of telling the
4633 //do nothing content provider object is dead any way
4644 // if we come back and need the same provider quickly
4654 Slog.w(TAG, "Duplicate remove pending of provider " + prc.holder.info.name);
4665 // the provider before the removal was completed.
4668 + "provider still in use");
4672 final IBinder jBinder = prc.holder.provider.asBinder();
4696 //do nothing content provider object is dead any way
4700 final void handleUnstableProviderDied(IBinder provider, boolean fromClient) {
4702 handleUnstableProviderDiedLocked(provider, fromClient);
4706 final void handleUnstableProviderDiedLocked(IBinder provider, boolean fromClient) {
4707 ProviderRefCount prc = mProviderRefCountMap.get(provider);
4709 if (DEBUG_PROVIDER) Slog.v(TAG, "Cleaning up dead provider "
4710 + provider + " " + prc.holder.info.name);
4711 mProviderRefCountMap.remove(provider);
4715 if (pr != null && pr.mProvider.asBinder() == provider) {
4716 Slog.i(TAG, "Removing dead content provider: " + name);
4724 // that the next time we go to do anything with the provider
4731 //do nothing content provider object is dead any way
4737 private ProviderClientRecord installProviderAuthoritiesLocked(IContentProvider provider,
4743 auths, provider, localProvider, holder);
4748 Slog.w(TAG, "Content provider " + pcr.mHolder.info.name
4758 * Installs the provider.
4766 * This method detects when a provider has already been installed. When this happens,
4767 * it increments the reference count of the existing provider (if appropriate)
4768 * and returns the existing provider. This can happen due to concurrent
4769 * attempts to acquire the same provider.
4775 IContentProvider provider;
4776 if (holder == null || holder.provider == null) {
4778 Slog.d(TAG, "Loading provider " + info.authority + ": "
4799 " while loading content provider " +
4807 provider = localProvider.getIContentProvider();
4808 if (provider == null) {
4815 TAG, "Instantiating local provider " + info.name);
4816 // XXX Need to create the correct context for this provider.
4821 "Unable to get provider " + info.name
4827 provider = holder.provider;
4828 if (DEBUG_PROVIDER) Slog.v(TAG, "Installing external provider " + info.authority + ": "
4835 if (DEBUG_PROVIDER) Slog.v(TAG, "Checking to add " + provider
4837 IBinder jBinder = provider.asBinder();
4844 + "using existing local provider");
4846 provider = pr.mProvider;
4849 holder.provider = provider;
4851 pr = installProviderAuthoritiesLocked(provider, localProvider, holder);
4872 //do nothing content provider object is dead any way
4877 provider, localProvider, holder);