Searched refs:netId (Results 1 – 6 of 6) sorted by relevance
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 96 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork() local 98 if (netId != -1) { in addNetwork() 99 Log.i(TAG, "Added SSID '" + ssid + "': netId = " + netId + "; enabling it"); in addNetwork() 100 mWifiManager.enableNetwork(netId, true); in addNetwork() 103 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork() 105 return netId; in addNetwork() 116 int netId = -1; in addHttpProxyNetworkVerifyAndRemove() local 120 netId = addNetworkWithProxy(ssid, pacProxyUrl); in addHttpProxyNetworkVerifyAndRemove() 124 Log.d(TAG, "calling removeNetwork(" + netId + ")"); in addHttpProxyNetworkVerifyAndRemove() 125 if (!mWifiManager.removeNetwork(netId)) { in addHttpProxyNetworkVerifyAndRemove() [all …]
|
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/ |
D | WifiConfigCreatorActivity.java | 55 int netId = configCreator.addNetwork(ssid, false, securityType, password); in onCreate() local 56 Log.d(TAG, "new id : " + netId); in onCreate() 58 int netId = intent.getIntExtra(EXTRA_NETID, -1); in onCreate() local 62 Log.d(TAG, "Updating network " + ssid + " (id " + netId + ")"); in onCreate() 63 configCreator.updateNetwork(netId, ssid, false, securityType, password); in onCreate() 65 int netId = intent.getIntExtra(EXTRA_NETID, -1); in onCreate() local 66 if (netId != -1) { in onCreate() 67 configCreator.removeNetwork(netId); in onCreate()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiNetworkConfigurationWithoutFineLocationPermissionTest.java | 67 int netId = mWifiConfigCreator.addNetwork(NETWORK_SSID, /* hidden */ false, in testAddAndRetrieveCallerConfiguredNetworks() local 69 assertWithMessage("id of added network").that(netId).isNotEqualTo(INVALID_NETWORK_ID); in testAddAndRetrieveCallerConfiguredNetworks() 77 Log.d(TAG, "Removing network " + netId); in testAddAndRetrieveCallerConfiguredNetworks() 78 mWifiManager.removeNetwork(netId); in testAddAndRetrieveCallerConfiguredNetworks()
|
D | WifiConfigLockdownTest.java | 93 int netId = mWifiConfigCreator.updateNetwork(config, in testDeviceOwnerCanUpdateConfig() local 95 Log.d(TAG, "netid after updateNetwork(REGULAR_SSID):" + netId); in testDeviceOwnerCanUpdateConfig() 97 .that(netId).isNotEqualTo(-1); in testDeviceOwnerCanUpdateConfig() 101 int netId = mWifiConfigCreator.updateNetwork(config, in testDeviceOwnerCanUpdateConfig() local 103 Log.d(TAG, "netid after updateNetwork(REGULAR_SSID):" + netId); in testDeviceOwnerCanUpdateConfig() 105 .that(netId).isNotEqualTo(-1); in testDeviceOwnerCanUpdateConfig() 204 private void startRegularActivity(String action, int netId, String ssid, int securityType, in startRegularActivity() argument 207 createRegularConfig.putExtra(EXTRA_NETID, netId); in startRegularActivity()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | WifiLockdownTestActivity.java | 122 int netId; in onCreate() 124 netId = mConfigCreator.addNetwork(ssidEditor.getText().toString(), false, in onCreate() 127 netId = -1; in onCreate() 129 if (netId == -1) { in onCreate()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | MeteredDataRestrictionTest.java | 208 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus() local 212 setWifiMeteredStatus(netId, metered); in setWifiMeteredStatus() 213 return netId; in setWifiMeteredStatus()
|