Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/java/android/net/util/
DKeepaliveUtilsTest.kt23 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/
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 testNoInternetIcon_withoutDefaultSub()
169 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon_withoutDefaultSub()
224 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testDataDisabledIcon_UserNotSetup()
DNetworkControllerWifiTest.java117 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testRoamingIconDuringWifi()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java64 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/
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/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java35 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/
DUpstreamNetworkMonitorTest.java25 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/
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/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()
DVpnTest.java28 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()
DMultipathPolicyTrackerTest.java22 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
234 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java20 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
155 transportType = TRANSPORT_CELLULAR; in showNotification()
202 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/services/core/java/com/android/server/connectivity/tethering/
DTetheringInterfaceUtils.java77 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
DUpstreamNetworkMonitor.java25 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/
DProvisionObserver.java57 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
DCaptivePortalLoginActivity.java272 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/
DApnContextTest.java126 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestNormal()
153 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in testNetworkRequestDetach()
DTelephonyNetworkFactoryTest.java88 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificInternetRequest()
96 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificMmsRequest()
/frameworks/base/core/java/android/net/
DConnectivityManager.java1526 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
DNetworkCapabilities.java630 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/
DCellularNetworkValidator.java173 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in createNetworkRequest()
DPhoneSwitcher.java19 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/
DJobInfo.java24 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
466 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
1141 builder.addTransportType(TRANSPORT_CELLULAR); in setRequiredNetworkType()

12