Searched refs:transportInfo (Results 1 – 5 of 5) sorted by relevance
1198 final TransportInfo transportInfo = new TransportInfo() {}; in testBuilder() local1213 .setTransportInfo(transportInfo) in testBuilder()1236 assertEquals(transportInfo, nc.getTransportInfo()); in testBuilder()1287 final TransportInfo transportInfo = new TransportInfo() {}; in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc() local1296 .setTransportInfo(transportInfo) in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc()1312 .setSignalStrength(signalStrength).setTransportInfo(transportInfo); in testRestrictCapabilitiesForTestNetworkWithNonRestrictedNc()1336 final TransportInfo transportInfo = new TransportInfo() {}; in testRestrictCapabilitiesForTestNetworkWithRestrictedNc() local1349 .setTransportInfo(transportInfo) in testRestrictCapabilitiesForTestNetworkWithRestrictedNc()1364 expectedNcBuilder.setSignalStrength(signalStrength).setTransportInfo(transportInfo); in testRestrictCapabilitiesForTestNetworkWithRestrictedNc()
410 final TransportInfo transportInfo = snapshot.getNetworkCapabilities() in setNetworkStateSnapshot() local412 if (transportInfo instanceof WifiInfo) { in setNetworkStateSnapshot()413 final WifiInfo info = (WifiInfo) transportInfo; in setNetworkStateSnapshot()
10781 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 …]
599 (vpnNc.transportInfo as VpnTransportInfo).type) in testSetUnderlyingNetworksAndVpnSpecifier()600 assertEquals(mySessionId, (vpnNc.transportInfo as VpnTransportInfo).sessionId) in testSetUnderlyingNetworksAndVpnSpecifier()
1568 public @NonNull NetworkCapabilities setTransportInfo(@NonNull TransportInfo transportInfo) { in setTransportInfo() argument1569 mTransportInfo = transportInfo; in setTransportInfo()