diff options
| author | Wink Saville <wink@google.com> | 2013-08-07 16:22:47 -0700 |
|---|---|---|
| committer | Wink Saville <wink@google.com> | 2013-08-07 16:22:47 -0700 |
| commit | d747cbc898ef44e59c3fbf74a8327b6a12aad397 (patch) | |
| tree | 8b1363f08bd9f07c85f29da3e1760211bbf8c758 /core/java/android/net/ConnectivityManager.java | |
| parent | 607b414d0444067e166fa54d8ea37563f2715ea3 (diff) | |
| download | frameworks_base-d747cbc898ef44e59c3fbf74a8327b6a12aad397.zip frameworks_base-d747cbc898ef44e59c3fbf74a8327b6a12aad397.tar.gz frameworks_base-d747cbc898ef44e59c3fbf74a8327b6a12aad397.tar.bz2 | |
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
Diffstat (limited to 'core/java/android/net/ConnectivityManager.java')
| -rw-r--r-- | core/java/android/net/ConnectivityManager.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index 697bde9..855a2ef 100644 --- a/core/java/android/net/ConnectivityManager.java +++ b/core/java/android/net/ConnectivityManager.java @@ -1283,6 +1283,25 @@ public class ConnectivityManager { } /** + * Signal that the captive portal check on the indicated network + * is complete and whether its a captive portal or not. + * + * @param info the {@link NetworkInfo} object for the networkType + * in question. + * @param isCaptivePortal true/false. + * + * <p>This method requires the call to hold the permission + * {@link android.Manifest.permission#CONNECTIVITY_INTERNAL}. + * {@hide} + */ + public void captivePortalCheckCompleted(NetworkInfo info, boolean isCaptivePortal) { + try { + mService.captivePortalCheckCompleted(info, isCaptivePortal); + } catch (RemoteException e) { + } + } + + /** * Supply the backend messenger for a network tracker * * @param type NetworkType to set |
