Loading packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java +8 −0 Original line number Diff line number Diff line Loading @@ -337,6 +337,7 @@ public class AccessPoint implements Comparable<AccessPoint> { mContext = context; networkId = config.networkId; mConfig = config; mFqdn = config.FQDN; setScanResultsPasspoint(homeScans, roamingScans); updateKey(); } Loading Loading @@ -673,6 +674,13 @@ public class AccessPoint implements Comparable<AccessPoint> { return mKey; } /** * Determines if the other AccessPoint represents the same network as this AccessPoint */ public boolean matches(AccessPoint other) { return getKey().equals(other.getKey()); } public boolean matches(WifiConfiguration config) { if (config.isPasspoint()) { return (isPasspoint() && config.FQDN.equals(mConfig.FQDN)); Loading Loading
packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java +8 −0 Original line number Diff line number Diff line Loading @@ -337,6 +337,7 @@ public class AccessPoint implements Comparable<AccessPoint> { mContext = context; networkId = config.networkId; mConfig = config; mFqdn = config.FQDN; setScanResultsPasspoint(homeScans, roamingScans); updateKey(); } Loading Loading @@ -673,6 +674,13 @@ public class AccessPoint implements Comparable<AccessPoint> { return mKey; } /** * Determines if the other AccessPoint represents the same network as this AccessPoint */ public boolean matches(AccessPoint other) { return getKey().equals(other.getKey()); } public boolean matches(WifiConfiguration config) { if (config.isPasspoint()) { return (isPasspoint() && config.FQDN.equals(mConfig.FQDN)); Loading