Merge "[OWE] Rename isOweSupported to isEnhancedOpenSupported"
This commit is contained in:
committed by
Android (Google) Code Review
commit
a0b4aeeb9d
@@ -1509,7 +1509,7 @@ public class WifiConfigController implements TextWatcher,
|
|||||||
// Populate the Wi-Fi security spinner with the various supported key management types
|
// Populate the Wi-Fi security spinner with the various supported key management types
|
||||||
spinnerAdapter.add(mContext.getString(R.string.wifi_security_none));
|
spinnerAdapter.add(mContext.getString(R.string.wifi_security_none));
|
||||||
mSecurityInPosition[idx++] = AccessPoint.SECURITY_NONE;
|
mSecurityInPosition[idx++] = AccessPoint.SECURITY_NONE;
|
||||||
if (mWifiManager.isOweSupported()) {
|
if (mWifiManager.isEnhancedOpenSupported()) {
|
||||||
spinnerAdapter.add(mContext.getString(R.string.wifi_security_owe));
|
spinnerAdapter.add(mContext.getString(R.string.wifi_security_owe));
|
||||||
mSecurityInPosition[idx++] = AccessPoint.SECURITY_OWE;
|
mSecurityInPosition[idx++] = AccessPoint.SECURITY_OWE;
|
||||||
}
|
}
|
||||||
|
@@ -324,7 +324,7 @@ public class WifiConfigControllerTest {
|
|||||||
WifiManager wifiManager = mock(WifiManager.class);
|
WifiManager wifiManager = mock(WifiManager.class);
|
||||||
when(wifiManager.isWpa3SaeSupported()).thenReturn(saeVisible);
|
when(wifiManager.isWpa3SaeSupported()).thenReturn(saeVisible);
|
||||||
when(wifiManager.isWpa3SuiteBSupported()).thenReturn(suitebVisible);
|
when(wifiManager.isWpa3SuiteBSupported()).thenReturn(suitebVisible);
|
||||||
when(wifiManager.isOweSupported()).thenReturn(oweVisible);
|
when(wifiManager.isEnhancedOpenSupported()).thenReturn(oweVisible);
|
||||||
|
|
||||||
mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */,
|
mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */,
|
||||||
WifiConfigUiBase.MODE_MODIFY, wifiManager);
|
WifiConfigUiBase.MODE_MODIFY, wifiManager);
|
||||||
|
Reference in New Issue
Block a user