/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | SocketChannelTest.java | 2801 ByteBuffer buffer = ByteBuffer.allocateDirect(128); 2816 buffer.limit(5); 2817 int bytesRead = workerChannel.read(buffer); 2819 assertEquals(5, buffer.position()); 2821 buffer.limit(request.length); 2822 bytesRead = workerChannel.read(buffer); 2825 buffer.flip(); 2826 assertEquals(request.length, buffer.limit()); 2828 assertEquals(ByteBuffer.wrap(request), buffer); 4186 ByteBuffer buffer [all...] |
H A D | FileChannelTest.java | 2171 ByteBuffer[] buffer) throws IOException{ 2173 channel.read(buffer, -1, 0); 2179 channel.read(buffer, 0, -1); 2185 channel.read(buffer, 0, 3); 2191 channel.read(buffer, 1, 2); 2197 channel.read(buffer, 2, 1); 2203 channel.read(buffer, 3, 0); 2383 // reads to the second buffer 2410 // writes to the second buffer 3558 // throw NonWritableChannelException first although buffer arra 2170 doTestForIOOBException(FileChannel channel, ByteBuffer[] buffer) argument [all...] |
/dalvik/hit/src/com/android/hit/ |
H A D | HprofParser.java | 465 byte[] buffer = mFieldBuffer; 474 in.readFully(buffer, 0, fieldSize); 475 staticFieldValues.write(buffer, 0, fieldSize); 600 * of bytes if it extends past the current buffer boundary. So, this
|
/dalvik/libcore/luni/src/main/java/java/io/ |
H A D | File.java | 214 ByteBuffer buffer = UTF8.encode(s); 216 int byteCount = buffer.limit() + 1; 218 buffer.get(bytes, 0, byteCount - 1);
|
H A D | ObjectStreamClass.java | 943 * Return a little endian long stored in a given position of the buffer 945 * @param buffer 951 private static long littleEndianLongAt(byte[] buffer, int position) { argument 954 result = (result << 8) + (buffer[i] & 0xff);
|
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | Signature2Test.java | 567 ByteBuffer buffer = ByteBuffer.allocate(10); 570 sig.update(buffer); 577 sig.update(buffer);
|
/dalvik/libcore/xml/src/test/java/org/apache/harmony/xml/ |
H A D | XsltXPathConformanceTestSuite.java | 606 char[] buffer = new char[1024]; 608 while ((count = reader.read(buffer)) != -1) { 609 out.write(buffer, 0, count);
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
H A D | DexData.java | 430 * Fills the buffer by reading bytes from the DEX file. 432 void readBytes(byte[] buffer) throws IOException { argument 433 mDexFile.readFully(buffer);
|
/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/ |
H A D | AbstractCharsetEncoderTestCase.java | 50 static final String unistr = " buffer";// \u8000\u8001\u00a5\u3000\r\n"; 535 // empty input buffer 576 return CharBuffer.wrap("malform buffer"); 580 return CharBuffer.wrap("unmap buffer"); 584 return CharBuffer.wrap("runtime buffer"); 770 void printByteBuffer(ByteBuffer buffer) { argument 771 System.out.println("print buffer"); 772 if (buffer.position() != 0) { 773 buffer.flip(); 775 byte[] ba = buffer [all...] |
H A D | AbstractCharsetDecoderTestCase.java | 48 static final String unistr = " buffer";// \u8000\u8001\u00a5\u3000\r\n"; 235 // empty input buffer 257 String replaceStr = decoder.replacement() + " buffer"; 265 CharBuffer buffer = decoder.decode(in); 266 assertTrue(buffer.remaining() > 0); 275 assertCharBufferValue(out, " buffer"); 299 assertCharBufferValue(out, " buffer"); 442 assertCharBufferValue(out, " buffer"); 450 assertCharBufferValue(out, decoder.replacement() + " buffer"); 471 assertCharBufferValue(out, " buffer"); [all...] |
H A D | CharsetDecoderTest.java | 225 // empty input buffer 258 CharBuffer buffer = decoder.decode(in); 259 assertTrue(buffer.remaining() > 0); 541 return " buffer"; 559 // "unmap buffer" 566 // "malform buffer"
|
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
H A D | InputStreamReaderTest.java | 91 public int read(byte[] buffer, int offset, int length) { argument 96 buffer[offset] = bytes[bytes.length - count]; 682 notes = "[No verification for empty buffer]", 699 * multibyte encodings spanned buffer boundaries.
|
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
H A D | SocketHandlerTest.java | 1031 char[] buffer = new char[32]; 1036 int length = reader.read(buffer); 1040 this.sb.append(buffer, 0, length);
|
H A D | StreamHandlerTest.java | 1287 public synchronized void write(byte[] buffer, int offset, int count) { argument
|
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
H A D | DoubleBufferTest.java | 114 ByteBuffer buffer = ByteBuffer.allocate(8); 115 buffer.putDouble(dbl); 116 double bufDoubleOut = buffer.getDouble(0); 222 // case: buffer is full 238 // case: buffer is empty 578 notes = "Doesn't verify direct buffer.",
|
H A D | FloatBufferTest.java | 110 ByteBuffer buffer = ByteBuffer.allocate(8); 111 buffer.putFloat(flt); 112 float bufFloatOut = buffer.getFloat(0); 205 // case: buffer is full 221 // case: buffer is empty 573 notes = "Doesn't verify direct buffer.",
|
/dalvik/libcore/support/src/test/java/tests/resources/ |
H A D | junit4-4.3.1.jar | META-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ... |
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
H A D | SimpleDateFormatTest.java | 57 StringBuffer buffer = new StringBuffer(); 60 format.format(cal.getTime(), buffer, position); 61 String result = buffer.toString();
|
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
H A D | JarFileTest.java | 880 byte[] buffer = new byte[1024]; 883 in.read(buffer);
|
/dalvik/libcore/xml/src/main/java/org/apache/xml/dtm/ref/ |
H A D | DTMDocumentImpl.java | 123 // text/comment table: string buffer to hold the text string values of the document, 124 // each of which is addressed by the absolute offset and length in the buffer 296 * @param buffer FastStringBuffer reference to an instance of 297 * buffer 299 void setContentBuffer(FastStringBuffer buffer) { argument 300 m_char = buffer; 306 * @return FastStringBuffer reference to an instance of buffer 412 // characters into the buffer. 863 // // W2: Start Position within buffer 2086 * buffer (share [all...] |
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
H A D | StringBuilderTest.java | 1860 StringBuilder buffer = new StringBuilder("1234567"); 1861 buffer.replace(2, 6, "XXX"); 1862 assertEquals("12XXX7",buffer.toString());
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | URLConnectionTest.java | 542 byte[] buffer = new byte[4096]; 546 numBytesRead = in.read(buffer); 555 numBytesRead = in.read(buffer);
|
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | CollectionsTest.java | 1293 StringBuffer buffer = new StringBuffer(); 1295 buffer.append(list.get(i)); 1297 return buffer.toString();
|