[OWE] Rename isOweSupported to isEnhancedOpenSupported
Stick to the official WFA marketing name in this public API. Bug: 125850601 Test: atest com.android.server.wifi Test: Use Settings to scan and connect to OWE network Test: atest WifiConfigControllerTest Change-Id: I1360658e805b10db65f66f1194e342b063b741a4
This commit is contained in:
@@ -1509,7 +1509,7 @@ public class WifiConfigController implements TextWatcher,
|
||||
// Populate the Wi-Fi security spinner with the various supported key management types
|
||||
spinnerAdapter.add(mContext.getString(R.string.wifi_security_none));
|
||||
mSecurityInPosition[idx++] = AccessPoint.SECURITY_NONE;
|
||||
if (mWifiManager.isOweSupported()) {
|
||||
if (mWifiManager.isEnhancedOpenSupported()) {
|
||||
spinnerAdapter.add(mContext.getString(R.string.wifi_security_owe));
|
||||
mSecurityInPosition[idx++] = AccessPoint.SECURITY_OWE;
|
||||
}
|
||||
|
@@ -324,7 +324,7 @@ public class WifiConfigControllerTest {
|
||||
WifiManager wifiManager = mock(WifiManager.class);
|
||||
when(wifiManager.isWpa3SaeSupported()).thenReturn(saeVisible);
|
||||
when(wifiManager.isWpa3SuiteBSupported()).thenReturn(suitebVisible);
|
||||
when(wifiManager.isOweSupported()).thenReturn(oweVisible);
|
||||
when(wifiManager.isEnhancedOpenSupported()).thenReturn(oweVisible);
|
||||
|
||||
mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */,
|
||||
WifiConfigUiBase.MODE_MODIFY, wifiManager);
|
||||
|
Reference in New Issue
Block a user