Lines Matching refs:ConnectionHandler
39 private Set<ConnectionHandler> mConnectionHandlers = new HashSet<ConnectionHandler>();
73 final ConnectionHandler connectionHandler;
76 connectionHandler = new ConnectionHandler(
95 * We have to close the sockets after the ConnectionHandler finishes, so we
96 * don't get "Too may open files" exception. We also remove the ConnectionHandler
99 ConnectionHandler.OnFinishedCallback callback =
100 new ConnectionHandler.OnFinishedCallback() {
104 if (!mConnectionHandlers.remove(connectionHandler)) {
110 connectionHandler.registerOnConnectionHandlerFinishedCallback(callback);
113 mConnectionHandlers.add(connectionHandler);
115 connectionHandler.start();
119 for (ConnectionHandler connectionHandler : mConnectionHandlers) {
120 connectionHandler.stop();