Home
last modified time | relevance | path

Searched refs:network (Results 1 – 25 of 38) sorted by relevance

12

/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DPnoNetworkTest.java52 PnoNetwork network = new PnoNetwork(); in testGetters() local
53 network.setSsid(TEST_SSID); in testGetters()
54 network.setFrequenciesMhz(TEST_FREQUENCIES); in testGetters()
55 network.setHidden(true); in testGetters()
57 assertThat(network.getSsid()).isEqualTo(TEST_SSID); in testGetters()
58 assertThat(network.getFrequenciesMhz()).isEqualTo(TEST_FREQUENCIES); in testGetters()
59 assertThat(network.isHidden()).isTrue(); in testGetters()
64 PnoNetwork network = new PnoNetwork(); in canSerializeAndDeserialize() local
65 network.setSsid(TEST_SSID); in canSerializeAndDeserialize()
66 network.setFrequenciesMhz(TEST_FREQUENCIES); in canSerializeAndDeserialize()
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/service/cts/
DTestSharedConnectivityService.java48 public void onConnectHotspotNetwork(HotspotNetwork network) { in onConnectHotspotNetwork() argument
50 mConnectHotspotNetwork = network; in onConnectHotspotNetwork()
54 public void onDisconnectHotspotNetwork(HotspotNetwork network) { in onDisconnectHotspotNetwork() argument
56 mDisconnectHotspotNetwork = network; in onDisconnectHotspotNetwork()
60 public void onConnectKnownNetwork(KnownNetwork network) { in onConnectKnownNetwork() argument
62 mConnectKnownNetwork = network; in onConnectKnownNetwork()
66 public void onForgetKnownNetwork(KnownNetwork network) { in onForgetKnownNetwork() argument
68 mForgetKnownNetwork = network; in onForgetKnownNetwork()
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DMockNetworkService.java20 import android.hardware.radio.network.BarringInfo;
21 import android.hardware.radio.network.CellConnectionStatus;
22 import android.hardware.radio.network.CellInfo;
23 import android.hardware.radio.network.CellInfoRatSpecificInfo;
24 import android.hardware.radio.network.Domain;
25 import android.hardware.radio.network.EmergencyRegResult;
26 import android.hardware.radio.network.RegState;
142 public android.hardware.radio.network.OperatorInfo getPrimaryCellOperatorInfo() { in getPrimaryCellOperatorInfo()
143 android.hardware.radio.network.OperatorInfo operatorInfo = in getPrimaryCellOperatorInfo()
144 new android.hardware.radio.network.OperatorInfo(); in getPrimaryCellOperatorInfo()
[all …]
DIRadioNetworkImpl.java23 import android.hardware.radio.network.BarringInfo;
24 import android.hardware.radio.network.BarringTypeSpecificInfo;
25 import android.hardware.radio.network.CellIdentity;
26 import android.hardware.radio.network.Domain;
27 import android.hardware.radio.network.EmergencyRegResult;
28 import android.hardware.radio.network.IRadioNetwork;
29 import android.hardware.radio.network.IRadioNetworkIndication;
30 import android.hardware.radio.network.IRadioNetworkResponse;
31 import android.hardware.radio.network.NetworkScanRequest;
32 import android.hardware.radio.network.RadioAccessSpecifier;
[all …]
DMockNetworkConfig.java20 import android.hardware.radio.network.CellConnectionStatus;
21 import android.hardware.radio.network.CellIdentityLte;
22 import android.hardware.radio.network.CellIdentityWcdma;
23 import android.hardware.radio.network.CellInfo;
24 import android.hardware.radio.network.CellInfoLte;
25 import android.hardware.radio.network.CellInfoRatSpecificInfo;
26 import android.hardware.radio.network.CellInfoWcdma;
27 import android.hardware.radio.network.LteSignalStrength;
28 import android.hardware.radio.network.OperatorInfo;
29 import android.hardware.radio.network.WcdmaSignalStrength;
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DTestHelper.java256 .filter(network -> TextUtils.equals( in findMatchingSavedNetworksWithBssidByBand()
257 scanResult.SSID, WifiInfo.sanitizeSsid(network.SSID))) in findMatchingSavedNetworksWithBssidByBand()
282 @NonNull WifiConfiguration network) { in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
284 .setSsid(WifiInfo.sanitizeSsid(network.SSID)) in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
285 .setBssid(MacAddress.fromString(network.BSSID)); in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
286 if (network.preSharedKey != null) { in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
287 if (network.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
288 suggestionBuilder.setWpa2Passphrase(WifiInfo.sanitizeSsid(network.preSharedKey)); in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
289 } else if (network.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE)) { in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
290 suggestionBuilder.setWpa3Passphrase(WifiInfo.sanitizeSsid(network.preSharedKey)); in createSuggestionBuilderWithCredentialFromSavedNetworkWithBssid()
[all …]
DMultiStaConcurrencyMultiInternetWifiNetworkTest.java106 public void onLinkPropertiesChanged(@NonNull Network network,
109 mConnectivityManager.getNetworkCapabilities(network));
110 Log.d(TAG, "onLinkPropertiesChanged: " + network + " primary " + isPrimary);
114 public void onCapabilitiesChanged(@NonNull Network network,
117 mConnectivityManager.getNetworkCapabilities(network));
118 Log.d(TAG, "onCapabilitiesChanged: " + network + " primary " + isPrimary
123 public void onLost(@NonNull Network network) {
125 mConnectivityManager.getNetworkCapabilities(network));
215 for (WifiConfiguration network : entry.getValue()) { in setUp()
216 if (mMatchingNetworksBands.containsKey(network.SSID)) { in setUp()
[all …]
DMultiStaConcurrencyWifiNetworkSpecifierTest.java233 WifiConfiguration network, WifiNetworkSpecifier specifier) throws Exception { in testSuccessfulConnectionWithSpecifier() argument
235 network, specifier, false); in testSuccessfulConnectionWithSpecifier()
239 WifiConfiguration network, WifiNetworkSpecifier specifier) throws Exception { in testUserRejectionWithSpecifier() argument
241 network, specifier, true); in testUserRejectionWithSpecifier()
DWifiBackupRestoreTest.java199 private void flipMeteredOverride(WifiConfiguration network) { in flipMeteredOverride() argument
200 if (network.meteredOverride == METERED_OVERRIDE_NONE) { in flipMeteredOverride()
201 network.meteredOverride = METERED_OVERRIDE_METERED; in flipMeteredOverride()
202 } else if (network.meteredOverride == METERED_OVERRIDE_METERED) { in flipMeteredOverride()
203 network.meteredOverride = METERED_OVERRIDE_NOT_METERED; in flipMeteredOverride()
204 } else if (network.meteredOverride == METERED_OVERRIDE_NOT_METERED) { in flipMeteredOverride()
205 network.meteredOverride = METERED_OVERRIDE_NONE; in flipMeteredOverride()
506 for (WifiConfiguration network : restoredSavedNetworks) {
507 sWifiManager.removeNetwork(network.networkId);
DWifiManagerTest.java3437 for (WifiConfiguration network : savedNetworks) { in testConnect()
3438 assertTrue(sWifiManager.disableNetwork(network.networkId)); in testConnect()
3466 for (WifiConfiguration network : savedNetworks) { in testConnect()
3467 sWifiManager.enableNetwork(network.networkId, true); in testConnect()
3496 public Network network; field in WifiManagerTest.TestNetworkCallback
3504 public void onAvailable(Network network) { in onAvailable() argument
3507 this.network = network; in onAvailable()
3512 public void onCapabilitiesChanged(Network network, in onCapabilitiesChanged() argument
3577 for (WifiConfiguration network : savedNetworks) { in testSave()
3578 if (network.networkId != currentConfig.networkId) { in testSave()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DCallbackUtils.java61 public void onAvailable(Network network) { in onAvailable() argument
63 mNetwork = network; in onAvailable()
68 … public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() argument
70 mNetwork = network; in onCapabilitiesChanged()
82 public void onLost(Network network) { in onLost() argument
84 mNetwork = network; in onLost()
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/app/
DKnownNetworkTest.java93 KnownNetwork network = buildKnownNetworkBuilder().build(); in parcelOperation() local
96 network.writeToParcel(parcelW, 0); in parcelOperation()
105 assertThat(fromParcel).isEqualTo(network); in parcelOperation()
106 assertThat(fromParcel.hashCode()).isEqualTo(network.hashCode()); in parcelOperation()
110 KnownNetwork network = buildKnownNetworkBuilder().setNetworkProviderInfo(null) in parcelOperation_noNetworkProviderInfo() local
114 network.writeToParcel(parcelW, 0); in parcelOperation_noNetworkProviderInfo()
123 assertThat(fromParcel).isEqualTo(network); in parcelOperation_noNetworkProviderInfo()
124 assertThat(fromParcel.hashCode()).isEqualTo(network.hashCode()); in parcelOperation_noNetworkProviderInfo()
153 KnownNetwork network = buildKnownNetworkBuilder().build(); in testGetMethods() local
159 assertThat(network.getNetworkSource()).isEqualTo(NETWORK_SOURCE); in testGetMethods()
[all …]
DHotspotNetworkTest.java103 HotspotNetwork network = buildHotspotNetworkBuilder(true).build(); in parcelOperation() local
106 network.writeToParcel(parcelW, 0); in parcelOperation()
115 assertThat(fromParcel).isEqualTo(network); in parcelOperation()
116 assertThat(fromParcel.hashCode()).isEqualTo(network.hashCode()); in parcelOperation()
152 HotspotNetwork network = buildHotspotNetworkBuilder(true).build(); in getMethods() local
156 assertThat(network.getDeviceId()).isEqualTo(DEVICE_ID); in getMethods()
157 assertThat(network.getNetworkProviderInfo()).isEqualTo(mNetworkProviderInfo); in getMethods()
158 assertThat(network.getHostNetworkType()).isEqualTo(NETWORK_TYPE); in getMethods()
159 assertThat(network.getNetworkName()).isEqualTo(NETWORK_NAME); in getMethods()
160 assertThat(network.getHotspotSsid()).isEqualTo(HOTSPOT_SSID); in getMethods()
[all …]
DSharedConnectivityManagerTest.java366 HotspotNetwork network = buildHotspotNetwork(); in connectHotspotNetwork_serviceNotConnected_shouldFail() local
370 assertThat(manager.connectHotspotNetwork(network)).isFalse(); in connectHotspotNetwork_serviceNotConnected_shouldFail()
375 HotspotNetwork network = buildHotspotNetwork(); in connectHotspotNetwork() local
379 manager.connectHotspotNetwork(network); in connectHotspotNetwork()
381 verify(mService).connectHotspotNetwork(network); in connectHotspotNetwork()
386 HotspotNetwork network = buildHotspotNetwork(); in connectHotspotNetwork_remoteException_shouldFail() local
389 doThrow(new RemoteException()).when(mService).connectHotspotNetwork(network); in connectHotspotNetwork_remoteException_shouldFail()
391 assertThat(manager.connectHotspotNetwork(network)).isFalse(); in connectHotspotNetwork_remoteException_shouldFail()
396 HotspotNetwork network = buildHotspotNetwork(); in disconnectHotspotNetwork_serviceNotConnected_shouldFail() local
400 assertThat(manager.disconnectHotspotNetwork(network)).isFalse(); in disconnectHotspotNetwork_serviceNotConnected_shouldFail()
[all …]
/cts/tests/tests/wifi/assets/
DBackupLegacyFormatSupplicantConf.txt1 network={
12 network={
19 network={
/cts/tests/tests/vcn/src/android/net/vcn/cts/
DTestNetworkWrapper.java395 public void waitForLostNetwork(Network network) throws InterruptedException { in waitForLostNetwork() argument
399 if (Objects.equals(network, waitForLost())) { in waitForLostNetwork()
404 fail("Timeout on waitForLostNetwork " + network); in waitForLostNetwork()
421 public void onAvailable(@NonNull Network network) { in onAvailable() argument
422 mAvailableHistory.offer(network); in onAvailable()
426 public void onLost(@NonNull Network network) { in onLost() argument
427 mLostHistory.offer(network); in onLost()
432 @NonNull Network network, @NonNull NetworkCapabilities nc) { in onCapabilitiesChanged()
433 mCapabilitiesChangedHistory.offer(new CapabilitiesChangedEvent(network, nc)); in onCapabilitiesChanged()
437 public final Network network; field in TestNetworkWrapper.VcnTestNetworkCallback.CapabilitiesChangedEvent
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DConnectivityManagerTestOnMockModem.java88 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in onCapabilitiesChanged() argument
89 sDefaultNetwork = network; in onCapabilitiesChanged()
93 + network in onCapabilitiesChanged()
101 + network in onCapabilitiesChanged()
111 + network in onCapabilitiesChanged()
120 public void onLost(Network network) { in onLost() argument
121 sDefaultNetwork = network; in onLost()
122 Log.d(TAG, "onLost(): network: " + network); in onLost()
129 public void onAvailable(Network network) { in onAvailable() argument
130 sDefaultNetwork = network; in onAvailable()
[all …]
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DNetworkingHelper.java175 for (Network network : networks) { in hasCellularNetwork()
176 if (mConnectivityManager.getNetworkCapabilities(network) in hasCellularNetwork()
189 for (Network network : networks) { in hasEthernetConnection()
191 mConnectivityManager.getNetworkCapabilities(network); in hasEthernetConnection()
220 final Network network = mConnectivityManager.getActiveNetwork(); in isWiFiConnected() local
221 if (network == null) { in isWiFiConnected()
225 mConnectivityManager.getNetworkCapabilities(network); in isWiFiConnected()
270 for (Network network : networks) { in setAirplaneMode()
272 mConnectivityManager.getNetworkCapabilities(network); in setAirplaneMode()
441 public void onAvailable(Network network) { in onAvailable() argument
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java383 Network network) { in isNetworkCellularAndHasInternet() argument
384 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network); in isNetworkCellularAndHasInternet()
394 for (Network network : allNetworks) { in isMobileDataEnabled()
395 if (isNetworkCellularAndHasInternet(mConnectivityManager, network)) { in isMobileDataEnabled()
536 public void onAvailable(Network network) {
537 Log.i(TAG, "Wifi network available " + network);
539 mMultiNetworkValidator.onWifiNetworkConnected(network);
551 public void onAvailable(Network network) {
552 Log.i(TAG, "Cellular network available " + network);
554 mMultiNetworkValidator.onCellularNetworkConnected(network);
[all …]
DConnectivityBackgroundTestActivity.java307 void setNetwork(Network network) { in setNetwork() argument
308 mNetwork = network; in setNetwork()
360 public void onAvailable(Network network) { in createNetworkCallback()
362 mState.setNetwork(network); in createNetworkCallback()
368 public void onLost(Network network) { in createNetworkCallback() argument
370 if (network.equals(mState.mNetwork)) { in createNetworkCallback()
378 public void onLinkPropertiesChanged(Network network, LinkProperties newLp) { in createNetworkCallback() argument
380 if (network.equals(mState.mNetwork)) { in createNetworkCallback()
626 final Network network, final String url, boolean doClose) {
632 (HttpURLConnection) network.openConnection(new URL(url));
/cts/tests/tests/wifi/CtsWifiLocationTestApp/src/android/net/wifi/cts/app/
DRetrieveTransportInfoAndReturnStatusActivity.java55 public void onAvailable(Network network) { in onAvailable() argument
60 public void onCapabilitiesChanged(Network network, in onCapabilitiesChanged() argument
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DOWNERS1 # These atom tests are co-owned by statsd and network team
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java258 Network network = mCm.getActiveNetwork(); in getActiveNetworkNetId() local
259 if (network == null) { in getActiveNetworkNetId()
262 return network.getNetId(); in getActiveNetworkNetId()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DAtomTests.java944 final Network network = callback.waitForAvailable(); in doGenerateNetworkTraffic() local
945 if (network == null) { in doGenerateNetworkTraffic()
952 exerciseRemoteHost(cm, network, new URL(HTTPS_HOST_URL)); in doGenerateNetworkTraffic()
966 private void exerciseRemoteHost(@NonNull ConnectivityManager cm, @NonNull Network network, in exerciseRemoteHost() argument
968 cm.bindProcessToNetwork(network); in exerciseRemoteHost()
971 urlc = (HttpURLConnection) network.openConnection(url); in exerciseRemoteHost()
1068 for (Network network : networks) { in isWifiConnected()
1069 if (network == null) { in isWifiConnected()
1073 NetworkCapabilities caps = connManager.getNetworkCapabilities(network); in isWifiConnected()
/cts/tests/tests/telephony/current/mockmodem/
DAndroid.bp33 "android.hardware.radio.network-V3-java",

12