Home
last modified time | relevance | path

Searched refs:TRANSPORT_WIFI (Results 1 – 25 of 150) sorted by relevance

123456

/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DIpConnectivityLogTest.java20 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
52 private static final int[] FAKE_TRANSPORT_TYPES = unpackBits(TRANSPORT_WIFI);
75 assertTrue(logger.log(makeExpectedEvent(FAKE_TIME_STAMP, FAKE_NET_ID, TRANSPORT_WIFI, in testLoggingEvents()
82 TRANSPORT_WIFI, null), got.get(2)); in testLoggingEvents()
84 TRANSPORT_WIFI, null), got.get(3)); in testLoggingEvents()
88 TRANSPORT_WIFI, FAKE_INTERFACE_NAME), got.get(5)); in testLoggingEvents()
105 ((i + j) % 2 == 0) ? TRANSPORT_WIFI : TRANSPORT_CELLULAR, in testLoggingEventsWithMultipleCallers()
124 ((i + j) % 2 == 0) ? TRANSPORT_WIFI : TRANSPORT_CELLULAR; in testLoggingEventsWithMultipleCallers()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSLocalAgentTests.kt35 import android.net.NetworkCapabilities.TRANSPORT_WIFI
104 .addTransportType(TRANSPORT_WIFI) in keepScore()
168 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_LOCAL_NETWORK), in keepScore()
177 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
182 .addTransportType(TRANSPORT_WIFI) in keepScore()
221 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
487 val localAgent = Agent(nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_LOCAL_NETWORK), in keepScore()
503 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
525 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
552 val localAgent = Agent(nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_LOCAL_NETWORK), in keepScore()
[all …]
DCSDestroyedNetworkTests.kt20 import android.net.NetworkCapabilities.TRANSPORT_WIFI
41 .addTransportType(TRANSPORT_WIFI) in testDestroyNetworkNotKeptWhenUnvalidated()
46 .addTransportType(TRANSPORT_WIFI) in testDestroyNetworkNotKeptWhenUnvalidated()
DCSActiveNetworkInfoTest.kt24 import android.net.NetworkCapabilities.TRANSPORT_WIFI
41 .addTransportType(TRANSPORT_WIFI) in nc()
DCSKeepConnectedTest.kt22 import android.net.NetworkCapabilities.TRANSPORT_WIFI
45 .addTransportType(TRANSPORT_WIFI) in testKeepConnectedLocalAgent()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkCapabilitiesUtilsTest.kt31 import android.net.NetworkCapabilities.TRANSPORT_WIFI
54 assertEquals(TRANSPORT_WIFI, getDisplayTransport(intArrayOf(TRANSPORT_WIFI))) in testGetAccountingTransport()
61 intArrayOf(TRANSPORT_VPN, TRANSPORT_WIFI))) in testGetAccountingTransport()
65 assertEquals(TRANSPORT_WIFI, getDisplayTransport( in testGetAccountingTransport()
66 intArrayOf(TRANSPORT_ETHERNET, TRANSPORT_WIFI))) in testGetAccountingTransport()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java144 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
1017 mWiFiAgent = new TestNetworkAgentWrapper(TRANSPORT_WIFI); in testWaitForIdle()
1037 mWiFiAgent = new TestNetworkAgentWrapper(TRANSPORT_WIFI); in verifyThatNotWaitingForIdleCausesRaceConditions()
2511 case TRANSPORT_WIFI:
2703 mWiFiAgent = new TestNetworkAgentWrapper(TRANSPORT_WIFI);
2720 verifyActiveNetwork(TRANSPORT_WIFI);
2730 verifyActiveNetwork(TRANSPORT_WIFI);
2752 mWiFiAgent = new TestNetworkAgentWrapper(TRANSPORT_WIFI);
2764 mWiFiAgent = new TestNetworkAgentWrapper(TRANSPORT_WIFI);
2768 .addTransportType(TRANSPORT_WIFI).build();
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionControllerTest.java20 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
690 verifyIsIpV4Preferred(true /* autoEnabled */, TRANSPORT_WIFI, true /* expected */); in testIsIpV4Preferred_Auto_Wifi()
695 verifyIsIpV4Preferred(false /* autoEnabled */, TRANSPORT_WIFI, false /* expected */); in testIsIpV4Preferred_NotAuto_Wifi()
722 TRANSPORT_WIFI, ESP_IP_VERSION_AUTO, ESP_IP_VERSION_AUTO, true /* expected */); in testIsIpV4Preferred_AutoToAuto_Wifi()
734 TRANSPORT_WIFI, ESP_IP_VERSION_AUTO, ESP_IP_VERSION_IPV4, true /* expected */); in testIsIpV4Preferred_AutoToV4()
740 TRANSPORT_WIFI, ESP_IP_VERSION_AUTO, ESP_IP_VERSION_IPV6, false /* expected */); in testIsIpV4Preferred_AutoToV6()
746 TRANSPORT_WIFI, ESP_IP_VERSION_IPV6, ESP_IP_VERSION_AUTO, true /* expected */); in testIsIpV4Preferred_V6ToVAuto()
752 TRANSPORT_WIFI, ESP_IP_VERSION_IPV4, ESP_IP_VERSION_IPV4, true /* expected */); in testIsIpV4Preferred_V4ToV4()
758 TRANSPORT_WIFI, ESP_IP_VERSION_IPV4, ESP_IP_VERSION_IPV6, false /* expected */); in testIsIpV4Preferred_V4ToV6()
764 TRANSPORT_WIFI, ESP_IP_VERSION_IPV6, ESP_IP_VERSION_IPV4, true /* expected */); in testIsIpV4Preferred_V6ToV4()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetUpdaterTest.java21 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
122 .addTransportType(TRANSPORT_WIFI) in updateInternetAvailable_wifiConnectedAndNoValidated_internetUnavailable()
134 .addTransportType(TRANSPORT_WIFI) in updateInternetAvailable_wifiConnectedAndValidated_internetAvailable()
171 mInternetUpdater.mTransport = TRANSPORT_WIFI; in updateInternetType_apmOnWifiConnected_getInternetWifi()
206 mInternetUpdater.mTransport = TRANSPORT_WIFI; in updateInternetType_carrierWifiConnected_getInternetCellular()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java61 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
198 nc2 = new NetworkCapabilities().addTransportType(TRANSPORT_WIFI); in testDescribeImmutableDifferences()
225 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_WIFI); in testDescribeImmutableDifferences()
227 .addTransportType(TRANSPORT_WIFI) in testDescribeImmutableDifferences()
744 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierOnMultiTransportNc()
759 () -> nc2.build().addTransportType(TRANSPORT_WIFI)); in testSetNetworkSpecifierOnMultiTransportNc()
762 () -> nc2.addTransportType(TRANSPORT_WIFI)); in testSetNetworkSpecifierOnMultiTransportNc()
781 nc1.addTransportType(TRANSPORT_SATELLITE).addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierWithWifiAndSatelliteMultiTransportNc()
822 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI) in testSetTransportInfoOnMultiTransportNc()
828 .addTransportType(TRANSPORT_WIFI); in testSetTransportInfoOnMultiTransportNc()
[all …]
DNetworkStateSnapshotTest.kt22 import android.net.NetworkCapabilities.TRANSPORT_WIFI
54 addTransportType(TRANSPORT_WIFI) in <lambda>()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkNotificationManager.java22 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
133 return (transportType == TRANSPORT_WIFI) in getIcon()
221 && transportType == TRANSPORT_WIFI) { in showNotification()
227 } else if (transportType == TRANSPORT_WIFI) { in showNotification()
234 && transportType == TRANSPORT_WIFI) { in showNotification()
238 transportType == TRANSPORT_WIFI) { in showNotification()
243 case TRANSPORT_WIFI: in showNotification()
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanDataServiceTest.java21 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
352 onSystemDefaultNetworkConnected(TRANSPORT_WIFI); in testWifiOnConnected()
376 newNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testWifiOnReconnected()
381 newNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testWifiOnReconnected()
389 mMockNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testOnLinkPropertiesChangedForConnectedNetwork()
406 mMockNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testOnLinkPropertiesChangedForNonConnectedNetwork()
426 mMockNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testOnLinkPropertiesChangedWithClatInstalled()
452 mMockNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testOnLinkPropertiesChangedForBringingUpIkeSession()
749 mMockNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testIwlanSetupDataCallWithBringUpTunnel()
788 mMockNetwork, mLinkProperties, TRANSPORT_WIFI, INVALID_SUB_INDEX); in testIwlanSetupDataCallWithBringUpTunnelAndNullApnSetting()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DKeepaliveUtilsTest.kt26 import android.net.NetworkCapabilities.TRANSPORT_WIFI
119 this[TRANSPORT_WIFI] = 6 in testGetSupportedKeepalivesForNetworkCapabilities()
128 nc.transportTypes = intArrayOf(TRANSPORT_WIFI, TRANSPORT_VPN) in testGetSupportedKeepalivesForNetworkCapabilities()
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/
DConnectivitySampleMetricsTest.kt18 import android.net.NetworkCapabilities.TRANSPORT_WIFI in <lambda>()
95 .addTransportType(TRANSPORT_WIFI) in testSampleConnectivityState_Network()
107 .addTransportType(TRANSPORT_WIFI) in testSampleConnectivityState_Network()
138 it.transportTypes == (1 shl TRANSPORT_WIFI) && in testSampleConnectivityState_Network()
142 it.transportTypes == (1 shl TRANSPORT_WIFI) && in testSampleConnectivityState_Network()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt33 import android.net.NetworkCapabilities.TRANSPORT_WIFI
41 TRANSPORT_WIFI -> TYPE_WIFI in transportToLegacyType()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/metrics/
DTetheringMetricsTest.java23 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
193 mTetheringMetrics.maybeUpdateUpstreamType(buildUpstreamState(TRANSPORT_WIFI)); in runErrorCodesTest()
278 runUpstreamTypesTest(buildUpstreamState(TRANSPORT_WIFI), UpstreamType.UT_WIFI); in testUpstreamTypes()
283 runUpstreamTypesTest(buildUpstreamState(TRANSPORT_CELLULAR, TRANSPORT_WIFI, in testUpstreamTypes()
332 mTetheringMetrics.maybeUpdateUpstreamType(buildUpstreamState(TRANSPORT_WIFI)); in testUpstreamsWithMultipleDownstreams()
362 mTetheringMetrics.maybeUpdateUpstreamType(buildUpstreamState(TRANSPORT_WIFI)); in testSwitchingMultiUpstreams()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkRankerTest.kt22 import android.net.NetworkCapabilities.TRANSPORT_WIFI in <lambda>()
72 val CAPS_WIFI = caps(TRANSPORT_WIFI) in rank()
73 val CAPS_WIFI_PORTAL = caps(TRANSPORT_WIFI, NET_CAP_PORTAL) in rank()
84 val wifi = TestScore(score(), caps(TRANSPORT_WIFI)) in testPreferBadWifi_oneCellOneEvaluatingWifi()
DNetworkRequestStateStatsMetricsTest.java70 .addTransportType(NetworkCapabilities.TRANSPORT_WIFI)
112 assertEquals(1 << NetworkCapabilities.TRANSPORT_WIFI, nrStateInfoSent.getTransportTypes()); in testNetworkRequestReceivedRemoved()
130 assertEquals(1 << NetworkCapabilities.TRANSPORT_WIFI, nrStateInfoSent.getTransportTypes()); in testNetworkRequestReceivedRemoved()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DNetworkMonitorUtils.java28 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
90 nc.hasTransport(TRANSPORT_WIFI) in isPrivateDnsValidationRequired()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DPrivateAddressCoordinatorTest.java21 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
236 makeNetworkCapabilities(TRANSPORT_WIFI)); in testRequestLastDownstreamAddress()
307 null, new LinkAddress("2001:db8::/64"), makeNetworkCapabilities(TRANSPORT_WIFI)); in testNoConflictUpstreamPrefix()
318 new LinkAddress("192.168.43.5/24"), null, makeNetworkCapabilities(TRANSPORT_WIFI)); in testNoConflictUpstreamPrefix()
354 makeNetworkCapabilities(TRANSPORT_WIFI)); in testChooseAvailablePrefix()
363 makeNetworkCapabilities(TRANSPORT_WIFI)); in testChooseAvailablePrefix()
445 makeNetworkCapabilities(TRANSPORT_WIFI)); in testChoosePrefixFromDifferentRanges()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DConnectivityRepositoryTest.kt74 addTransportType(NetworkCapabilities.TRANSPORT_WIFI) in <lambda>()
89 addTransportType(NetworkCapabilities.TRANSPORT_WIFI) in <lambda>()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/metrics/
DProvisioningAttempt.java235 && capabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in getTransportTypeForActiveNetwork()
243 if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in getTransportTypeForActiveNetwork()
263 if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in getTransportTypeForActiveNetwork()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkCapabilitiesUtils.java45 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
77 TRANSPORT_WIFI,
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiShellCommandTest.java23 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
612 return (nR.hasTransport(TRANSPORT_WIFI)) in testAddSuggestionWithUntrusted()
647 return (nR.hasTransport(TRANSPORT_WIFI)) in testAddSuggestionWithOemPaid()
682 return (nR.hasTransport(TRANSPORT_WIFI)) in testAddSuggestionWithOemPrivate()
916 .addTransportType(TRANSPORT_WIFI) in testAddNetworkRequest()
931 .addTransportType(TRANSPORT_WIFI) in testAddNetworkRequest()
947 .addTransportType(TRANSPORT_WIFI) in testAddNetworkRequest()
963 .addTransportType(TRANSPORT_WIFI) in testAddNetworkRequest()
979 .addTransportType(TRANSPORT_WIFI) in testAddNetworkRequest()
995 .addTransportType(TRANSPORT_WIFI) in testAddNetworkRequest()

123456