This class is used to manager the connectivity module related settings. Bug: 182538166 Test: make Change-Id: I5e02e719ce0d305d7c8a45fefb850d7b981f07eb
47 lines
1.7 KiB
Java
47 lines
1.7 KiB
Java
/*
|
|
* Copyright (C) 2021 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.net;
|
|
|
|
/**
|
|
* A manager class for connectivity module settings.
|
|
*
|
|
* @hide
|
|
*/
|
|
public class ConnectivitySettingsManager {
|
|
|
|
private ConnectivitySettingsManager() {}
|
|
|
|
/**
|
|
* Whether to automatically switch away from wifi networks that lose Internet access.
|
|
* Only meaningful if config_networkAvoidBadWifi is set to 0, otherwise the system always
|
|
* avoids such networks. Valid values are:
|
|
*
|
|
* 0: Don't avoid bad wifi, don't prompt the user. Get stuck on bad wifi like it's 2013.
|
|
* null: Ask the user whether to switch away from bad wifi.
|
|
* 1: Avoid bad wifi.
|
|
*/
|
|
public static final String NETWORK_AVOID_BAD_WIFI = "network_avoid_bad_wifi";
|
|
|
|
/**
|
|
* User setting for ConnectivityManager.getMeteredMultipathPreference(). This value may be
|
|
* overridden by the system based on device or application state. If null, the value
|
|
* specified by config_networkMeteredMultipathPreference is used.
|
|
*/
|
|
public static final String NETWORK_METERED_MULTIPATH_PREFERENCE =
|
|
"network_metered_multipath_preference";
|
|
}
|