am ddae8936: Merge "Remove redundent getCurrentCdmaDataConnectionState" into honeycomb-LTE
* commit 'ddae89368129397c8df55bcdef9fcf36e4ff5fa5': Remove redundent getCurrentCdmaDataConnectionState
This commit is contained in:
@@ -87,7 +87,7 @@ public class CDMALTEPhone extends CDMAPhone {
|
|||||||
// already been called
|
// already been called
|
||||||
|
|
||||||
ret = DataState.DISCONNECTED;
|
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
|
// If we're out of service, open TCP sockets may still work
|
||||||
// but no data will flow
|
// but no data will flow
|
||||||
ret = DataState.DISCONNECTED;
|
ret = DataState.DISCONNECTED;
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ public class CDMAPhone extends PhoneBase {
|
|||||||
public DataActivityState getDataActivityState() {
|
public DataActivityState getDataActivityState() {
|
||||||
DataActivityState ret = DataActivityState.NONE;
|
DataActivityState ret = DataActivityState.NONE;
|
||||||
|
|
||||||
if (mSST.getCurrentCdmaDataConnectionState() == ServiceState.STATE_IN_SERVICE) {
|
if (mSST.getCurrentDataConnectionState() == ServiceState.STATE_IN_SERVICE) {
|
||||||
|
|
||||||
switch (mDataConnectionTracker.getActivity()) {
|
switch (mDataConnectionTracker.getActivity()) {
|
||||||
case DATAIN:
|
case DATAIN:
|
||||||
@@ -618,7 +618,7 @@ public class CDMAPhone extends PhoneBase {
|
|||||||
// already been called
|
// already been called
|
||||||
|
|
||||||
ret = DataState.DISCONNECTED;
|
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
|
// If we're out of service, open TCP sockets may still work
|
||||||
// but no data will flow
|
// but no data will flow
|
||||||
ret = DataState.DISCONNECTED;
|
ret = DataState.DISCONNECTED;
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean isDataAllowed() {
|
protected boolean isDataAllowed() {
|
||||||
int psState = mCdmaPhone.mSST.getCurrentCdmaDataConnectionState();
|
int psState = mCdmaPhone.mSST.getCurrentDataConnectionState();
|
||||||
boolean roaming = (mPhone.getServiceState().getRoaming() && !getDataOnRoamingEnabled());
|
boolean roaming = (mPhone.getServiceState().getRoaming() && !getDataOnRoamingEnabled());
|
||||||
boolean desiredPowerState = mCdmaPhone.mSST.getDesiredPowerState();
|
boolean desiredPowerState = mCdmaPhone.mSST.getDesiredPowerState();
|
||||||
|
|
||||||
@@ -258,7 +258,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int psState = mCdmaPhone.mSST.getCurrentCdmaDataConnectionState();
|
int psState = mCdmaPhone.mSST.getCurrentDataConnectionState();
|
||||||
boolean roaming = mPhone.getServiceState().getRoaming();
|
boolean roaming = mPhone.getServiceState().getRoaming();
|
||||||
boolean desiredPowerState = mCdmaPhone.mSST.getDesiredPowerState();
|
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() {
|
public int getCurrentDataConnectionState() {
|
||||||
return mDataConnectionState;
|
return mDataConnectionState;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user