B2G/hardware/ril/mock-ril/src/js/simulated_radio_tests.js
/* Only one incoming call is in the call list */
Only one incoming call is in the call list
Only one incoming call is in the call list
function verifyIncomingCall() {
        var calls = simulatedRadio.getCalls();
        var numIncomingCalls = 0;
        for (var i = 0; i < calls.length; i++) {
            if (typeof calls[i] != 'undefined') {
                if (calls[i].state == CALLSTATE_INCOMING) {
                    numIncomingCalls++;
                }
            }
        }
        return (numIncomingCalls == 1);
    }
function verifyIncomingCall ( ) { var calls = simulatedRadio . getCalls ( ) ; var numIncomingCalls = 0 ; for ( var i = 0 ; i < calls . length ; i ++ ) { if ( typeof calls [ i ] != 'undefined' ) { if ( calls [ i ] . state == CALLSTATE_INCOMING ) { numIncomingCalls ++ ; } } } return ( numIncomingCalls == 1 ) ; }
Only one incoming call is in the call list
Only one incoming call is in the call list