Loading src/java/com/android/internal/telephony/PhoneBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public abstract class PhoneBase extends Handler implements Phone { /** * Indicates whether Out Of Service is considered as data call disconnect. */ protected static final String PROPERTY_OOS_IS_DISCONNECT = "persist.telephony.oosisdc"; public static final String PROPERTY_OOS_IS_DISCONNECT = "persist.telephony.oosisdc"; // Key used to read and write the saved network selection numeric value public static final String NETWORK_SELECTION_KEY = "network_selection_key"; Loading src/java/com/android/internal/telephony/dataconnection/DcTracker.java +9 −2 Original line number Diff line number Diff line Loading @@ -135,6 +135,13 @@ public class DcTracker extends DcTrackerBase { private static final String PROPERTY_CDMA_ROAMING_IPPROTOCOL = SystemProperties.get( "persist.telephony.cdma.rproto", "IP"); /* * Flag that indicates that Out Of Service is considered as data call disconnect */ protected boolean mOosIsDisconnect = SystemProperties.getBoolean( PhoneBase.PROPERTY_OOS_IS_DISCONNECT, true); private boolean mCanSetPreferApn = false; private AtomicBoolean mAttached = new AtomicBoolean(false); Loading Loading @@ -841,7 +848,7 @@ public class DcTracker extends DcTrackerBase { // Disabled apn's still need avail/unavail notificiations - send them out protected void notifyOffApnsOfAvailability(String reason) { for (ApnContext apnContext : mApnContexts.values()) { if (!mAttached.get() || !apnContext.isReady()) { if ((!mAttached.get() && mOosIsDisconnect) || !apnContext.isReady()) { if (VDBG) { log("notifyOffApnOfAvailability type:" + apnContext.getDataProfileType()); Loading Loading @@ -2140,7 +2147,7 @@ public class DcTracker extends DcTrackerBase { protected void notifyDataConnection(String reason) { if (DBG) log("notifyDataConnection: reason=" + reason); for (ApnContext apnContext : mApnContexts.values()) { if (mAttached.get() && apnContext.isReady()) { if ((mAttached.get() || !mOosIsDisconnect) && apnContext.isReady()) { if (DBG) log("notifyDataConnection: type:" + apnContext.getDataProfileType()); mPhone.notifyDataConnection(reason != null ? reason : apnContext.getReason(), apnContext.getDataProfileType()); Loading Loading
src/java/com/android/internal/telephony/PhoneBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public abstract class PhoneBase extends Handler implements Phone { /** * Indicates whether Out Of Service is considered as data call disconnect. */ protected static final String PROPERTY_OOS_IS_DISCONNECT = "persist.telephony.oosisdc"; public static final String PROPERTY_OOS_IS_DISCONNECT = "persist.telephony.oosisdc"; // Key used to read and write the saved network selection numeric value public static final String NETWORK_SELECTION_KEY = "network_selection_key"; Loading
src/java/com/android/internal/telephony/dataconnection/DcTracker.java +9 −2 Original line number Diff line number Diff line Loading @@ -135,6 +135,13 @@ public class DcTracker extends DcTrackerBase { private static final String PROPERTY_CDMA_ROAMING_IPPROTOCOL = SystemProperties.get( "persist.telephony.cdma.rproto", "IP"); /* * Flag that indicates that Out Of Service is considered as data call disconnect */ protected boolean mOosIsDisconnect = SystemProperties.getBoolean( PhoneBase.PROPERTY_OOS_IS_DISCONNECT, true); private boolean mCanSetPreferApn = false; private AtomicBoolean mAttached = new AtomicBoolean(false); Loading Loading @@ -841,7 +848,7 @@ public class DcTracker extends DcTrackerBase { // Disabled apn's still need avail/unavail notificiations - send them out protected void notifyOffApnsOfAvailability(String reason) { for (ApnContext apnContext : mApnContexts.values()) { if (!mAttached.get() || !apnContext.isReady()) { if ((!mAttached.get() && mOosIsDisconnect) || !apnContext.isReady()) { if (VDBG) { log("notifyOffApnOfAvailability type:" + apnContext.getDataProfileType()); Loading Loading @@ -2140,7 +2147,7 @@ public class DcTracker extends DcTrackerBase { protected void notifyDataConnection(String reason) { if (DBG) log("notifyDataConnection: reason=" + reason); for (ApnContext apnContext : mApnContexts.values()) { if (mAttached.get() && apnContext.isReady()) { if ((mAttached.get() || !mOosIsDisconnect) && apnContext.isReady()) { if (DBG) log("notifyDataConnection: type:" + apnContext.getDataProfileType()); mPhone.notifyDataConnection(reason != null ? reason : apnContext.getReason(), apnContext.getDataProfileType()); Loading