[NS A30] Note linger out of the rematch loop
This doesn't have to be tested every time. Test: FrameworksNetTests Change-Id: Ic5702c8b4bd096860fe55c4d9e4c465703561911
This commit is contained in:
@@ -6573,11 +6573,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
// network. Think about if there is a way to reduce this. Push
|
// network. Think about if there is a way to reduce this. Push
|
||||||
// netid->request mapping to each provider?
|
// netid->request mapping to each provider?
|
||||||
sendUpdatedScoreToFactories(nri.request, newSatisfier);
|
sendUpdatedScoreToFactories(nri.request, newSatisfier);
|
||||||
if (isDefaultRequest(nri)) {
|
|
||||||
if (previousSatisfier != null) {
|
|
||||||
mLingerMonitor.noteLingerDefaultNetwork(previousSatisfier, newSatisfier);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// If "newNetwork" is listed as satisfying "nri" but no longer satisfies "nri",
|
// If "newNetwork" is listed as satisfying "nri" but no longer satisfies "nri",
|
||||||
// mark it as no longer satisfying "nri". Because networks are processed by
|
// mark it as no longer satisfying "nri". Because networks are processed by
|
||||||
@@ -6633,6 +6628,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
changes.getNewSatisfier(defaultRequestInfo), oldDefaultNetwork);
|
changes.getNewSatisfier(defaultRequestInfo), oldDefaultNetwork);
|
||||||
|
|
||||||
if (oldDefaultNetwork != newDefaultNetwork) {
|
if (oldDefaultNetwork != newDefaultNetwork) {
|
||||||
|
if (oldDefaultNetwork != null) {
|
||||||
|
mLingerMonitor.noteLingerDefaultNetwork(oldDefaultNetwork, newDefaultNetwork);
|
||||||
|
}
|
||||||
updateDataActivityTracking(newDefaultNetwork, oldDefaultNetwork);
|
updateDataActivityTracking(newDefaultNetwork, oldDefaultNetwork);
|
||||||
// Notify system services that this network is up.
|
// Notify system services that this network is up.
|
||||||
makeDefault(newDefaultNetwork);
|
makeDefault(newDefaultNetwork);
|
||||||
|
|||||||
Reference in New Issue
Block a user