/frameworks/base/tests/net/java/android/net/util/ |
D | KeepaliveUtilsTest.kt | 23 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR 104 this[TRANSPORT_CELLULAR] = 3 in testGetSupportedKeepalivesForNetworkCapabilities() 110 nc.transportTypes = intArrayOf(TRANSPORT_CELLULAR) in testGetSupportedKeepalivesForNetworkCapabilities()
|
/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 testNoInternetIcon_withoutDefaultSub() 169 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon_withoutDefaultSub() 224 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon_UserNotSetup()
|
D | NetworkControllerWifiTest.java | 117 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testRoamingIconDuringWifi()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 64 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 540 case TRANSPORT_CELLULAR: in MockNetworkAgent() 1372 case TRANSPORT_CELLULAR: in transportToLegacyType() 1395 case TRANSPORT_CELLULAR: in verifyActiveNetwork() 1458 mCellNetworkAgent = new MockNetworkAgent(TRANSPORT_CELLULAR); in testLingering() 1466 verifyActiveNetwork(TRANSPORT_CELLULAR); in testLingering() 1505 mCellNetworkAgent = new MockNetworkAgent(TRANSPORT_CELLULAR); in testValidatedCellularOutscoresUnvalidatedWiFi() 1514 mCellNetworkAgent = new MockNetworkAgent(TRANSPORT_CELLULAR); in testValidatedCellularOutscoresUnvalidatedWiFi() 1518 verifyActiveNetwork(TRANSPORT_CELLULAR); in testValidatedCellularOutscoresUnvalidatedWiFi() 1534 mCellNetworkAgent = new MockNetworkAgent(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/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 35 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 146 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_CELLULAR); in testDescribeImmutableDifferences() 486 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierOnMultiTransportNc() 496 nc2.addTransportType(TRANSPORT_CELLULAR).setNetworkSpecifier( in testSetNetworkSpecifierOnMultiTransportNc() 510 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI) in testSetTransportInfoOnMultiTransportNc() 515 nc2.addTransportType(TRANSPORT_CELLULAR).setTransportInfo(new TransportInfo() {}) in testSetTransportInfoOnMultiTransportNc() 594 nc.addTransportType(TRANSPORT_CELLULAR); in testGetTransportTypes() 601 assertEquals(TRANSPORT_CELLULAR, transportTypes[0]); in testGetTransportTypes()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitorTest.java | 25 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()
|
/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/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 | VpnTest.java | 28 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 555 .addTransportType(TRANSPORT_CELLULAR) in testCapabilities() 575 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities() 589 assertTrue(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities() 600 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities() 611 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities() 625 assertTrue(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
|
D | MultipathPolicyTrackerTest.java | 22 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 234 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkNotificationManager.java | 20 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 155 transportType = TRANSPORT_CELLULAR; in showNotification() 202 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/services/core/java/com/android/server/connectivity/tethering/ |
D | TetheringInterfaceUtils.java | 77 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
|
D | UpstreamNetworkMonitor.java | 25 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 550 return (nc != null) && nc.hasTransport(TRANSPORT_CELLULAR) && in isCellular()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | ProvisionObserver.java | 57 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
|
D | CaptivePortalLoginActivity.java | 272 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getNetworkForCaptivePortal() 283 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in requestNetworkForCaptivePortal()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnContextTest.java | 126 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestNormal() 153 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestDetach()
|
D | TelephonyNetworkFactoryTest.java | 88 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificInternetRequest() 96 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificMmsRequest()
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityManager.java | 1526 if (!netCap.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) { in inferLegacyTypeForNetworkCapabilities() 1705 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument 1706 sLegacyTypeToTransport.put(TYPE_MOBILE_CBS, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument 1707 sLegacyTypeToTransport.put(TYPE_MOBILE_DUN, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument 1708 sLegacyTypeToTransport.put(TYPE_MOBILE_FOTA, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument 1709 sLegacyTypeToTransport.put(TYPE_MOBILE_HIPRI, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument 1710 sLegacyTypeToTransport.put(TYPE_MOBILE_IMS, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument 1711 sLegacyTypeToTransport.put(TYPE_MOBILE_MMS, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument 1712 sLegacyTypeToTransport.put(TYPE_MOBILE_SUPL, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
|
D | NetworkCapabilities.java | 630 TRANSPORT_CELLULAR, 644 public static final int TRANSPORT_CELLULAR = 0; field in NetworkCapabilities 685 public static final int MIN_TRANSPORT = TRANSPORT_CELLULAR;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellularNetworkValidator.java | 173 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in createNetworkRequest()
|
D | PhoneSwitcher.java | 19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 263 .hasTransport(TRANSPORT_CELLULAR)) { 394 netCap.addTransportType(TRANSPORT_CELLULAR); in PhoneSwitcher()
|
/frameworks/base/core/java/android/app/job/ |
D | JobInfo.java | 24 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR; 466 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType() 1141 builder.addTransportType(TRANSPORT_CELLULAR); in setRequiredNetworkType()
|