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

123456789

/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLEngine.java305 * @param offset
306 * the offset in the array of destination buffers to which data
315 * {@code dsts.length - offset}.
327 int offset,
337 * @param offset
338 * the offset in the array of source buffers from which data is
349 * {@code srcs.length - offset}.
359 public abstract SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) argument
325 unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) argument
/libcore/luni/src/main/java/javax/xml/datatype/
H A DXMLGregorianCalendar.java298 * <p>Set the number of minutes in the timezone offset.</p>
302 * @param offset value constraints summarized in <a href="#datetimefield-timezone">
305 * @throws IllegalArgumentException if <code>offset</code> parameter is
309 public abstract void setTimezone(int offset); argument
520 * Return timezone offset in minutes or
/libcore/luni/src/main/java/libcore/icu/
H A DNativeBreakIterator.java83 public int following(int offset) { argument
84 return followingImpl(this.address, offset);
126 public boolean isBoundary(int offset) { argument
127 return isBoundaryImpl(this.address, offset);
130 public int preceding(int offset) { argument
131 return precedingImpl(this.address, offset);
157 private static native int precedingImpl(int address, int offset); argument
158 private static native boolean isBoundaryImpl(int address, int offset); argument
163 private static native int followingImpl(int address, int offset); argument
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java122 @Override public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { argument
124 return os.pread(fd, buffer, offset);
127 @Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException { argument
129 return os.pread(fd, bytes, byteOffset, byteCount, offset);
132 @Override public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException { argument
134 return os.pwrite(fd, buffer, offset);
137 @Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException { argument
139 return os.pwrite(fd, bytes, byteOffset, byteCount, offset);
H A DMemory.java45 public static int peekInt(byte[] src, int offset, ByteOrder order) { argument
47 return (((src[offset++] & 0xff) << 24) |
48 ((src[offset++] & 0xff) << 16) |
49 ((src[offset++] & 0xff) << 8) |
50 ((src[offset ] & 0xff) << 0));
52 return (((src[offset++] & 0xff) << 0) |
53 ((src[offset++] & 0xff) << 8) |
54 ((src[offset++] & 0xff) << 16) |
55 ((src[offset ] & 0xff) << 24));
59 public static long peekLong(byte[] src, int offset, ByteOrde argument
83 peekShort(byte[] src, int offset, ByteOrder order) argument
91 pokeInt(byte[] dst, int offset, int value, ByteOrder order) argument
105 pokeLong(byte[] dst, int offset, long value, ByteOrder order) argument
131 pokeShort(byte[] dst, int offset, short value, ByteOrder order) argument
171 pokeByteArray(int address, byte[] src, int offset, int count) argument
172 pokeCharArray(int address, char[] src, int offset, int count, boolean swap) argument
173 pokeDoubleArray(int address, double[] src, int offset, int count, boolean swap) argument
174 pokeFloatArray(int address, float[] src, int offset, int count, boolean swap) argument
175 pokeIntArray(int address, int[] src, int offset, int count, boolean swap) argument
176 pokeLongArray(int address, long[] src, int offset, int count, boolean swap) argument
177 pokeShortArray(int address, short[] src, int offset, int count, boolean swap) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DHandshakeIODataStream.java164 public int read(byte[] dst, int offset, int length) throws IOException { argument
168 System.arraycopy(buffer, read_pos, dst, offset, length);
H A DSSLRecordProtocol.java196 byte[] fragment, int offset, int len) {
200 logger.print(fragment, offset, len);
212 activeWriteState.encrypt(content_type, fragment, offset, len);
195 wrap(byte content_type, byte[] fragment, int offset, int len) argument
H A DSSLEngineImpl.java409 int offset, int length) throws SSLException {
445 for (int i=offset; i<offset+length; i++) {
528 appData.placeTo(dsts, offset, length));
565 * @param offset the offset in the destination buffers array pointing to
573 public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, argument
657 dataStream.setSourceBuffers(srcs, offset, len);
408 unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) argument
/libcore/luni/src/main/native/
H A Djava_nio_charset_Charsets.cpp109 static void Charsets_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, jint length, jcharArray javaChars) { argument
119 const jbyte* src = &bytes[offset];
128 static void Charsets_isoLatin1BytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, jint length, jcharArray javaChars) { argument
138 const jbyte* src = &bytes[offset];
150 static jbyteArray charsToBytes(JNIEnv* env, jcharArray javaChars, jint offset, jint length, jchar maxValidChar) { argument
162 const jchar* src = &chars[offset];
175 static jbyteArray Charsets_toAsciiBytes(JNIEnv* env, jclass, jcharArray javaChars, jint offset, jint length) { argument
176 return charsToBytes(env, javaChars, offset, length, 0x7f);
179 static jbyteArray Charsets_toIsoLatin1Bytes(JNIEnv* env, jclass, jcharArray javaChars, jint offset, jint length) { argument
180 return charsToBytes(env, javaChars, offset, lengt
183 Charsets_toUtf8Bytes(JNIEnv* env, jclass, jcharArray javaChars, jint offset, jint length) argument
[all...]
H A Dlibcore_icu_NativeBreakIterator.cpp160 static jboolean NativeBreakIterator_isBoundaryImpl(JNIEnv*, jclass, jint address, jint offset) { argument
161 return ubrk_isBoundary(breakIterator(address), offset);
182 static jint NativeBreakIterator_precedingImpl(JNIEnv*, jclass, jint address, jint offset) { argument
183 return ubrk_preceding(breakIterator(address), offset);
190 static jint NativeBreakIterator_followingImpl(JNIEnv*, jclass, jint address, jint offset) { argument
191 return ubrk_following(breakIterator(address), offset);
H A Dlibcore_icu_NativeCollation.cpp161 static void NativeCollation_setOffset(JNIEnv* env, jclass, jint address, jint offset) { argument
163 ucol_setOffset(toCollationElements(address), offset, &status); local
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldSocketChannelTest.java382 public long read(ByteBuffer[] targets, int offset, int length) argument
391 public long write(ByteBuffer[] sources, int offset, int length) argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherThread.java60 public void checkPaddedEncodedData(byte[] original, byte[] encoded, int offset) argument
62 for (int i = 0; i < offset; i++) {
64 throw new Exception("Encoded data is not properly padded at offset " + i);
68 if (original[i] != encoded[i + offset]) {
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DMessageDigest2Test.java474 public void engineUpdate(byte[] input, int offset, int len) { argument
H A DSignatureSpiTest.java285 protected int engineSign(byte[] outbuf, int offset, int len) argument
297 protected boolean engineVerify(byte[] sigBytes, int offset, int length) argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySSLContextSpi.java149 int offset, int length) throws SSLException {
152 public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, argument
148 unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) argument
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DMySSLContextSpi.java147 int offset, int length) throws SSLException {
150 public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, argument
146 unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) argument
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java477 @Override public void write(byte[] buffer, int offset, int len) { argument
479 super.write(buffer, offset, Math.min(len, bodyLimit - count));
/libcore/luni/src/main/java/java/lang/
H A DClassLoader.java209 * @param offset
210 * the offset into {@code classRep}.
218 * if {@code offset < 0}, {@code length < 0} or if
219 * {@code offset + length} is greater than the length of
224 protected final Class<?> defineClass(byte[] classRep, int offset, int length) argument
227 return VMClassLoader.defineClass(this, classRep, offset, length);
239 * @param offset
240 * the offset into {@code classRep}.
248 * if {@code offset < 0}, {@code length < 0} or if
249 * {@code offset
252 defineClass(String className, byte[] classRep, int offset, int length) argument
289 defineClass(String className, byte[] classRep, int offset, int length, ProtectionDomain protectionDomain) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DPlainSocketImpl.java239 @Override public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
240 return socketImpl.read(buffer, offset, byteCount);
268 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { argument
269 socketImpl.write(buffer, offset, byteCount);
480 private int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
484 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
488 int readCount = IoBridge.recvfrom(true, fd, buffer, offset, byteCount, 0, null, false);
503 private void write(byte[] buffer, int offset, int byteCount) throws IOException { argument
504 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
507 int bytesWritten = IoBridge.sendto(fd, buffer, offset, byteCoun
[all...]
/libcore/luni/src/main/java/java/nio/
H A DSocketChannelImpl.java280 public long read(ByteBuffer[] targets, int offset, int length) throws IOException { argument
281 Arrays.checkOffsetAndCount(targets.length, offset, length);
283 int totalCount = FileChannelImpl.calculateTotalRemaining(targets, offset, length, true);
295 int index = offset;
340 public long write(ByteBuffer[] sources, int offset, int length) throws IOException { argument
341 Arrays.checkOffsetAndCount(sources.length, offset, length);
343 int count = FileChannelImpl.calculateTotalRemaining(sources, offset, length, false);
348 for (int val = offset; val < length + offset; val++) {
356 int val = offset;
610 write(byte[] buffer, int offset, int byteCount) argument
661 read(byte[] buffer, int offset, int byteCount) argument
[all...]
/libcore/luni/src/main/java/java/text/
H A DBidi.java374 * the start offset of the line.
443 * @param offset
444 * the offset of the character.
447 public int getLevelAt(int offset) { argument
449 return offsetLevel[offset] & ~UBIDI_LEVEL_OVERRIDE;
476 * Returns the limit offset of the specified run.
480 * @return the limit offset of the run.
487 * Returns the start offset of the specified run.
491 * @return the start offset of the run.
539 * the start offset o
[all...]
H A DSimpleDateFormat.java762 int offset = calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET);
764 if (offset < 0) {
766 offset = -offset;
772 appendNumber(buffer, 2, offset / 3600000);
776 appendNumber(buffer, 2, (offset % 3600000) / 60000);
789 private Date error(ParsePosition position, int offset, TimeZone zone) { argument
790 position.setErrorIndex(offset);
843 private int parse(String string, int offset, char format, int count) { argument
857 return parseText(string, offset, formatDat
956 parseDayOfWeek(String string, int offset, String[] longs, String[] shorts) argument
964 parseMonth(String string, int offset, int count, int absolute, String[] longs, String[] shorts) argument
1115 parseNumber(int max, String string, int offset, int field, int skew) argument
1125 parseText(String string, int offset, String[] text, int field) argument
1145 parseTimeZone(String string, int offset) argument
[all...]
/libcore/luni/src/main/java/java/util/
H A DSimpleTimeZone.java61 * based on timezone's raw offset from GMT; does not include Daylight
68 * mode, based on timezone's adjusted offset from GMT; includes
78 * Constructs a {@code SimpleTimeZone} with the given base time zone offset from GMT
83 * @param offset
84 * the given base time zone offset to GMT.
89 public SimpleTimeZone(int offset, final String name) { argument
91 rawOffset = offset;
95 * Constructs a {@code SimpleTimeZone} with the given base time zone offset from GMT,
128 * @param offset
129 * the given base time zone offset t
163 SimpleTimeZone(int offset, String name, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime) argument
212 SimpleTimeZone(int offset, String name, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime, int daylightSavings) argument
279 SimpleTimeZone(int offset, String name, int startMonth, int startDay, int startDayOfWeek, int startTime, int startTimeMode, int endMonth, int endDay, int endDayOfWeek, int endTime, int endTimeMode, int daylightSavings) argument
679 setRawOffset(int offset) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DBerInputStream.java43 * Next read must place data into the buffer from this offset
45 protected int offset = 0; field in class:BerInputStream
66 /** Current decoded tag offset */
69 /** Current decoded content offset */
83 * @param offset the encoding offset
87 public BerInputStream(byte[] encoded, int offset, int expectedLength) throws IOException { argument
90 this.offset = offset;
96 && (offset
[all...]

Completed in 850 milliseconds

123456789