Searched refs:hexStr (Results 1 – 3 of 3) sorted by relevance
67 public static WifiSsid createFromHex(String hexStr) { in createFromHex() argument69 if (hexStr == null) return a; in createFromHex()71 if (hexStr.startsWith("0x") || hexStr.startsWith("0X")) { in createFromHex()72 hexStr = hexStr.substring(2); in createFromHex()75 for (int i = 0; i < hexStr.length()-1; i += 2) { in createFromHex()78 val = Integer.parseInt(hexStr.substring(i, i + 2), HEX_RADIX); in createFromHex()
56 String hexStr = Integer.toString(keyData[i] & 0x00FF, 16); in toHexString() local57 if (hexStr.length() == 1) { in toHexString()58 hexStr = "0" + hexStr; in toHexString()60 sb.append(hexStr); in toHexString()
321 public static byte[] hexStringToByteArray(String hexStr) { in hexStringToByteArray() argument322 if (hexStr == null) { in hexStringToByteArray()325 return HexEncoding.decode(hexStr.toCharArray(), false); in hexStringToByteArray()