/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 78 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/common/device-side/util/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 78 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/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | MeteredDataRestrictionTest.java | 163 final String netId = setWifiMeteredStatus(true); in setMeteredNetwork() local 166 mMeteredWifi = netId; in setMeteredNetwork() 168 assertWifiMeteredStatus(netId, true); in setMeteredNetwork() 184 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus() local 186 setWifiMeteredStatus(netId, metered); in setWifiMeteredStatus() 187 return netId; in setWifiMeteredStatus() 190 private void setWifiMeteredStatus(String netId, boolean metered) throws Exception { in setWifiMeteredStatus() argument 191 Log.i(TAG, "Setting wi-fi network " + netId + " metered status to " + metered); in setWifiMeteredStatus() 192 executeCmd("cmd netpolicy set metered-network " + netId + " " + metered); in setWifiMeteredStatus() 195 private void assertWifiMeteredStatus(String netId, boolean metered) throws Exception { in assertWifiMeteredStatus() argument [all …]
|
/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/tests/tests/wifi/src/android/net/wifi/p2p/cts/ |
D | WifiP2pConfigTest.java | 44 assertEquals(config.netId, WifiP2pGroup.PERSISTENT_NET_ID); in testWifiP2pConfigBuilderForPersist() 60 assertEquals(config.netId, WifiP2pGroup.TEMPORARY_NET_ID); in testWifiP2pConfigBuilderForNonPersist()
|
/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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | MultiNetworkConnectivityTestActivity.java | 557 Log.i(TAG, "Wifi network available " + network.netId); 572 Log.i(TAG, "Cellular network available " + network.netId); 764 Log.i(TAG, "Network capabilities for " + activeNetwork.netId + " " in isExpectedTransportForActiveNetwork() 777 Log.i(TAG, "Network connection status " + network.netId + " " + status); in isNetworkConnected() 789 Log.i(TAG, "Wifi network connected " + network.netId); in onWifiNetworkConnected()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 1364 assertFalse(NetworkUtils.queryUserAccess(Binder.getCallingUid(), wifiNetwork.netId));
|