Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DUtilsTest.java121 assertEquals(i, Utils.fromHex(c, true)); in testFromHex()
122 assertEquals(i, Utils.fromHex(c, false)); in testFromHex()
123 assertEquals(i, Utils.fromHex(Character.toUpperCase(c), true)); in testFromHex()
124 assertEquals(i, Utils.fromHex(Character.toUpperCase(c), false)); in testFromHex()
128 assertEquals(-1, Utils.fromHex('q', true)); in testFromHex()
131 Utils.fromHex('q', false); in testFromHex()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java67 int nibble = Utils.fromHex(s.charAt(n), true); // Set lenient to not blow up on ':' in parseMac()
200 (byte) (((fromHex(text.charAt(n), false) & NIBBLE_MASK) << 4) | in hexToBytes()
201 (fromHex(text.charAt(n + 1), false) & NIBBLE_MASK)); in hexToBytes()
207 public static int fromHex(char ch, boolean lenient) throws NumberFormatException { in fromHex() method in Utils