Home
last modified time | relevance | path

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

12345678910>>...37

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DBasicTest.java279 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
280 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
281 hex(c)); in TestCompositionExclusion()
283 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
284 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
285 hex(c)); in TestCompositionExclusion()
346 logln("Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b)); in TestZeroIndex()
348 errln("FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b) + in TestZeroIndex()
349 ", expect " + hex(exp)); in TestZeroIndex()
354 logln("Ok: " + hex(b) + " x DECOMP => " + hex(a)); in TestZeroIndex()
[all …]
DTestDeprecatedNormalizerAPI.java105 errln("ERROR: " + hex(ch) + " has identical decomp"); in doTestComposedChars()
108 errln("ERROR: Normalizer decomp for " + hex(ch) + " (" + hex(normDecomp) + ")" in doTestComposedChars()
109 + " != iter decomp (" + hex(iterDecomp) + ")" ); in doTestComposedChars()
121 errln("ERROR: " + hex(x) + " has decomposition (" + hex(decomp) + ")" in assertNoDecomp()
142 logln("Skipped excluded char " + hex(ch) + " (" + UCharacter.getName(ch) + ")" ); in TestRoundTrip()
150 errln("ERROR: Round trip invalid: " + hex(chStr) + " --> " + hex(decomp) in TestRoundTrip()
151 + " --> " + hex(comp)); in TestRoundTrip()
DConformanceTest.java334 +Utility.hex(s1) + " s2: " + Utility.hex(s2)); in compare()
340 +Utility.hex(s1) + " s2: " + Utility.hex(s2)); in compare()
347 +Utility.hex(s1) + " s2: " + Utility.hex(s2)); in compare()
354 errln("cross test failed s1: " + Utility.hex(s1) + " s2: " in cross()
355 +Utility.hex(s2)); in cross()
429 errln((" " + msg + ": " + op + op2 + '(' + s + ")=" + hex(got) + in assertEqual()
430 ", exp. " + hex(exp))); in assertEqual()
484 int hex = Integer.parseInt(strToHex,16); in appendInt() local
485 if (hex < 0 ) { in appendInt()
487 hex + " in " + s); in appendInt()
[all …]
DUnicodeNormalizerConformanceTest.java190 errln((" " + msg + ") " + op + "(" + s + ")=" + hex(got) + in assertEqual()
191 ", exp. " + hex(exp))); in assertEqual()
245 int hex = Integer.parseInt(strToHex,16); in appendInt() local
246 if (hex < 0 ) { in appendInt()
248 hex + " in " + s); in appendInt()
249 }else if (hex > 0xFFFF){ in appendInt()
250 buf.append((char)((hex>>10)+0xd7c0)); in appendInt()
251 buf.append((char)((hex&0x3ff)|0xdc00)); in appendInt()
253 buf.append((char) hex); in appendInt()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DBasicTest.java282 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
283 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
284 hex(c)); in TestCompositionExclusion()
286 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " + in TestCompositionExclusion()
287 hex(b) + " x COMPOSE => " + in TestCompositionExclusion()
288 hex(c)); in TestCompositionExclusion()
349 logln("Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b)); in TestZeroIndex()
351 errln("FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b) + in TestZeroIndex()
352 ", expect " + hex(exp)); in TestZeroIndex()
357 logln("Ok: " + hex(b) + " x DECOMP => " + hex(a)); in TestZeroIndex()
[all …]
DTestDeprecatedNormalizerAPI.java108 errln("ERROR: " + hex(ch) + " has identical decomp"); in doTestComposedChars()
111 errln("ERROR: Normalizer decomp for " + hex(ch) + " (" + hex(normDecomp) + ")" in doTestComposedChars()
112 + " != iter decomp (" + hex(iterDecomp) + ")" ); in doTestComposedChars()
124 errln("ERROR: " + hex(x) + " has decomposition (" + hex(decomp) + ")" in assertNoDecomp()
145 logln("Skipped excluded char " + hex(ch) + " (" + UCharacter.getName(ch) + ")" ); in TestRoundTrip()
153 errln("ERROR: Round trip invalid: " + hex(chStr) + " --> " + hex(decomp) in TestRoundTrip()
154 + " --> " + hex(comp)); in TestRoundTrip()
DConformanceTest.java337 +Utility.hex(s1) + " s2: " + Utility.hex(s2)); in compare()
343 +Utility.hex(s1) + " s2: " + Utility.hex(s2)); in compare()
350 +Utility.hex(s1) + " s2: " + Utility.hex(s2)); in compare()
357 errln("cross test failed s1: " + Utility.hex(s1) + " s2: " in cross()
358 +Utility.hex(s2)); in cross()
432 errln((" " + msg + ": " + op + op2 + '(' + s + ")=" + hex(got) + in assertEqual()
433 ", exp. " + hex(exp))); in assertEqual()
487 int hex = Integer.parseInt(strToHex,16); in appendInt() local
488 if (hex < 0 ) { in appendInt()
490 hex + " in " + s); in appendInt()
[all …]
DUnicodeNormalizerConformanceTest.java193 errln((" " + msg + ") " + op + "(" + s + ")=" + hex(got) + in assertEqual()
194 ", exp. " + hex(exp))); in assertEqual()
248 int hex = Integer.parseInt(strToHex,16); in appendInt() local
249 if (hex < 0 ) { in appendInt()
251 hex + " in " + s); in appendInt()
252 }else if (hex > 0xFFFF){ in appendInt()
253 buf.append((char)((hex>>10)+0xd7c0)); in appendInt()
254 buf.append((char)((hex&0x3ff)|0xdc00)); in appendInt()
256 buf.append((char) hex); in appendInt()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationTest.java144 + Utility.hex(orders[index]) + " vs 0x" + Utility.hex(o)); in backAndForth()
162 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
168 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
225 TestFmwk.errln("Comparing \"" + Utility.hex(source) + "\" with \"" in doTestVariant()
226 + Utility.hex(target) + "\" expected " + result in doTestVariant()
233 TestFmwk.errln("Comparing CollationKeys of \"" + Utility.hex(source) in doTestVariant()
234 + "\" with \"" + Utility.hex(target) in doTestVariant()
245 + Utility.hex(source) in doTestVariant()
246 + "\" with \"" + Utility.hex(target) in doTestVariant()
269 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.java141 + Utility.hex(orders[index]) + " vs 0x" + Utility.hex(o)); in backAndForth()
159 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
165 String hexString = "0x" + Utility.hex(o) + " "; in backAndForth()
222 TestFmwk.errln("Comparing \"" + Utility.hex(source) + "\" with \"" in doTestVariant()
223 + Utility.hex(target) + "\" expected " + result in doTestVariant()
230 TestFmwk.errln("Comparing CollationKeys of \"" + Utility.hex(source) in doTestVariant()
231 + "\" with \"" + Utility.hex(target) in doTestVariant()
242 + Utility.hex(source) in doTestVariant()
243 + "\" with \"" + Utility.hex(target) in doTestVariant()
266 errln("CE(U+fffe)=0x" + Utility.hex(ce) + " != 02.."); in TestMinMax()
[all …]
/external/python/cpython2/Lib/test/
Dtest_future_builtins.py4 from future_builtins import hex, oct, map, zip, filter
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/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/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/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/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DTestUtility.java19 public static String hex(char ch) { in hex() method in TestUtility
24 public static String hex(int ch) { in hex() method in TestUtility
29 public static String hex(String s) { in hex() method in TestUtility
30 return hex(s,","); in hex()
33 public static String hex(String s, String sep) { in hex() method in TestUtility
35 String result = hex(s.charAt(0)); in hex()
38 result += hex(s.charAt(i)); in hex()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterTest.java81 errln("FAIL \\u" + hex(i) + " expected to be a letter"); in TestLetterNumber()
85 errln("FAIL \\u" + hex(i) + " expected not to be a letter"); in TestLetterNumber()
89 errln("FAIL \\u" + hex(i) + " expected to be a digit"); in TestLetterNumber()
93 errln("FAIL \\u" + hex(i) + " expected not to be a digit"); in TestLetterNumber()
97 errln("FAIL \\u" + hex(i) + in TestLetterNumber()
154 errln("FAIL \\u" + hex(spaces[i]) + in TestSpaces()
161 errln("FAIL \\u" + hex(nonspaces[i]) + in TestSpaces()
168 errln("FAIL \\u" + hex(whitespaces[i]) + in TestSpaces()
174 errln("FAIL \\u" + hex(nonwhitespaces[i]) + in TestSpaces()
178 logln("Ok \\u" + hex(spaces[i]) + " and \\u" + in TestSpaces()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterTest.java78 errln("FAIL \\u" + hex(i) + " expected to be a letter"); in TestLetterNumber()
82 errln("FAIL \\u" + hex(i) + " expected not to be a letter"); in TestLetterNumber()
86 errln("FAIL \\u" + hex(i) + " expected to be a digit"); in TestLetterNumber()
90 errln("FAIL \\u" + hex(i) + " expected not to be a digit"); in TestLetterNumber()
94 errln("FAIL \\u" + hex(i) + in TestLetterNumber()
151 errln("FAIL \\u" + hex(spaces[i]) + in TestSpaces()
158 errln("FAIL \\u" + hex(nonspaces[i]) + in TestSpaces()
165 errln("FAIL \\u" + hex(whitespaces[i]) + in TestSpaces()
171 errln("FAIL \\u" + hex(nonwhitespaces[i]) + in TestSpaces()
175 logln("Ok \\u" + hex(spaces[i]) + " and \\u" + in TestSpaces()
[all …]
/external/python/cpython2/Lib/
Duuid.py103 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None, argument
130 if [hex, bytes, bytes_le, fields, int].count(None) != 4:
132 if hex is not None:
133 hex = hex.replace('urn:', '').replace('uuid:', '')
134 hex = hex.strip('{}').replace('-', '')
135 if len(hex) != 32:
137 int = long(hex, 16)
200 hex = '%032x' % self.int
202 hex[:8], hex[8:12], hex[12:16], hex[16:20], hex[20:])
270 hex = property(get_hex) variable in UUID
/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/skia/gm/
Dmultipicturedraw.cpp32 SkPath hex; in make_hex_path() local
33 hex.moveTo(originX-kHexSide, originY); in make_hex_path()
34 hex.rLineTo(SkScalarHalf(kHexSide), kRoot3Over2 * kHexSide); in make_hex_path()
35 hex.rLineTo(SkIntToScalar(kHexSide), 0); in make_hex_path()
36 hex.rLineTo(SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
37 hex.rLineTo(-SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
38 hex.rLineTo(-SkIntToScalar(kHexSide), 0); in make_hex_path()
39 hex.close(); in make_hex_path()
40 return hex; in make_hex_path()
49 SkPath hex = make_hex_path(0, 0); in make_hex_plane_picture() local
[all …]
/external/skqp/gm/
Dmultipicturedraw.cpp32 SkPath hex; in make_hex_path() local
33 hex.moveTo(originX-kHexSide, originY); in make_hex_path()
34 hex.rLineTo(SkScalarHalf(kHexSide), kRoot3Over2 * kHexSide); in make_hex_path()
35 hex.rLineTo(SkIntToScalar(kHexSide), 0); in make_hex_path()
36 hex.rLineTo(SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
37 hex.rLineTo(-SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
38 hex.rLineTo(-SkIntToScalar(kHexSide), 0); in make_hex_path()
39 hex.close(); in make_hex_path()
40 return hex; in make_hex_path()
49 SkPath hex = make_hex_path(0, 0); in make_hex_plane_picture() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/iterator/
DTestUCharacterIterator.java167 …errln("moveCodePointIndex(1) 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(te… in TestIterationUChar32()
177 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
183 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
194 … errln("first32PostInc failed. Expected->"+hex(UTF16.charAt(text,i))+" Got-> "+hex(c)); in TestIterationUChar32()
209 …errln("Character mismatch at position "+i+", iterator has "+hex(c)+", string has "+hex(UTF16.charA… in TestIterationUChar32()
379 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in previousNext()
425 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in TestUCharacterIteratorWrapper()
/external/python/cpython3/Lib/
Duuid.py106 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None, argument
133 if [hex, bytes, bytes_le, fields, int].count(None) != 4:
136 if hex is not None:
137 hex = hex.replace('urn:', '').replace('uuid:', '')
138 hex = hex.strip('{}').replace('-', '')
139 if len(hex) != 32:
141 int = int_(hex, 16)
227 hex = '%032x' % self.int
229 hex[:8], hex[8:12], hex[12:16], hex[16:20], hex[20:])
281 def hex(self): member in UUID
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/
DTestUCharacterIterator.java164 …errln("moveCodePointIndex(1) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(te… in TestIterationUChar32()
169 …errln("moveCodePointIndex(2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(te… in TestIterationUChar32()
174 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
180 …errln("moveCodePointIndex(-2) didn't work correctly expected "+ hex(c) +" got "+hex(UTF16.charAt(t… in TestIterationUChar32()
191 … errln("first32PostInc failed. Expected->"+hex(UTF16.charAt(text,i))+" Got-> "+hex(c)); in TestIterationUChar32()
206 …errln("Character mismatch at position "+i+", iterator has "+hex(c)+", string has "+hex(UTF16.charA… in TestIterationUChar32()
376 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in previousNext()
422 +"got c1= " + hex(c1) +" != expected c2= "+ hex(c2)); in TestUCharacterIteratorWrapper()
/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>>...37