/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | UTFCharsetEncoderTest.java | 49 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()
|
D | UTF16BECharsetEncoderTest.java | 59 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()
|
D | UTF16LECharsetEncoderTest.java | 60 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()
|
D | UTF16CharsetEncoderTest.java | 63 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()
|
D | GBCharsetEncoderTest.java | 49 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()
|
D | ISOCharsetEncoderTest.java | 52 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()
|
D | AbstractCharsetTestCase.java | 38 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()
|
D | CharsetEncoderTest.java | 250 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 …]
|
D | ASCIICharsetEncoderTest.java | 51 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()
|
D | CharsetTest.java | 56 if (cs.canEncode()) { in test_allAvailableCharsets() 553 assertTrue(c.canEncode()); in testCanEncode()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharset_AbstractTest.java | 84 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()
|
D | OldCharset_MultiByte_EUC_JP.java | 39 if (encoder.canEncode(codePoint)) { in test_CodecDynamic()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 168 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
|
D | Charset.java | 424 public boolean canEncode() { in canEncode() method in Charset
|