Home
last modified time | relevance | path

Searched refs:transportInfo (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/network/
DInternetPreferenceRepository.kt72 val transportInfo = transportInfo in <lambda>() constant
73 if (transportInfo is WifiInfo && transportInfo.isCarrierMerged) { in <lambda>()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DIwlanNetworkStatusTracker.java193 TransportInfo transportInfo = nc.getTransportInfo(); in onCrossSimEnabledEvent() local
194 if (transportInfo instanceof VcnTransportInfo) { in onCrossSimEnabledEvent()
195 activeDataSub = ((VcnTransportInfo) transportInfo).getSubId(); in onCrossSimEnabledEvent()
477 TransportInfo transportInfo = nc.getTransportInfo(); in onAvailable() local
478 if (transportInfo instanceof VcnTransportInfo) { in onAvailable()
479 mConnectedDataSub = ((VcnTransportInfo) transportInfo).getSubId(); in onAvailable()
564 TransportInfo transportInfo = nc.getTransportInfo(); in onCapabilitiesChanged() local
565 if (transportInfo instanceof VcnTransportInfo) { in onCapabilitiesChanged()
566 activeDataSub = ((VcnTransportInfo) transportInfo).getSubId(); in onCapabilitiesChanged()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java411 final TransportInfo transportInfo = nc.getTransportInfo(); in setNetworkStateSnapshot() local
412 if (transportInfo instanceof WifiInfo) { in setNetworkStateSnapshot()
413 final WifiInfo info = (WifiInfo) transportInfo; in setNetworkStateSnapshot()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanNetworkService.java380 TransportInfo transportInfo = networkCapabilities.getTransportInfo(); in getConnectedDataSub() local
384 } else if (transportInfo instanceof VcnTransportInfo) { in getConnectedDataSub()
385 connectedDataSub = ((VcnTransportInfo) transportInfo).getSubId(); in getConnectedDataSub()
DIwlanDataService.java2230 TransportInfo transportInfo = networkCapabilities.getTransportInfo(); in getConnectedDataSub() local
2234 } else if (transportInfo instanceof VcnTransportInfo) { in getConnectedDataSub()
2235 connectedDataSub = ((VcnTransportInfo) transportInfo).getSubId(); in getConnectedDataSub()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java1244 final TransportInfo transportInfo = new TransportInfo() {}; in testBuilder() local
1259 .setTransportInfo(transportInfo) in testBuilder()
1282 assertEquals(transportInfo, nc.getTransportInfo()); in testBuilder()
1333 final TransportInfo transportInfo = new TransportInfo() {}; in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc() local
1342 .setTransportInfo(transportInfo) in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc()
1358 .setSignalStrength(signalStrength).setTransportInfo(transportInfo); in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc()
1397 final TransportInfo transportInfo = new TransportInfo() {}; in testRestrictCapabilitiesForTestNetworkWithRestrictedNc() local
1409 .setTransportInfo(transportInfo) in testRestrictCapabilitiesForTestNetworkWithRestrictedNc()
1446 expectedNcBuilder.setSignalStrength(signalStrength).setTransportInfo(transportInfo); in testRestrictCapabilitiesForTestNetworkWithRestrictedNc()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt584 transportInfo: TransportInfo? in doTestAllowedUids()
594 setTransportInfo(transportInfo) in doTestAllowedUids()
625 specifier = null, transportInfo = null) in doTestAllowedUids()
649 val transportInfo = if (TRANSPORT_WIFI in transports && SdkLevel.isAtLeastV()) { in doTestAllowedUidsWithSubId() constant
655 doTestAllowedUids(transports, uid, expectUidsPresent, specifier, transportInfo) in doTestAllowedUidsWithSubId()
940 (vpnNc.transportInfo as VpnTransportInfo).type) in testSetUnderlyingNetworksAndVpnSpecifier()
941 assertEquals(mySessionId, (vpnNc.transportInfo as VpnTransportInfo).sessionId) in testSetUnderlyingNetworksAndVpnSpecifier()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java1847 public @NonNull NetworkCapabilities setTransportInfo(@NonNull TransportInfo transportInfo) { in setTransportInfo() argument
1848 mTransportInfo = transportInfo; in setTransportInfo()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java12343 final TransportInfo transportInfo = mock(TransportInfo.class);
12344 doReturn(REDACT_FOR_ACCESS_FINE_LOCATION).when(transportInfo).getApplicableRedactions();
12346 new NetworkCapabilities().setTransportInfo(transportInfo);
12352 verify(transportInfo).makeCopy(REDACT_NONE);
12354 verify(transportInfo).makeCopy(REDACT_FOR_ACCESS_FINE_LOCATION);
12500 final TransportInfo transportInfo = mock(TransportInfo.class);
12502 .when(transportInfo).getApplicableRedactions();
12504 new NetworkCapabilities().setTransportInfo(transportInfo);
12511 verify(transportInfo).makeCopy(REDACT_FOR_ACCESS_FINE_LOCATION);
12519 final TransportInfo transportInfo = mock(TransportInfo.class);
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsService.java2380 final TransportInfo transportInfo = snapshot.getNetworkCapabilities()
2382 if (transportInfo instanceof WifiInfo) {
2383 final WifiInfo info = (WifiInfo) transportInfo;