/libcore/luni/src/main/native/ |
H A D | readlink.cpp | 29 ssize_t len = readlink(path, &buf[0], buf.size()); local 30 if (len == -1) { 34 if (static_cast<size_t>(len) < buf.size()) { 36 result.assign(&buf[0], len);
|
H A D | java_util_zip_Adler32.cpp | 26 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 D | java_util_zip_CRC32.cpp | 26 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 D | ZipUtilities.cpp | 44 void NativeZipStream::setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, argument 46 UniquePtr<jbyte[]> dictionaryBytes(new jbyte[len]); 51 env->GetByteArrayRegion(javaDictionary, off, len, &dictionaryBytes[0]); 55 err = inflateSetDictionary(&stream, dictionary, len); 57 err = deflateSetDictionary(&stream, dictionary, len); 66 void NativeZipStream::setInput(JNIEnv* env, jbyteArray buf, jint off, jint len) { argument 67 input.reset(new jbyte[len]); 73 inCap = len; 75 env->GetByteArrayRegion(buf, off, len, &input[0]); 78 stream.avail_in = len; [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | SSLSocketOutputStream.java | 42 public void write(byte[] b, int off, int len) throws IOException { argument 43 owner.writeAppData(b, off, len);
|
H A D | SSLInputStream.java | 101 public int read(byte[] b, int off, int len) throws IOException { argument 110 } while ((available() != 0) && (i<len));
|
H A D | ConnectionStateSSLv3.java | 229 protected byte[] encrypt(byte type, byte[] fragment, int offset, int len) { argument 231 int content_mac_length = len + hash_size; 234 System.arraycopy(fragment, offset, res, 0, len); 237 mac_material_part[1] = (byte) ((0x00FF00 & len) >> 8); 238 mac_material_part[2] = (byte) (0x0000FF & len); 244 messageDigest.update(fragment, offset, len); 250 System.arraycopy(digest, 0, res, len, hash_size); 256 // logger.print(fragment, offset, len); 290 int offset, int len) { 292 byte[] data = decCipher.update(fragment, offset, len); 289 decrypt(byte type, byte[] fragment, int offset, int len) argument [all...] |
H A D | ConnectionStateTLS.java | 237 protected byte[] encrypt(byte type, byte[] fragment, int offset, int len) { argument 239 int content_mac_length = len + hash_size; 242 System.arraycopy(fragment, offset, res, 0, len); 245 mac_material_header[3] = (byte) ((0x00FF00 & len) >> 8); 246 mac_material_header[4] = (byte) (0x0000FF & len); 250 encMac.update(fragment, offset, len); 251 encMac.doFinal(res, len); 257 // logger.print(fragment, offset, len); 300 int offset, int len) { 302 byte[] data = decCipher.update(fragment, offset, len); 299 decrypt(byte type, byte[] fragment, int offset, int len) argument [all...] |
H A D | Logger.java | 65 public void print(byte[] data, int offset, int len) { argument 66 printAsHex(16, " ", "", data, offset, len); 74 byte[] data, int offset, int len) { 76 for (int i = 0; i < len; i++) { 73 printAsHex(int perLine, String prefix, String delimiter, byte[] data, int offset, int len) argument
|
H A D | SSLSocketInputStream.java | 117 @Override public int read(byte[] b, int off, int len) throws IOException { argument 126 } while ((available() != 0) && (i<len));
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Base64.java | 39 public static byte[] decode(byte[] in, int len) { argument 41 int length = len / 4 * 3; 53 for (;;len--) { 54 chr = in[len-1]; 74 for (int i=0; i<len; i++) {
|
/libcore/luni/src/main/java/java/security/ |
H A D | DigestOutputStream.java | 91 * Writes {@code len} bytes into the stream, starting from the specified 98 * @param len 104 public void write(byte[] b, int off, int len) throws IOException { argument 107 digest.update(b, off, len); 109 // write len bytes 110 out.write(b, off, len);
|
H A D | MessageDigestSpi.java | 58 * @param len 61 * if {@code offset} or {@code len} are not valid in respect to 64 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 110 * @param len 116 * if {@code offset} or {@code len} are not valid in respect to 120 protected int engineDigest(byte[] buf, int offset, int len) throws DigestException { argument 121 if (len < engineGetDigestLength()) { 123 throw new DigestException("The value of len parameter is less than the actual digest length"); 129 if (offset + len > buf.length) { 131 throw new DigestException("offset + len > bu [all...] |
H A D | SecureClassLoader.java | 76 * @param len 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));
|
/libcore/luni/src/main/java/javax/crypto/ |
H A D | CipherOutputStream.java | 79 * Writes the {@code len} bytes from buffer {@code b} starting at offset 86 * @param len 91 @Override public void write(byte[] b, int off, int len) throws IOException { argument 92 if (len == 0) { 95 byte[] result = cipher.update(b, off, len);
|
H A D | MacSpi.java | 76 * len}. 82 * @param len 85 protected abstract void engineUpdate(byte[] input, int offset, int len); argument
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | SecretKeySpec.java | 76 * length <code>len</code> and the specified <code>algorithm</code> name. 82 * @param len 88 * is empty or <code>offset</code> and <code>len</code> do not 91 * if <code>offset</code> or <code>len</code> is negative. 93 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { argument 100 if (len < 0 || offset < 0) { 101 throw new ArrayIndexOutOfBoundsException("len < 0 || offset < 0"); 103 if (key.length - offset < len) { 110 this.key = new byte[len]; 111 System.arraycopy(key, offset, this.key, 0, len); [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
H A D | MessageDigestTestMD2.java | 93 protected void engineUpdate(byte[] input, int offset, int len) { argument
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleInputStream.java | 20 public int len; field in class:Support_ASimpleInputStream 37 len = buf.length; 42 len = input.length; 43 buf = new byte[len]; 44 System.arraycopy(input, 0, buf, 0, len); 59 return len - pos; 67 if (pos < len) {
|
H A D | Support_ASimpleReader.java | 20 public int len; field in class:Support_ASimpleReader 37 len = buf.length; 52 return len > pos; 60 int available = len - pos;
|
/libcore/luni/src/main/java/java/sql/ |
H A D | Blob.java | 161 * @param len 168 public int setBytes(long pos, byte[] theBytes, int offset, int len) argument 175 * @param len 181 public void truncate(long len) throws SQLException; argument
|
H A D | Clob.java | 151 * Writes {@code len} characters of a string, starting at a specified 160 * @param len 166 public int setString(long pos, String str, int offset, int len) argument 172 * @param len 178 public void truncate(long len) throws SQLException; argument
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
H A D | OldErrorManagerTest.java | 60 public synchronized void write(byte[] buffer, int offset, int len) { argument 61 linesWritten.append(new String(buffer, offset, len));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
H A D | MyMacSpi.java | 61 protected void engineUpdate(byte[] input, int offset, int len) { argument 62 if (offset >= 0 && len >= 0) { 63 length = len;
|
/libcore/luni/src/test/java/tests/java/security/ |
H A D | SecureClassLoaderTest.java | 231 public Class define(String name, byte[] b, int off, int len, argument 233 return defineClass(name, b, off, len, cs);
|