Searched refs:hasEther (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketBuilderTest.java | 528 final boolean hasEther = (srcMac != null && dstMac != null); in buildPacket() 530 final ByteBuffer buffer = PacketBuilder.allocate(hasEther, l3proto, l4proto, in buildPacket() 535 if (hasEther) { in buildPacket() 664 private void checkTcpPacket(final boolean hasEther, final int l3proto, final boolean hasData, in checkTcpPacket() argument 671 if (hasEther) { in checkTcpPacket() 713 private void checkUdpPacket(final boolean hasEther, final int l3proto, final boolean hasData, in checkUdpPacket() argument 720 if (hasEther) { in checkUdpPacket()
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 692 final boolean hasEther = (srcMac != null && dstMac != null); 694 final ByteBuffer buffer = PacketBuilder.allocate(hasEther, ipProto, IPPROTO_UDP, 699 if (hasEther) { 741 final boolean hasEther = (srcMac != null && dstMac != null); 742 final ByteBuffer buffer = PacketBuilder.allocate(hasEther, ipProto, IPPROTO_TCP, 747 if (hasEther) { 791 final boolean hasEther = (srcMac != null && dstMac != null); 792 final int etherHeaderLen = hasEther ? Struct.getSize(EthernetHeader.class) : 0; 800 if (hasEther) { 825 final int ipv4HeaderOffset = hasEther ? etherHeaderLen : 0;
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | PacketBuilder.java | 279 public static ByteBuffer allocate(boolean hasEther, int l3proto, int l4proto, int payloadLen) { in allocate() argument 293 if (hasEther) packetLen += Struct.getSize(EthernetHeader.class); in allocate()
|