Home
last modified time | relevance | path

Searched refs:canEncode (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DUTFCharsetEncoderTest.java49 assertTrue(encoder.canEncode('\u0077')); in testCanEncodechar()
50 assertTrue(encoder.canEncode('\uc2a3')); in testCanEncodechar()
53 assertTrue(encoder.canEncode('\uc2c0')); in testCanEncodechar()
58 assertTrue(encoder.canEncode("\u0077")); in testCanEncodeCharSequence()
59 assertTrue(encoder.canEncode("\uc2a3")); in testCanEncodeCharSequence()
62 assertTrue(encoder.canEncode("\uc2c0")); in testCanEncodeCharSequence()
68 assertTrue(encoder.canEncode("\ud800\udc00")); in testCanEncodeCharSequence()
70 assertFalse(encoder.canEncode("\ud800\udb00")); in testCanEncodeCharSequence()
DUTF16BECharsetEncoderTest.java59 assertTrue(encoder.canEncode('\u0077')); in testCanEncodechar()
60 assertTrue(encoder.canEncode('\uc2a3')); in testCanEncodechar()
63 assertTrue(encoder.canEncode('\uc2c0')); in testCanEncodechar()
69 assertTrue(encoder.canEncode("\u0077")); in testCanEncodeCharSequence()
70 assertTrue(encoder.canEncode("\uc2a3")); in testCanEncodeCharSequence()
73 assertTrue(encoder.canEncode("\uc2c0")); in testCanEncodeCharSequence()
79 assertTrue(encoder.canEncode("\ud800\udc00")); in testCanEncodeCharSequence()
81 assertFalse(encoder.canEncode("\ud800\udb00")); in testCanEncodeCharSequence()
DUTF16LECharsetEncoderTest.java60 assertTrue(encoder.canEncode('\u0077')); in testCanEncodechar()
61 assertTrue(encoder.canEncode('\uc2a3')); in testCanEncodechar()
64 assertTrue(encoder.canEncode('\uc2c0')); in testCanEncodechar()
69 assertTrue(encoder.canEncode("\u0077")); in testCanEncodeCharSequence()
70 assertTrue(encoder.canEncode("\uc2a3")); in testCanEncodeCharSequence()
73 assertTrue(encoder.canEncode("\uc2c0")); in testCanEncodeCharSequence()
79 assertTrue(encoder.canEncode("\ud800\udc00")); in testCanEncodeCharSequence()
81 assertFalse(encoder.canEncode("\ud800\udb00")); in testCanEncodeCharSequence()
DUTF16CharsetEncoderTest.java63 assertTrue(encoder.canEncode('\u0077')); in testCanEncodechar()
64 assertTrue(encoder.canEncode('\uc2a3')); in testCanEncodechar()
67 assertTrue(encoder.canEncode('\uc2c0')); in testCanEncodechar()
72 assertTrue(encoder.canEncode("\u0077")); in testCanEncodeCharSequence()
73 assertTrue(encoder.canEncode("\uc2a3")); in testCanEncodeCharSequence()
76 assertTrue(encoder.canEncode("\uc2c0")); in testCanEncodeCharSequence()
82 assertTrue(encoder.canEncode("\ud800\udc00")); in testCanEncodeCharSequence()
84 assertFalse(encoder.canEncode("\ud800\udb00")); in testCanEncodeCharSequence()
DGBCharsetEncoderTest.java49 assertTrue(encoder.canEncode('\u0077')); in testCanEncodechar()
50 assertTrue(encoder.canEncode('\uc2a3')); in testCanEncodechar()
53 assertTrue(encoder.canEncode('\uc2c0')); in testCanEncodechar()
63 assertTrue(encoder.canEncode("\ud800\udc00")); in testCanEncodeCharSequence()
65 assertFalse(encoder.canEncode("\ud800\udb00")); in testCanEncodeCharSequence()
DISOCharsetEncoderTest.java52 assertTrue(encoder.canEncode("\u0077")); in testCanEncodeCharSequence()
53 assertFalse(encoder.canEncode("\uc2a3")); in testCanEncodeCharSequence()
54 assertFalse(encoder.canEncode("\ud800\udc00")); in testCanEncodeCharSequence()
58 assertTrue(encoder.canEncode('\u0077')); in testCanEncodechar()
59 assertFalse(encoder.canEncode('\uc2a3')); in testCanEncodechar()
DAbstractCharsetTestCase.java38 protected final boolean canEncode; field in AbstractCharsetTestCase
68 String[] aliases, boolean canEncode, boolean isRegistered) { in AbstractCharsetTestCase() argument
71 this.canEncode = canEncode; in AbstractCharsetTestCase()
80 assertEquals(this.canEncode, this.testingCharset.canEncode()); in testCanEncode()
DCharsetEncoderTest.java250 assertTrue(encoder.canEncode('\uc2c0')); in testCanEncodechar()
254 assertTrue(encoder.canEncode('\ud800')); in testCanEncodechar()
256 assertTrue(encoder.canEncode('\udc00')); in testCanEncodechar()
269 encoder.canEncode('\ud901'); in testResetIllegalState()
271 encoder.canEncode("\ud901\udc00"); in testResetIllegalState()
339 encoder.canEncode("\ud902\udc00"); in testEncodeFacadeIllegalState()
343 encoder.canEncode('\ud902'); in testEncodeFacadeIllegalState()
411 encoder.canEncode("\ud906\udc00"); in testEncodeTrueIllegalState()
416 encoder.canEncode('\ud905'); in testEncodeTrueIllegalState()
469 encoder.canEncode("\ud906\udc00"); in testEncodeFalseIllegalState()
[all …]
DASCIICharsetEncoderTest.java51 assertTrue(encoder.canEncode("\u0077")); in testCanEncodeCharSequence()
52 assertFalse(encoder.canEncode("\uc2a3")); in testCanEncodeCharSequence()
53 assertFalse(encoder.canEncode("\ud800\udc00")); in testCanEncodeCharSequence()
55 encoder.canEncode(null); in testCanEncodeCharSequence()
58 assertTrue(encoder.canEncode("")); in testCanEncodeCharSequence()
62 assertFalse(encoder.canEncode('\ud800')); in testCanEncodeSurrogate()
63 assertFalse(encoder.canEncode("\udc00")); in testCanEncodeSurrogate()
67 assertTrue(encoder.canEncode('\u0077')); in testCanEncodechar()
68 assertFalse(encoder.canEncode('\uc2a3')); in testCanEncodechar()
DCharsetTest.java56 if (cs.canEncode()) { in test_allAvailableCharsets()
553 assertTrue(c.canEncode()); in testCanEncode()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharset_AbstractTest.java84 while (!encoder.canEncode((char) code)) code ++; in test_dumpEncodableChars()
91 while (!encoder.canEncode((char) code)) code ++; in test_dumpEncodableChars()
152 if (encoder.canEncode((char) code)) { in NNtest_CodecDynamicIndividuals()
186 if (encoder.canEncode((char) code)) { in test_CodecDynamic()
DOldCharset_MultiByte_EUC_JP.java39 if (encoder.canEncode(codePoint)) { in test_CodecDynamic()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetEncoder.java168 public boolean canEncode(char c) { in canEncode() method in CharsetEncoder
169 return canEncode(CharBuffer.wrap(new char[] { c })); in canEncode()
182 public boolean canEncode(CharSequence sequence) { in canEncode() method in CharsetEncoder
DCharset.java424 public boolean canEncode() { in canEncode() method in Charset