Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4411940b authored by David Su's avatar David Su
Browse files

Wifi: Rename removeDoubleQuotes to sanitizeSsid

Keep removeDoubleQuotes as it is marked
@UnsupportedAppUsage.

Bug: 145745815
Test: compiles
Change-Id: I68a16b64eba3d84265b5cf2c83b434dc4fc7fa3c
parent 49fbfc32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
  }
+7 −0
Original line number Diff line number Diff line
@@ -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();