Handle deprecation of WIFI_MODE_FULL_HIGH_PERF
This commit is contained in:
@@ -94,6 +94,9 @@ Default settings are picked to suit general use cases and maximize compatibility
|
|||||||
An example use case is when a voice connection needs to be kept active even after the device screen goes off.
|
An example use case is when a voice connection needs to be kept active even after the device screen goes off.
|
||||||
Using this mode may improve the call quality.
|
Using this mode may improve the call quality.
|
||||||
Requires support from the hardware.
|
Requires support from the hardware.
|
||||||
|
Deprecated in Android 14 and is automatically replaced with "Low latency mode".
|
||||||
|
Deprecation is due to the impact of it on power dissipation.
|
||||||
|
The "Low latency mode" provides much of the same desired functionality with less impact on power dissipation.
|
||||||
- (since Android 10) Choose "Low latency mode" to optimize for reduced packet latency, and this might result in:
|
- (since Android 10) Choose "Low latency mode" to optimize for reduced packet latency, and this might result in:
|
||||||
1. Reduced battery life.
|
1. Reduced battery life.
|
||||||
2. Reduced throughput.
|
2. Reduced throughput.
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ class WifiDoubleLock(lockType: Int) : AutoCloseable {
|
|||||||
@Deprecated("This constant was deprecated in API level Q.\n" +
|
@Deprecated("This constant was deprecated in API level Q.\n" +
|
||||||
"This API is non-functional and will have no impact.")
|
"This API is non-functional and will have no impact.")
|
||||||
Full(WifiManager.WIFI_MODE_FULL),
|
Full(WifiManager.WIFI_MODE_FULL),
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
HighPerf(WifiManager.WIFI_MODE_FULL_HIGH_PERF),
|
HighPerf(WifiManager.WIFI_MODE_FULL_HIGH_PERF),
|
||||||
@RequiresApi(29)
|
@RequiresApi(29)
|
||||||
LowLatency(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, true),
|
LowLatency(WifiManager.WIFI_MODE_FULL_LOW_LATENCY, true),
|
||||||
|
|||||||
Reference in New Issue
Block a user