Searched refs:hexStr (Results 1 – 4 of 4) sorted by relevance
71 public static WifiSsid createFromHex(String hexStr) { in createFromHex() argument73 if (hexStr == null) return a; in createFromHex()75 if (hexStr.startsWith("0x") || hexStr.startsWith("0X")) { in createFromHex()76 hexStr = hexStr.substring(2); in createFromHex()79 for (int i = 0; i < hexStr.length()-1; i += 2) { in createFromHex()82 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()
329 public static byte[] hexStringToByteArray(String hexStr) { in hexStringToByteArray() argument330 if (hexStr == null) { in hexStringToByteArray()333 return HexEncoding.decode(hexStr.toCharArray(), false); in hexStringToByteArray()
367 final String hexStr = identityStr.substring(2); in parseIkeIdentification() local368 return new IkeKeyIdIdentification(HexDump.hexStringToByteArray(hexStr)); in parseIkeIdentification()