/libcore/luni/src/main/java/libcore/io/ |
D | NioBufferIterator.java | 57 public void skip(int byteCount) { in skip() argument 58 position += byteCount; in skip() 66 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument 67 checkDstBounds(dstOffset, dst.length, byteCount); in readByteArray() 69 checkReadBounds(position, length, byteCount); in readByteArray() 70 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); in readByteArray() 71 position += byteCount; in readByteArray() 93 final int byteCount = Integer.BYTES * intCount; in readIntArray() local 94 checkReadBounds(position, length, byteCount); in readIntArray() 96 position += byteCount; in readIntArray() [all …]
|
D | IoTracker.java | 31 public void trackIo(int byteCount) { in trackIo() argument 33 totalByteCount += byteCount; in trackIo() 40 public void trackIo(int byteCount, Mode mode) { in trackIo() argument 45 trackIo(byteCount); in trackIo()
|
D | Streams.java | 79 …public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOExcep… in readFully() argument 80 if (byteCount == 0) { in readFully() 89 ArrayUtils.throwsIfOutOfBounds(dst.length, offset, byteCount); in readFully() 90 while (byteCount > 0) { in readFully() 91 int bytesRead = in.read(dst, offset, byteCount); in readFully() 96 byteCount -= bytesRead; in readFully() 165 public static long skipByReading(InputStream in, long byteCount) throws IOException { in skipByReading() argument 173 while (skipped < byteCount) { in skipByReading() 174 int toRead = (int) Math.min(byteCount - skipped, buffer.length); in skipByReading()
|
D | Linux.java | 126 public native void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; in mincore() argument 129 public native void mlock(long address, long byteCount) throws ErrnoException; in mlock() argument 130 …public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long… in mmap() argument 131 public native void msync(long address, long byteCount, int flags) throws ErrnoException; in msync() argument 132 public native void munlock(long address, long byteCount) throws ErrnoException; in munlock() argument 133 public native void munmap(long address, long byteCount) throws ErrnoException; in munmap() argument 152 …public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thro… in pread() argument 154 return preadBytes(fd, bytes, byteOffset, byteCount, offset); in pread() 156 …private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, l… in preadBytes() argument 170 …public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thr… in pwrite() argument [all …]
|
D | ForwardingOs.java | 155 …blic void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(… in mincore() argument 160 …public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCoun… in mlock() argument 161 …g address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoExcept… in mmap() argument 162 …public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(addres… in msync() argument 163 …public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byte… in munlock() argument 164 …public void munmap(long address, long byteCount) throws ErrnoException { os.munmap(address, byteCo… in munmap() argument 173 …byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { return os.… in pread() argument 175 …byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { return os.… in pwrite() argument 177 …s, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return os.read(f… in read() argument 183 …int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { r… in recvfrom() argument [all …]
|
D | BlockGuardOs.java | 277 …@Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long of… in pread() argument 279 return super.pread(fd, bytes, byteOffset, byteCount, offset); in pread() 289 …@Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long o… in pwrite() argument 291 return super.pwrite(fd, bytes, byteOffset, byteCount, offset); in pwrite() 301 …@Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws E… in read() argument 303 return super.read(fd, bytes, byteOffset, byteCount); in read() 331 …@Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int … in recvfrom() argument 333 return super.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom() 351 …ndfile(FileDescriptor outFd, FileDescriptor inFd, Int64Ref offset, long byteCount) throws ErrnoExc… in sendfile() argument 353 return super.sendfile(outFd, inFd, offset, byteCount); in sendfile() [all …]
|
D | Os.java | 128 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; in mincore() argument 131 public void mlock(long address, long byteCount) throws ErrnoException; in mlock() argument 133 …public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset… in mmap() argument 134 public void msync(long address, long byteCount, int flags) throws ErrnoException; in msync() argument 135 public void munlock(long address, long byteCount) throws ErrnoException; in munlock() argument 137 public void munmap(long address, long byteCount) throws ErrnoException; in munmap() argument 146 …public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thro… in pread() argument 148 …public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thr… in pwrite() argument 151 …public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcept… in read() argument 156 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument [all …]
|
D | IoBridge.java | 507 …public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOEx… in read() argument 508 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in read() 509 if (byteCount == 0) { in read() 513 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); in read() 532 …public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IO… in write() argument 533 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in write() 534 if (byteCount == 0) { in write() 538 while (byteCount > 0) { in write() 539 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); in write() 540 byteCount -= bytesWritten; in write() [all …]
|
D | BufferIterator.java | 39 public abstract void skip(int byteCount); in skip() argument 53 public abstract void readByteArray(byte[] dst, int dstOffset, int byteCount); in readByteArray() argument
|
D | Memory.java | 40 public static native void unsafeBulkGet(Object dst, int dstOffset, int byteCount, in unsafeBulkGet() argument 47 public static native void unsafeBulkPut(byte[] dst, int dstOffset, int byteCount, in unsafeBulkPut() argument 162 …ive void memmove(Object dstObject, int dstOffset, Object srcObject, int srcOffset, long byteCount); in memmove() argument 201 public static native void peekByteArray(long address, byte[] dst, int dstOffset, int byteCount); in peekByteArray() argument
|
/libcore/libart/src/main/java/java/lang/ |
D | StringFactory.java | 53 public static String newStringFromBytes(byte[] data, int offset, int byteCount) { in newStringFromBytes() argument 54 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset()); in newStringFromBytes() 58 … public static native String newStringFromBytes(byte[] data, int high, int offset, int byteCount); in newStringFromBytes() argument 60 …public static String newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName… in newStringFromBytes() argument 61 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName)); in newStringFromBytes() 77 … public static String newStringFromBytes(byte[] data, int offset, int byteCount, Charset charset) { in newStringFromBytes() argument 78 if ((offset | byteCount) < 0 || byteCount > data.length - offset) { in newStringFromBytes() 79 throw new StringIndexOutOfBoundsException(data.length, offset, byteCount); in newStringFromBytes() 125 char[] v = new char[byteCount]; in newStringFromBytes() 128 int last = offset + byteCount; in newStringFromBytes() [all …]
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 370 … void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { Libcore.os.minc… in mincore() argument 385 …lic static void mlock(long address, long byteCount) throws ErrnoException { Libcore.os.mlock(addre… in mlock() argument 390 …dress, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException … in mmap() argument 395 …tatic void msync(long address, long byteCount, int flags) throws ErrnoException { Libcore.os.msync… in msync() argument 400 … static void munlock(long address, long byteCount) throws ErrnoException { Libcore.os.munlock(addr… in munlock() argument 405 …ic static void munmap(long address, long byteCount) throws ErrnoException { Libcore.os.munmap(addr… in munmap() argument 448 …Offset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { return Libcore… in pread() argument 458 …Offset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { return Libcore… in pwrite() argument 468 …nt byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return Libcore.os.re… in read() argument 495 …byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { retur… in recvfrom() argument [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 111 …kByteArray(JNIEnv* env, jclass, jlong srcAddress, jbyteArray dst, jint dstOffset, jint byteCount) { in Memory_peekByteArray() argument 112 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); in Memory_peekByteArray() 236 static void unsafeBulkCopy(jbyte* dst, const jbyte* src, jint byteCount, in unsafeBulkCopy() argument 239 memcpy(dst, src, byteCount); in unsafeBulkCopy() 246 swapShorts(dstShorts, srcShorts, byteCount / 2); in unsafeBulkCopy() 250 swapInts(dstInts, srcInts, byteCount / 4); in unsafeBulkCopy() 254 swapLongs(dstLongs, srcLongs, byteCount / 8); in unsafeBulkCopy() 259 jint byteCount, jbyteArray srcArray, jint srcOffset, jint sizeofElement, jboolean swap) { in Memory_unsafeBulkGet() argument 271 unsafeBulkCopy(dst, src, byteCount, sizeofElement, swap); in Memory_unsafeBulkGet() 276 jint byteCount, jobject srcObject, jint srcOffset, jint sizeofElement, jboolean swap) { in Memory_unsafeBulkPut() argument [all …]
|
D | org_apache_harmony_xml_ExpatParser.cpp | 431 static size_t fillBuffer(ParsingContext* parsingContext, const char* utf8, int byteCount) { in fillBuffer() argument 435 jcharArray javaChars = parsingContext->ensureCapacity(byteCount); in fillBuffer() 446 icu::UnicodeString utf16(icu::UnicodeString::fromUTF8(icu::StringPiece(utf8, byteCount))); in fillBuffer() 447 return utf16.extract(chars.get(), byteCount, status); in fillBuffer() 1021 const char* bytes, size_t byteOffset, size_t byteCount, jboolean isFinal) { in append() argument 1026 if (!XML_Parse(parser, bytes + byteOffset, byteCount, isFinal) && !env->ExceptionCheck()) { in append() 1034 jbyteArray xml, jint byteOffset, jint byteCount) { in ExpatParser_appendBytes() argument 1041 append(env, object, pointer, bytes, byteOffset, byteCount, XML_FALSE); in ExpatParser_appendBytes() 1053 size_t byteCount = 2 * charCount; in ExpatParser_appendChars() local 1054 append(env, object, pointer, bytes, byteOffset, byteCount, XML_FALSE); in ExpatParser_appendChars() [all …]
|
D | libcore_io_Linux.cpp | 762 socklen_t byteCount = sizeof(ss); in doGetSockName() local 763 memset(&ss, 0, byteCount); in doGetSockName() 764 int rc = is_sockname ? TEMP_FAILURE_RETRY(getsockname(fd, sa, &byteCount)) in doGetSockName() 765 : TEMP_FAILURE_RETRY(getpeername(fd, sa, &byteCount)); in doGetSockName() 770 return makeSocketAddress(env, ss, byteCount); in doGetSockName() 1866 static void Linux_mincore(JNIEnv* env, jobject, jlong address, jlong byteCount, jbyteArray javaVect… in Linux_mincore() argument 1873 throwIfMinusOne(env, "mincore", TEMP_FAILURE_RETRY(mincore(ptr, byteCount, vec))); in Linux_mincore() 1892 static void Linux_mlock(JNIEnv* env, jobject, jlong address, jlong byteCount) { in Linux_mlock() argument 1894 throwIfMinusOne(env, "mlock", TEMP_FAILURE_RETRY(mlock(ptr, byteCount))); in Linux_mlock() 1897 static jlong Linux_mmap(JNIEnv* env, jobject, jlong address, jlong byteCount, jint prot, jint flags… in Linux_mmap() argument [all …]
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | TestMethods.java | 71 int byteCount = in.read(buffer); in readFully() local 72 if (byteCount == -1) { in readFully() 75 bytes.write(buffer, 0, byteCount); in readFully()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | MemoryMappedFileTest.java | 531 BufferIterator iterator, byte[] underlyingData, int byteCount) { in assertReadByteArraySucceeds() argument 538 byte[] expectedBytes = new byte[byteCount + 2]; in assertReadByteArraySucceeds() 540 expectedBytes[byteCount - 1] = Byte.MIN_VALUE; in assertReadByteArraySucceeds() 541 System.arraycopy(underlyingData, posBefore, expectedBytes, 1, byteCount); in assertReadByteArraySucceeds() 544 byte[] dst = new byte[byteCount + 2]; in assertReadByteArraySucceeds() 547 dst[byteCount - 1] = expectedBytes[byteCount - 1]; in assertReadByteArraySucceeds() 549 iterator.readByteArray(dst, 1, byteCount); in assertReadByteArraySucceeds() 552 assertEquals(posBefore + byteCount, iterator.pos()); in assertReadByteArraySucceeds() 656 private static byte[] createBytes(int byteCount) { in createBytes() argument 657 byte[] bytes = new byte[byteCount]; in createBytes() [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | ZipFileBenchmark.java | 70 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); in writeEntries() local 71 out.write(writeBuffer, 0, byteCount); in writeEntries()
|
D | ZipFileReadBenchmark.java | 63 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); in writeEntries() local 64 out.write(writeBuffer, 0, byteCount); in writeEntries()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTest.java | 230 int byteCount = bytes.length() / 2; in createStream() local 231 byte[] array = new byte[byteCount]; in createStream() 232 for (int i = 0; i < byteCount; i++) { in createStream()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TestWebData.java | 47 private static byte[] newBinaryFile(int byteCount) { in newBinaryFile() argument 48 byte[] result = new byte[byteCount]; in newBinaryFile()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 110 public int deflate(byte[] buf, int offset, int byteCount) { in deflate() argument 111 return super.deflate(buf, offset, byteCount, Deflater.SYNC_FLUSH); in deflate()
|
D | InflaterTest.java | 121 int byteCount = deflater.deflate(buf); in deflate() local 122 deflatedBytes.write(buf, 0, byteCount); in deflate()
|
/libcore/ojluni/src/main/native/ |
D | Character.cpp | 158 int32_t byteCount = u_charName(codePoint, nameType, &buf[0], sizeof(buf), &status); in Character_getNameImpl() local 159 return (U_FAILURE(status) || byteCount == 0) ? NULL : env->NewStringUTF(buf); in Character_getNameImpl()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | ZoneInfoTest.java | 775 public void skip(int byteCount) { in skip() argument 776 buffer.position(buffer.position() + byteCount); in skip() 785 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { in readByteArray() argument 786 buffer.get(dst, dstOffset, byteCount); in readByteArray()
|