Loading src/java/com/android/internal/telephony/dataconnection/DataConnection.java +0 −2 Original line number Diff line number Diff line Loading @@ -333,7 +333,6 @@ public class DataConnection extends StateMachine { static final int EVENT_SETUP_DATA_CONNECTION_DONE = BASE + 1; static final int EVENT_DEACTIVATE_DONE = BASE + 3; static final int EVENT_DISCONNECT = BASE + 4; static final int EVENT_RIL_CONNECTED = BASE + 5; static final int EVENT_DISCONNECT_ALL = BASE + 6; static final int EVENT_DATA_STATE_CHANGED = BASE + 7; static final int EVENT_TEAR_DOWN_NOW = BASE + 8; Loading Loading @@ -375,7 +374,6 @@ public class DataConnection extends StateMachine { "EVENT_SETUP_DATA_CONNECTION_DONE"; sCmdToString[EVENT_DEACTIVATE_DONE - BASE] = "EVENT_DEACTIVATE_DONE"; sCmdToString[EVENT_DISCONNECT - BASE] = "EVENT_DISCONNECT"; sCmdToString[EVENT_RIL_CONNECTED - BASE] = "EVENT_RIL_CONNECTED"; sCmdToString[EVENT_DISCONNECT_ALL - BASE] = "EVENT_DISCONNECT_ALL"; sCmdToString[EVENT_DATA_STATE_CHANGED - BASE] = "EVENT_DATA_STATE_CHANGED"; sCmdToString[EVENT_TEAR_DOWN_NOW - BASE] = "EVENT_TEAR_DOWN_NOW"; Loading src/java/com/android/internal/telephony/dataconnection/DcController.java +3 −32 Original line number Diff line number Diff line Loading @@ -114,13 +114,6 @@ public class DcController extends Handler { mDcTesterDeactivateAll = (TelephonyUtils.IS_DEBUGGABLE) ? new DcTesterDeactivateAll(mPhone, DcController.this, this) : null; if (mPhone != null && mDataServiceManager.getTransportType() == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) { mPhone.mCi.registerForRilConnected(this, DataConnection.EVENT_RIL_CONNECTED, null); } mDataServiceManager.registerForDataCallListChanged(this, DataConnection.EVENT_DATA_STATE_CHANGED); } Loading @@ -131,19 +124,6 @@ public class DcController extends Handler { return new DcController("Dcc" + tagSuffix, phone, dct, dataServiceManager, looper); } void dispose() { log("dispose"); if (mPhone != null & mDataServiceManager.getTransportType() == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) { mPhone.mCi.unregisterForRilConnected(this); } mDataServiceManager.unregisterForDataCallListChanged(this); if (mDcTesterDeactivateAll != null) { mDcTesterDeactivateAll.dispose(); } } void addDc(DataConnection dc) { synchronized (mDcListAll) { mDcListAll.add(dc); Loading Loading @@ -186,18 +166,6 @@ public class DcController extends Handler { AsyncResult ar; switch (msg.what) { case DataConnection.EVENT_RIL_CONNECTED: ar = (AsyncResult) msg.obj; if (ar.exception == null) { if (DBG) { log("EVENT_RIL_CONNECTED mRilVersion=" + ar.result); } } else { log("Unexpected exception on EVENT_RIL_CONNECTED"); } break; case DataConnection.EVENT_DATA_STATE_CHANGED: ar = (AsyncResult) msg.obj; if (ar.exception == null) { Loading @@ -206,6 +174,9 @@ public class DcController extends Handler { log("EVENT_DATA_STATE_CHANGED: exception; likely radio not available, ignore"); } break; default: loge("Unexpected event " + msg); break; } } Loading src/java/com/android/internal/telephony/dataconnection/DcTracker.java +7 −18 Original line number Diff line number Diff line Loading @@ -218,7 +218,6 @@ public class DcTracker extends Handler { "extra_handover_failure_fallback"; private final String mLogTag; private final String mLogTagSuffix; public AtomicBoolean isCleanupRequired = new AtomicBoolean(false); Loading Loading @@ -726,12 +725,13 @@ public class DcTracker extends Handler { .createForSubscriptionId(phone.getSubId()); // The 'C' in tag indicates cellular, and 'I' indicates IWLAN. This is to distinguish // between two DcTrackers, one for each. mLogTagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) ? "C" : "I") + "-" + mPhone.getPhoneId(); mLogTag = "DCT" + mLogTagSuffix; String tagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) ? "C" : "I"); tagSuffix += "-" + mPhone.getPhoneId(); mLogTag = "DCT" + tagSuffix; mTransportType = transportType; mDataServiceManager = new DataServiceManager(phone, transportType, mLogTagSuffix); mDataServiceManager = new DataServiceManager(phone, transportType, tagSuffix); mDataThrottler = new DataThrottler(mPhone.getPhoneId(), transportType); mResolver = mPhone.getContext().getContentResolver(); Loading Loading @@ -769,7 +769,7 @@ public class DcTracker extends Handler { mHandlerThread.start(); Handler dcHandler = new Handler(mHandlerThread.getLooper()); mDcc = DcController.makeDcc(mPhone, this, mDataServiceManager, dcHandler.getLooper(), mLogTagSuffix); tagSuffix); mDcTesterFailBringUpAll = new DcTesterFailBringUpAll(mPhone, dcHandler); mDataConnectionTracker = this; Loading @@ -789,7 +789,6 @@ public class DcTracker extends Handler { @VisibleForTesting public DcTracker() { mLogTag = "DCT"; mLogTagSuffix = null; mTelephonyManager = null; mAlarmManager = null; mPhone = null; Loading Loading @@ -872,7 +871,6 @@ public class DcTracker extends Handler { mSettingsObserver.unobserve(); mNetworkPolicyManager.unregisterSubscriptionCallback(mSubscriptionCallback); mDcc.dispose(); mDcTesterFailBringUpAll.dispose(); mPhone.getContext().getContentResolver().unregisterContentObserver(mApnObserver); Loading Loading @@ -5299,12 +5297,7 @@ public class DcTracker extends Handler { } private void onDataServiceBindingChanged(boolean bound) { if (bound) { if (mDcc == null) { mDcc = DcController.makeDcc(mPhone, this, mDataServiceManager, mHandlerThread.getLooper(), mLogTagSuffix); } } else { if (!bound) { if (mTransportType == AccessNetworkConstants.TRANSPORT_TYPE_WLAN) { boolean connPersistenceOnRestart = mPhone.getContext().getResources() .getBoolean(com.android Loading @@ -5313,10 +5306,6 @@ public class DcTracker extends Handler { cleanUpAllConnectionsInternal(false, Phone.REASON_IWLAN_DATA_SERVICE_DIED); } } mDcc.dispose(); // dispose sets the associated Handler object (StateMachine#mSmHandler) to null, so mDcc // needs to be created again (simply calling start() on it after dispose will not work) mDcc = null; } mDataServiceBound = bound; } Loading Loading
src/java/com/android/internal/telephony/dataconnection/DataConnection.java +0 −2 Original line number Diff line number Diff line Loading @@ -333,7 +333,6 @@ public class DataConnection extends StateMachine { static final int EVENT_SETUP_DATA_CONNECTION_DONE = BASE + 1; static final int EVENT_DEACTIVATE_DONE = BASE + 3; static final int EVENT_DISCONNECT = BASE + 4; static final int EVENT_RIL_CONNECTED = BASE + 5; static final int EVENT_DISCONNECT_ALL = BASE + 6; static final int EVENT_DATA_STATE_CHANGED = BASE + 7; static final int EVENT_TEAR_DOWN_NOW = BASE + 8; Loading Loading @@ -375,7 +374,6 @@ public class DataConnection extends StateMachine { "EVENT_SETUP_DATA_CONNECTION_DONE"; sCmdToString[EVENT_DEACTIVATE_DONE - BASE] = "EVENT_DEACTIVATE_DONE"; sCmdToString[EVENT_DISCONNECT - BASE] = "EVENT_DISCONNECT"; sCmdToString[EVENT_RIL_CONNECTED - BASE] = "EVENT_RIL_CONNECTED"; sCmdToString[EVENT_DISCONNECT_ALL - BASE] = "EVENT_DISCONNECT_ALL"; sCmdToString[EVENT_DATA_STATE_CHANGED - BASE] = "EVENT_DATA_STATE_CHANGED"; sCmdToString[EVENT_TEAR_DOWN_NOW - BASE] = "EVENT_TEAR_DOWN_NOW"; Loading
src/java/com/android/internal/telephony/dataconnection/DcController.java +3 −32 Original line number Diff line number Diff line Loading @@ -114,13 +114,6 @@ public class DcController extends Handler { mDcTesterDeactivateAll = (TelephonyUtils.IS_DEBUGGABLE) ? new DcTesterDeactivateAll(mPhone, DcController.this, this) : null; if (mPhone != null && mDataServiceManager.getTransportType() == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) { mPhone.mCi.registerForRilConnected(this, DataConnection.EVENT_RIL_CONNECTED, null); } mDataServiceManager.registerForDataCallListChanged(this, DataConnection.EVENT_DATA_STATE_CHANGED); } Loading @@ -131,19 +124,6 @@ public class DcController extends Handler { return new DcController("Dcc" + tagSuffix, phone, dct, dataServiceManager, looper); } void dispose() { log("dispose"); if (mPhone != null & mDataServiceManager.getTransportType() == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) { mPhone.mCi.unregisterForRilConnected(this); } mDataServiceManager.unregisterForDataCallListChanged(this); if (mDcTesterDeactivateAll != null) { mDcTesterDeactivateAll.dispose(); } } void addDc(DataConnection dc) { synchronized (mDcListAll) { mDcListAll.add(dc); Loading Loading @@ -186,18 +166,6 @@ public class DcController extends Handler { AsyncResult ar; switch (msg.what) { case DataConnection.EVENT_RIL_CONNECTED: ar = (AsyncResult) msg.obj; if (ar.exception == null) { if (DBG) { log("EVENT_RIL_CONNECTED mRilVersion=" + ar.result); } } else { log("Unexpected exception on EVENT_RIL_CONNECTED"); } break; case DataConnection.EVENT_DATA_STATE_CHANGED: ar = (AsyncResult) msg.obj; if (ar.exception == null) { Loading @@ -206,6 +174,9 @@ public class DcController extends Handler { log("EVENT_DATA_STATE_CHANGED: exception; likely radio not available, ignore"); } break; default: loge("Unexpected event " + msg); break; } } Loading
src/java/com/android/internal/telephony/dataconnection/DcTracker.java +7 −18 Original line number Diff line number Diff line Loading @@ -218,7 +218,6 @@ public class DcTracker extends Handler { "extra_handover_failure_fallback"; private final String mLogTag; private final String mLogTagSuffix; public AtomicBoolean isCleanupRequired = new AtomicBoolean(false); Loading Loading @@ -726,12 +725,13 @@ public class DcTracker extends Handler { .createForSubscriptionId(phone.getSubId()); // The 'C' in tag indicates cellular, and 'I' indicates IWLAN. This is to distinguish // between two DcTrackers, one for each. mLogTagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) ? "C" : "I") + "-" + mPhone.getPhoneId(); mLogTag = "DCT" + mLogTagSuffix; String tagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) ? "C" : "I"); tagSuffix += "-" + mPhone.getPhoneId(); mLogTag = "DCT" + tagSuffix; mTransportType = transportType; mDataServiceManager = new DataServiceManager(phone, transportType, mLogTagSuffix); mDataServiceManager = new DataServiceManager(phone, transportType, tagSuffix); mDataThrottler = new DataThrottler(mPhone.getPhoneId(), transportType); mResolver = mPhone.getContext().getContentResolver(); Loading Loading @@ -769,7 +769,7 @@ public class DcTracker extends Handler { mHandlerThread.start(); Handler dcHandler = new Handler(mHandlerThread.getLooper()); mDcc = DcController.makeDcc(mPhone, this, mDataServiceManager, dcHandler.getLooper(), mLogTagSuffix); tagSuffix); mDcTesterFailBringUpAll = new DcTesterFailBringUpAll(mPhone, dcHandler); mDataConnectionTracker = this; Loading @@ -789,7 +789,6 @@ public class DcTracker extends Handler { @VisibleForTesting public DcTracker() { mLogTag = "DCT"; mLogTagSuffix = null; mTelephonyManager = null; mAlarmManager = null; mPhone = null; Loading Loading @@ -872,7 +871,6 @@ public class DcTracker extends Handler { mSettingsObserver.unobserve(); mNetworkPolicyManager.unregisterSubscriptionCallback(mSubscriptionCallback); mDcc.dispose(); mDcTesterFailBringUpAll.dispose(); mPhone.getContext().getContentResolver().unregisterContentObserver(mApnObserver); Loading Loading @@ -5299,12 +5297,7 @@ public class DcTracker extends Handler { } private void onDataServiceBindingChanged(boolean bound) { if (bound) { if (mDcc == null) { mDcc = DcController.makeDcc(mPhone, this, mDataServiceManager, mHandlerThread.getLooper(), mLogTagSuffix); } } else { if (!bound) { if (mTransportType == AccessNetworkConstants.TRANSPORT_TYPE_WLAN) { boolean connPersistenceOnRestart = mPhone.getContext().getResources() .getBoolean(com.android Loading @@ -5313,10 +5306,6 @@ public class DcTracker extends Handler { cleanUpAllConnectionsInternal(false, Phone.REASON_IWLAN_DATA_SERVICE_DIED); } } mDcc.dispose(); // dispose sets the associated Handler object (StateMachine#mSmHandler) to null, so mDcc // needs to be created again (simply calling start() on it after dispose will not work) mDcc = null; } mDataServiceBound = bound; } Loading