paulhu | 845456e | 2021-03-17 17:19:09 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2021 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.net; |
| 18 | |
| 19 | /** |
| 20 | * A manager class for connectivity module settings. |
| 21 | * |
| 22 | * @hide |
| 23 | */ |
| 24 | public class ConnectivitySettingsManager { |
| 25 | |
| 26 | private ConnectivitySettingsManager() {} |
| 27 | |
| 28 | /** |
| 29 | * Whether to automatically switch away from wifi networks that lose Internet access. |
| 30 | * Only meaningful if config_networkAvoidBadWifi is set to 0, otherwise the system always |
| 31 | * avoids such networks. Valid values are: |
| 32 | * |
| 33 | * 0: Don't avoid bad wifi, don't prompt the user. Get stuck on bad wifi like it's 2013. |
| 34 | * null: Ask the user whether to switch away from bad wifi. |
| 35 | * 1: Avoid bad wifi. |
| 36 | */ |
| 37 | public static final String NETWORK_AVOID_BAD_WIFI = "network_avoid_bad_wifi"; |
| 38 | |
| 39 | /** |
| 40 | * User setting for ConnectivityManager.getMeteredMultipathPreference(). This value may be |
| 41 | * overridden by the system based on device or application state. If null, the value |
| 42 | * specified by config_networkMeteredMultipathPreference is used. |
| 43 | */ |
| 44 | public static final String NETWORK_METERED_MULTIPATH_PREFERENCE = |
| 45 | "network_metered_multipath_preference"; |
| 46 | } |