Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerDataTest.java125 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testNoInternetIcon_withDefaultSub()
139 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon_withDefaultSub()
154 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testNonDefaultSIM_showsFullSignal_connected()
169 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testNonDefaultSIM_showsFullSignal_disconnected()
183 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon_UserNotSetup()
/frameworks/base/tests/net/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt27 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
35 TRANSPORT_CELLULAR -> TYPE_MOBILE in transportToLegacyType()
DNetworkAgentWrapper.java21 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
87 case TRANSPORT_CELLULAR: in NetworkAgentWrapper()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java29 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
97 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
98 sLegacyTypeToTransport.put(TYPE_MOBILE_DUN, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
99 sLegacyTypeToTransport.put(TYPE_MOBILE_HIPRI, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
225 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
229 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
559 return (nc != null) && nc.hasTransport(TRANSPORT_CELLULAR) in isCellular()
DTetheringInterfaceUtils.java81 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java68 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
1363 case TRANSPORT_CELLULAR: in verifyActiveNetwork()
1434 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testNetworkFeature()
1443 legacyCaps.addTransportType(TRANSPORT_CELLULAR); in testNetworkFeature()
1475 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testLingering()
1483 verifyActiveNetwork(TRANSPORT_CELLULAR); in testLingering()
1522 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testValidatedCellularOutscoresUnvalidatedWiFi()
1531 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testValidatedCellularOutscoresUnvalidatedWiFi()
1535 verifyActiveNetwork(TRANSPORT_CELLULAR); in testValidatedCellularOutscoresUnvalidatedWiFi()
1551 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testUnvalidatedWifiOutscoresUnvalidatedCellular()
[all …]
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java31 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
108 TRANSPORT_CELLULAR, in verifyRestrictedMobileNetworkCapabilities()
120 ConnectivityManager.TYPE_MOBILE, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobile()
144 ConnectivityManager.TYPE_MOBILE_HIPRI, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobileHipri()
157 TRANSPORT_CELLULAR, in testNetworkCapabilitiesForTypeMobileMms()
169 TRANSPORT_CELLULAR, in testNetworkCapabilitiesForTypeMobileSupl()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java24 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
303 final TestNetworkAgent cellAgent = new TestNetworkAgent(mCM, TRANSPORT_CELLULAR); in testSelectPreferredUpstreamType()
322 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
344 final TestNetworkAgent dunAgent = new TestNetworkAgent(mCM, TRANSPORT_CELLULAR); in testSelectPreferredUpstreamType()
358 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
377 final TestNetworkAgent cellAgent = new TestNetworkAgent(mCM, TRANSPORT_CELLULAR); in testGetCurrentPreferredUpstream()
408 final TestNetworkAgent dunAgent = new TestNetworkAgent(mCM, TRANSPORT_CELLULAR); in testGetCurrentPreferredUpstream()
458 final TestNetworkAgent cellAgent = new TestNetworkAgent(mCM, TRANSPORT_CELLULAR); in testLocalPrefixes()
479 final TestNetworkAgent dunAgent = new TestNetworkAgent(mCM, TRANSPORT_CELLULAR); in testLocalPrefixes()
535 final TestNetworkAgent cellAgent = new TestNetworkAgent(mCM, TRANSPORT_CELLULAR); in testSelectMobileWhenMobileIsNotDefault()
DIPv6TetheringCoordinatorTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
128 final UpstreamNetworkState mobileUpstream = createDualStackUpstream(TRANSPORT_CELLULAR); in testUpdateIpv6Upstream()
/frameworks/base/tests/net/common/java/android/net/metrics/
DIpConnectivityLogTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
104 ((i + j) % 2 == 0) ? TRANSPORT_WIFI : TRANSPORT_CELLULAR, in testLoggingEventsWithMultipleCallers()
119 ((i + j) % 2 == 0) ? TRANSPORT_WIFI : TRANSPORT_CELLULAR; in testLoggingEventsWithMultipleCallers()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcRequestTest.java55 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in whenNetworkRequestInternetThenPriorityZero()
70 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned()
DTelephonyNetworkFactoryTest.java93 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificInternetRequest()
107 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeDefaultInternetRequest()
119 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificMmsRequest()
DApnContextTest.java125 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestNormal()
152 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestDetach()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java38 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
178 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_CELLULAR); in testDescribeImmutableDifferences()
589 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierOnMultiTransportNc()
599 nc2.addTransportType(TRANSPORT_CELLULAR).setNetworkSpecifier( in testSetNetworkSpecifierOnMultiTransportNc()
613 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI) in testSetTransportInfoOnMultiTransportNc()
618 nc2.addTransportType(TRANSPORT_CELLULAR).setTransportInfo(new TransportInfo() {}) in testSetTransportInfoOnMultiTransportNc()
689 nc.addTransportType(TRANSPORT_CELLULAR); in testGetTransportTypes()
696 assertEquals(TRANSPORT_CELLULAR, transportTypes[0]); in testGetTransportTypes()
895 .addTransportType(TRANSPORT_CELLULAR) in testBuilder()
896 .removeTransportType(TRANSPORT_CELLULAR) in testBuilder()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java20 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
158 transportType = TRANSPORT_CELLULAR; in showNotification()
189 if (transportType == TRANSPORT_CELLULAR) { in showNotification()
215 case TRANSPORT_CELLULAR: in showNotification()
DIpConnectivityEventBuilder.java21 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
379 TRANSPORT_LINKLAYER_MAP[TRANSPORT_CELLULAR] = IpConnectivityLogClass.CELLULAR;
DMultipathPolicyTracker.java25 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
450 .addTransportType(TRANSPORT_CELLULAR) in registerTrackMobileCallback()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java129 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testDefaultNetworkEvents()
253 ncCell.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in testEndToEndLogging()
330 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testEndToEndLogging()
DMultipathPolicyTrackerTest.java22 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
235 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference()
247 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference()
DVpnTest.java29 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
600 .addTransportType(TRANSPORT_CELLULAR) in testCapabilities()
621 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
636 assertTrue(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
648 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
660 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
675 assertTrue(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt32 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
198 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, LinkProperties(), context) in testValidation()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java56 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
DCaptivePortalLoginActivity.java270 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getNetworkForCaptivePortal()
281 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in requestNetworkForCaptivePortal()
/frameworks/base/core/java/android/net/
DConnectivityManager.java1672 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
1673 sLegacyTypeToTransport.put(TYPE_MOBILE_CBS, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
1674 sLegacyTypeToTransport.put(TYPE_MOBILE_DUN, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
1675 sLegacyTypeToTransport.put(TYPE_MOBILE_FOTA, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
1676 sLegacyTypeToTransport.put(TYPE_MOBILE_HIPRI, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
1677 sLegacyTypeToTransport.put(TYPE_MOBILE_IMS, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
1678 sLegacyTypeToTransport.put(TYPE_MOBILE_MMS, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
1679 sLegacyTypeToTransport.put(TYPE_MOBILE_SUPL, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobInfo.java24 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
469 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
1121 builder.addTransportType(TRANSPORT_CELLULAR); in setRequiredNetworkType()

123