B2G/gecko/dom/system/gonk/RILContentHelper.js
/**
   * Helper for guarding us again invalid reason values for call forwarding.
   */
Helper for guarding us again invalid reason values for call forwarding.
Helper for guarding us again invalid reason values for call forwarding .
function _isValidCFReason(reason) {
     switch (reason) {
       case Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_UNCONDITIONAL:
       case Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_MOBILE_BUSY:
       case Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_NO_REPLY:
       case Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_NOT_REACHABLE:
       case Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_ALL_CALL_FORWARDING:
       case Ci.nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING:
         return true;
       default:
         return false;
     }
  }
function _isValidCFReason ( reason ) { switch ( reason ) { case Ci . nsIDOMMozMobileCFInfo . CALL_FORWARD_REASON_UNCONDITIONAL : case Ci . nsIDOMMozMobileCFInfo . CALL_FORWARD_REASON_MOBILE_BUSY : case Ci . nsIDOMMozMobileCFInfo . CALL_FORWARD_REASON_NO_REPLY : case Ci . nsIDOMMozMobileCFInfo . CALL_FORWARD_REASON_NOT_REACHABLE : case Ci . nsIDOMMozMobileCFInfo . CALL_FORWARD_REASON_ALL_CALL_FORWARDING : case Ci . nsIDOMMozMobileCFInfo . CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING : return true ; default : return false ; } }
Helper for guarding us again invalid reason values for call forwarding.
Helper for guarding us again invalid reason values for call forwarding .