/external/chromium_org/third_party/icu/source/test/intltest/ |
testutil.h | 24 static UnicodeString hex(UChar32 ch); 26 static UnicodeString hex(const UnicodeString& s); 28 static UnicodeString hex(const UnicodeString& s, UChar sep); 30 static UnicodeString hex(const uint8_t* bytes, int32_t len);
|
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/icu/icu4c/source/test/intltest/ |
testutil.h | 24 static UnicodeString hex(UChar32 ch); 26 static UnicodeString hex(const UnicodeString& s); 28 static UnicodeString hex(const UnicodeString& s, UChar sep); 30 static UnicodeString hex(const uint8_t* bytes, int32_t len);
|
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...] |
/art/runtime/base/ |
hex_dump.cc | 40 (16 * 3) + /* 16 hex digits and space */ 60 char* hex = out; local 62 (16 * 3) + /* 16 hex digits and space */ 2 /* white space */; 65 *hex++ = gHexDigit[line_offset >> (kBitsPerWord - 4)]; 68 hex++; 69 hex++; 77 hex += gap * 3; 83 *hex++ = gHexDigit[*addr >> 4]; 84 *hex++ = gHexDigit[*addr & 0x0f]; 85 hex++ [all...] |
/device/asus/flo/conn_init/ |
conn_init.c | 26 char hex[7]; local 28 memset(hex, 0, 7); 45 wfc_util_atoh( macAddress, 12, (unsigned char *)hex, 6); 46 wfc_util_qcom_check_config((unsigned char *)hex);
|
/device/lge/mako/conn_init/ |
conn_init.c | 26 char hex[7]; local 28 memset(hex, 0, 7); 45 wfc_util_atoh( macAddress, 12, (unsigned char *)hex, 6); 46 wfc_util_qcom_check_config((unsigned char *)hex);
|
/external/libcxx/test/input.output/iostreams.base/std.ios.manip/basefield.manip/ |
hex.pass.cpp | 14 // ios_base& hex(ios_base& str); 26 std::ios_base& r = std::hex(ios); 28 assert(ios.flags() & std::ios::hex);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/std.ios.manip/basefield.manip/ |
hex.pass.cpp | 14 // ios_base& hex(ios_base& str); 26 std::ios_base& r = std::hex(ios); 28 assert(ios.flags() & std::ios::hex);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_future_builtins.py | 4 from future_builtins import hex, oct, map, zip, filter namespace 8 self.assertEqual(hex(0), '0x0') 9 self.assertEqual(hex(16), '0x10') 10 self.assertEqual(hex(16L), '0x10') 11 self.assertEqual(hex(-16), '-0x10') 12 self.assertEqual(hex(-16L), '-0x10') 13 self.assertRaises(TypeError, hex, {})
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_future_builtins.py | 4 from future_builtins import hex, oct, map, zip, filter namespace 8 self.assertEqual(hex(0), '0x0') 9 self.assertEqual(hex(16), '0x10') 10 self.assertEqual(hex(16L), '0x10') 11 self.assertEqual(hex(-16), '-0x10') 12 self.assertEqual(hex(-16L), '-0x10') 13 self.assertRaises(TypeError, hex, {})
|
/external/libcxx/test/input.output/iostreams.base/ios.base/fmtflags.state/ |
flags_fmtflags.pass.cpp | 33 test::fmtflags f = t.flags(test::hex | test::right); 35 assert(t.flags() == (test::hex | test::right));
|
setf_fmtflags.pass.cpp | 33 test::fmtflags f = t.setf(test::hex | test::right); 35 assert(t.flags() == (test::skipws | test::dec | test::hex | test::right));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/ios.base/fmtflags.state/ |
flags_fmtflags.pass.cpp | 33 test::fmtflags f = t.flags(test::hex | test::right); 35 assert(t.flags() == (test::hex | test::right));
|
setf_fmtflags.pass.cpp | 33 test::fmtflags f = t.setf(test::hex | test::right); 35 assert(t.flags() == (test::skipws | test::dec | test::hex | test::right));
|
/external/qemu/telephony/ |
gsm.h | 31 /** HEX 34 /* try to convert a hex string into a byte string, assumes 'dst' is properly sized, and hexlen is even. 36 extern int gsm_hex_to_bytes ( cbytes_t hex, int hexlen, bytes_t dst ); 38 /* convert a hex string into a byte string, assumes 'dst' is properly sized, and hexlen is even. 40 extern void gsm_hex_to_bytes0 ( cbytes_t hex, int hexlen, bytes_t dst ); 42 /* convert a byte string into a hex string, assumes 'hex' is properly sized */ 43 extern void gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen ); 51 /* convert a 2-char hex value into an int, returns -1 on error */ 52 extern int gsm_hex2_to_byte( const char* hex ); [all...] |
/external/chromium_org/net/spdy/ |
spdy_test_utils.cc | 32 std::string hex; local 39 hex += mark ? '*' : ' '; 40 hex += kHexChars[(*p & 0xf0) >> 4]; 41 hex += kHexChars[*p & 0x0f]; 42 hex += mark ? '*' : ' '; 44 hex += " "; 47 hex = hex + " "; 50 hex += (*p >= 0x20 && *p <= 0x7f) ? (*p) : '.'; 52 hex = hex + '\n' [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/test/ |
md5_helper.h | 44 static const char hex[16] = { local 53 res_[i * 2 + 0] = hex[tmp[i] >> 4]; 54 res_[i * 2 + 1] = hex[tmp[i] & 0xf];
|
/external/libvpx/libvpx/test/ |
md5_helper.h | 44 static const char hex[16] = { local 53 res_[i * 2 + 0] = hex[tmp[i] >> 4]; 54 res_[i * 2 + 1] = hex[tmp[i] & 0xf];
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
md5_helper.h | 44 static const char hex[16] = { local 53 res_[i * 2 + 0] = hex[tmp[i] >> 4]; 54 res_[i * 2 + 1] = hex[tmp[i] & 0xf];
|
/external/qemu/android/utils/ |
misc.h | 63 /* decodes a sequence of 'len' hexadecimal chars from 'hex' into 66 extern int hex2int( const uint8_t* hex, int len ); 68 /* encodes an integer 'val' into 'len' hexadecimal charaters into 'hex' */ 69 extern void int2hex( uint8_t* hex, int len, int val );
|
/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/ltrace/etc/ |
syscalls.conf | 21 int open(string, hex(uint), oct(uint)); 121 int openat(at_dirfd_t, string, hex(uint), oct(uint)); 124 int unlinkat(at_dirfd_t, string, hex(uint)); 126 int linkat(at_dirfd_t, string, at_dirfd_t, string, hex(uint)); 128 int faccessat(at_dirfd_t, string, oct(uint), hex(uint)); 129 int fchmodat(at_dirfd_t, string, oct(uint), hex(uint)); 130 int fchownat(at_dirfd_t, string, int, int, hex(uint)); 132 int fstatat(at_dirfd_t, string, addr, hex(uint)); 133 int utimensat(at_dirfd_t, string, addr, hex(uint)); 136 addr shmat(int, addr, hex(uint)) [all...] |
/external/chromium_org/tools/grit/grit/format/ |
c_format.py | 52 "Return the octal form of the hex numbers" 53 hex = match.group("hex") 55 while len(hex): 56 next_num = int(hex[2:4], 16) 58 hex = hex[4:] 76 r"(?P<escaped_backslashes>%s)(?P<hex>%s)"
|
/external/okhttp/okio/src/main/java/okio/ |
ByteString.java | 92 public String hex() { method in class:ByteString 102 /** Decodes the hex-encoded bytes and returns their value a byte string. */ 103 public static ByteString decodeHex(String hex) { 104 if (hex.length() % 2 != 0) throw new IllegalArgumentException("Unexpected hex string: " + hex); 106 byte[] result = new byte[hex.length() / 2]; 108 int d1 = decodeHexDigit(hex.charAt(i * 2)) << 4; 109 int d2 = decodeHexDigit(hex.charAt(i * 2 + 1)); 119 throw new IllegalArgumentException("Unexpected hex digit: " + c) [all...] |