Merge "Remove redundent getCurrentCdmaDataConnectionState" into honeycomb-LTE
This commit is contained in:
committed by
Android (Google) Code Review
commit
ddae893681
@@ -87,7 +87,7 @@ public class CDMALTEPhone extends CDMAPhone {
|
||||
// already been called
|
||||
|
||||
ret = DataState.DISCONNECTED;
|
||||
} else if (mSST.getCurrentCdmaDataConnectionState() != ServiceState.STATE_IN_SERVICE) {
|
||||
} else if (mSST.getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE) {
|
||||
// If we're out of service, open TCP sockets may still work
|
||||
// but no data will flow
|
||||
ret = DataState.DISCONNECTED;
|
||||
|
||||
@@ -337,7 +337,7 @@ public class CDMAPhone extends PhoneBase {
|
||||
public DataActivityState getDataActivityState() {
|
||||
DataActivityState ret = DataActivityState.NONE;
|
||||
|
||||
if (mSST.getCurrentCdmaDataConnectionState() == ServiceState.STATE_IN_SERVICE) {
|
||||
if (mSST.getCurrentDataConnectionState() == ServiceState.STATE_IN_SERVICE) {
|
||||
|
||||
switch (mDataConnectionTracker.getActivity()) {
|
||||
case DATAIN:
|
||||
@@ -618,7 +618,7 @@ public class CDMAPhone extends PhoneBase {
|
||||
// already been called
|
||||
|
||||
ret = DataState.DISCONNECTED;
|
||||
} else if (mSST.getCurrentCdmaDataConnectionState() != ServiceState.STATE_IN_SERVICE) {
|
||||
} else if (mSST.getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE) {
|
||||
// If we're out of service, open TCP sockets may still work
|
||||
// but no data will flow
|
||||
ret = DataState.DISCONNECTED;
|
||||
|
||||
@@ -175,7 +175,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
|
||||
|
||||
@Override
|
||||
protected boolean isDataAllowed() {
|
||||
int psState = mCdmaPhone.mSST.getCurrentCdmaDataConnectionState();
|
||||
int psState = mCdmaPhone.mSST.getCurrentDataConnectionState();
|
||||
boolean roaming = (mPhone.getServiceState().getRoaming() && !getDataOnRoamingEnabled());
|
||||
boolean desiredPowerState = mCdmaPhone.mSST.getDesiredPowerState();
|
||||
|
||||
@@ -258,7 +258,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
|
||||
return true;
|
||||
}
|
||||
|
||||
int psState = mCdmaPhone.mSST.getCurrentCdmaDataConnectionState();
|
||||
int psState = mCdmaPhone.mSST.getCurrentDataConnectionState();
|
||||
boolean roaming = mPhone.getServiceState().getRoaming();
|
||||
boolean desiredPowerState = mCdmaPhone.mSST.getDesiredPowerState();
|
||||
|
||||
|
||||
@@ -1217,18 +1217,6 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The current CDMA data connection state. ServiceState.RADIO_TECHNOLOGY_1xRTT or
|
||||
* ServiceState.RADIO_TECHNOLOGY_EVDO is the same as "attached" and
|
||||
* ServiceState.RADIO_TECHNOLOGY_UNKNOWN is the same as detached.
|
||||
*/
|
||||
/*package*/ int getCurrentCdmaDataConnectionState() {
|
||||
return mDataConnectionState;
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: In the future, we need remove getCurrentCdmaDataConnectionState
|
||||
*/
|
||||
public int getCurrentDataConnectionState() {
|
||||
return mDataConnectionState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user