If in a mobile captive portal is detected enable fail fast.
When captive portal checking completes pass back the result. This is used to enable/disable failing fast for mobile. When failing fast is enabled we don't check for data stalls and thus won't be continually trying to do recovery operations, such as restarting the radio. Bug: 9462512 Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e
This commit is contained in:
committed by
The Android Automerger
parent
cd0e1dc7de
commit
3b5b4882f5
@@ -2169,15 +2169,26 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
}
|
||||
}
|
||||
|
||||
if (DBG) log("handleCaptivePortalTrackerCheck: call captivePortalCheckComplete ni=" + info);
|
||||
thisNet.captivePortalCheckComplete();
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@Override
|
||||
public void captivePortalCheckComplete(NetworkInfo info) {
|
||||
enforceConnectivityInternalPermission();
|
||||
if (DBG) log("captivePortalCheckComplete: ni=" + info);
|
||||
mNetTrackers[info.getType()].captivePortalCheckComplete();
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@Override
|
||||
public void captivePortalCheckCompleted(NetworkInfo info, boolean isCaptivePortal) {
|
||||
enforceConnectivityInternalPermission();
|
||||
if (DBG) log("captivePortalCheckCompleted: ni=" + info + " captive=" + isCaptivePortal);
|
||||
mNetTrackers[info.getType()].captivePortalCheckCompleted(isCaptivePortal);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup data activity tracking for the given network interface.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user