Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareNetworkSpecifier.java146 public final int transportProtocol; field in WifiAwareNetworkSpecifier
159 byte[] peerMac, byte[] pmk, String passphrase, int port, int transportProtocol, in WifiAwareNetworkSpecifier() argument
170 this.transportProtocol = transportProtocol; in WifiAwareNetworkSpecifier()
224 dest.writeInt(transportProtocol); in writeToParcel()
242 Arrays.hashCode(pmk), passphrase, port, transportProtocol, requestorUid); in hashCode()
267 && transportProtocol == lhs.transportProtocol in equals()
287 .append(transportProtocol).append(", requestorUid=").append(requestorUid) in toString()
405 Builder setTransportProtocol(@IntRange(from = 0, to = 255) int transportProtocol) { in setTransportProtocol()
406 if (transportProtocol < 0 || transportProtocol > 255) { in setTransportProtocol()
410 mTransportProtocol = transportProtocol; in setTransportProtocol()
DWifiAwareNetworkInfo.java59 public WifiAwareNetworkInfo(Inet6Address ipv6Addr, int port, int transportProtocol) { in WifiAwareNetworkInfo() argument
62 mTransportProtocol = transportProtocol; in WifiAwareNetworkInfo()
126 int transportProtocol = in.readInt();
142 return new WifiAwareNetworkInfo(ipv6Addr, port, transportProtocol);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java404 if (peerServerInfo.transportProtocol != -1) { in onDataPathRequest()
405 nnriE.getValue().peerTransportProtocol = peerServerInfo.transportProtocol; in onDataPathRequest()
445 nnri.networkSpecifier.transportProtocol), in onDataPathRequest()
595 if (peerServerInfo.transportProtocol != -1) { in onDataPathConfirm()
596 nnri.peerTransportProtocol = peerServerInfo.transportProtocol; in onDataPathConfirm()
1293 if (ns.port < 0 || ns.transportProtocol < -1) { in processNetworkSpecifier()
1298 if (ns.port != 0 || ns.transportProtocol != -1) { in processNetworkSpecifier()
1580 public static byte[] buildTlv(int port, int transportProtocol) { in buildTlv() argument
1581 if (port == 0 && transportProtocol == -1) { in buildTlv()
1595 if (transportProtocol != -1) { in buildTlv()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java493 final byte transportProtocol = 6; in testMultipleNdpsOnSingleNdi()
547 buildTlv(port, transportProtocol, true), null); in testMultipleNdpsOnSingleNdi()
567 assertEquals(transportProtocol, netInfo.getTransportProtocol()); in testMultipleNdpsOnSingleNdi()
609 final int transportProtocol = 6; // can't specify transport protocol without port in testMultipleIdenticalRequests() local
672 buildTlv(port, transportProtocol, true)); in testMultipleIdenticalRequests()
691 assertEquals(transportProtocol, netInfo.getTransportProtocol()); in testMultipleIdenticalRequests()
1135 int transportProtocol = 6; in testTlvGenerationTestVectorPortTransportProtocol() local
1138 transportProtocol); in testTlvGenerationTestVectorPortTransportProtocol()
1153 int transportProtocol = 6; in testTlvParsingTestVectorPortTransportProtocol() local
1162 assertEquals(transportProtocol, (int) parsed.transportProtocol); in testTlvParsingTestVectorPortTransportProtocol()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java925 final int transportProtocol = 10; in testNetworkSpecifierWithClient() local
980 collector.checkThat("transportProtocol", -1, equalTo(nsb.transportProtocol)); in testNetworkSpecifierWithClient()
986 pmk).setPort(port).setTransportProtocol(transportProtocol).build(); in testNetworkSpecifierWithClient()
1003 collector.checkThat("transportProtocol", transportProtocol, equalTo(nsb.transportProtocol)); in testNetworkSpecifierWithClient()
1012 transportProtocol).build(); in testNetworkSpecifierWithClient()
1029 collector.checkThat("transportProtocol", transportProtocol, equalTo(nsb.transportProtocol)); in testNetworkSpecifierWithClient()
1433 final int transportProtocol = 5; in testNetworkSpecifierBuilderInvalidTransportProtocolOnInsecure() local
1438 peerHandle).setTransportProtocol(transportProtocol).build(); in testNetworkSpecifierBuilderInvalidTransportProtocolOnInsecure()
1448 final int transportProtocol = 5; in testNetworkSpecifierBuilderInvalidTransportProtocolOnResponder() local
1453 peerHandle).setTransportProtocol(transportProtocol).build(); in testNetworkSpecifierBuilderInvalidTransportProtocolOnResponder()
[all …]