From 30fe264f5c7b9eda127cbb8a181103240e2b32d0 Mon Sep 17 00:00:00 2001 From: Russell Brenner Date: Tue, 12 Feb 2013 10:03:14 -0800 Subject: [PATCH] Adjust captive portal test for setup wizard During setup wizard, perform captive portal test without the typical delays. Change-Id: If596948e732966817aae6201440e87e19be0c2f8 --- core/java/android/net/ConnectivityManager.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index a8a68d0e32..000c56c3a4 100644 --- a/core/java/android/net/ConnectivityManager.java +++ b/core/java/android/net/ConnectivityManager.java @@ -227,6 +227,21 @@ public class ConnectivityManager { */ public static final String EXTRA_ERRORED_TETHER = "erroredArray"; + /** + * Broadcast Action: The captive portal tracker has finished its test. + * Sent only while running Setup Wizard, in lieu of showing a user + * notification. + * @hide + */ + public static final String ACTION_CAPTIVE_PORTAL_TEST_COMPLETED = + "android.net.conn.CAPTIVE_PORTAL_TEST_COMPLETED"; + /** + * The lookup key for a boolean that indicates whether a captive portal was detected. + * Retrieve it with {@link android.content.Intent#getBooleanExtra(String,boolean)}. + * @hide + */ + public static final String EXTRA_IS_CAPTIVE_PORTAL = "captivePortal"; + /** * The absence of APN.. * @hide