Searched refs:transportInfo (Results 1 – 4 of 4) sorted by relevance
1108 final TransportInfo transportInfo = new TransportInfo() {}; in testBuilder() local1123 .setTransportInfo(transportInfo) in testBuilder()1140 assertEquals(transportInfo, nc.getTransportInfo()); in testBuilder()
9680 final TransportInfo transportInfo = mock(TransportInfo.class); in verifyTransportInfoCopyNetCapsPermission() local9681 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() local9838 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 …]
1374 public @NonNull NetworkCapabilities setTransportInfo(@NonNull TransportInfo transportInfo) { in setTransportInfo() argument1375 mTransportInfo = transportInfo; in setTransportInfo()
686 (vpnNc.transportInfo as VpnTransportInfo).type) in testSetUnderlyingNetworksAndVpnSpecifier()687 assertEquals(mySessionId, (vpnNc.transportInfo as VpnTransportInfo).sessionId) in testSetUnderlyingNetworksAndVpnSpecifier()