Home
last modified time | relevance | path

Searched refs:setLength (Results 1 – 25 of 41) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBuilderTest.java100 sb.setLength(0); in test_appendZ()
112 sb.setLength(0); in test_appendC()
124 sb.setLength(0); in test_append$C()
142 sb.setLength(0); in test_append$CII()
146 sb.setLength(0); in test_append$CII()
150 sb.setLength(0); in test_append$CII()
154 sb.setLength(0); in test_append$CII()
194 sb.setLength(0); in test_appendLjava_lang_CharSequence()
197 sb.setLength(0); in test_appendLjava_lang_CharSequence()
210 sb.setLength(0); in test_appendLjava_lang_CharSequenceII()
[all …]
DStringBufferTest.java35 buffer.setLength(-1); in test_setLengthI()
42 buffer.setLength(1); in test_setLengthI()
48 buffer.setLength(3); in test_setLengthI()
53 buffer.setLength(2); in test_setLengthI()
63 buffer.setLength(2); in test_setLengthI()
64 buffer.setLength(5); in test_setLengthI()
72 buffer.setLength(7); in test_setLengthI()
85 buffer.setLength(7); in test_setLengthI()
100 buffer.setLength(1000); in test_toString()
106 buffer.setLength(5); in test_toString()
[all …]
DStringBuffer2Test.java567 testBuffer.setLength(1000); in test_setLengthI()
571 testBuffer.setLength(2); in test_setLengthI()
/libcore/luni/src/test/java/libcore/java/io/
DRandomAccessFileTest.java57 raf.setLength(Long.MAX_VALUE); in testSetLengthTooLarge()
66 raf.setLength(0); in testSetLength64()
69 raf.setLength(moreThanFourGig); in testSetLength64()
DOldRandomAccessFileTest.java1013 raf.setLength(truncLength); in test_setLengthJ()
1029 raf.setLength(testLength + 2); in test_setLengthJ()
1037 raf.setLength(-1); in test_setLengthJ()
1045 raf.setLength(truncLength); in test_setLengthJ()
/libcore/luni/src/test/java/libcore/java/net/
DOldAndroidDatagramTest.java58 packet.setLength(buffer.length); in run()
112 packet.setLength(bytes.length); in stringToPacket()
149 packet.setLength(buffer.length); in testDatagram()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DChoiceFormatTest.java257 buf.setLength(0); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
260 buf.setLength(0); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
263 buf.setLength(0); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
266 buf.setLength(0); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
288 buf.setLength(0); in test_formatJLjava_lang_StringBufferLjava_text_FieldPosition()
291 buf.setLength(0); in test_formatJLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DStackTest.java175 public void setLength(int elementCount) { in setLength() method in StackTest.BugStack
189 testStack.setLength(20); in test_pop_modify_elementCount()
/libcore/luni/src/test/java/libcore/java/util/function/
DConsumerTest.java33 sb.setLength(0); in testAndThen()
DBiConsumerTest.java33 sb.setLength(0); in testAndThen()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DGuardedObjectTest.java61 objBuffer.setLength(0); in testGuard()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DAclEntry.java400 sb.setLength(sb.length()-1); // drop final slash in toString()
409 sb.setLength(sb.length()-1); // drop final slash in toString()
/libcore/ojluni/src/main/java/java/text/
DPatternEntry.java210 newChars.setLength(0); in next()
211 newExtension.setLength(0); in next()
DChoiceFormat.java224 segments[0].setLength(0); in applyPattern()
235 segments[1].setLength(0); in applyPattern()
DCalendarBuilder.java158 sb.setLength(lastIndex); in toString()
DMergeCollation.java280 excess.setLength(0); in fixEntry()
/libcore/ojluni/src/main/java/java/util/
DStringJoiner.java170 value.setLength(initialLength); in toString()
/libcore/ojluni/src/main/java/sun/util/calendar/
DEra.java153 sb.setLength(sb.length() - 1); // remove 'Z' in toString()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java60 raf.setLength(size); in newBuffer()
/libcore/ojluni/src/main/java/java/net/
DDatagramPacket.java401 public synchronized void setLength(int length) { in setLength() method in DatagramPacket
/libcore/ojluni/src/main/java/java/lang/
DStringBuffer.java190 public synchronized void setLength(int newLength) { in setLength() method in StringBuffer
192 super.setLength(newLength); in setLength()
/libcore/luni/src/main/java/libcore/io/
DStreams.java232 result.setLength(length - 1); in readAsciiLine()
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
DDriver.java387 rawName.setLength(0); in parseSubTree()
417 rawName.setLength(0); in parseSubTree()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DAbstractStringBuilder.java69 public void setLength(int newLength) { in setLength() method in AbstractStringBuilder
/libcore/ojluni/annotations/hiddenapi/java/io/
DRandomAccessFile.java112 public void setLength(long newLength) throws java.io.IOException { in setLength() method in RandomAccessFile

12