Home
last modified time | relevance | path

Searched refs:canEncode (Results 1 – 16 of 16) 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.java50 if (cs.canEncode()) { in test_allAvailableCharsets()
516 assertTrue(c.canEncode()); in testCanEncode()
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharsetEncoder.java142 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
DCharset.java120 public boolean canEncode() { in canEncode() method in Charset
/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetEncoder.java919 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()
DCharset.java822 public boolean canEncode() {
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharset_AbstractTest.java89 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()
DStandardCharsetsEncoderTest.java171 stringBuilder.append(Boolean.toString(encoder.canEncode(utf16))); in createCodePointInfo()