B2G/gecko/dom/system/gonk/RadioInterfaceLayer.js
/**
   * Handle an incoming call.
   *
   * Not much is known about this call at this point, but it's enough
   * to start bringing up the Phone app already.
   */
Handle an incoming call.
Not much is known about this call at this point, but it's enough
to start bringing up the Phone app already.
Handle an incoming call . Not much is known about this call at this point but it ' s enough to start bringing up the Phone app already .
function handleCallRing() {
    if (!this._callRingWakeLock) {
      this._callRingWakeLock = gPowerManagerService.newWakeLock("cpu");
    }
    if (!this._callRingWakeLockTimer) {
      this._callRingWakeLockTimer =
        Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    }
    this._callRingWakeLockTimer
        .initWithCallback(this._cancelCallRingWakeLockTimer.bind(this),
                          CALL_WAKELOCK_TIMEOUT, Ci.nsITimer.TYPE_ONE_SHOT);
    gSystemMessenger.broadcastMessage("telephony-new-call", {});
  }
function handleCallRing ( ) { if ( ! this . _callRingWakeLock ) { this . _callRingWakeLock = gPowerManagerService . newWakeLock ( "cpu" ) ; } if ( ! this . _callRingWakeLockTimer ) { this . _callRingWakeLockTimer = Cc [ "@mozilla.org/timer;1" ] . createInstance ( Ci . nsITimer ) ; } this . _callRingWakeLockTimer . initWithCallback ( this . _cancelCallRingWakeLockTimer . bind ( this ) , CALL_WAKELOCK_TIMEOUT , Ci . nsITimer . TYPE_ONE_SHOT ) ; gSystemMessenger . broadcastMessage ( "telephony-new-call" , { } ) ; }
Handle an incoming call.
Handle an incoming call .