Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java124 String cleanMac = macStr.replace(":", ""); in macAddressToByteArray()
125 if (cleanMac.length() != MAC_LENGTH * 2) { in macAddressToByteArray()
126 throw new IllegalArgumentException("invalid mac string length: " + cleanMac); in macAddressToByteArray()
128 return HexEncoding.decode(cleanMac.toCharArray(), false); in macAddressToByteArray()
163 String cleanMac = macStr.replace(":", ""); in macAddressOuiToByteArray() local
164 if (cleanMac.length() != MAC_OUI_LENGTH * 2) { in macAddressOuiToByteArray()
165 throw new IllegalArgumentException("invalid mac oui string length: " + cleanMac); in macAddressOuiToByteArray()
167 return HexEncoding.decode(cleanMac.toCharArray(), false); in macAddressOuiToByteArray()