Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java137 public static String macAddressFromByteArray(byte[] macArray) { in macAddressFromByteArray() argument
138 if (macArray == null) { in macAddressFromByteArray()
141 if (macArray.length != MAC_LENGTH) { in macAddressFromByteArray()
142 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressFromByteArray()
145 for (int i = 0; i < macArray.length; i++) { in macAddressFromByteArray()
147 sb.append(new String(HexEncoding.encode(macArray, i, 1))); in macAddressFromByteArray()
176 public static Long macAddressToLong(byte[] macArray) { in macAddressToLong() argument
177 if (macArray == null) { in macAddressToLong()
180 if (macArray.length != MAC_LENGTH) { in macAddressToLong()
181 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressToLong()
[all …]