void addToBoundIntent(Intent intent, IServiceConnection connection) { IntentBindRecord record = peekBinding(intent); if (record == null) { record = new IntentBindRecord(); record.intent = intent; synchronized (bindings) { bindings.add(record); } } record.addConnection(connection); }
if (!bindRecord.containConnection(connection)) { continue; bindRecord.removeConnection(connection); try { IApplicationThreadCompat.scheduleUnbindService(r.process.appThread, r, bindRecord.intent);
if (!bindRecord.containConnection(connection)) { continue; bindRecord.removeConnection(connection); try { IApplicationThreadCompat.scheduleUnbindService(r.process.appThread, r, bindRecord.intent);
if (!bindRecord.containConnection(connection)) { continue; bindRecord.removeConnection(connection); try { IApplicationThreadCompat.scheduleUnbindService(r.process.appThread, r, bindRecord.intent);
public void addConnection(IServiceConnection connection) { if (!containConnection(connection)) { connections.add(connection); try { connection.asBinder().linkToDeath(new DeathRecipient(this, connection), 0); } catch (RemoteException e) { e.printStackTrace(); } } }
@Override public void binderDied() { bindRecord.removeConnection(connection); connection.asBinder().unlinkToDeath(this, 0); } }
void addToBoundIntent(Intent intent, IServiceConnection connection) { IntentBindRecord record = peekBinding(intent); if (record == null) { record = new IntentBindRecord(); record.intent = intent; synchronized (bindings) { bindings.add(record); } } record.addConnection(connection); }
public boolean containConnection(IServiceConnection connection) { for (IntentBindRecord record : bindings) { if (record.containConnection(connection)) { return true; } } return false; }
public void addConnection(IServiceConnection connection) { if (!containConnection(connection)) { connections.add(connection); try { connection.asBinder().linkToDeath(new DeathRecipient(this, connection), 0); } catch (RemoteException e) { e.printStackTrace(); } } }
public boolean containConnection(IServiceConnection connection) { for (IntentBindRecord record : bindings) { if (record.containConnection(connection)) { return true; } } return false; }
@Override public void binderDied() { bindRecord.removeConnection(connection); connection.asBinder().unlinkToDeath(this, 0); } }
void addToBoundIntent(Intent intent, IServiceConnection connection) { IntentBindRecord record = peekBinding(intent); if (record == null) { record = new IntentBindRecord(); record.intent = intent; synchronized (bindings) { bindings.add(record); } } record.addConnection(connection); }
public boolean containConnection(IServiceConnection connection) { for (IntentBindRecord record : bindings) { if (record.containConnection(connection)) { return true; } } return false; }
public void addConnection(IServiceConnection connection) { if (!containConnection(connection)) { connections.add(connection); try { connection.asBinder().linkToDeath(new DeathRecipient(this, connection), 0); } catch (RemoteException e) { e.printStackTrace(); } } }
@Override public void binderDied() { bindRecord.removeConnection(connection); connection.asBinder().unlinkToDeath(this, 0); } }