Merge "Verbose Logging: Add maxTargetSdk"
This commit is contained in:
committed by
Android (Google) Code Review
commit
3237779fac
@@ -46,6 +46,7 @@ import android.net.wifi.hotspot2.OsuProvider;
|
||||
import android.net.wifi.hotspot2.PasspointConfiguration;
|
||||
import android.net.wifi.hotspot2.ProvisioningCallback;
|
||||
import android.os.Binder;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerExecutor;
|
||||
import android.os.IBinder;
|
||||
@@ -4920,7 +4921,10 @@ public class WifiManager {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(
|
||||
maxTargetSdk = Build.VERSION_CODES.Q,
|
||||
publicAlternatives = "Use {@code #setVerboseLoggingEnabled(boolean)} instead."
|
||||
)
|
||||
@RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS)
|
||||
public void enableVerboseLogging (int verbose) {
|
||||
try {
|
||||
@@ -4948,7 +4952,10 @@ public class WifiManager {
|
||||
|
||||
/** @hide */
|
||||
// TODO(b/145484145): remove once SUW stops calling this via reflection
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(
|
||||
maxTargetSdk = Build.VERSION_CODES.Q,
|
||||
publicAlternatives = "Use {@code #isVerboseLoggingEnabled()} instead."
|
||||
)
|
||||
public int getVerboseLoggingLevel() {
|
||||
try {
|
||||
return mService.getVerboseLoggingLevel();
|
||||
|
||||
Reference in New Issue
Block a user