Home
last modified time | relevance | path

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

/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
H A DUtilsTest.java107 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()
/aosp12/frameworks/base/tools/obbtool/
H A 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()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
H A DUtils.java53 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