Merge "Add NetworkMonitor constants to SystemApi"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b0d60c4cf8
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package android.net;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -28,10 +30,16 @@ import android.os.RemoteException;
|
||||
*/
|
||||
public class CaptivePortal implements Parcelable {
|
||||
/** @hide */
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final int APP_RETURN_DISMISSED = 0;
|
||||
/** @hide */
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final int APP_RETURN_UNWANTED = 1;
|
||||
/** @hide */
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final int APP_RETURN_WANTED_AS_IS = 2;
|
||||
|
||||
private final IBinder mBinder;
|
||||
|
||||
@@ -23,6 +23,7 @@ import android.annotation.SdkConstant;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
@@ -255,6 +256,8 @@ public class ConnectivityManager {
|
||||
* portal login activity.
|
||||
* {@hide}
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String EXTRA_CAPTIVE_PORTAL_PROBE_SPEC =
|
||||
"android.net.extra.CAPTIVE_PORTAL_PROBE_SPEC";
|
||||
|
||||
@@ -262,6 +265,8 @@ public class ConnectivityManager {
|
||||
* Key for passing a user agent string to the captive portal login activity.
|
||||
* {@hide}
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String EXTRA_CAPTIVE_PORTAL_USER_AGENT =
|
||||
"android.net.extra.CAPTIVE_PORTAL_USER_AGENT";
|
||||
|
||||
|
||||
@@ -10816,6 +10816,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final int CAPTIVE_PORTAL_MODE_IGNORE = 0;
|
||||
|
||||
/**
|
||||
@@ -10824,6 +10826,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final int CAPTIVE_PORTAL_MODE_PROMPT = 1;
|
||||
|
||||
/**
|
||||
@@ -10832,6 +10836,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final int CAPTIVE_PORTAL_MODE_AVOID = 2;
|
||||
|
||||
/**
|
||||
@@ -10841,6 +10847,8 @@ public final class Settings {
|
||||
* The default for this setting is CAPTIVE_PORTAL_MODE_PROMPT.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_MODE = "captive_portal_mode";
|
||||
|
||||
/**
|
||||
@@ -10869,6 +10877,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_HTTPS_URL = "captive_portal_https_url";
|
||||
|
||||
/**
|
||||
@@ -10877,6 +10887,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_HTTP_URL = "captive_portal_http_url";
|
||||
|
||||
/**
|
||||
@@ -10885,6 +10897,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_FALLBACK_URL = "captive_portal_fallback_url";
|
||||
|
||||
/**
|
||||
@@ -10893,6 +10907,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_OTHER_FALLBACK_URLS =
|
||||
"captive_portal_other_fallback_urls";
|
||||
|
||||
@@ -10902,6 +10918,8 @@ public final class Settings {
|
||||
* by "@@,@@".
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_FALLBACK_PROBE_SPECS =
|
||||
"captive_portal_fallback_probe_specs";
|
||||
|
||||
@@ -10912,6 +10930,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_USE_HTTPS = "captive_portal_use_https";
|
||||
|
||||
/**
|
||||
@@ -10920,6 +10940,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String CAPTIVE_PORTAL_USER_AGENT = "captive_portal_user_agent";
|
||||
|
||||
/**
|
||||
@@ -10929,6 +10951,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String DATA_STALL_CONSECUTIVE_DNS_TIMEOUT_THRESHOLD =
|
||||
"data_stall_consecutive_dns_timeout_threshold";
|
||||
|
||||
@@ -10937,6 +10961,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String DATA_STALL_MIN_EVALUATE_INTERVAL =
|
||||
"data_stall_min_evaluate_interval";
|
||||
|
||||
@@ -10946,6 +10972,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String DATA_STALL_VALID_DNS_TIME_THRESHOLD =
|
||||
"data_stall_valid_dns_time_threshold";
|
||||
|
||||
@@ -10955,6 +10983,8 @@ public final class Settings {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String DATA_STALL_EVALUATION_TYPE = "data_stall_evaluation_type";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user