/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 72 public int addNetwork(String ssid, boolean hidden, int securityType, in addNetwork() argument 76 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork() 83 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork() 94 public String addHttpProxyNetworkVerifyAndRemove(String ssid, String pacProxyUrl) in addHttpProxyNetworkVerifyAndRemove() argument 99 WifiConfiguration conf = createConfig(ssid, false, SECURITY_TYPE_NONE, null); in addHttpProxyNetworkVerifyAndRemove() 105 throw new IllegalStateException("Failed to addNetwork: " + ssid); in addHttpProxyNetworkVerifyAndRemove() 108 if (w.SSID.equals(ssid)) { in addHttpProxyNetworkVerifyAndRemove() 114 throw new IllegalStateException("Failed to get WifiConfiguration for: " + ssid); in addHttpProxyNetworkVerifyAndRemove() 123 throw new IllegalStateException("Failed to remove WifiConfiguration: " + ssid); in addHttpProxyNetworkVerifyAndRemove() 135 public int updateNetwork(WifiConfiguration wifiConf, String ssid, boolean hidden, in updateNetwork() argument [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 141 private boolean awaitNetworkState(String ssid, boolean exists) { in awaitNetworkState() argument 146 if ((getNetworkForSsid(ssid) != null) == exists) { in awaitNetworkState() 176 private WifiConfiguration getNetworkForSsid(String ssid) { in getNetworkForSsid() argument 177 if (!ssid.startsWith("\"")) { in getNetworkForSsid() 178 ssid = '"' + ssid + '"'; in getNetworkForSsid() 183 if (ssid.equals(config.SSID)) { in getNetworkForSsid()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiInfoTest.java | 127 String ssid = wifiInfo.getSSID(); in testWifiInfoProperties() local 128 if (!ssid.startsWith("0x") && !ssid.equals(WifiSsid.NONE)) { in testWifiInfoProperties() 130 assertTrue(ssid.charAt(0) == '"'); in testWifiInfoProperties() 131 assertTrue(ssid.charAt(ssid.length() - 1) == '"'); in testWifiInfoProperties()
|
D | WifiEnterpriseConfigTest.java | 796 private boolean doesSsidExist(String ssid) { in doesSsidExist() argument 798 if (w.SSID.equals(ssid)) in doesSsidExist()
|
D | WifiManagerTest.java | 223 private boolean existSSID(String ssid) { in existSSID() argument 225 if (w.SSID.equals(ssid)) in existSSID()
|
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/ |
D | WifiConfigCreatorActivity.java | 49 String ssid = intent.getStringExtra(EXTRA_SSID); in onCreate() local 52 configCreator.addNetwork(ssid, false, securityType, password); in onCreate() 55 String ssid = intent.getStringExtra(EXTRA_SSID); in onCreate() local 58 configCreator.updateNetwork(netId, ssid, false, securityType, password); in onCreate()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiConfigLockdownTest.java | 165 private void startRegularActivity(String action, int netId, String ssid, int securityType, in startRegularActivity() argument 169 createRegularConfig.putExtra(EXTRA_SSID, ssid); in startRegularActivity()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 587 final String ssid = mWfm.getConnectionInfo().getSSID(); in setWifiMeteredStatus() local 588 return setWifiMeteredStatus(ssid, metered); in setWifiMeteredStatus() 591 private String setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument 592 assertNotNull("null SSID", ssid); in setWifiMeteredStatus() 593 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus() 594 assertFalse("empty SSID", ssid.isEmpty()); in setWifiMeteredStatus()
|