/external/icu4c/test/intltest/ |
testutil.cpp | 14 static const UChar HEX[16]={48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70}; 19 buf.append(HEX[0xF&(ch>>20)]); 21 buf.append(HEX[0xF&(ch>>16)]); 23 buf.append(HEX[0xF&(ch>>12)]); 24 buf.append(HEX[0xF&(ch>>8)]); 25 buf.append(HEX[0xF&(ch>>4)]); 26 buf.append(HEX[0xF&ch]); 30 UnicodeString TestUtility::hex(UChar32 ch) { function in class:TestUtility 36 UnicodeString TestUtility::hex(const UnicodeString& s) { function in class:TestUtility 37 return hex(s, 44 /*,*/) 40 UnicodeString TestUtility::hex(const UnicodeString& s, UChar sep) { function in class:TestUtility 54 UnicodeString TestUtility::hex(const uint8_t* bytes, int32_t len) { function in class:TestUtility [all...] |
/external/webkit/LayoutTests/fast/encoding/resources/ |
char-decoding-utils.js | 1 function hex(number) function 4 var hex = hexDigit.substr(number & 0xf, 1); 7 hex = hexDigit.substr(number & 15, 1) + hex; 9 return hex; 26 var code = hex(decodedText.charCodeAt(i));
|
/frameworks/base/tests/CoreTests/android/core/ |
Sha1Test.java | 57 StringBuffer hex = new StringBuffer(bytes.length * 2); local 61 hex.append("0"); 63 hex.append(Integer.toString((int) bytes[i] & 0xff, 16)); 66 return hex.toString();
|
/external/openssl/apps/ |
prime.c | 63 int hex=0; local 81 if(!strcmp(*argv,"-hex")) 82 hex=1; 134 s=hex ? BN_bn2hex(bn) : BN_bn2dec(bn); 140 if(hex) 157 BIO_printf(bio_err,"%-14s hex\n","-hex");
|
rand.c | 72 * -hex - hex encode output 85 int hex = 0; local 135 else if (strcmp(argv[i], "-hex") == 0) 137 if (!hex) 138 hex = 1; 157 if (hex && base64) 173 BIO_printf(bio_err, "-hex - hex encode output\n"); 223 if (!hex) [all...] |
/development/tools/jdwpspy/ |
Main.cpp | 17 * Print a hex dump. Just hands control off to the fancy version. 29 * Print a hex dump in this format: 39 char* hex; local 56 char* hex = out; local 60 *hex++ = gHexDigit[lineOffset >> 28]; 63 hex++; 64 hex++; 72 hex += gap * 3; 78 *hex++ = gHexDigit[*addr >> 4]; 79 *hex++ = gHexDigit[*addr & 0x0f] [all...] |
/external/chromium/chrome/browser/sync/util/ |
crypto_helpers.cc | 47 string hex = base::HexEncode(reinterpret_cast<char*>(&bin_digest_.front()), local 49 StringToLowerASCII(&hex); 50 return hex;
|
/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/v8/test/mjsunit/ |
unicode-test.js | 9138 function hex(x) { function [all...] |
/libcore/luni/src/main/java/libcore/net/http/ |
ChunkedOutputStream.java | 36 /** Scratch space for up to 8 hex digits, and then a constant CRLF */ 37 private final byte[] hex = { 0, 0, 0, 0, 0, 0, 0, 0, '\r', '\n' }; field in class:ChunkedOutputStream 100 hex[--cursor] = HEX_DIGITS[i & 0xf]; 102 socketOut.write(hex, cursor, hex.length - cursor);
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
DiscourseLogger.java | 73 final String hex = "00" + Integer.toHexString(b); local 74 mReceivingLine.append("\\x" + hex.substring(hex.length() - 2, hex.length()));
|
/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/bluetooth/bluez/src/ |
sdp-xml.c | 47 int i, hex; local 233 hex = 0; 238 hex = 1; 254 if (hex) { 255 appender(data, "encoding=\"hex\" "); 262 hex encoded data */
|
/external/dbus/dbus/ |
dbus-address.c | 292 DBusString hex; local 300 "In D-Bus address, percent character was not followed by two hex digits"); 309 _dbus_string_init_const (&hex, buf); 311 if (!_dbus_string_hex_decode (&hex, 0, &hex_end, 319 "In D-Bus address, percent character was followed by characters other than hex digits");
|
/external/doclava/src/com/google/doclava/ |
FieldInfo.java | 343 String hex = null; local 350 hex = String.format("0x%02x", val); 353 hex = String.format("0x%04x", val); 360 hex = String.format("0x%08x", val); 363 hex = String.format("0x%016x", val); 366 hex = String.format("0x%04x", val); 373 if (dec != null && hex != null) { 375 data.setValue(base + ".constantValue.hex", Doclava.escape(hex));
|
/external/ppp/pppd/plugins/radius/ |
avpair.c | 164 unsigned char hex[3]; /* For hex string conversion. */ local 199 sprintf (hex, "%2.2X", *x_ptr); 200 strcat (buffer, hex);
|
/external/skia/src/animator/ |
SkMemberInfo.cpp | 220 char hex = poundPos[4]; local 221 if (is_hex(hex) == false) {
|
/external/skia/src/utils/ |
SkParseColor.cpp | 467 uint32_t hex; local 468 const char* end = SkParse::FindHex(value + 1, &hex); 474 unsigned a = len == 4 ? nib2byte(hex >> 12) : oldAlpha; 475 unsigned r = nib2byte((hex >> 8) & 0xF); 476 unsigned g = nib2byte((hex >> 4) & 0xF); 477 unsigned b = nib2byte(hex & 0xF); 482 hex |= oldAlpha << 24; 483 *colorPtr = hex;
|
/external/stlport/src/ |
ios.cpp | 48 const ios_base::fmtflags ios_base::hex; member in class:ios_base 213 ptr = __write_integer(buffer+strlen(buffer), ios_base::hex, __STATIC_CAST(unsigned long,_M_iostate)); 215 ptr = __write_integer(buffer+strlen(buffer), ios_base::hex, __STATIC_CAST(unsigned long,_M_exception_mask));
|
/external/stlport/test/unit/ |
num_put_get_test.cpp | 725 CHECK(short, 0, hex, "0") 726 CHECK(short, 12345, hex, "3039") 728 CHECK(short, -1, hex, "ffff") 729 CHECK(short, -12345, hex, "cfc7") 732 CHECK(unsigned short, 0, hex, "0") 733 CHECK(unsigned short, 12345, hex, "3039") 735 CHECK(int, 0, hex, "0") 736 CHECK(int, 12345678, hex, "bc614e") 738 CHECK(int, -1, hex, "ffffffff") 739 CHECK(int, -12345678, hex, "ff439eb2" 1010 s << hex << 0; local [all...] |
/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/wpa_gui-qt4/ |
networkconfig.cpp | 141 "or 64 hex digit PSK"); 297 bool hex; local 305 * Assume hex key if only hex characters are present and length matches 315 hex = true; 320 hex = false; 325 if (hex && len != 10 && len != 26 && len != 32) 326 hex = false; 328 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/wpa_supplicant_6/wpa_supplicant/wpa_gui-qt4/ |
networkconfig.cpp | 195 "or 64 hex digit PSK"); 447 bool hex; local 455 * Assume hex key if only hex characters are present and length matches 465 hex = true; 470 hex = false; 475 if (hex && len != 10 && len != 26 && len != 32) 476 hex = false; 478 setNetworkParam(network_id, buf, txt, !hex);
|
/external/wpa_supplicant_8/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);
|