Home
last modified time | relevance | path

Searched refs:TRANSPORT_CELLULAR (Results 1 – 25 of 133) sorted by relevance

123456

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageEntryPreferenceControllerTest.java117 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in setUp()
131 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_noMobileNetwork_isUnsupported()
140 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_noMobileNetwork_isUnsupported_zoneWrite()
151 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_noMobileNetwork_isUnsupported_zoneRead()
162 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_noMobileNetwork_isUnsupported_zoneHidden()
173 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_hasMobileNetwork_isAvailable()
182 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_hasMobileNetwork_isAvailable_zoneWrite()
193 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_hasMobileNetwork_isAvailable_zoneRead()
204 when(mMockNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) in getAvailabilityStatus_hasMobileNetwork_isAvailable_zoneHidden()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DPrivateAddressCoordinatorTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
283 null, null, makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
289 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
296 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
302 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
373 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
378 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
388 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
398 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
407 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSNetworkActivityTest.kt30 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR in <lambda>()
85 .addTransportType(TRANSPORT_CELLULAR) in <lambda>()
96 .addTransportType(TRANSPORT_CELLULAR) in <lambda>()
161 .addTransportType(TRANSPORT_CELLULAR) in <lambda>()
167 .addTransportType(TRANSPORT_CELLULAR) in <lambda>()
179 .addTransportType(TRANSPORT_CELLULAR) in <lambda>()
185 .addTransportType(TRANSPORT_CELLULAR) in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionUtilRoboTest.java70 addNetworkTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in isConnectedToMobileDataWithDifferentSubId_hasDataOnSubId2_returnTrue()
78 addNetworkTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in isConnectedToMobileDataWithDifferentSubId_hasDataOnSubId1_returnFalse()
100 addNetworkTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in carrierIsRAC_isConnectedToDataOnSubId2_showRacDialogForEsim_returnFalse()
119 addNetworkTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in carrierIsRAC_isConnectedToDataOnSubId1_noWifi_showRacDialogForEsim_returnTrue()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkCapabilitiesUtilsTest.kt27 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
55 assertEquals(TRANSPORT_CELLULAR, getDisplayTransport(intArrayOf(TRANSPORT_CELLULAR))) in testGetAccountingTransport()
63 intArrayOf(TRANSPORT_CELLULAR, TRANSPORT_VPN))) in testGetAccountingTransport()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java140 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
2514 case TRANSPORT_CELLULAR:
2672 mCellAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR);
2680 legacyCaps.addTransportType(TRANSPORT_CELLULAR);
2702 mCellAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR);
2710 verifyActiveNetwork(TRANSPORT_CELLULAR);
2815 .addTransportType(TRANSPORT_CELLULAR).build(), bgMobileListenCallback);
2817 .addTransportType(TRANSPORT_CELLULAR)
2827 mCellAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR);
2905 mCellAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR);
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java29 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
103 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
104 sLegacyTypeToTransport.put(TYPE_MOBILE_DUN, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
105 sLegacyTypeToTransport.put(TYPE_MOBILE_HIPRI, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
250 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
254 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
625 return (nc != null) && nc.hasTransport(TRANSPORT_CELLULAR) in isCellular()
DTetheringInterfaceUtils.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
93 return nc.hasTransport(TRANSPORT_CELLULAR) || nc.hasTransport(TRANSPORT_TEST); in allowIpv6Tethering()
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DKeepaliveUtilsTest.kt23 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
118 this[TRANSPORT_CELLULAR] = 3 in testGetSupportedKeepalivesForNetworkCapabilities()
124 nc.transportTypes = intArrayOf(TRANSPORT_CELLULAR) in testGetSupportedKeepalivesForNetworkCapabilities()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DCarrierPrivilegeAuthenticatorTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
202 .addTransportType(TRANSPORT_CELLULAR) in testConstructor()
244 .addTransportType(TRANSPORT_CELLULAR) in testMultiSimConfigChanged()
281 .addTransportType(TRANSPORT_CELLULAR) in testOnCarrierPrivilegesChanged()
307 ncBuilder.addTransportType(TRANSPORT_CELLULAR); in testDefaultSubscription()
318 ncBuilder.removeTransportType(TRANSPORT_CELLULAR); in testDefaultSubscription()
DKeepaliveStatsTrackerTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
110 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in buildCellNetworkCapabilitiesWithSubId()
197 /* transportTypes= */ (1 << TRANSPORT_CELLULAR), in getDefaultCarrierStats()
958 /* transportTypes= */ (1 << TRANSPORT_CELLULAR), in testResetMetrics_twoKeepalives()
985 /* transportTypes= */ (1 << TRANSPORT_CELLULAR), in testResetMetrics_twoKeepalives()
1099 /* transportTypes= */ (1 << TRANSPORT_CELLULAR), in testCarrierIdChange_changeBeforeStart()
1108 /* transportTypes= */ (1 << TRANSPORT_CELLULAR), in testCarrierIdChange_changeBeforeStart()
1218 new NetworkCapabilities.Builder().addTransportType(TRANSPORT_CELLULAR).build(); in testUpdateDefaultSubId()
1235 /* transportTypes= */ (1 << TRANSPORT_CELLULAR), in testUpdateDefaultSubId()
1243 /* transportTypes= */ (1 << TRANSPORT_CELLULAR), in testUpdateDefaultSubId()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkRequestTest.java31 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
227 .addTransportType(TRANSPORT_CELLULAR) in testCanBeSatisfiedBy()
252 .addTransportType(TRANSPORT_CELLULAR) in testCanBeSatisfiedBy()
268 .addTransportType(TRANSPORT_CELLULAR) in testCanBeSatisfiedBy()
294 .addTransportType(TRANSPORT_CELLULAR) in testInvariantInCanBeSatisfiedBy()
314 .addTransportType(TRANSPORT_CELLULAR).build(); in testInvariantInCanBeSatisfiedBy()
540 .addTransportType(TRANSPORT_CELLULAR) in testBuildRequestFromExistingRequestWithBuilder()
547 .removeTransportType(TRANSPORT_CELLULAR) in testBuildRequestFromExistingRequestWithBuilder()
DMultinetworkApiTest.java21 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
228 if (nc != null && !nc.hasTransport(TRANSPORT_CELLULAR)) { in testResNApi()
298 && !nc.hasTransport(TRANSPORT_CELLULAR)) { in getTestableNetworks()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DDataStallStatsUtilsTest.kt19 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
77 .setNetworkType(TRANSPORT_CELLULAR) in testWrite()
92 eq(TRANSPORT_CELLULAR), in testWrite()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt29 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
37 TRANSPORT_CELLULAR -> TYPE_MOBILE in transportToLegacyType()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentityTest.kt25 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR in <lambda>()
121 addTransportType(TRANSPORT_CELLULAR) in <lambda>()
240 addTransportType(TRANSPORT_CELLULAR) in <lambda>()
244 addTransportType(TRANSPORT_CELLULAR) in <lambda>()
DConnectivityManagerTest.java32 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
134 TRANSPORT_CELLULAR, in verifyRestrictedMobileNetworkCapabilities()
146 ConnectivityManager.TYPE_MOBILE, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobile()
170 ConnectivityManager.TYPE_MOBILE_HIPRI, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobileHipri()
183 TRANSPORT_CELLULAR, in testNetworkCapabilitiesForTypeMobileMms()
195 TRANSPORT_CELLULAR, in testNetworkCapabilitiesForTypeMobileSupl()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceControllerTest.java137 when(mCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(true); in setUp()
168 when(mCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in getAvailabilityStatus_noSim_noMobileNetwork_unsupported()
177 when(mCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in getAvailabilityStatus_noSim_noMobileNetwork_unsupported_zoneWrite()
187 when(mCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in getAvailabilityStatus_noSim_noMobileNetwork_unsupported_zoneRead()
197 when(mCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in getAvailabilityStatus_noSim_noMobileNetwork_unsupported_zoneHidden()
293 when(mCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in getAvailabilityStatus_hasSim_noMobileNetwork_isAdmin_noRestriction_available()
DNetworkUtilsTest.java45 when(capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(true); in hasMobileNetwork_hasCellularCapabilities_returnsTrue()
58 when(capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java55 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
197 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_CELLULAR); in testDescribeImmutableDifferences()
744 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierOnMultiTransportNc()
755 nc2.addTransportType(TRANSPORT_CELLULAR).setNetworkSpecifier(specifier); in testSetNetworkSpecifierOnMultiTransportNc()
769 .addTransportType(TRANSPORT_CELLULAR) in testSetNetworkSpecifierWithCellularAndSatelliteMultiTransportNc()
797 .addTransportType(TRANSPORT_CELLULAR) in testSetNetworkSpecifierOnTestWithCellularAndSatelliteMultiTransportNc()
822 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI) in testSetTransportInfoOnMultiTransportNc()
827 nc2.addTransportType(TRANSPORT_CELLULAR).setTransportInfo(new TestTransportInfo()) in testSetTransportInfoOnMultiTransportNc()
898 nc.addTransportType(TRANSPORT_CELLULAR); in testGetTransportTypes()
905 assertEquals(TRANSPORT_CELLULAR, transportTypes[0]); in testGetTransportTypes()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DNetworkMonitorUtils.java26 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
91 || nc.hasTransport(TRANSPORT_CELLULAR) in isPrivateDnsValidationRequired()
/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DIpConnectivityLogTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
105 ((i + j) % 2 == 0) ? TRANSPORT_WIFI : TRANSPORT_CELLULAR, in testLoggingEventsWithMultipleCallers()
124 ((i + j) % 2 == 0) ? TRANSPORT_WIFI : TRANSPORT_CELLULAR; in testLoggingEventsWithMultipleCallers()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/metrics/
DProvisioningAttempt.java234 if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getTransportTypeForActiveNetwork()
239 if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) { in getTransportTypeForActiveNetwork()
259 if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) { in getTransportTypeForActiveNetwork()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkCapabilitiesUtils.java40 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
69 TRANSPORT_CELLULAR,
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionControllerTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
700 verifyIsIpV4Preferred(true /* autoEnabled */, TRANSPORT_CELLULAR, false /* expected */); in testIsIpV4Preferred_Auto_Cell()
705 verifyIsIpV4Preferred(false /* autoEnabled */, TRANSPORT_CELLULAR, false /* expected */); in testIsIpV4Preferred_NotAuto_Cell()
728 TRANSPORT_CELLULAR, ESP_IP_VERSION_AUTO, ESP_IP_VERSION_AUTO, false /* expected */); in testIsIpV4Preferred_AutoToAuto_Cell()
889 TRANSPORT_CELLULAR, in testIpVersion_withAutoSelect_Cell_HasV4()
905 TRANSPORT_CELLULAR, in testIpVersion_withAutoSelect_Cell_NotHasV4()
1361 if (transportType == TRANSPORT_CELLULAR) { in verifyGetKeepaliveDelaySec()
1362 verify(mockNc).hasTransport(TRANSPORT_CELLULAR); in verifyGetKeepaliveDelaySec()
1367 autoKeepalivesEnabled && transportType == TRANSPORT_CELLULAR; in verifyGetKeepaliveDelaySec()
1415 TRANSPORT_CELLULAR, in testCellGetAutoKeepaliveDelaySecCallerOverride()
[all …]

123456