B2G/gecko/dom/system/gonk/RadioInterfaceLayer.js
/**
   * Handle data call state changes.
   */
Handle data call state changes.
Handle data call state changes .
function handleDataCallState(datacall) {
    let data = this.rilContext.data;
    if (datacall.ifname && datacall.apn == this.dataCallSettings["apn"]) {
      data.connected = false;
      if (this.dataNetworkInterface.inConnectedTypes("default") &&
          datacall.state == RIL.GECKO_NETWORK_STATE_CONNECTED) {
        data.connected = true;
      }
      this._sendTargetMessage("mobileconnection", "RIL:DataInfoChanged", data);
    }
    this._deliverDataCallCallback("dataCallStateChanged",
                                  [datacall]);
  }
function handleDataCallState ( datacall ) { let data = this . rilContext . data ; if ( datacall . ifname && datacall . apn == this . dataCallSettings [ "apn" ] ) { data . connected = false ; if ( this . dataNetworkInterface . inConnectedTypes ( "default" ) && datacall . state == RIL . GECKO_NETWORK_STATE_CONNECTED ) { data . connected = true ; } this . _sendTargetMessage ( "mobileconnection" , "RIL:DataInfoChanged" , data ) ; } this . _deliverDataCallCallback ( "dataCallStateChanged" , [ datacall ] ) ; }
Handle data call state changes.
Handle data call state changes .