Searched refs:fromHex (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | UtilsTest.java | 107 assertEquals(i, Utils.fromHex(c, true)); in testFromHex() 108 assertEquals(i, Utils.fromHex(c, false)); in testFromHex() 109 assertEquals(i, Utils.fromHex(Character.toUpperCase(c), true)); in testFromHex() 110 assertEquals(i, Utils.fromHex(Character.toUpperCase(c), false)); in testFromHex() 114 assertEquals(-1, Utils.fromHex('q', true)); in testFromHex() 117 Utils.fromHex('q', false); in testFromHex()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | Utils.java | 53 int nibble = Utils.fromHex(s.charAt(n), true); // Set lenient to not blow up on ':' in parseMac() 181 (byte) (((fromHex(text.charAt(n), false) & NIBBLE_MASK) << 4) | in hexToBytes() 182 (fromHex(text.charAt(n + 1), false) & NIBBLE_MASK)); in hexToBytes() 188 public static int fromHex(char ch, boolean lenient) throws NumberFormatException { in fromHex() method in Utils
|