Home
last modified time | relevance | path

Searched refs:byteOffset (Results 1 – 13 of 13) sorted by relevance

/libcore/dom/src/test/java/org/w3c/domts/
DDOMLocatorImpl.java25 private final int byteOffset; field in DOMLocatorImpl
33 this.byteOffset = src.getByteOffset(); in DOMLocatorImpl()
60 return byteOffset; in getByteOffset()
/libcore/luni/src/main/java/libcore/io/
DLinux.java151 …public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thro… in pread() argument
153 return preadBytes(fd, bytes, byteOffset, byteCount, offset); in pread()
169 …public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thr… in pwrite() argument
171 return pwriteBytes(fd, bytes, byteOffset, byteCount, offset); in pwrite()
187 …public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcept… in read() argument
189 return readBytes(fd, bytes, byteOffset, byteCount); in read()
208 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument
210 return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
212 …private native int recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, … in recvfromBytes() argument
230 …public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetA… in sendto() argument
[all …]
DBlockGuardOs.java279 …@Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long of… in pread() argument
281 return super.pread(fd, bytes, byteOffset, byteCount, offset); in pread()
291 …@Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long o… in pwrite() argument
293 return super.pwrite(fd, bytes, byteOffset, byteCount, offset); in pwrite()
303 …@Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws E… in read() argument
305 return super.read(fd, bytes, byteOffset, byteCount); in read()
333 …@Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int … in recvfrom() argument
335 return super.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
363 …@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int fl… in sendto() argument
368 return super.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); in sendto()
[all …]
DForwardingOs.java172 …[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOExceptio… in pread() argument
174 …] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException… in pwrite() argument
176 …d, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { re… in read() argument
182 …t byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, Socke… in recvfrom() argument
193byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, So… in sendto() argument
194 …, int byteOffset, int byteCount, int flags, SocketAddress address) throws ErrnoException, SocketEx… in sendto() argument
240 …, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { ret… in write() argument
DIoBridge.java503 …public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOEx… in read() argument
504 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in read()
509 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); in read()
528 …public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IO… in write() argument
529 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in write()
535 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); in write()
537 byteOffset += bytesWritten; in write()
545 …public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags… in sendto() argument
552 result = Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); in sendto()
590 …public static int recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int by… in recvfrom() argument
[all …]
DOs.java145 …public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thro… in pread() argument
147 …public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thr… in pwrite() argument
150 …public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcept… in read() argument
155 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument
161 …public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetA… in sendto() argument
162 …public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Socke… in sendto() argument
204 …public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcep… in write() argument
/libcore/luni/src/main/java/android/system/
DOs.java450 …ytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { … in pread() argument
460 …tes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { r… in pwrite() argument
470 …yte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return… in read() argument
498byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketE… in recvfrom() argument
530byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, So… in sendto() argument
535byteOffset, int byteCount, int flags, @Nullable SocketAddress address) throws ErrnoException, Sock… in sendto() argument
733 …te[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return … in write() argument
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicIntegerArray.java69 return byteOffset(i); in checkedByteOffset()
72 private static long byteOffset(int i) { in byteOffset() method in AtomicIntegerArray
357 b.append(getRaw(byteOffset(i))); in toString()
DAtomicLongArray.java68 return byteOffset(i); in checkedByteOffset()
71 private static long byteOffset(int i) { in byteOffset() method in AtomicLongArray
356 b.append(getRaw(byteOffset(i))); in toString()
DAtomicReferenceArray.java79 return byteOffset(i); in checkedByteOffset()
82 private static long byteOffset(int i) { in byteOffset() method in AtomicReferenceArray
307 b.append(getRaw(byteOffset(i))); in toString()
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp1033 const char* bytes, size_t byteOffset, size_t byteCount, jboolean isFinal) { in append() argument
1038 if (!XML_Parse(parser, bytes + byteOffset, byteCount, isFinal) && !env->ExceptionCheck()) { in append()
1046 jbyteArray xml, jint byteOffset, jint byteCount) { in ExpatParser_appendBytes() argument
1053 append(env, object, pointer, bytes, byteOffset, byteCount, XML_FALSE); in ExpatParser_appendBytes()
1064 size_t byteOffset = 2 * charOffset; in ExpatParser_appendChars() local
1066 append(env, object, pointer, bytes, byteOffset, byteCount, XML_FALSE); in ExpatParser_appendChars()
Dlibcore_io_Linux.cpp2058 …eadBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_preadBytes() argument
2063 …return IO_FAILURE_RETRY(env, ssize_t, pread64, javaFd, bytes.get() + byteOffset, byteCount, offset… in Linux_preadBytes()
2066 …iteBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_pwriteBytes() argument
2071 …return IO_FAILURE_RETRY(env, ssize_t, pwrite64, javaFd, bytes.get() + byteOffset, byteCount, offse… in Linux_pwriteBytes()
2074 …eadBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount)… in Linux_readBytes() argument
2079 return IO_FAILURE_RETRY(env, ssize_t, read, javaFd, bytes.get() + byteOffset, byteCount); in Linux_readBytes()
2119 …romBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_recvfromBytes() argument
2129 …jint recvCount = NET_FAILURE_RETRY(env, ssize_t, recvfrom, javaFd, bytes.get() + byteOffset, byteC… in Linux_recvfromBytes()
2197 …dtoBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_sendtoBytes() argument
2204 NULL_ADDR_OK, bytes.get() + byteOffset, byteCount, flags); in Linux_sendtoBytes()
[all …]
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherInputStreamTest.java96 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
97 int numRead = super.read(buffer, byteOffset, byteCount); in read()