Home
last modified time | relevance | path

Searched refs:hex (Results 1 – 25 of 681) sorted by relevance

12345678910>>...28

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DBasicTest.java276 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
277 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
278 hex(c)); in TestCompositionExclusion()
280 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
281 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
282 hex(c)); in TestCompositionExclusion()
343 logln("Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b)); in TestZeroIndex()
345 errln("FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b) + in TestZeroIndex()
346 ", expect " + hex(exp)); in TestZeroIndex()
351 logln("Ok: " + hex(b) + " x DECOMP => " + hex(a)); in TestZeroIndex()
[all …]
DTestDeprecatedNormalizerAPI.java102 errln("ERROR: " + hex(ch) + " has identical decomp"); in doTestComposedChars()
105 errln("ERROR: Normalizer decomp for " + hex(ch) + " (" + hex(normDecomp) + ")" in doTestComposedChars()
106 + " != iter decomp (" + hex(iterDecomp) + ")" ); in doTestComposedChars()
118 errln("ERROR: " + hex(x) + " has decomposition (" + hex(decomp) + ")" in assertNoDecomp()
139 logln("Skipped excluded char " + hex(ch) + " (" + UCharacter.getName(ch) + ")" ); in TestRoundTrip()
147 errln("ERROR: Round trip invalid: " + hex(chStr) + " --> " + hex(decomp) in TestRoundTrip()
148 + " --> " + hex(comp)); in TestRoundTrip()
DUnicodeNormalizerConformanceTest.java187 errln((" " + msg + ") " + op + "(" + s + ")=" + hex(got) + in assertEqual()
188 ", exp. " + hex(exp))); in assertEqual()
242 int hex = Integer.parseInt(strToHex,16); in appendInt() local
243 if (hex < 0 ) { in appendInt()
245 hex + " in " + s); in appendInt()
246 }else if (hex > 0xFFFF){ in appendInt()
247 buf.append((char)((hex>>10)+0xd7c0)); in appendInt()
248 buf.append((char)((hex&0x3ff)|0xdc00)); in appendInt()
250 buf.append((char) hex); in appendInt()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DBasicTest.java277 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
278 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
279 hex(c)); in TestCompositionExclusion()
281 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
282 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
283 hex(c)); in TestCompositionExclusion()
344 logln("Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b)); in TestZeroIndex()
346 errln("FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b) + in TestZeroIndex()
347 ", expect " + hex(exp)); in TestZeroIndex()
352 logln("Ok: " + hex(b) + " x DECOMP => " + hex(a)); in TestZeroIndex()
[all …]
DTestDeprecatedNormalizerAPI.java103 errln("ERROR: " + hex(ch) + " has identical decomp"); in doTestComposedChars()
106 errln("ERROR: Normalizer decomp for " + hex(ch) + " (" + hex(normDecomp) + ")" in doTestComposedChars()
107 + " != iter decomp (" + hex(iterDecomp) + ")" ); in doTestComposedChars()
119 errln("ERROR: " + hex(x) + " has decomposition (" + hex(decomp) + ")" in assertNoDecomp()
140 logln("Skipped excluded char " + hex(ch) + " (" + UCharacter.getName(ch) + ")" ); in TestRoundTrip()
148 errln("ERROR: Round trip invalid: " + hex(chStr) + " --> " + hex(decomp) in TestRoundTrip()
149 + " --> " + hex(comp)); in TestRoundTrip()
DUnicodeNormalizerConformanceTest.java188 errln((" " + msg + ") " + op + "(" + s + ")=" + hex(got) + in assertEqual()
189 ", exp. " + hex(exp))); in assertEqual()
243 int hex = Integer.parseInt(strToHex,16); in appendInt() local
244 if (hex < 0 ) { in appendInt()
246 hex + " in " + s); in appendInt()
247 }else if (hex > 0xFFFF){ in appendInt()
248 buf.append((char)((hex>>10)+0xd7c0)); in appendInt()
249 buf.append((char)((hex&0x3ff)|0xdc00)); in appendInt()
251 buf.append((char) hex); in appendInt()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationTest.java139 + Utility.hex(orders[index]) + " vs 0x" + Utility.hex(o)); in backAndForth()
157 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
163 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
220 TestFmwk.errln("Comparing \"" + Utility.hex(source) + "\" with \"" in doTestVariant()
221 + Utility.hex(target) + "\" expected " + result in doTestVariant()
228 TestFmwk.errln("Comparing CollationKeys of \"" + Utility.hex(source) in doTestVariant()
229 + "\" with \"" + Utility.hex(target) in doTestVariant()
240 + Utility.hex(source) in doTestVariant()
241 + "\" with \"" + Utility.hex(target) in doTestVariant()
264 errln("CE(U+fffe)=0x" + Utility.hex(ce) + " != 02.."); in TestMinMax()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationTest.java138 + Utility.hex(orders[index]) + " vs 0x" + Utility.hex(o)); in backAndForth()
156 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
162 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
219 TestFmwk.errln("Comparing \"" + Utility.hex(source) + "\" with \"" in doTestVariant()
220 + Utility.hex(target) + "\" expected " + result in doTestVariant()
227 TestFmwk.errln("Comparing CollationKeys of \"" + Utility.hex(source) in doTestVariant()
228 + "\" with \"" + Utility.hex(target) in doTestVariant()
239 + Utility.hex(source) in doTestVariant()
240 + "\" with \"" + Utility.hex(target) in doTestVariant()
263 errln("CE(U+fffe)=0x" + Utility.hex(ce) + " != 02.."); in TestMinMax()
[all …]
/external/dtc/tests/
Dbase01.dts17 d10 = < 10>; // hex: 0xa
18 d23 = < 23>; // hex: 0x17
19 b101 = < 0x5>; // hex: 0x5
20 o17 = < 017>; // hex: 0xf
21 hd00d = < 0xd00d>; // hex: 0xd00d
23 // hex: 0x4d2 0x163e 0x2334 0xd80
/external/libbrillo/brillo/
Ddata_encoding.cc17 inline int HexToDec(int hex) { in HexToDec() argument
19 if (hex >= '0' && hex <= '9') { in HexToDec()
20 dec = hex - '0'; in HexToDec()
21 } else if (hex >= 'A' && hex <= 'F') { in HexToDec()
22 dec = hex - 'A' + 10; in HexToDec()
23 } else if (hex >= 'a' && hex <= 'f') { in HexToDec()
24 dec = hex - 'a' + 10; in HexToDec()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterCaseTest.java63 hex(CHARACTER_LOWER_[i])); in TestCharacter()
70 hex(CHARACTER_UPPER_[i])); in TestCharacter()
80 hex(CHARACTER_UPPER_[i]) + in TestCharacter()
81 " to \\u" + hex(CHARACTER_LOWER_[i])); in TestCharacter()
87 hex(CHARACTER_LOWER_[i])); in TestCharacter()
95 hex(CHARACTER_UPPER_[i])); in TestCharacter()
98 logln("Ok \\u" + hex(CHARACTER_UPPER_[i]) + " and \\u" + in TestCharacter()
99 hex(CHARACTER_LOWER_[i])); in TestCharacter()
110 errln("FAIL: foldCase(\\u" + hex(FOLDING_SIMPLE_[i]) + in TestFolding()
111 ", true) should be \\u" + hex(FOLDING_SIMPLE_[i + 1])); in TestFolding()
[all …]
DUCharacterTest.java75 errln("FAIL \\u" + hex(i) + " expected to be a letter"); in TestLetterNumber()
79 errln("FAIL \\u" + hex(i) + " expected not to be a letter"); in TestLetterNumber()
83 errln("FAIL \\u" + hex(i) + " expected to be a digit"); in TestLetterNumber()
87 errln("FAIL \\u" + hex(i) + " expected not to be a digit"); in TestLetterNumber()
91 errln("FAIL \\u" + hex(i) + in TestLetterNumber()
148 errln("FAIL \\u" + hex(spaces[i]) + in TestSpaces()
155 errln("FAIL \\u" + hex(nonspaces[i]) + in TestSpaces()
162 errln("FAIL \\u" + hex(whitespaces[i]) + in TestSpaces()
168 errln("FAIL \\u" + hex(nonwhitespaces[i]) + in TestSpaces()
172 logln("Ok \\u" + hex(spaces[i]) + " and \\u" + in TestSpaces()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterCaseTest.java64 hex(CHARACTER_LOWER_[i])); in TestCharacter()
71 hex(CHARACTER_UPPER_[i])); in TestCharacter()
81 hex(CHARACTER_UPPER_[i]) + in TestCharacter()
82 " to \\u" + hex(CHARACTER_LOWER_[i])); in TestCharacter()
88 hex(CHARACTER_LOWER_[i])); in TestCharacter()
96 hex(CHARACTER_UPPER_[i])); in TestCharacter()
99 logln("Ok \\u" + hex(CHARACTER_UPPER_[i]) + " and \\u" + in TestCharacter()
100 hex(CHARACTER_LOWER_[i])); in TestCharacter()
111 errln("FAIL: foldCase(\\u" + hex(FOLDING_SIMPLE_[i]) + in TestFolding()
112 ", true) should be \\u" + hex(FOLDING_SIMPLE_[i + 1])); in TestFolding()
[all …]
DUCharacterTest.java76 errln("FAIL \\u" + hex(i) + " expected to be a letter"); in TestLetterNumber()
80 errln("FAIL \\u" + hex(i) + " expected not to be a letter"); in TestLetterNumber()
84 errln("FAIL \\u" + hex(i) + " expected to be a digit"); in TestLetterNumber()
88 errln("FAIL \\u" + hex(i) + " expected not to be a digit"); in TestLetterNumber()
92 errln("FAIL \\u" + hex(i) + in TestLetterNumber()
149 errln("FAIL \\u" + hex(spaces[i]) + in TestSpaces()
156 errln("FAIL \\u" + hex(nonspaces[i]) + in TestSpaces()
163 errln("FAIL \\u" + hex(whitespaces[i]) + in TestSpaces()
169 errln("FAIL \\u" + hex(nonwhitespaces[i]) + in TestSpaces()
173 logln("Ok \\u" + hex(spaces[i]) + " and \\u" + in TestSpaces()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DTestUtility.java17 public static String hex(char ch) { in hex() method in TestUtility
22 public static String hex(int ch) { in hex() method in TestUtility
27 public static String hex(String s) { in hex() method in TestUtility
28 return hex(s,","); in hex()
31 public static String hex(String s, String sep) { in hex() method in TestUtility
33 String result = hex(s.charAt(0)); in hex()
36 result += hex(s.charAt(i)); in hex()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DTestUtility.java16 public static String hex(char ch) { in hex() method in TestUtility
21 public static String hex(int ch) { in hex() method in TestUtility
26 public static String hex(String s) { in hex() method in TestUtility
27 return hex(s,","); in hex()
30 public static String hex(String s, String sep) { in hex() method in TestUtility
32 String result = hex(s.charAt(0)); in hex()
35 result += hex(s.charAt(i)); in hex()
/external/libmojo/mojo/edk/js/test/
Dhexdump.js7 var hex = value.toString(16);
8 while (hex.length < length)
9 hex = "0" + hex;
10 return hex;
/external/libxml2/result/schemas/
Dhexbinary_0_1.err1 ./test/schemas/hexbinary_1.xml:6: element hex: Schemas validity error : Element 'hex': '0' is not a…
2 ./test/schemas/hexbinary_1.xml:7: element hex: Schemas validity error : Element 'hex': '0123456789A…
3 ./test/schemas/hexbinary_1.xml:8: element hex: Schemas validity error : Element 'hex': '+abcdef0123…
4 ./test/schemas/hexbinary_1.xml:9: element hex: Schemas validity error : Element 'hex': '-0123456789…
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/
DTestUCharacterIterator.java161 …errln("moveCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(te… in TestIterationUChar32()
166 …errln("moveCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(te… in TestIterationUChar32()
171 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
177 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
188 … errln("first32PostInc failed. Expected->"+hex(UTF16.charAt(text,i))+" Got-> "+hex(c)); in TestIterationUChar32()
203 …errln("Character mismatch at position "+i+", iterator has "+hex(c)+", string has "+hex(UTF16.charA… in TestIterationUChar32()
373 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in previousNext()
419 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in TestUCharacterIteratorWrapper()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/iterator/
DTestUCharacterIterator.java162 …errln("moveCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(te… in TestIterationUChar32()
167 …errln("moveCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(te… in TestIterationUChar32()
172 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
178 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
189 … errln("first32PostInc failed. Expected->"+hex(UTF16.charAt(text,i))+" Got-> "+hex(c)); in TestIterationUChar32()
204 …errln("Character mismatch at position "+i+", iterator has "+hex(c)+", string has "+hex(UTF16.charA… in TestIterationUChar32()
374 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in previousNext()
420 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in TestUCharacterIteratorWrapper()
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/
Dipv6.py36 hex = address.encode('hex_codec')
39 l = len(hex)
41 chunk = hex[i : i + 4]
84 hex = prefix + dns.ipv4.inet_ntoa(address[12:])
86 hex = ':'.join(chunks[:best_start]) + '::' + \
89 hex = ':'.join(chunks)
90 return hex
/external/skia/gm/
Dmultipicturedraw.cpp31 SkPath hex; in make_hex_path() local
32 hex.moveTo(originX-kHexSide, originY); in make_hex_path()
33 hex.rLineTo(SkScalarHalf(kHexSide), kRoot3Over2 * kHexSide); in make_hex_path()
34 hex.rLineTo(SkIntToScalar(kHexSide), 0); in make_hex_path()
35 hex.rLineTo(SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
36 hex.rLineTo(-SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
37 hex.rLineTo(-SkIntToScalar(kHexSide), 0); in make_hex_path()
38 hex.close(); in make_hex_path()
39 return hex; in make_hex_path()
48 SkPath hex = make_hex_path(0, 0); in make_hex_plane_picture() local
[all …]
/external/tcpdump/
Dprint-esp.c198 static u_int hexdigit(netdissect_options *ndo, char hex) in hexdigit() argument
200 if (hex >= '0' && hex <= '9') in hexdigit()
201 return (hex - '0'); in hexdigit()
202 else if (hex >= 'A' && hex <= 'F') in hexdigit()
203 return (hex - 'A' + 10); in hexdigit()
204 else if (hex >= 'a' && hex <= 'f') in hexdigit()
205 return (hex - 'a' + 10); in hexdigit()
207 (*ndo->ndo_error)(ndo, "invalid hex digit %c in espsecret\n", hex); in hexdigit()
226 char *hex) in espprint_decode_hex() argument
231 len = strlen(hex) / 2; in espprint_decode_hex()
[all …]
Daddrtoname.c317 static const char hex[] = "0123456789abcdef"; variable
499 *cp++ = hex[*ep >> 4 ]; in etheraddr_string()
500 *cp++ = hex[*ep++ & 0xf]; in etheraddr_string()
503 *cp++ = hex[*ep >> 4 ]; in etheraddr_string()
504 *cp++ = hex[*ep++ & 0xf]; in etheraddr_string()
531 *cp++ = hex[*(ep + i - 1) >> 4]; in le64addr_string()
532 *cp++ = hex[*(ep + i - 1) & 0xf]; in le64addr_string()
567 *cp++ = hex[*ep >> 4]; in linkaddr_string()
568 *cp++ = hex[*ep++ & 0xf]; in linkaddr_string()
571 *cp++ = hex[*ep >> 4]; in linkaddr_string()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DUtf8Test.java189 private void assertEncoded(String hex, int... codePoints) throws Exception { in assertEncoded() argument
190 assertCodePointEncoded(hex, codePoints); in assertEncoded()
191 assertCodePointDecoded(hex, codePoints); in assertEncoded()
192 assertStringEncoded(hex, new String(codePoints, 0, codePoints.length)); in assertEncoded()
195 private void assertCodePointEncoded(String hex, int... codePoints) throws Exception { in assertCodePointEncoded() argument
200 assertEquals(buffer.readByteString(), ByteString.decodeHex(hex)); in assertCodePointEncoded()
203 private void assertCodePointDecoded(String hex, int... codePoints) throws Exception { in assertCodePointDecoded() argument
204 Buffer buffer = new Buffer().write(ByteString.decodeHex(hex)); in assertCodePointDecoded()
211 private void assertStringEncoded(String hex, String string) throws Exception { in assertStringEncoded() argument
212 ByteString expectedUtf8 = ByteString.decodeHex(hex); in assertStringEncoded()

12345678910>>...28