Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java1108 final TransportInfo transportInfo = new TransportInfo() {}; in testBuilder() local
1123 .setTransportInfo(transportInfo) in testBuilder()
1140 assertEquals(transportInfo, nc.getTransportInfo()); in testBuilder()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java9680 final TransportInfo transportInfo = mock(TransportInfo.class); in verifyTransportInfoCopyNetCapsPermission() local
9681 when(transportInfo.getApplicableRedactions()).thenReturn(REDACT_FOR_ACCESS_FINE_LOCATION); in verifyTransportInfoCopyNetCapsPermission()
9683 new NetworkCapabilities().setTransportInfo(transportInfo); in verifyTransportInfoCopyNetCapsPermission()
9689 verify(transportInfo).makeCopy(REDACT_NONE); in verifyTransportInfoCopyNetCapsPermission()
9691 verify(transportInfo).makeCopy(REDACT_FOR_ACCESS_FINE_LOCATION); in verifyTransportInfoCopyNetCapsPermission()
9837 final TransportInfo transportInfo = mock(TransportInfo.class); in testCreateForCallerWithLocalMacAddressSanitizedWithLocalMacAddressPermission() local
9838 when(transportInfo.getApplicableRedactions()) in testCreateForCallerWithLocalMacAddressSanitizedWithLocalMacAddressPermission()
9841 new NetworkCapabilities().setTransportInfo(transportInfo); in testCreateForCallerWithLocalMacAddressSanitizedWithLocalMacAddressPermission()
9848 verify(transportInfo).makeCopy(REDACT_FOR_ACCESS_FINE_LOCATION); in testCreateForCallerWithLocalMacAddressSanitizedWithLocalMacAddressPermission()
9856 final TransportInfo transportInfo = mock(TransportInfo.class); in testCreateForCallerWithLocalMacAddressSanitizedWithoutLocalMacAddressPermission() local
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java1374 public @NonNull NetworkCapabilities setTransportInfo(@NonNull TransportInfo transportInfo) { in setTransportInfo() argument
1375 mTransportInfo = transportInfo; in setTransportInfo()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt686 (vpnNc.transportInfo as VpnTransportInfo).type) in testSetUnderlyingNetworksAndVpnSpecifier()
687 assertEquals(mySessionId, (vpnNc.transportInfo as VpnTransportInfo).sessionId) in testSetUnderlyingNetworksAndVpnSpecifier()