Merge "Wifi: Update to the WifiLock API documentation"

This commit is contained in:
Ahmed ElArabawy
2019-03-13 21:12:18 +00:00
committed by Android (Google) Code Review

View File

@@ -1001,8 +1001,9 @@ public class WifiManager {
/**
* In this Wi-Fi lock mode, Wi-Fi will not go to power save.
* This results in operating with low packet latency.
* The lock is active even when the device screen is off or
* the acquiring application is running in the background.
* The lock is only active when the device is connected to an access point.
* The lock is active even when the device screen is off or the acquiring application is
* running in the background.
* This mode will consume more power and hence should be used only
* when there is a need for this tradeoff.
* <p>
@@ -1020,6 +1021,7 @@ public class WifiManager {
* In this Wi-Fi lock mode, Wi-Fi will operate with a priority to achieve low latency.
* {@link #WIFI_MODE_FULL_LOW_LATENCY} lock has the following limitations:
* <ol>
* <li>The lock is only active when the device is connected to an access point.</li>
* <li>The lock is only active when the screen is on.</li>
* <li>The lock is only active when the acquiring app is running in the foreground.</li>
* </ol>