Home
last modified time | relevance | path

Searched refs:netId (Results 1 – 7 of 7) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWifiConfigCreator.java78 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork() local
80 if (netId != -1) { in addNetwork()
81 mWifiManager.enableNetwork(netId, true); in addNetwork()
83 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork()
85 return netId; in addNetwork()
97 int netId = -1; in addHttpProxyNetworkVerifyAndRemove() local
103 netId = mWifiManager.addNetwork(conf); in addHttpProxyNetworkVerifyAndRemove()
104 if (netId == -1) { in addHttpProxyNetworkVerifyAndRemove()
122 if (!mWifiManager.removeNetwork(netId)) { in addHttpProxyNetworkVerifyAndRemove()
126 mWifiManager.removeNetwork(netId); in addHttpProxyNetworkVerifyAndRemove()
[all …]
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/
DWifiConfigCreatorActivity.java54 int netId = intent.getIntExtra(EXTRA_NETID, -1); in onCreate() local
58 configCreator.updateNetwork(netId, ssid, false, securityType, password); in onCreate()
60 int netId = intent.getIntExtra(EXTRA_NETID, -1); in onCreate() local
61 if (netId != -1) { in onCreate()
62 configCreator.removeNetwork(netId); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DWifiLockdownTestActivity.java114 int netId; in onCreate()
116 netId = mConfigCreator.addNetwork(ssidEditor.getText().toString(), false, in onCreate()
119 netId = -1; in onCreate()
121 if (netId == -1) { in onCreate()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java539 final String netId = setWifiMeteredStatus(true); in setMeteredNetwork() local
542 mMeteredWifi = netId; in setMeteredNetwork()
544 assertWifiMeteredStatus(netId, true); in setMeteredNetwork()
593 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus() local
596 Log.i(TAG, "Setting wi-fi network " + netId + " metered status to " + metered); in setWifiMeteredStatus()
597 final String setCommand = "cmd netpolicy set metered-network " + netId + " " + metered; in setWifiMeteredStatus()
600 return netId; in setWifiMeteredStatus()
603 private void assertWifiMeteredStatus(String netId, boolean status) throws Exception { in assertWifiMeteredStatus() argument
605 final String expectedLine = netId + ";" + status; in assertWifiMeteredStatus()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiConfigLockdownTest.java165 private void startRegularActivity(String action, int netId, String ssid, int securityType, in startRegularActivity() argument
168 createRegularConfig.putExtra(EXTRA_NETID, netId); in startRegularActivity()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiEnterpriseConfigTest.java790 int netId = mWifiManager.addNetwork(config); in testAddEapNetwork() local
792 mWifiManager.removeNetwork(netId); in testAddEapNetwork()
DWifiManagerTest.java389 int netId = mWifiManager.addNetwork(wifiConfiguration); in testWifiManagerNetWork() local
399 assertTrue(mWifiManager.enableNetwork(netId, disableOthers)); in testWifiManagerNetWork()
403 assertTrue(mWifiManager.disableNetwork(netId)); in testWifiManagerNetWork()
410 netId = mWifiManager.updateNetwork(wifiConfiguration); in testWifiManagerNetWork()
415 assertTrue(mWifiManager.removeNetwork(netId)); in testWifiManagerNetWork()