// The activity manager dispatched a broadcast to a registered // receiver in this process, but before it could be delivered the // receiver was unregistered. Acknowledge the broadcast on its // behalf so that the system's broadcast sequence can continue. public android.app.IServiceConnection getServiceDispatcher(android.content.ServiceConnection c, android.content.Context context, android.os.Handler handler, int flags) { lock (mServices) { android.app.LoadedApk.ServiceDispatcher sd = null; java.util.HashMap <android.content.ServiceConnection, android.app.LoadedApk.ServiceDispatcher > map = mServices.get(context); if (map != null) { sd = map.get(c); } if (sd == null) { sd = new android.app.LoadedApk.ServiceDispatcher(c, context, handler, flags); if (map == null) { map = new java.util.HashMap <android.content.ServiceConnection, android.app.LoadedApk .ServiceDispatcher>(); mServices.put(context, map); } map.put(c, sd); } else { sd.validate(context, handler); } return(sd.getIServiceConnection()); } }
public override void connected(android.content.ComponentName name, android.os.IBinder service) { android.app.LoadedApk.ServiceDispatcher sd = mDispatcher.get(); if (sd != null) { sd.connected(name, service); } }
// The activity manager dispatched a broadcast to a registered // receiver in this process, but before it could be delivered the // receiver was unregistered. Acknowledge the broadcast on its // behalf so that the system's broadcast sequence can continue. public android.app.IServiceConnection getServiceDispatcher(android.content.ServiceConnection c, android.content.Context context, android.os.Handler handler, int flags) { lock (mServices) { android.app.LoadedApk.ServiceDispatcher sd = null; java.util.HashMap<android.content.ServiceConnection, android.app.LoadedApk.ServiceDispatcher > map = mServices.get(context); if (map != null) { sd = map.get(c); } if (sd == null) { sd = new android.app.LoadedApk.ServiceDispatcher(c, context, handler, flags); if (map == null) { map = new java.util.HashMap<android.content.ServiceConnection, android.app.LoadedApk .ServiceDispatcher>(); mServices.put(context, map); } map.put(c, sd); } else { sd.validate(context, handler); } return sd.getIServiceConnection(); } }
internal InnerConnection(android.app.LoadedApk.ServiceDispatcher sd) { mDispatcher = new [email protected] <android.app.LoadedApk.ServiceDispatcher >(sd); }