summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-02-27 13:07:26 -0800
committerRoshan Pius <rpius@google.com>2020-02-28 03:35:12 +0000
commitb3b559f167dd2842f6f66afb187fc80c100b04c8 (patch)
treef8151a1ff9f9f8d9fdc5fbc2c8411bc8c9de063d /core/java/android
parent9651ab2de415b8438cb892e693f3561beea50d18 (diff)
Settings(javadocs): Add alternatives for deprecated settings
Bug: 150219394 Test: Compiles Change-Id: Ie4dfbfa640a042343e20d2238729444fdc8eadb6
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/provider/Settings.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index f2d415a2c4a1..fa2b0148b4b5 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -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";