/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 70 public int addNetwork(String ssid, boolean hidden, int securityType, in addNetwork() argument 74 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork() 81 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork() 90 public int updateNetwork(WifiConfiguration wifiConf, String ssid, boolean hidden, in updateNetwork() argument 97 WifiConfiguration conf = createConfig(ssid, hidden, securityType, password); in updateNetwork() 106 Log.w(TAG, "Unable to update SSID '" + ssid + "': netId = " + newNetId); in updateNetwork() 115 public int updateNetwork(int netId, String ssid, boolean hidden, in updateNetwork() argument 127 return updateNetwork(wifiConf, ssid, hidden, securityType, password); in updateNetwork() 143 private WifiConfiguration createConfig(String ssid, boolean hidden, int securityType, in createConfig() argument 146 if (!TextUtils.isEmpty(ssid)) { in createConfig() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 113 private boolean awaitNetworkState(String ssid, boolean exists) { in awaitNetworkState() argument 118 if ((getNetworkForSsid(ssid) != null) == exists) { in awaitNetworkState() 131 private WifiConfiguration getNetworkForSsid(String ssid) { in getNetworkForSsid() argument 132 if (!ssid.startsWith("\"")) { in getNetworkForSsid() 133 ssid = '"' + ssid + '"'; in getNetworkForSsid() 136 if (ssid.equals(config.SSID)) { in getNetworkForSsid()
|
/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/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiInfoTest.java | 125 String ssid = wifiInfo.getSSID(); in testWifiInfoProperties() local 126 if (ssid.startsWith("0x") == false) { in testWifiInfoProperties() 128 assertTrue(ssid.charAt(0) == '"'); in testWifiInfoProperties() 129 assertTrue(ssid.charAt(ssid.length() - 1) == '"'); in testWifiInfoProperties()
|
D | WifiEnterpriseConfigTest.java | 528 private boolean doesSsidExist(String ssid) { in doesSsidExist() argument 530 if (w.SSID.equals(ssid)) in doesSsidExist()
|
D | WifiManagerTest.java | 200 private boolean existSSID(String ssid) { in existSSID() argument 202 if (w.SSID.equals(ssid)) in existSSID()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 471 final String ssid = mWfm.getConnectionInfo().getSSID(); in setWifiMeteredStatus() local 472 return setWifiMeteredStatus(ssid, metered); in setWifiMeteredStatus() 475 private String setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument 476 assertNotNull("null SSID", ssid); in setWifiMeteredStatus() 477 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus() 478 assertFalse("empty SSID", ssid.isEmpty()); in setWifiMeteredStatus()
|
/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()
|