Wifi: Rename removeDoubleQuotes to sanitizeSsid
Keep removeDoubleQuotes as it is marked @UnsupportedAppUsage. Bug: 145745815 Test: compiles Change-Id: I68a16b64eba3d84265b5cf2c83b434dc4fc7fa3c
This commit is contained in:
@@ -7580,7 +7580,7 @@ package android.net.wifi {
|
||||
method public boolean isEphemeral();
|
||||
method public boolean isOsuAp();
|
||||
method public boolean isPasspointAp();
|
||||
method @Nullable public static String removeDoubleQuotes(@Nullable String);
|
||||
method @Nullable public static String sanitizeSsid(@Nullable String);
|
||||
field public static final String DEFAULT_MAC_ADDRESS = "02:00:00:00:00:00";
|
||||
field public static final int INVALID_RSSI = -127; // 0xffffff81
|
||||
}
|
||||
|
||||
@@ -889,6 +889,13 @@ public class WifiInfo implements Parcelable {
|
||||
*/
|
||||
@Nullable
|
||||
@SystemApi
|
||||
public static String sanitizeSsid(@Nullable String string) {
|
||||
return removeDoubleQuotes(string);
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
@Nullable
|
||||
public static String removeDoubleQuotes(@Nullable String string) {
|
||||
if (string == null) return null;
|
||||
final int length = string.length();
|
||||
|
||||
Reference in New Issue
Block a user