Settings(javadocs): Add alternatives for deprecated settings

Bug: 150219394
Test: Compiles
Change-Id: Ie4dfbfa640a042343e20d2238729444fdc8eadb6
This commit is contained in:
Roshan Pius
2020-02-27 13:07:26 -08:00
parent 9651ab2de4
commit b3b559f167

View File

@@ -53,7 +53,9 @@ import android.location.LocationManager;
import android.net.ConnectivityManager;
import android.net.NetworkScoreManager;
import android.net.Uri;
import android.net.wifi.SoftApConfiguration;
import android.net.wifi.WifiManager;
import android.net.wifi.p2p.WifiP2pManager;
import android.os.BatteryManager;
import android.os.Binder;
import android.os.Build.VERSION_CODES;
@@ -10272,7 +10274,8 @@ public final class Settings {
/**
* Setting to allow scans to be enabled even wifi is turned off for connectivity.
* @hide
* @deprecated To be removed.
* @deprecated To be removed. Use {@link WifiManager#setScanAlwaysAvailable(boolean)} for
* setting the value and {@link WifiManager#isScanAlwaysAvailable()} for query.
*/
public static final String WIFI_SCAN_ALWAYS_AVAILABLE =
"wifi_scan_always_enabled";
@@ -10292,7 +10295,9 @@ public final class Settings {
*
* Type: int (0 for false, 1 for true)
* @hide
* @deprecated To be removed.
* @deprecated To be removed. Use {@link SoftApConfiguration.Builder#
* setAutoShutdownEnabled(boolean)} for setting the value and {@link SoftApConfiguration#
* isAutoShutdownEnabled()} for query.
*/
public static final String SOFT_AP_TIMEOUT_ENABLED = "soft_ap_timeout_enabled";
@@ -10301,7 +10306,8 @@ public final class Settings {
*
* Type: int (0 for false, 1 for true)
* @hide
* @deprecated Use {@link WifiManager#isAutoWakeupEnabled()} instead.
* @deprecated Use {@link WifiManager#setAutoWakeupEnabled(boolean)} for setting the value
* and {@link WifiManager#isAutoWakeupEnabled()} for query.
*/
@Deprecated
@SystemApi
@@ -10381,7 +10387,8 @@ public final class Settings {
*
* Type: int (0 for false, 1 for true)
* @hide
* @deprecated To be removed.
* @deprecated Use {@link WifiManager#setScanThrottleEnabled(boolean)} for setting the value
* and {@link WifiManager#isScanThrottleEnabled()} for query.
*/
public static final String WIFI_SCAN_THROTTLE_ENABLED = "wifi_scan_throttle_enabled";
@@ -10484,7 +10491,8 @@ public final class Settings {
* Setting to enable verbose logging in Wi-Fi; disabled by default, and setting to 1
* will enable it. In the future, additional values may be supported.
* @hide
* @deprecated To be removed.
* @deprecated Use {@link WifiManager#setVerboseLoggingEnabled(boolean)} for setting the
* value and {@link WifiManager#isVerboseLoggingEnabled()} for query.
*/
public static final String WIFI_VERBOSE_LOGGING_ENABLED =
"wifi_verbose_logging_enabled";
@@ -10553,7 +10561,9 @@ public final class Settings {
/**
* The Wi-Fi peer-to-peer device name
* @hide
* @deprecated To be removed.
* @deprecated Use {@link WifiP2pManager#setDeviceName(WifiP2pManager.Channel, String,
* WifiP2pManager.ActionListener)} for setting the value and
* {@link android.net.wifi.p2p.WifiP2pDevice#deviceName} for query.
*/
public static final String WIFI_P2P_DEVICE_NAME = "wifi_p2p_device_name";