示例#1
0
  /**
   * Called when this Call is being hung up locally (eg, user pressed "end") Note that at this
   * point, the hangup request has been dispatched to the radio but no response has yet been
   * received so update() has not yet been called
   */
  void onHangupLocal() {
    for (int i = 0, s = connections.size(); i < s; i++) {
      GsmConnection cn = (GsmConnection) connections.get(i);

      cn.onHangupLocal();
    }
  }
示例#2
0
  /** Called when it's time to clean up disconnected Connection objects */
  void clearDisconnected() {
    for (int i = connections.size() - 1; i >= 0; i--) {
      GsmConnection cn = (GsmConnection) connections.get(i);

      if (cn.getState() == State.DISCONNECTED) {
        connections.remove(i);
      }
    }

    if (connections.size() == 0) {
      state = State.IDLE;
    }
  }