Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java1198 final TransportInfo transportInfo = new TransportInfo() {}; in testBuilder() local
1213 .setTransportInfo(transportInfo) in testBuilder()
1236 assertEquals(transportInfo, nc.getTransportInfo()); in testBuilder()
1287 final TransportInfo transportInfo = new TransportInfo() {}; in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc() local
1296 .setTransportInfo(transportInfo) in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc()
1312 .setSignalStrength(signalStrength).setTransportInfo(transportInfo); in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc()
1336 final TransportInfo transportInfo = new TransportInfo() {}; in testRestrictCapabilitiesForTestNetworkWithRestrictedNc() local
1349 .setTransportInfo(transportInfo) in testRestrictCapabilitiesForTestNetworkWithRestrictedNc()
1364 expectedNcBuilder.setSignalStrength(signalStrength).setTransportInfo(transportInfo); in testRestrictCapabilitiesForTestNetworkWithRestrictedNc()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java410 final TransportInfo transportInfo = snapshot.getNetworkCapabilities() in setNetworkStateSnapshot() local
412 if (transportInfo instanceof WifiInfo) { in setNetworkStateSnapshot()
413 final WifiInfo info = (WifiInfo) transportInfo; in setNetworkStateSnapshot()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java10781 final TransportInfo transportInfo = mock(TransportInfo.class);
10782 doReturn(REDACT_FOR_ACCESS_FINE_LOCATION).when(transportInfo).getApplicableRedactions();
10784 new NetworkCapabilities().setTransportInfo(transportInfo);
10790 verify(transportInfo).makeCopy(REDACT_NONE);
10792 verify(transportInfo).makeCopy(REDACT_FOR_ACCESS_FINE_LOCATION);
10938 final TransportInfo transportInfo = mock(TransportInfo.class);
10940 .when(transportInfo).getApplicableRedactions();
10942 new NetworkCapabilities().setTransportInfo(transportInfo);
10949 verify(transportInfo).makeCopy(REDACT_FOR_ACCESS_FINE_LOCATION);
10957 final TransportInfo transportInfo = mock(TransportInfo.class);
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt599 (vpnNc.transportInfo as VpnTransportInfo).type) in testSetUnderlyingNetworksAndVpnSpecifier()
600 assertEquals(mySessionId, (vpnNc.transportInfo as VpnTransportInfo).sessionId) in testSetUnderlyingNetworksAndVpnSpecifier()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java1568 public @NonNull NetworkCapabilities setTransportInfo(@NonNull TransportInfo transportInfo) { in setTransportInfo() argument
1569 mTransportInfo = transportInfo; in setTransportInfo()