B2G/gecko/dom/system/gonk/RadioInterfaceLayer.js
/**
   * Sends the RIL:VoiceInfoChanged message when the voice
   * connection's state has changed.
   *
   * @param newInfo The new voice connection information. When newInfo.batch is true,
   *                the RIL:VoiceInfoChanged message will not be sent.
   */
Sends the RIL:VoiceInfoChanged message when the voice
connection's state has changed.

@param newInfo The new voice connection information. When newInfo.batch is true,
the RIL:VoiceInfoChanged message will not be sent.
Sends the RIL : VoiceInfoChanged message when the voice connection ' s state has changed . @param newInfo The new voice connection information . When newInfo . batch is true the RIL : VoiceInfoChanged message will not be sent .
function updateVoiceConnection(newInfo) {
    let voiceInfo = this.rilContext.voice;
    voiceInfo.state = newInfo.state;
    voiceInfo.connected = newInfo.connected;
    voiceInfo.roaming = newInfo.roaming;
    voiceInfo.emergencyCallsOnly = newInfo.emergencyCallsOnly;
    voiceInfo.type = "gsm";
    if (newInfo.regState == RIL.NETWORK_CREG_STATE_UNKNOWN) {
      voiceInfo.network = null;
      voiceInfo.signalStrength = null;
      voiceInfo.relSignalStrength = null;
    }
    let newCell = newInfo.cell;
    if ((newCell.gsmLocationAreaCode < 0) || (newCell.gsmCellId < 0)) {
      voiceInfo.cell = null;
    } else {
      voiceInfo.cell = newCell;
    }
    if (!newInfo.batch) {
      this._sendTargetMessage("mobileconnection", "RIL:VoiceInfoChanged", voiceInfo);
    }
  }
function updateVoiceConnection ( newInfo ) { let voiceInfo = this . rilContext . voice ; voiceInfo . state = newInfo . state ; voiceInfo . connected = newInfo . connected ; voiceInfo . roaming = newInfo . roaming ; voiceInfo . emergencyCallsOnly = newInfo . emergencyCallsOnly ; voiceInfo . type = "gsm" ; if ( newInfo . regState == RIL . NETWORK_CREG_STATE_UNKNOWN ) { voiceInfo . network = null ; voiceInfo . signalStrength = null ; voiceInfo . relSignalStrength = null ; } let newCell = newInfo . cell ; if ( ( newCell . gsmLocationAreaCode < 0 ) || ( newCell . gsmCellId < 0 ) ) { voiceInfo . cell = null ; } else { voiceInfo . cell = newCell ; } if ( ! newInfo . batch ) { this . _sendTargetMessage ( "mobileconnection" , "RIL:VoiceInfoChanged" , voiceInfo ) ; } }
Sends the RIL:VoiceInfoChanged message when the voice
 connection's state has changed.
Sends the RIL : VoiceInfoChanged message when the voice connection ' s state has changed .
// Unlike the data registration info, the voice info typically contains // no (useful) radio tech information, so we have to manually set // this here. (TODO GSM only for now, see bug 726098.) // Make sure we also reset the operator and signal strength information // if we drop off the network.