Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DMacAddress.java41 private static final int ETHER_ADDR_LEN = 6; field in MacAddress
184 return addr != null && addr.length == ETHER_ADDR_LEN; in isMacAddress()
219 if (parts.length != ETHER_ADDR_LEN) { in byteAddrFromStringAddr()
222 byte[] bytes = new byte[ETHER_ADDR_LEN]; in byteAddrFromStringAddr()
223 for (int i = 0; i < ETHER_ADDR_LEN; i++) { in byteAddrFromStringAddr()
253 byte[] bytes = new byte[ETHER_ADDR_LEN]; in byteAddrFromLongAddr()
254 int index = ETHER_ADDR_LEN; in byteAddrFromLongAddr()
280 if (parts.length != ETHER_ADDR_LEN) { in longAddrFromStringAddr()
384 if (in.length != ETHER_ADDR_LEN) { in addr()
386 + " was not an array with length equal to " + ETHER_ADDR_LEN); in addr()
[all …]
/frameworks/base/services/net/java/android/net/util/
DConnectivityPacketSummary.java85 final ByteBuffer srcMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
90 final ByteBuffer dstMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
123 asUint(mPacket.get()) != ETHER_ADDR_LEN || in parseARP()
367 if (mac == null || mac.remaining() < ETHER_ADDR_LEN) return "invalid"; in getMacAddressString()
369 byte[] bytes = new byte[ETHER_ADDR_LEN]; in getMacAddressString()
DNetworkConstants.java46 public static final int ETHER_ADDR_LEN = 6; field in NetworkConstants