Home
last modified time | relevance | path

Searched refs:addTransportType (Results 1 – 25 of 59) sorted by relevance

123

/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()
72 .addTransportType(NetworkCapabilities.TRANSPORT_BLUETOOTH) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned()
86 .addTransportType(NetworkCapabilities.TRANSPORT_WIFI) in whenNetworkRequestNotCellularThenDcRequestIsNull()
117 .addTransportType(NetworkCapabilities.TRANSPORT_BLUETOOTH) in whenNetworkRequestNotCellularWithTelephonySpecifierThenDcRequestIsNull()
DTelephonyNetworkFactoryTest.java88 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificInternetRequest()
102 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeDefaultInternetRequest()
114 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.java178 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_CELLULAR); in testDescribeImmutableDifferences()
179 nc2 = new NetworkCapabilities().addTransportType(TRANSPORT_WIFI); in testDescribeImmutableDifferences()
206 nc1 = new NetworkCapabilities().addTransportType(TRANSPORT_WIFI); in testDescribeImmutableDifferences()
208 .addTransportType(TRANSPORT_WIFI) in testDescribeImmutableDifferences()
589 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierOnMultiTransportNc()
599 nc2.addTransportType(TRANSPORT_CELLULAR).setNetworkSpecifier( in testSetNetworkSpecifierOnMultiTransportNc()
602 nc2.addTransportType(TRANSPORT_WIFI); in testSetNetworkSpecifierOnMultiTransportNc()
613 nc1.addTransportType(TRANSPORT_CELLULAR).addTransportType(TRANSPORT_WIFI) in testSetTransportInfoOnMultiTransportNc()
618 nc2.addTransportType(TRANSPORT_CELLULAR).setTransportInfo(new TransportInfo() {}) in testSetTransportInfoOnMultiTransportNc()
619 .addTransportType(TRANSPORT_WIFI); in testSetTransportInfoOnMultiTransportNc()
[all …]
DNetworkProviderTest.kt103 .addTransportType(TRANSPORT_TEST) in <lambda>()
116 addTransportType(NetworkCapabilities.TRANSPORT_TEST) in <lambda>()
177 .addTransportType(TRANSPORT_TEST) in <lambda>()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java67 CELL_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR);
70 WIFI_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_WIFI);
74 VPN_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_WIFI);
75 VPN_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_VPN);
189 mWifiNai.networkCapabilities .addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in testNotificationsNotShownIfNoInternetCapability()
DIpConnectivityMetricsTest.java252 ncWifi.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in testEndToEndLogging()
253 ncCell.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in testEndToEndLogging()
593 nai.networkCapabilities.addTransportType(t); in makeNai()
DMultipathPolicyTrackerTest.java235 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference()
247 .addTransportType(TRANSPORT_CELLULAR) in testGetMultipathPreference()
DNetdEventListenerServiceTest.java69 ncWifi.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in setUp()
70 ncCell.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in setUp()
/frameworks/base/core/java/android/net/
DNetworkRequest.java266 public Builder addTransportType(@NetworkCapabilities.Transport int transportType) { in addTransportType() method in NetworkRequest.Builder
267 mNetworkCapabilities.addTransportType(transportType); in addTransportType()
DNetworkCapabilities.java810 public @NonNull NetworkCapabilities addTransportType(@Transport int transportType) { in addTransportType() method in NetworkCapabilities
840 addTransportType(transportType); in setTransportType()
2172 public Builder addTransportType(@Transport int transportType) { in addTransportType() method in NetworkCapabilities.Builder
2174 mCaps.addTransportType(transportType); in addTransportType()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java225 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
229 .addTransportType(TRANSPORT_CELLULAR).build(); in registerMobileNetworkRequest()
596 builder.addTransportType(transport); in networkCapabilitiesForType()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestNetworkTracker.kt67 .addTransportType(NetworkCapabilities.TRANSPORT_TEST)
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DUntrustedWifiNetworkFactoryTest.java56 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in setUp()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java709 .addTransportType(getNetworkCapabilities().getTransportTypes()[0]) in connect()
1443 legacyCaps.addTransportType(TRANSPORT_CELLULAR); in testNetworkFeature()
1777 .addTransportType(TRANSPORT_WIFI).build(); in testStateChangeNetworkCallbacks()
1779 .addTransportType(TRANSPORT_CELLULAR).build(); in testStateChangeNetworkCallbacks()
1863 .addTransportType(TRANSPORT_WIFI).build(); in doNetworkCallbacksSanitizationTest()
2112 .addTransportType(TRANSPORT_CELLULAR).build(); in testMultipleLingering()
2213 .addTransportType(TRANSPORT_CELLULAR).build(); in testNetworkGoesIntoBackgroundAfterLinger()
2906 return new NetworkRequest.Builder().addTransportType(TRANSPORT_WIFI); in newWifiRequestBuilder()
3073 networkCapabilities.addTransportType(TRANSPORT_WIFI) in testInvalidNetworkSpecifier()
3092 new NetworkRequest.Builder().addTransportType(TRANSPORT_ETHERNET); in testInvalidNetworkSpecifier()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java472 nc.addTransportType(NetworkCapabilities.TRANSPORT_TEST); in createDefaultNetworkCapabilities()
530 nc.addTransportType(transport); in createNetworkCapabilities()
534 nc.addTransportType(NetworkCapabilities.TRANSPORT_ETHERNET); in createNetworkCapabilities()
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java287 nc.addTransportType(transport); in addTransport()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java210 .addTransportType(NetworkCapabilities.TRANSPORT_WIFI) in connect()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinatorTest.java84 new NetworkCapabilities.Builder().addTransportType(transportType).build(); in createDualStackUpstream()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java58 .addTransportType(NetworkCapabilities.TRANSPORT_WIFI).build();
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osu/
DOsuLoginActivity.java156 new NetworkRequest.Builder().addTransportType( in onCreate()
/frameworks/base/tests/net/integration/util/com/android/server/
DNetworkAgentWrapper.java79 mNetworkCapabilities.addTransportType(transport); in NetworkAgentWrapper()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java249 nc.addTransportType(NetworkCapabilities.TRANSPORT_TEST);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkValidator.java328 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java135 nc.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeNetworkFilter()

123