Home
last modified time | relevance | path

Searched refs:ETHER_ADDR_LEN (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/framework/src/android/net/
DMacAddress.java48 private static final int ETHER_ADDR_LEN = 6; field in MacAddress
234 if (parts.length != ETHER_ADDR_LEN) { in byteAddrFromStringAddr()
237 byte[] bytes = new byte[ETHER_ADDR_LEN]; in byteAddrFromStringAddr()
238 for (int i = 0; i < ETHER_ADDR_LEN; i++) { in byteAddrFromStringAddr()
280 if (parts.length != ETHER_ADDR_LEN) { in longAddrFromStringAddr()
347 if (in.length != ETHER_ADDR_LEN) { in addr()
349 + " was not an array with length equal to " + ETHER_ADDR_LEN); in addr()
351 byte[] out = new byte[ETHER_ADDR_LEN]; in addr()
352 for (int i = 0; i < ETHER_ADDR_LEN; i++) { in addr()
/packages/modules/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java26 import static com.android.net.module.util.NetworkStackConstants.ETHER_ADDR_LEN;
80 buf.put((byte) ETHER_ADDR_LEN); // hln in buildArpPacket()
103 byte[] l2dst = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
104 byte[] l2src = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
124 if (hwAddrLength != ETHER_ADDR_LEN) { in parseArpPacket()
138 byte[] senderHwAddress = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
143 byte[] targetHwAddress = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java27 import static com.android.net.module.util.NetworkStackConstants.ETHER_ADDR_LEN;
135 final ByteBuffer srcMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
140 final ByteBuffer dstMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
173 asUint(mPacket.get()) != ETHER_ADDR_LEN || in parseARP()
417 if (mac == null || mac.remaining() < ETHER_ADDR_LEN) return "invalid"; in getMacAddressString()
419 byte[] bytes = new byte[ETHER_ADDR_LEN]; in getMacAddressString()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java20 import static com.android.net.module.util.NetworkStackConstants.ETHER_ADDR_LEN;
148 TEST_SENDER_MAC_ADDR, TEST_IPV4_ADDR.getAddress(), new byte[ETHER_ADDR_LEN], in testBuildArpProbePacket()
156 TEST_SENDER_MAC_ADDR, TEST_IPV4_ADDR.getAddress(), new byte[ETHER_ADDR_LEN], in testBuildArpAnnouncePacket()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java58 private static final int ETHER_ADDR_LEN = 6; // Byte array size of MacAddress field in SoftApBackupRestore
226 out.write(mac, 0, ETHER_ADDR_LEN); in writeMacAddressList()
234 byte[] mac = new byte[ETHER_ADDR_LEN]; in macAddressListFromByteArray()
235 in.read(mac, 0, ETHER_ADDR_LEN); in macAddressListFromByteArray()
/packages/modules/NetworkStack/tests/integration/src/android/net/util/
DNetworkStackUtilsIntegrationTest.kt42 import com.android.net.module.util.NetworkStackConstants.ETHER_ADDR_LEN
136 val sentTargetAddr = MacAddress.fromBytes(sentPacket.copyOfRange(0, ETHER_ADDR_LEN)) in testAddArpEntry()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java55 import static com.android.net.module.util.NetworkStackConstants.ETHER_ADDR_LEN;
1547 targetIp.getAddress(), new byte[ETHER_ADDR_LEN], senderIp.getAddress(), in transmitPacket()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java39 import static com.android.net.module.util.NetworkStackConstants.ETHER_ADDR_LEN;
773 new byte[ETHER_ADDR_LEN] /* target HW address */,
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt491 Landroid/net/MacAddress;->ETHER_ADDR_LEN:I