Loading telephony/java/com/android/internal/telephony/TelephonyProperties.java +5 −0 Original line number Diff line number Diff line Loading @@ -115,4 +115,9 @@ public interface TelephonyProperties */ static final String PROPERTY_OTASP_NUM_SCHEMA = "ro.cdma.otaspnumschema"; /** * Disable all calls including Emergency call when it set to true. */ static final String PROPERTY_DISABLE_CALL = "ro.telephony.disable-call"; } telephony/java/com/android/internal/telephony/cdma/CdmaCallTracker.java +7 −4 Original line number Diff line number Diff line Loading @@ -321,10 +321,13 @@ public final class CdmaCallTracker extends CallTracker { canDial() { boolean ret; int serviceState = phone.getServiceState().getState(); String disableCall = SystemProperties.get( TelephonyProperties.PROPERTY_DISABLE_CALL, "false"); ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null && !ringingCall.isRinging() && !disableCall.equals("true") && (!foregroundCall.getState().isAlive() || (foregroundCall.getState() == CdmaCall.State.ACTIVE) || !backgroundCall.getState().isAlive()); Loading telephony/java/com/android/internal/telephony/gsm/GsmCallTracker.java +6 −3 Original line number Diff line number Diff line Loading @@ -294,10 +294,13 @@ public final class GsmCallTracker extends CallTracker { canDial() { boolean ret; int serviceState = phone.getServiceState().getState(); String disableCall = SystemProperties.get( TelephonyProperties.PROPERTY_DISABLE_CALL, "false"); ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null && !ringingCall.isRinging() && !disableCall.equals("true") && (!foregroundCall.getState().isAlive() || !backgroundCall.getState().isAlive()); Loading Loading
telephony/java/com/android/internal/telephony/TelephonyProperties.java +5 −0 Original line number Diff line number Diff line Loading @@ -115,4 +115,9 @@ public interface TelephonyProperties */ static final String PROPERTY_OTASP_NUM_SCHEMA = "ro.cdma.otaspnumschema"; /** * Disable all calls including Emergency call when it set to true. */ static final String PROPERTY_DISABLE_CALL = "ro.telephony.disable-call"; }
telephony/java/com/android/internal/telephony/cdma/CdmaCallTracker.java +7 −4 Original line number Diff line number Diff line Loading @@ -321,10 +321,13 @@ public final class CdmaCallTracker extends CallTracker { canDial() { boolean ret; int serviceState = phone.getServiceState().getState(); String disableCall = SystemProperties.get( TelephonyProperties.PROPERTY_DISABLE_CALL, "false"); ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null && !ringingCall.isRinging() && !disableCall.equals("true") && (!foregroundCall.getState().isAlive() || (foregroundCall.getState() == CdmaCall.State.ACTIVE) || !backgroundCall.getState().isAlive()); Loading
telephony/java/com/android/internal/telephony/gsm/GsmCallTracker.java +6 −3 Original line number Diff line number Diff line Loading @@ -294,10 +294,13 @@ public final class GsmCallTracker extends CallTracker { canDial() { boolean ret; int serviceState = phone.getServiceState().getState(); String disableCall = SystemProperties.get( TelephonyProperties.PROPERTY_DISABLE_CALL, "false"); ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null ret = (serviceState != ServiceState.STATE_POWER_OFF) && pendingMO == null && !ringingCall.isRinging() && !disableCall.equals("true") && (!foregroundCall.getState().isAlive() || !backgroundCall.getState().isAlive()); Loading