/external/tcpdump/ |
print-esp.c | 103 static u_int hexdigit(netdissect_options *ndo, char hex) 105 if (hex >= '0' && hex <= '9') 106 return (hex - '0'); 107 else if (hex >= 'A' && hex <= 'F') 108 return (hex - 'A' + 10); 109 else if (hex >= 'a' && hex <= 'f') 110 return (hex - 'a' + 10) [all...] |
addrtoname.c | 315 static char hex[] = "0123456789abcdef"; variable 494 *cp++ = hex[*ep >> 4 ]; 495 *cp++ = hex[*ep++ & 0xf]; 498 *cp++ = hex[*ep >> 4 ]; 499 *cp++ = hex[*ep++ & 0xf]; 528 *cp++ = hex[*ep >> 4]; 529 *cp++ = hex[*ep++ & 0xf]; 532 *cp++ = hex[*ep >> 4]; 533 *cp++ = hex[*ep++ & 0xf]; 556 *cp++ = hex[port >> 12 & 0xf] [all...] |
/build/tools/droiddoc/src/ |
FieldInfo.java | 244 String hex = null; local 252 hex = String.format("0x%02x", val); 256 hex = String.format("0x%04x", val); 266 hex = String.format("0x%08x", val); 270 hex = String.format("0x%016x", val); 274 hex = String.format("0x%04x", val); 283 if (dec != null && hex != null) { 285 data.setValue(base + ".constantValue.hex", DroidDoc.escape(hex));
|
/external/chromium/third_party/icu/source/test/intltest/ |
tstnorm.h | 77 static UnicodeString hex(UChar ch); 78 static UnicodeString hex(const UnicodeString& str);
|
tstnorm.cpp | 316 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + 317 hex(b) + " x COMPOSE => " + 318 hex(c)); 320 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + 321 hex(b) + " x COMPOSE => " + 322 hex(c)); 357 logln((UnicodeString)"Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b)); 359 errln((UnicodeString)"FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b) 471 UnicodeString BasicNormalizerTest::hex(UChar ch) { function in class:BasicNormalizerTest 476 UnicodeString BasicNormalizerTest::hex(const UnicodeString& s) { function in class:BasicNormalizerTest [all...] |
/external/icu4c/test/intltest/ |
tstnorm.h | 79 static UnicodeString hex(UChar ch); 80 static UnicodeString hex(const UnicodeString& str);
|
tstnorm.cpp | 319 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + 320 hex(b) + " x COMPOSE => " + 321 hex(c)); 323 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + 324 hex(b) + " x COMPOSE => " + 325 hex(c)); 363 logln((UnicodeString)"Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b)); 365 errln((UnicodeString)"FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b) 482 UnicodeString BasicNormalizerTest::hex(UChar ch) { function in class:BasicNormalizerTest 487 UnicodeString BasicNormalizerTest::hex(const UnicodeString& s) { function in class:BasicNormalizerTest [all...] |
/external/openssl/crypto/x509/ |
x509_obj.c | 75 static const char hex[17]="0123456789ABCDEF"; local 190 *(p++)=hex[(n>>4)&0x0f]; 191 *(p++)=hex[n&0x0f]; 202 *(p++)=hex[(n>>4)&0x0f]; 203 *(p++)=hex[n&0x0f];
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
common.c | 32 static int hex2byte(const char *hex) 35 a = hex2num(*hex++); 38 b = hex2num(*hex++); 74 * hexstr2bin - Convert ASCII hex string into binary data 75 * @hex: ASCII hex string (e.g., "01ab") 77 * @len: Length of the text to convert in bytes (of buf); hex will be double 79 * Returns: 0 on success, -1 on failure (invalid hex string) 81 int hexstr2bin(const char *hex, u8 *buf, size_t len) 85 const char *ipos = hex; [all...] |
/dalvik/vm/ |
Misc.c | 36 * Print a hex dump in this format: 56 char* hex; local 76 hex = out; 80 *hex++ = gHexDigit[lineOffset >> 28]; 83 hex++; 84 hex++; 92 hex += gap * 3; 97 *hex++ = gHexDigit[*addr >> 4]; 98 *hex++ = gHexDigit[*addr & 0x0f]; 99 hex++ [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
BaseDumper.java | 24 import com.android.dx.util.Hex; 58 /** number of bytes per line in hex dumps */ 132 println("<dump skipped backwards to " + Hex.u4(offset) + ">"); 135 String hex = rawBytes ? hexDump(at, offset - at) : ""; local 136 print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")); 140 String hex = rawBytes ? hexDump(offset, len) : ""; local 141 print(twoColumns(hex, human)); 257 * Constructs a hex data dump of the given portion of {@link #bytes}. 264 return Hex.dump(bytes, offset, len, offset, hexCols, 4) [all...] |
/external/astl/tests/ |
test_iomanip.cpp | 61 EXPECT_TRUE(s.flags() == (ios_base::hex | ios_base::skipws));
|
/external/astl/include/ |
iomanip | 75 params.base == 16 ? ios_base::hex :
|
/libcore/json/src/main/java/org/json/ |
JSONTokener.java | 245 String hex = in.substring(pos, pos + 4); local 247 return (char) Integer.parseInt(hex, 16); 590 * Returns the integer [0..15] value for the given hex character, or -1 591 * for non-hex input. 593 * @param hex a character in the ranges [0-9], [A-F] or [a-f]. Any other 596 public static int dehexchar(char hex) { 597 if (hex >= '0' && hex <= '9') { 598 return hex - '0'; 599 } else if (hex >= 'A' && hex <= 'F') [all...] |
/external/chromium/net/third_party/nss/ssl/ |
ssltrace.c | 48 static const char *hex = "0123456789abcdef"; variable 87 *bp++ = hex[(ch >> 4) & 0xf]; 88 *bp++ = hex[ch & 0xf]; 129 * b) It dumps only hex, not ASCII. 146 *bp++ = hex[(ch >> 4) & 0xf]; 147 *bp++ = hex[ch & 0xf];
|
/external/skia/src/xml/ |
SkParseColor.cpp | 465 uint32_t hex; local 466 const char* end = SkParse::FindHex(value + 1, &hex); 472 unsigned a = len == 4 ? nib2byte(hex >> 12) : oldAlpha; 473 unsigned r = nib2byte((hex >> 8) & 0xF); 474 unsigned g = nib2byte((hex >> 4) & 0xF); 475 unsigned b = nib2byte(hex & 0xF); 480 hex |= oldAlpha << 24; 481 *colorPtr = hex;
|
/external/wpa_supplicant/wpa_gui/ |
networkconfig.ui.h | 110 "or 64 hex digit PSK"); 259 bool hex; local 267 * Assume hex key if only hex characters are present and length matches 277 hex = true; 281 hex = false; 286 if (hex && len != 10 && len != 26 && len != 32) 287 hex = false; 289 setNetworkParam(network_id, buf, txt, !hex);
|
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui/ |
networkconfig.ui.h | 110 "or 64 hex digit PSK"); 262 bool hex; local 270 * Assume hex key if only hex characters are present and length matches 280 hex = true; 284 hex = false; 289 if (hex && len != 10 && len != 26 && len != 32) 290 hex = false; 292 setNetworkParam(network_id, buf, txt, !hex);
|
/external/qemu/telephony/ |
sms.c | 405 sms_address_from_hex ( SmsAddress address, const char* hex, int hexlen ) 407 const char* hexend = hex + hexlen; 413 address->len = num_digits = gsm_hex2_to_byte( hex ); 414 address->toa = gsm_hex2_to_byte( hex+2 ); 415 hex += 4; 418 if (hex + len*2 > hexend) 422 address->data[nn] = gsm_hex2_to_byte( hex + nn*2 ); 428 sms_address_to_hex ( SmsAddress address, char* hex, int hexlen ) 433 if (hex == NULL) 437 gsm_hex_from_byte( hex, address->len ) [all...] |
/external/netcat/data/ |
data.c | 183 goto hex; 187 hex: 192 p++; p++; /* point at hex-chars */
|
/external/bluetooth/glib/tests/ |
gen-casemap-txt.pl | 77 $code = hex ($fields[$CODE]); 123 $code = hex ($raw_code); 218 $lower[$code] = pack ("U", hex ($fields[$LOWER])); 256 return pack ("U*", map { hex ($_) } split /\s+/, $codes);
|
/external/stlport/stlport/stl/ |
_ios_base.h | 71 _STLP_STATIC_CONSTANT(int, hex = 0x0010); 83 _STLP_STATIC_CONSTANT(int, basefield = dec | hex | oct); 324 inline ios_base& _STLP_CALL hex(ios_base& __s) function 325 { __s.setf(ios_base::hex, ios_base::basefield); return __s; }
|
/frameworks/base/core/java/android/net/http/ |
RequestHandle.java | 392 * @return HEX buffer representation. 401 StringBuilder hex = new StringBuilder(2 * length); local 407 hex.append(hexChars[h]); 408 hex.append(hexChars[l]); 411 return hex.toString();
|
/libcore/luni/src/test/java/tests/SQLite/ |
FunctionContextTest.java | 442 byte[] hex = new byte[2 * raw.length]; 447 hex[index++] = HEX_CHAR_TABLE[v >>> 4]; 448 hex[index++] = HEX_CHAR_TABLE[v & 0xF]; 450 return new String(hex, "ASCII");
|
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_ios_base.h | 71 _STLP_STATIC_CONSTANT(int, hex = 0x0010); 83 _STLP_STATIC_CONSTANT(int, basefield = dec | hex | oct); 324 inline ios_base& _STLP_CALL hex(ios_base& __s) function 325 { __s.setf(ios_base::hex, ios_base::basefield); return __s; }
|