Searched defs:off (Results 1 - 25 of 36) sorted by relevance

12

/libcore/luni/src/main/java/java/security/
H A DDigestInputStream.java35 // Indicates whether digest functionality is on or off
107 * @param off
118 public int read(byte[] b, int off, int len) throws IOException { argument
120 int bytesRead = in.read(b, off, len);
125 digest.update(b, off, bytesRead);
152 (isOn ? ", is on" : ", is off");
H A DDigestOutputStream.java35 // Indicates whether digest functionality is on or off
96 * @param off
104 public void write(byte[] b, int off, int len) throws IOException { argument
107 digest.update(b, off, len);
110 out.write(b, off, len);
134 (isOn ? ", is on" : ", is off");
H A DSecureClassLoader.java74 * @param off
82 * if {@code off} or {@code len} are not valid in respect to
91 protected final Class<?> defineClass(String name, byte[] b, int off, int len, argument
93 return cs == null ? defineClass(name, b, off, len) : defineClass(name,
94 b, off, len, getPD(cs));
H A DSignatureSpi.java97 * @param off
105 protected abstract void engineUpdate(byte[] b, int off, int len) argument
H A DSignature.java454 * @param off
462 public final void update(byte[] data, int off, int len) argument
467 if (data == null || off < 0 || len < 0 ||
468 off + len > data.length) {
471 engineUpdate(data, off, len);
/libcore/luni/src/main/java/java/util/zip/
H A DCheckedInputStream.java72 * into {@code buf}, starting at offset {@code off}. The checksum is
77 * @param off
88 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
89 int x = in.read(buf, off, nbytes);
91 check.update(buf, off, x);
H A DCheckedOutputStream.java73 * Writes n bytes of data from {@code buf} starting at offset {@code off} to
78 * @param off
87 public void write(byte[] buf, int off, int nbytes) throws IOException { argument
88 out.write(buf, off, nbytes);
89 check.update(buf, off, nbytes);
H A DChecksum.java43 * @param off
48 public void update(byte[] buf, int off, int nbytes); argument
H A DGZIPOutputStream.java99 * Write up to nbytes of data from the given buffer, starting at offset off,
103 public void write(byte[] buffer, int off, int nbytes) throws IOException { argument
104 super.write(buffer, off, nbytes);
105 crc.update(buffer, off, nbytes);
/libcore/luni/src/main/java/javax/crypto/
H A DCipherOutputStream.java80 * {@code off} to this cipher output stream.
84 * @param off
91 @Override public void write(byte[] b, int off, int len) throws IOException { argument
95 byte[] result = cipher.update(b, off, len);
H A DCipherInputStream.java114 * {@code buf} starting at offset {@code off}.
127 public int read(byte[] buf, int off, int len) throws IOException { argument
139 buf[off+i] = (byte) b;
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLSocketOutputStream.java42 public void write(byte[] b, int off, int len) throws IOException { argument
43 owner.writeAppData(b, off, len);
H A DSSLInputStream.java101 public int read(byte[] b, int off, int len) throws IOException { argument
108 b[off+i] = (byte) read_b;
H A DSSLSocketInputStream.java117 @Override public int read(byte[] b, int off, int len) throws IOException { argument
124 b[off+i] = (byte) read_b;
/libcore/luni/src/main/native/
H A Djava_util_zip_Adler32.cpp26 static jlong Adler32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong crc) { argument
31 return adler32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
H A Djava_util_zip_CRC32.cpp26 static jlong CRC32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong crc) { argument
31 jlong result = crc32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
H A Dzip.h52 void setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, bool inflate) { argument
58 env->GetByteArrayRegion(javaDictionary, off, len, &dictionaryBytes[0]);
73 void setInput(JNIEnv* env, jbyteArray buf, jint off, jint len) { argument
82 env->GetByteArrayRegion(buf, off, len, &input[0]);
H A Djava_util_zip_Deflater.cpp24 static void Deflater_setDictionaryImpl(JNIEnv* env, jobject, jbyteArray dict, int off, int len, jlong handle) { argument
25 toNativeZipStream(handle)->setDictionary(env, dict, off, len, false);
65 static void Deflater_setInputImpl(JNIEnv* env, jobject, jbyteArray buf, jint off, jint len, jlong handle) { argument
66 toNativeZipStream(handle)->setInput(env, buf, off, len);
69 static jint Deflater_deflateImpl(JNIEnv* env, jobject recv, jbyteArray buf, int off, int len, jlong handle, int flushStyle) { argument
75 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off);
H A Djava_util_zip_Inflater.cpp49 static void Inflater_setInputImpl(JNIEnv* env, jobject, jbyteArray buf, jint off, jint len, jlong handle) { argument
50 toNativeZipStream(handle)->setInput(env, buf, off, len);
53 static jint Inflater_setFileInputImpl(JNIEnv* env, jobject, jobject javaFileDescriptor, jlong off, jint len, jlong handle) { argument
69 int rc = TEMP_FAILURE_RETRY(lseek(fd, off, SEEK_SET));
89 static jint Inflater_inflateImpl(JNIEnv* env, jobject recv, jbyteArray buf, int off, int len, jlong handle) { argument
95 stream->stream.next_out = reinterpret_cast<Bytef*>(out.get() + off);
140 static void Inflater_setDictionaryImpl(JNIEnv* env, jobject, jbyteArray dict, int off, int len, jlong handle) { argument
141 toNativeZipStream(handle)->setDictionary(env, dict, off, len, true);
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLInputStream.java46 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
47 return is.read(buf, off, nbytes);
/libcore/luni/src/test/java/tests/java/security/
H A DSecureClassLoaderTest.java231 public Class define(String name, byte[] b, int off, int len, argument
233 return defineClass(name, b, off, len, cs);
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
H A DSHA1withDSA_SignatureImpl.java299 * off offset in byte array to start from
305 protected void engineUpdate(byte[] b, int off, int len) argument
308 msgDigest.update(b, off, len);
/libcore/luni/src/test/java/tests/targets/security/
H A DSignatureTestMD2withRSA.java169 protected void engineUpdate(byte[] b, int off, int len) argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySignature1.java80 protected void engineUpdate(byte[] b, int off, int len) argument
83 if (off < 0 || off > b.length || off > len) {
84 throw new IllegalArgumentException("incorrect parameter off");
H A DMySignature2.java60 protected void engineUpdate(byte[] b, int off, int len) argument

Completed in 183 milliseconds

12