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.java159 public static String macAddressFromByteArray(byte[] macArray) { in macAddressFromByteArray() argument
160 if (macArray == null) { in macAddressFromByteArray()
163 if (macArray.length != MAC_LENGTH) { in macAddressFromByteArray()
164 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressFromByteArray()
167 for (int i = 0; i < macArray.length; i++) { in macAddressFromByteArray()
169 sb.append(new String(HexEncoding.encode(macArray, i, 1))); in macAddressFromByteArray()
198 public static Long macAddressToLong(byte[] macArray) { in macAddressToLong() argument
199 if (macArray == null) { in macAddressToLong()
202 if (macArray.length != MAC_LENGTH) { in macAddressToLong()
203 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressToLong()
[all …]