Searched defs:offset (Results 201 - 222 of 222) sorted by relevance

123456789

/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLSocketImpl.java672 protected void writeAppData(byte[] data, int offset, int len) throws IOException { argument
679 //logger.println(new String(data, offset, len));
684 data, offset, len));
688 ContentType.APPLICATION_DATA, data, offset,
690 offset += SSLRecordProtocol.MAX_DATA_LENGTH;
696 data, offset, len));
H A DOpenSSLSocketImpl.java656 public int read(byte[] buf, int offset, int byteCount) throws IOException { argument
660 Arrays.checkOffsetAndCount(buf.length, offset, byteCount);
665 OpenSSLSocketImpl.this, buf, offset, byteCount, getSoTimeout());
698 public void write(byte[] buf, int offset, int byteCount) throws IOException { argument
702 Arrays.checkOffsetAndCount(buf.length, offset, byteCount);
707 OpenSSLSocketImpl.this, buf, offset, byteCount, writeTimeoutMilliseconds);
H A DCipherSuite.java780 private static void registerSupportedCipherSuites(int offset, CipherSuite[] cipherSuites) { argument
781 int count = offset;
H A DNativeCrypto.java151 public static native void EVP_DigestUpdate(int ctx, byte[] buffer, int offset, int length); argument
153 public static native int EVP_DigestFinal(int ctx, byte[] hash, int offset); argument
160 int offset, int length);
162 public static native int EVP_SignFinal(int ctx, byte[] signature, int offset, int key); argument
167 int offset, int length);
170 int offset, int length, int key);
159 EVP_SignUpdate(int ctx, byte[] buffer, int offset, int length) argument
166 EVP_VerifyUpdate(int ctx, byte[] buffer, int offset, int length) argument
169 EVP_VerifyFinal(int ctx, byte[] signature, int offset, int length, int key) argument
/libcore/luni/src/main/native/
H A Dlibcore_io_Memory.cpp214 static void Memory_pokeByteArray(JNIEnv* env, jclass, jint dstAddress, jbyteArray src, jint offset, jint length) { argument
215 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress));
H A Dcbigint.cpp340 int32_t index, offset; local
343 offset = arg2 >> 6;
346 while (--index - offset >= 0)
347 arg1[index] = arg1[index - offset];
H A Dlibcore_io_Posix.cpp823 static jlong Posix_lseek(JNIEnv* env, jobject, jobject javaFd, jlong offset, jint whence) { argument
825 return throwIfMinusOne(env, "lseek", TEMP_FAILURE_RETRY(lseek64(fd, offset, whence)));
855 static jlong Posix_mmap(JNIEnv* env, jobject, jlong address, jlong byteCount, jint prot, jint flags, jobject javaFd, jlong offset) { argument
858 void* ptr = mmap(suggestedPtr, byteCount, prot, flags, fd, offset);
959 static jint Posix_preadBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount, jlong offset) { argument
965 return throwIfMinusOne(env, "pread", TEMP_FAILURE_RETRY(pread64(fd, bytes.get() + byteOffset, byteCount, offset)));
968 static jint Posix_pwriteBytes(JNIEnv* env, jobject, jobject javaFd, jbyteArray javaBytes, jint byteOffset, jint byteCount, jlong offset) { argument
974 return throwIfMinusOne(env, "pwrite", TEMP_FAILURE_RETRY(pwrite64(fd, bytes.get() + byteOffset, byteCount, offset)));
1034 off_t offset = 0; local
1038 offset
[all...]
H A Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp1481 jbyteArray hash, jint offset) {
1483 JNI_TRACE("NativeCrypto_EVP_DigestFinal(%p, %p, %d)", ctx, hash, offset);
1496 reinterpret_cast<unsigned char*>(hashBytes.get() + offset),
1503 JNI_TRACE("NativeCrypto_EVP_DigestFinal(%p, %p, %d) => %d", ctx, hash, offset, bytesWritten);
1599 jbyteArray buffer, jint offset, jint length) {
1601 JNI_TRACE("NativeCrypto_EVP_DigestUpdate(%p, %p, %d, %d)", ctx, buffer, offset, length);
1603 if (offset < 0 || length < 0) {
1618 reinterpret_cast<const unsigned char*>(bufferBytes.get() + offset),
1669 jbyteArray buffer, jint offset, jint length) {
1671 JNI_TRACE("NativeCrypto_EVP_SignUpdate(%p, %p, %d, %d)", ctx, buffer, offset, lengt
1480 NativeCrypto_EVP_DigestFinal(JNIEnv* env, jclass, jint ctxRef, jbyteArray hash, jint offset) argument
1598 NativeCrypto_EVP_DigestUpdate(JNIEnv* env, jclass, jint ctxRef, jbyteArray buffer, jint offset, jint length) argument
1668 NativeCrypto_EVP_SignUpdate(JNIEnv* env, jclass, jint ctxRef, jbyteArray buffer, jint offset, jint length) argument
1693 NativeCrypto_EVP_SignFinal(JNIEnv* env, jclass, jint ctxRef, jbyteArray signature, jint offset, jint pkeyRef) argument
1765 NativeCrypto_EVP_VerifyUpdate(JNIEnv* env, jclass, jint ctxRef, jbyteArray buffer, jint offset, jint length) argument
1790 NativeCrypto_EVP_VerifyFinal(JNIEnv* env, jclass, jint ctxRef, jbyteArray buffer, jint offset, jint length, jint pkeyRef) argument
3897 NativeCrypto_SSL_read(JNIEnv* env, jclass, jint ssl_address, jobject fdObject, jobject shc, jbyteArray b, jint offset, jint len, jint read_timeout_millis) argument
4104 NativeCrypto_SSL_write(JNIEnv* env, jclass, jint ssl_address, jobject fdObject, jobject shc, jbyteArray b, jint offset, jint len, jint write_timeout_millis) argument
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_TestWebServer.java687 void psWrite(PrintStream ps, byte[] bytes, int offset, int count) throws IOException { argument
689 ps.write(bytes, offset, count);
838 int offset = 0;
839 while (offset < bytes.length) {
840 int chunkSize = Math.min(bytes.length - offset, maxChunkSize);
843 psWrite(ps, bytes, offset, chunkSize);
845 offset += chunkSize;
/libcore/luni/src/main/java/java/io/
H A DObjectOutputStream.java384 int offset = 0;
387 while (offset < written.length) {
388 int toWrite = written.length - offset > 1024 ? 1024
389 : written.length - offset;
399 output.write(written, offset, toWrite);
400 offset += toWrite;
629 * offset {@code index} to the target stream. Blocks until all bytes are
634 * @param offset
643 public void write(byte[] buffer, int offset, int length) throws IOException { argument
645 primitiveTypes.write(buffer, offset, lengt
[all...]
H A DObjectInputStream.java78 * All the objects we've read, indexed by their serialization handle (minus the base offset).
536 * in byte array {@code buffer} starting at offset {@code count}. Blocks
542 * @param offset
550 * if {@code offset < 0} or {@code length < 0}, or if
551 * {@code offset + length} is greater than the length of
559 public int read(byte[] buffer, int offset, int length) throws IOException { argument
560 Arrays.checkOffsetAndCount(buffer.length, offset, length);
565 return primitiveData.read(buffer, offset, length);
1201 * @param offset
1212 public void readFully(byte[] dst, int offset, in argument
[all...]
/libcore/luni/src/main/java/java/lang/
H A DString.java43 * offset 0 and length 5.
108 private final int offset; field in class:String
119 offset = 0;
128 offset = 0;
131 System.arraycopy(s.value, s.offset, value, 0, s.count);
168 * if {@code byteCount < 0 || offset < 0 || offset + byteCount > data.length}.
170 public String(byte[] data, int offset, int byteCount) { argument
171 this(data, offset, byteCount, Charset.defaultCharset());
181 * if {@code byteCount < 0 || offset <
186 String(byte[] data, int high, int offset, int byteCount) argument
212 String(byte[] data, int offset, int byteCount, String charsetName) argument
245 String(byte[] data, int offset, int byteCount, Charset charset) argument
417 String(char[] data, int offset, int charCount) argument
431 String(int offset, int charCount, char[] chars) argument
515 String(int[] codePoints, int offset, int count) argument
586 failedBoundsCheck(int arrayLength, int offset, int count) argument
[all...]
H A DCharacter.java2154 * specified char array, as delineated by {@code offset} and {@code count}.
2160 * @param offset
2169 * if {@code offset < 0}, {@code count < 0} or if
2170 * {@code offset + count} is greater than the length of
2174 public static int codePointCount(char[] seq, int offset, int count) { argument
2175 Arrays.checkOffsetAndCount(seq.length, offset, count);
2176 int endIndex = offset + count;
2178 for (int i = offset; i < endIndex; i++) {
2194 * Determines the index in the specified character sequence that is offset
2268 * that is offset {
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DDiskLruCache.java766 @Override public void write(byte[] buffer, int offset, int length) { argument
768 out.write(buffer, offset, length);
H A DForwardingOs.java84 public long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException { return os.lseek(fd, offset, whence); } argument
89 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return os.mmap(address, byteCount, prot, flags, fd, offset); } argument
96 public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pread(fd, buffer, offset); } argument
97 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException { return os.pread(fd, bytes, byteOffset, byteCount, offset); } argument
98 public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { return os.pwrite(fd, buffer, offset); } argument
99 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
[all...]
H A DOs.java76 public long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException; argument
81 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; argument
89 public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException; argument
90 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; argument
91 public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException; argument
92 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; argument
H A DPosix.java78 public native long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException; argument
83 public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; argument
90 public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { argument
92 return preadBytes(fd, buffer, buffer.position(), buffer.remaining(), offset);
94 return preadBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), offset);
97 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException { argument
99 return preadBytes(fd, bytes, byteOffset, byteCount, offset);
101 private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException; argument
102 public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { argument
104 return pwriteBytes(fd, buffer, buffer.position(), buffer.remaining(), offset);
109 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
113 pwriteBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) argument
125 readBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument
189 writeBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java420 * @param offset into the char[]
424 /*package*/ void append(char[] xml, int offset, int length) argument
427 appendChars(this.pointer, xml, offset, length);
433 private native void appendChars(int pointer, char[] xml, int offset, argument
452 * @param offset into the byte[]
456 /*package*/ void append(byte[] xml, int offset, int length) argument
459 appendBytes(this.pointer, xml, offset, length);
465 private native void appendBytes(int pointer, byte[] xml, int offset, argument
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldPreparedStatementTest.java2358 public int setBytes(long pos, byte[] theBytes, int offset, int len) argument
2412 public int setString(long pos, String str, int offset, int len) argument
/libcore/luni/src/test/java/tests/api/java/util/
H A DCollectionsTest.java84 boolean offset; field in class:CollectionsTest.SynchCollectionChecker
104 if (offset)
112 public SynchCollectionChecker(Collection c, boolean offset, argument
114 // The collection to test, whether to offset the filler values by
126 if (offset)
132 public boolean offset() { method in class:CollectionsTest.SynchCollectionChecker
136 return offset;
157 boolean offset; field in class:CollectionsTest.SynchMapChecker
187 if (offset)
195 public SynchMapChecker(Map m, boolean offset, in argument
219 public boolean offset() { method in class:CollectionsTest.SynchMapChecker
[all...]
/libcore/luni/src/main/java/java/math/
H A DBigDecimal.java262 * @param offset
267 * if {@code offset < 0 || len <= 0 || offset+len-1 < 0 ||
268 * offset+len-1 >= in.length}, or if {@code in} does not
271 public BigDecimal(char[] in, int offset, int len) { argument
272 int begin = offset; // first index to be copied
273 int last = offset + (len - 1); // last index to be copied
281 if ((last >= in.length) || (offset < 0) || (len <= 0) || (last < 0)) {
282 throw new NumberFormatException("Bad offset/length: offset
383 BigDecimal(char[] in, int offset, int len, MathContext mc) argument
[all...]
/libcore/luni/src/main/java/java/util/
H A DFormatter.java502 * <td width="25%">Time zone GMT offset.</td>
1957 long offset = calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET);
1959 if (offset < 0) {
1961 offset = -offset;
1964 appendLocalized(result, offset / 3600000, 2);
1965 appendLocalized(result, (offset % 3600000) / 60000, 2);
2275 * Returns a FormatToken representing the format specifier starting at 'offset'.
2276 * @param offset the first character after the '%'
2278 FormatToken parseFormatToken(int offset) { argument
[all...]

Completed in 592 milliseconds

123456789