/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 | 50 if (cs.canEncode()) { in test_allAvailableCharsets() 516 assertTrue(c.canEncode()); in testCanEncode()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | CharsetEncoder.java | 142 private boolean canEncode(java.nio.CharBuffer cb) { in canEncode() method in CharsetEncoder 146 public boolean canEncode(char c) { in canEncode() method in CharsetEncoder 150 public boolean canEncode(java.lang.CharSequence cs) { in canEncode() method in CharsetEncoder
|
D | Charset.java | 120 public boolean canEncode() { in canEncode() method in Charset
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 919 private boolean canEncode(CharBuffer cb) { in canEncode() method in CharsetEncoder 974 public boolean canEncode(char c) { in canEncode() method in CharsetEncoder 978 return canEncode(cb); in canEncode() 1006 public boolean canEncode(CharSequence cs) { in canEncode() method in CharsetEncoder 1014 return canEncode(cb); in canEncode()
|
D | Charset.java | 822 public boolean canEncode() {
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharset_AbstractTest.java | 89 while (!encoder.canEncode((char) code)) code ++; in test_dumpEncodableChars() 96 while (!encoder.canEncode((char) code)) code ++; in test_dumpEncodableChars() 157 if (encoder.canEncode((char) code)) { in NNtest_CodecDynamicIndividuals() 191 if (encoder.canEncode(new String(codeChars))) { in test_CodecDynamic()
|
D | StandardCharsetsEncoderTest.java | 171 stringBuilder.append(Boolean.toString(encoder.canEncode(utf16))); in createCodePointInfo()
|