Searched refs:bufs (Results 1 – 5 of 5) sorted by relevance
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexFile.java | 114 DexFile(ByteBuffer[] bufs, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 116 mCookie = openInMemoryDexFiles(bufs, loader, elements); in DexFile() 375 private static Object openInMemoryDexFiles(ByteBuffer[] bufs, ClassLoader loader, in openInMemoryDexFiles() argument 380 byte[][] arrays = new byte[bufs.length][]; in openInMemoryDexFiles() 381 int[] starts = new int[bufs.length]; in openInMemoryDexFiles() 382 int[] ends = new int[bufs.length]; in openInMemoryDexFiles() 383 for (int i = 0; i < bufs.length; ++i) { in openInMemoryDexFiles() 384 arrays[i] = bufs[i].isDirect() ? null : bufs[i].array(); in openInMemoryDexFiles() 385 starts[i] = bufs[i].position(); in openInMemoryDexFiles() 386 ends[i] = bufs[i].limit(); in openInMemoryDexFiles() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | IOUtil.java | 100 static long write(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd) in write() argument 103 return write(fd, bufs, 0, bufs.length, nd); in write() 106 static long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, in write() argument 120 ByteBuffer buf = bufs[i]; in write() 230 static long read(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd) in read() argument 233 return read(fd, bufs, 0, bufs.length, nd); in read() 236 static long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, in read() argument 250 ByteBuffer buf = bufs[i]; in read()
|
D | AsynchronousSocketChannelImpl.java | 313 ByteBuffer[] bufs = Util.subsequence(dsts, offset, length); in read() local 314 for (int i=0; i<bufs.length; i++) { in read() 315 if (bufs[i].isReadOnly()) in read() 318 read(true, null, bufs, timeout, unit, attachment, handler); in read()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerOutputStream.java | 383 byte[][] bufs = new byte[streams.length][]; in putOrderedSet() 385 bufs[i] = streams[i].toByteArray(); in putOrderedSet() 387 Arrays.<byte[]>sort(bufs, order); in putOrderedSet() 391 bytes.write(bufs[i]); in putOrderedSet()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelTest.java | 466 ByteBuffer[] bufs = { ByteBuffer.allocate(8) }; in test_size() local 467 assertEquals(8, specialFile.read(bufs, 0, 1)); in test_size()
|