/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerDataTest.java | 125 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/ |
D | ConnectivityServiceTestUtils.kt | 27 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR 35 TRANSPORT_CELLULAR -> TYPE_MOBILE in transportToLegacyType()
|
D | NetworkAgentWrapper.java | 21 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 87 case TRANSPORT_CELLULAR: in NetworkAgentWrapper()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 29 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()
|
D | TetheringInterfaceUtils.java | 81 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 68 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/ |
D | ConnectivityManagerTest.java | 31 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/ |
D | UpstreamNetworkMonitorTest.java | 24 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()
|
D | IPv6TetheringCoordinatorTest.java | 19 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/ |
D | IpConnectivityLogTest.java | 19 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/ |
D | DcRequestTest.java | 55 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in whenNetworkRequestInternetThenPriorityZero() 70 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned()
|
D | TelephonyNetworkFactoryTest.java | 93 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificInternetRequest() 107 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeDefaultInternetRequest() 119 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificMmsRequest()
|
D | ApnContextTest.java | 125 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestNormal() 152 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestDetach()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 38 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/ |
D | NetworkNotificationManager.java | 20 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()
|
D | IpConnectivityEventBuilder.java | 21 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 379 TRANSPORT_LINKLAYER_MAP[TRANSPORT_CELLULAR] = IpConnectivityLogClass.CELLULAR;
|
D | MultipathPolicyTracker.java | 25 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 450 .addTransportType(TRANSPORT_CELLULAR) in registerTrackMobileCallback()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | IpConnectivityMetricsTest.java | 129 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()
|
D | MultipathPolicyTrackerTest.java | 22 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 235 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference() 247 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference()
|
D | VpnTest.java | 29 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/ |
D | ConnectivityServiceIntegrationTest.kt | 32 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR 198 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, LinkProperties(), context) in testValidation()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | ProvisionObserver.java | 56 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
|
D | CaptivePortalLoginActivity.java | 270 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getNetworkForCaptivePortal() 281 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in requestNetworkForCaptivePortal()
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityManager.java | 1672 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/ |
D | JobInfo.java | 24 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 469 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType() 1121 builder.addTransportType(TRANSPORT_CELLULAR); in setRequiredNetworkType()
|