Fix compile errors after merge.
These are due to changes to ConnectivityService that were made after master-multinetwork-dev branched off. They mostly didn't cause merge conflicts because they were in different parts of the file from the multinetwork changes, but they cause compile errors now. These particular changes should be fine - they are all in dead code anyway, and their functionality had already been re-implemented in the new code. Change-Id: I0ac9e39c3c975c8e8dc04ad11b6b85366693865c
This commit is contained in:
@@ -1908,9 +1908,10 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
int thisNetId = mNetTrackers[prevNetType].getNetwork().netId;
|
||||
|
||||
// Remove idletimer previously setup in {@code handleConnect}
|
||||
if (mNetConfigs[prevNetType].isDefault()) {
|
||||
removeDataActivityTracking(prevNetType);
|
||||
}
|
||||
// Already in place in new function. This is dead code.
|
||||
// if (mNetConfigs[prevNetType].isDefault()) {
|
||||
// removeDataActivityTracking(prevNetType);
|
||||
// }
|
||||
|
||||
/*
|
||||
* If the disconnected network is not the active one, then don't report
|
||||
@@ -1977,7 +1978,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
}
|
||||
|
||||
// do this before we broadcast the change
|
||||
handleConnectivityChange(prevNetType, doReset);
|
||||
// Already done in new function. This is dead code.
|
||||
// handleConnectivityChange(prevNetType, doReset);
|
||||
|
||||
final Intent immediateIntent = new Intent(intent);
|
||||
immediateIntent.setAction(CONNECTIVITY_ACTION_IMMEDIATE);
|
||||
@@ -2246,7 +2248,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
teardown(thisNet);
|
||||
return;
|
||||
}
|
||||
setupDataActivityTracking(newNetType);
|
||||
// Already in place in new function. This is dead code.
|
||||
// setupDataActivityTracking(newNetType);
|
||||
synchronized (ConnectivityService.this) {
|
||||
// have a new default network, release the transition wakelock in a second
|
||||
// if it's held. The second pause is to allow apps to reconnect over the
|
||||
@@ -2285,8 +2288,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
}
|
||||
}
|
||||
thisNet.setTeardownRequested(false);
|
||||
updateMtuSizeSettings(thisNet);
|
||||
handleConnectivityChange(newNetType, false);
|
||||
// Already in place in new function. This is dead code.
|
||||
// updateMtuSizeSettings(thisNet);
|
||||
// handleConnectivityChange(newNetType, false);
|
||||
sendConnectedBroadcastDelayed(info, getConnectivityChangeDelay());
|
||||
|
||||
// notify battery stats service about this network
|
||||
|
||||
Reference in New Issue
Block a user