Home
last modified time | relevance | path

Searched refs:getChars (Results 1 – 25 of 50) sorted by relevance

12

/libcore/support/src/test/java/org/apache/harmony/testframework/
DCharSinkTester.java48 public abstract char[] getChars() throws Exception; in getChars() method in CharSinkTester
98 assertArrayEquals(expected, getChars()); in sinkTestNoWriting()
111 assertArrayEquals(expected, getChars()); in sinkTestWriteZeroChars()
123 assertArrayEquals(expected, getChars()); in sinkTestWriteCharByChar()
136 assertArrayEquals(expected, getChars()); in sinkTestWriteArray()
162 assertArrayEquals(expected, getChars()); in sinkTestWriteOffset()
176 assertArrayEquals(expected, getChars()); in sinkTestWriteLargeArray()
192 assertArrayEquals(expectedChars, getChars()); in sinkTestWriteAfterClose()
DCharWrapperTester.java90 public char[] getChars() throws Exception { in getChars() method in CharWrapperTester.WrapperSinkTester
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringBufferTest.java51 buf2.getChars(-1, 0, new char[5], 2); in test_getCharsII$CI()
58 buf2.getChars(0, -1, new char[5], 2); in test_getCharsII$CI()
65 buf2.getChars(0, -1, new char[5], 2); in test_getCharsII$CI()
72 buf2.getChars(2, 1, new char[5], 2); in test_getCharsII$CI()
79 buf2.getChars(0, 6, new char[5], 2); in test_getCharsII$CI()
86 buf2.getChars(0, 6, new char[10], 5); in test_getCharsII$CI()
DStringTest.java641 "yes".getChars(srcBegin, srcEnd, new char[256], 0); in testGetCharsOverflow()
654 "abcd".getChars(0, 1, dst, 0); in testGetCharsBoundsChecks()
656 "abcd".getChars(3, 4, dst, 0); in testGetCharsBoundsChecks()
659 "abcd".getChars(0, 4, dst, 0); in testGetCharsBoundsChecks()
663 "abcd".getChars(0, 0, new char[0], 0); // dstBegin == 0 is ok if copying zero chars in testGetCharsBoundsChecks()
664 "abcd".getChars(0, 0, new char[1], 1); // dstBegin == 1 is ok if copying zero chars in testGetCharsBoundsChecks()
665 "".getChars(0, 0, new char[0], 0); in testGetCharsBoundsChecks()
666 "abcd".getChars(1, 1, new char[1], 0); in testGetCharsBoundsChecks()
667 "abcd".getChars(1, 1, new char[1], 1); in testGetCharsBoundsChecks()
696 s.getChars(srcBegin, srcEnd, dst, dstBegin); in assertGetCharsThrowsAIOOBException()
[all …]
DOldStringTest.java116 "Hello World".getChars(-1, 1, null, 0); in test_getCharsII$CI()
123 "Hello World".getChars(6, 2, null, 0); in test_getCharsII$CI()
130 "Hello World".getChars(2, 10, new char[10], 4); in test_getCharsII$CI()
/libcore/ojluni/src/main/java/java/util/concurrent/
DHelpers.java92 s.getChars(0, len, chars, j); in toString()
107 k.getChars(0, klen, chars, 0); in mapEntryToString()
109 v.getChars(0, vlen, chars, klen + 1); in mapEntryToString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DWriterTesterTest.java87 public char[] getChars() throws Exception { in getChars() method in WriterTesterTest.FileWriterCharSinkTester
102 public char[] getChars() throws Exception { in getChars() method in WriterTesterTest.CharArrayWriterCharSinkTester
134 public char[] getChars() throws Exception { in getChars() method in WriterTesterTest.PipedWriterCharSinkTester
150 public char[] getChars() throws Exception { in getChars() method in WriterTesterTest.StringWriterCharSinkTester
209 public char[] getChars() throws Exception { in getChars() method in WriterTesterTest.OutputStreamWriterCharSinkTester
DPipedWriterTest.java78 "HelloWorld".getChars(0, 10, buf, 0); in test_ConstructorLjava_io_PipedReader()
96 "HelloWorld".getChars(0, 10, buf, 0); in test_close()
115 "HelloWorld".getChars(0, 10, buf, 0); in test_connectLjava_io_PipedReader()
134 "HelloWorld".getChars(0, 10, buf, 0); in test_flush()
179 "HelloWorld".getChars(0, 10, buf, 0); in test_write$CII()
DPrintWriterTest.java249 "Hello World".getChars(0, 11, schars, 0); in test_print$C()
402 "Hello World".getChars(0, 11, schars, 0); in test_println$C()
582 "Hello World".getChars(0, 11, schars, 0); in test_write$C()
604 "Hello World".getChars(0, 11, schars, 0); in test_write$CII()
DStringWriterTest.java86 "This is a test string".getChars(0, 21, c, 0); in test_write$CII()
DCharArrayReaderTest.java148 str.getChars(0, str.length(), data, 0); in test_reset()
DInputStreamReaderTest.java114 fileString.getChars(0, fileString.length(), buf, 0); in setUp()
436 fileString.getChars(0, 100, sbuf, 0); in test_read$CII()
/libcore/ojluni/src/main/java/java/lang/
DAbstractStringBuilder.java380 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) in getChars() method in AbstractStringBuilder
449 str.getChars(0, len, value, count); in append()
460 sb.getChars(0, len, value, count); in append()
473 asb.getChars(0, len, value, count); in append()
675 Integer.getChars(i, spaceNeeded, value); in append()
701 Long.getChars(l, spaceNeeded, value); in append()
864 str.getChars(value, start); in replace()
1038 str.getChars(value, offset); in insert()
DStringBuffer.java242 public synchronized void getChars(int srcBegin, int srcEnd, char[] dst, in getChars() method in StringBuffer
245 super.getChars(srcBegin, srcEnd, dst, dstBegin); in getChars()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBuffer2Test.java70 "char".getChars(0, 4, buf, 0); in test_append$C()
305 testBuffer.getChars(4, 8, buf, 2); in test_getCharsII$CI()
312 buf2.getChars(0, 0, new char[5], 2); in test_getCharsII$CI()
326 "char".getChars(0, 4, buf, 0); in test_insertI$C()
DStringBuilderTest.java647 sb.getChars(0, 10, dst, 0); in test_getCharsII$CI()
651 sb.getChars(0, 5, dst, 0); in test_getCharsII$CI()
653 fixture.getChars(0, 5, fixtureChars, 0); in test_getCharsII$CI()
658 sb.getChars(0, 5, dst, 5); in test_getCharsII$CI()
659 fixture.getChars(0, 5, fixtureChars, 5); in test_getCharsII$CI()
664 sb.getChars(5, 10, dst, 1); in test_getCharsII$CI()
665 fixture.getChars(5, 10, fixtureChars, 1); in test_getCharsII$CI()
669 sb.getChars(0, 10, null, 0); in test_getCharsII$CI()
676 sb.getChars(-1, 10, dst, 0); in test_getCharsII$CI()
683 sb.getChars(0, 10, dst, -1); in test_getCharsII$CI()
[all …]
/libcore/ojluni/src/main/java/java/io/
DStringReader.java100 str.getChars(next, next + n, cbuf, off); in read()
DWriter.java191 str.getChars(off, (off + len), cbuf, 0); in write()
DCharArrayWriter.java124 str.getChars(off, off + len, buf, count); in write()
DBufferedWriter.java226 s.getChars(b, b + d, cb, nextChar); in write()
/libcore/luni/src/test/java/libcore/java/io/
DOldInputStreamReaderTest.java54 fileString.getChars(0, fileString.length(), buf, 0); in setUp()
222 fileString.getChars(0, 100, sbuf, 0); in test_read$CII()
/libcore/support/src/test/java/tests/support/
DSupport_StringReader.java159 str.getChars(pos, end, buf, offset); in read()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java133 void getChars(char[] dst, int dstBegin) { in getChars() method in String
137 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { in getChars() method in String
DLong.java83 static void getChars(long i, int index, char[] buf) { in getChars() method in Long
DAbstractStringBuilder.java93 public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) { in getChars() method in AbstractStringBuilder

12