Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DUtilsTest.java105 assertEquals(i, Utils.fromHex(c, true)); in testFromHex()
106 assertEquals(i, Utils.fromHex(c, false)); in testFromHex()
107 assertEquals(i, Utils.fromHex(Character.toUpperCase(c), true)); in testFromHex()
108 assertEquals(i, Utils.fromHex(Character.toUpperCase(c), false)); in testFromHex()
112 assertEquals(-1, Utils.fromHex('q', true)); in testFromHex()
115 Utils.fromHex('q', false); in testFromHex()
/frameworks/base/tools/obbtool/
DMain.cpp156 bool fromHex(char h, unsigned char *b) { in fromHex() function
172 if (!fromHex(h1, &first)) return false; in hexToByte()
173 if (!fromHex(h2, &second)) return false; in hexToByte()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java56 int nibble = Utils.fromHex(s.charAt(n), true); // Set lenient to not blow up on ':' in parseMac()
224 (byte) (((fromHex(text.charAt(n), false) & NIBBLE_MASK) << 4) | in hexToBytes()
225 (fromHex(text.charAt(n + 1), false) & NIBBLE_MASK)); in hexToBytes()
231 public static int fromHex(char ch, boolean lenient) throws NumberFormatException { in fromHex() method in Utils