Searched refs:netId (Results 1 – 7 of 7) sorted by relevance
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 76 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork() local 78 if (netId != -1) { in addNetwork() 79 mWifiManager.enableNetwork(netId, true); in addNetwork() 81 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork() 83 return netId; in addNetwork() 115 public int updateNetwork(int netId, String ssid, boolean hidden, in updateNetwork() argument 122 if (config.networkId == netId) { in updateNetwork() 130 public boolean removeNetwork(int netId) { in removeNetwork() argument 131 return mWifiManager.removeNetwork(netId); in removeNetwork()
|
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/ |
D | WifiConfigCreatorActivity.java | 54 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/ |
D | WifiLockdownTestActivity.java | 114 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/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 413 final String netId = setWifiMeteredStatus(true); in setMeteredNetwork() local 416 mMeteredWifi = netId; in setMeteredNetwork() 418 assertWifiMeteredStatus(netId, true); in setMeteredNetwork() 477 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus() local 480 Log.i(TAG, "Setting wi-fi network " + netId + " metered status to " + metered); in setWifiMeteredStatus() 481 final String setCommand = "cmd netpolicy set metered-network " + netId + " " + metered; in setWifiMeteredStatus() 484 return netId; in setWifiMeteredStatus() 487 private void assertWifiMeteredStatus(String netId, boolean status) throws Exception { in assertWifiMeteredStatus() argument 489 final String expectedLine = netId + ";" + status; in assertWifiMeteredStatus()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 369 int netId = mWifiManager.addNetwork(wifiConfiguration); in testWifiManagerNetWork() local 379 assertTrue(mWifiManager.enableNetwork(netId, disableOthers)); in testWifiManagerNetWork() 384 assertTrue(mWifiManager.disableNetwork(netId)); in testWifiManagerNetWork() 391 netId = mWifiManager.updateNetwork(wifiConfiguration); in testWifiManagerNetWork() 396 assertTrue(mWifiManager.removeNetwork(netId)); in testWifiManagerNetWork()
|
D | WifiEnterpriseConfigTest.java | 522 int netId = mWifiManager.addNetwork(config); in testAddEapNetwork() local 524 mWifiManager.removeNetwork(netId); in testAddEapNetwork()
|
/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 168 createRegularConfig.putExtra(EXTRA_NETID, netId); in startRegularActivity()
|