Home
last modified time | relevance | path

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

1234

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkRankerTest.kt20 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR in <lambda>()
56 caps(TRANSPORT_CELLULAR)) in caps()
69 caps(TRANSPORT_CELLULAR)) in caps()
84 caps(TRANSPORT_CELLULAR)) in caps()
99 caps(TRANSPORT_CELLULAR)) in caps()
114 caps(TRANSPORT_CELLULAR)) in caps()
122 val winner = TestScore(score(POLICY_IS_VALIDATED), caps(TRANSPORT_CELLULAR)) in caps()
128 caps(TRANSPORT_CELLULAR)) in caps()
141 TestScore(score(POLICY_IS_VALIDATED), caps(TRANSPORT_CELLULAR)), in caps()
143 caps(TRANSPORT_CELLULAR)) in caps()
[all …]
DIpConnectivityMetricsTest.java92 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR)
156 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testDefaultNetworkEvents()
349 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testEndToEndLogging()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DPrivateAddressCoordinatorTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
272 null, null, makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
278 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
285 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
291 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testNoConflictUpstreamPrefix()
362 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
367 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
377 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
387 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
396 makeNetworkCapabilities(TRANSPORT_CELLULAR)); in testChooseAvailablePrefix()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java107 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
1900 case TRANSPORT_CELLULAR: in verifyActiveNetwork()
2045 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testNetworkFeature()
2053 legacyCaps.addTransportType(TRANSPORT_CELLULAR); in testNetworkFeature()
2075 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testLingering()
2083 verifyActiveNetwork(TRANSPORT_CELLULAR); in testLingering()
2188 .addTransportType(TRANSPORT_CELLULAR).build(), bgMobileListenCallback); in testNewNetworkInactive_bgNetwork()
2190 .addTransportType(TRANSPORT_CELLULAR) in testNewNetworkInactive_bgNetwork()
2200 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testNewNetworkInactive_bgNetwork()
2263 mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR); in testValidatedCellularOutscoresUnvalidatedWiFi()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkRequestTest.java27 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
187 .addTransportType(TRANSPORT_CELLULAR) in testCanBeSatisfiedBy()
212 .addTransportType(TRANSPORT_CELLULAR) in testCanBeSatisfiedBy()
228 .addTransportType(TRANSPORT_CELLULAR) in testCanBeSatisfiedBy()
254 .addTransportType(TRANSPORT_CELLULAR) in testInvariantInCanBeSatisfiedBy()
274 .addTransportType(TRANSPORT_CELLULAR).build(); in testInvariantInCanBeSatisfiedBy()
484 .addTransportType(TRANSPORT_CELLULAR) in testBuildRequestFromExistingRequestWithBuilder()
491 .removeTransportType(TRANSPORT_CELLULAR) in testBuildRequestFromExistingRequestWithBuilder()
DMultinetworkApiTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
219 if (nc != null && !nc.hasTransport(TRANSPORT_CELLULAR)) { in testResNApi()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java29 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
105 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
106 sLegacyTypeToTransport.put(TYPE_MOBILE_DUN, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
107 sLegacyTypeToTransport.put(TYPE_MOBILE_HIPRI, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put() argument
261 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
265 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
642 return (nc != null) && nc.hasTransport(TRANSPORT_CELLULAR) in isCellular()
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DKeepaliveUtilsTest.kt24 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
123 this[TRANSPORT_CELLULAR] = 3 in testGetSupportedKeepalivesForNetworkCapabilities()
129 nc.transportTypes = intArrayOf(TRANSPORT_CELLULAR) in testGetSupportedKeepalivesForNetworkCapabilities()
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java32 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
120 TRANSPORT_CELLULAR, in verifyRestrictedMobileNetworkCapabilities()
132 ConnectivityManager.TYPE_MOBILE, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobile()
156 ConnectivityManager.TYPE_MOBILE_HIPRI, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobileHipri()
169 TRANSPORT_CELLULAR, in testNetworkCapabilitiesForTypeMobileMms()
181 TRANSPORT_CELLULAR, in testNetworkCapabilitiesForTypeMobileSupl()
/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()
DNetworkValidationMetricsTest.java20 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
114 nc.addTransportType(TRANSPORT_CELLULAR); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
118 nc.addTransportType(TRANSPORT_CELLULAR); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageEntryPreferenceControllerTest.java84 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in setUp()
98 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_noMobileNetwork_isUnsupported()
106 when(mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn( in getAvailabilityStatus_hasMobileNetwork_isAvailable()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java43 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
171 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_CELLULAR); in testDescribeImmutableDifferences()
717 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierOnMultiTransportNc()
727 nc2.addTransportType(TRANSPORT_CELLULAR).setNetworkSpecifier( in testSetNetworkSpecifierOnMultiTransportNc()
741 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI) in testSetTransportInfoOnMultiTransportNc()
746 nc2.addTransportType(TRANSPORT_CELLULAR).setTransportInfo(new TestTransportInfo()) in testSetTransportInfoOnMultiTransportNc()
844 nc.addTransportType(TRANSPORT_CELLULAR); in testGetTransportTypes()
851 assertEquals(TRANSPORT_CELLULAR, transportTypes[0]); in testGetTransportTypes()
1113 .addTransportType(TRANSPORT_CELLULAR) in testBuilder()
1114 .removeTransportType(TRANSPORT_CELLULAR) in testBuilder()
/packages/modules/Connectivity/tests/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()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt29 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
37 TRANSPORT_CELLULAR -> TYPE_MOBILE in transportToLegacyType()
DNetworkAgentWrapper.java22 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
99 case TRANSPORT_CELLULAR: in NetworkAgentWrapper()
121 final String extraInfo = (transport == TRANSPORT_CELLULAR) ? "internet.apn" : ""; in NetworkAgentWrapper()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DNetworkMonitorUtils.java25 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
93 || nc.hasTransport(TRANSPORT_CELLULAR) in isPrivateDnsValidationRequired()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkNotificationManager.java20 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
178 transportType = TRANSPORT_CELLULAR; in showNotification()
220 if (transportType == TRANSPORT_CELLULAR) { in showNotification()
242 case TRANSPORT_CELLULAR: in showNotification()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DNetworkUtilsTest.java44 when(capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(true); in hasMobileNetwork_hasCellularCapabilities_returnsTrue()
57 when(capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)).thenReturn(false); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt35 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR in <lambda>()
238 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, LinkProperties(), null /* ncTemplate */, in <lambda>()
277 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, lp, null /* ncTemplate */, context) in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceHelperTest.java195 addNetworkTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in createCarrierRow_wifiOnhasDdsAndActiveNetworkIsCellular_verifyTitleAndSummary()
214 addNetworkTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in createCarrierRow_noNetworkAvailable_verifyTitleAndSummary()
241 addNetworkTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in getMobileDrawable_hasCarrierDataAndDataIsOnCellular_getMobileDrawable()
DInternetUpdaterTest.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
181 mInternetUpdater.mTransport = TRANSPORT_CELLULAR; in updateInternetType_apmOnCellularConnected_getInternetCellular()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DNetworkPolicyTestUtils.java23 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
171 || networkCapabilities.hasTransport(TRANSPORT_CELLULAR); in canChangeActiveNetworkMeteredness()
191 } else if (networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in setupActiveNetworkMeteredness()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobInfoRowArrayAdapter.java21 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
146 } else if (networkRequest.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
/packages/apps/Settings/src/com/android/settings/network/
DInternetUpdater.java19 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
140 sTransportMap.put(TRANSPORT_CELLULAR, INTERNET_CELLULAR); in sTransportMap.put() argument

1234