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.java47 private static final int ETHER_ADDR_LEN = 6; field in MacAddress
233 if (parts.length != ETHER_ADDR_LEN) { in byteAddrFromStringAddr()
236 byte[] bytes = new byte[ETHER_ADDR_LEN]; in byteAddrFromStringAddr()
237 for (int i = 0; i < ETHER_ADDR_LEN; i++) { in byteAddrFromStringAddr()
279 if (parts.length != ETHER_ADDR_LEN) { in longAddrFromStringAddr()
346 if (in.length != ETHER_ADDR_LEN) { in addr()
348 + " was not an array with length equal to " + ETHER_ADDR_LEN); in addr()
350 byte[] out = new byte[ETHER_ADDR_LEN]; in addr()
351 for (int i = 0; i < ETHER_ADDR_LEN; i++) { in addr()
/frameworks/libs/net/common/src_frameworkcommon/android/net/util/
DMacAddressUtils.java45 private static final int ETHER_ADDR_LEN = 6; field in MacAddressUtils
117 byte[] bytes = new byte[ETHER_ADDR_LEN]; in byteAddrFromLongAddr()
118 int index = ETHER_ADDR_LEN; in byteAddrFromLongAddr()
135 return addr != null && addr.length == ETHER_ADDR_LEN; in isMacAddress()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSoftApBackupRestore.java55 private static final int ETHER_ADDR_LEN = 6; // Byte array size of MacAddress field in SoftApBackupRestore
196 out.write(mac, 0, ETHER_ADDR_LEN); in writeMacAddressList()
204 byte[] mac = new byte[ETHER_ADDR_LEN]; in macAddressListFromByteArray()
205 in.read(mac, 0, ETHER_ADDR_LEN); in macAddressListFromByteArray()