/libcore/benchmarks/src/benchmarks/ |
D | SystemArrayCopyBenchmark.java | 30 final int len = arrayLength; in timeSystemCharArrayCopy() local 31 char[] src = new char[len]; in timeSystemCharArrayCopy() 32 char[] dst = new char[len]; in timeSystemCharArrayCopy() 34 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy() 39 final int len = arrayLength; in timeSystemByteArrayCopy() local 40 byte[] src = new byte[len]; in timeSystemByteArrayCopy() 41 byte[] dst = new byte[len]; in timeSystemByteArrayCopy() 43 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy() 48 final int len = arrayLength; in timeSystemShortArrayCopy() local 49 short[] src = new short[len]; in timeSystemShortArrayCopy() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ASimpleInputStream.java | 20 public int len; field in Support_ASimpleInputStream 37 len = buf.length; in Support_ASimpleInputStream() 42 len = input.length; in Support_ASimpleInputStream() 43 buf = new byte[len]; in Support_ASimpleInputStream() 44 System.arraycopy(input, 0, buf, 0, len); in Support_ASimpleInputStream() 59 return len - pos; in available() 67 if (pos < len) { in read()
|
D | Support_ASimpleReader.java | 20 public int len; field in Support_ASimpleReader 37 len = buf.length; in Support_ASimpleReader() 52 return len > pos; in ready() 60 int available = len - pos; in read()
|
/libcore/luni/src/main/native/ |
D | ZipUtilities.cpp | 44 void NativeZipStream::setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, in setDictionary() argument 46 UniquePtr<jbyte[]> dictionaryBytes(new jbyte[len]); in setDictionary() 51 env->GetByteArrayRegion(javaDictionary, off, len, &dictionaryBytes[0]); in setDictionary() 55 err = inflateSetDictionary(&stream, dictionary, len); in setDictionary() 57 err = deflateSetDictionary(&stream, dictionary, len); in setDictionary() 66 void NativeZipStream::setInput(JNIEnv* env, jbyteArray buf, jint off, jint len) { in setInput() argument 67 input.reset(new jbyte[len]); in setInput() 73 inCap = len; in setInput() 75 env->GetByteArrayRegion(buf, off, len, &input[0]); in setInput() 78 stream.avail_in = len; in setInput()
|
D | readlink.cpp | 29 ssize_t len = readlink(path, &buf[0], buf.size()); in readlink() local 30 if (len == -1) { in readlink() 34 if (static_cast<size_t>(len) < buf.size()) { in readlink() 36 result.assign(&buf[0], len); in readlink()
|
D | java_util_zip_Inflater.cpp | 51 static void Inflater_setInputImpl(JNIEnv* env, jobject, jbyteArray buf, jint off, jint len, jlong h… in Inflater_setInputImpl() argument 52 toNativeZipStream(handle)->setInput(env, buf, off, len); in Inflater_setInputImpl() 55 …ileInputImpl(JNIEnv* env, jobject, jobject javaFileDescriptor, jlong off, jint len, jlong handle) { in Inflater_setFileInputImpl() argument 60 if (stream->inCap < len) { in Inflater_setFileInputImpl() 61 stream->setInput(env, NULL, 0, len); in Inflater_setFileInputImpl() 64 stream->stream.avail_in = len; in Inflater_setFileInputImpl() 79 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, dst, len))) > 0) { in Inflater_setFileInputImpl() 81 len -= byteCount; in Inflater_setFileInputImpl() 91 static jint Inflater_inflateImpl(JNIEnv* env, jobject recv, jbyteArray buf, int off, int len, jlong… in Inflater_inflateImpl() argument 98 stream->stream.avail_out = len; in Inflater_inflateImpl() [all …]
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | FilePathToURI.java | 42 int len = escChs.length; 44 for (int i = 0; i < len; i++) { 63 int len = path.length(), ch; in filepath2URI() local 64 StringBuilder buffer = new StringBuilder(len*3); in filepath2URI() 67 if (len >= 2 && path.charAt(1) == ':') { in filepath2URI() 76 for (; i < len; i++) { in filepath2URI() 93 if (i < len) { in filepath2URI() 103 len = bytes.length; in filepath2URI() 106 for (i = 0; i < len; i++) { in filepath2URI()
|
/libcore/luni/src/main/java/javax/xml/transform/stream/ |
D | FilePathToURI.java | 42 int len = escChs.length; 44 for (int i = 0; i < len; i++) { 63 int len = path.length(), ch; in filepath2URI() local 64 StringBuilder buffer = new StringBuilder(len*3); in filepath2URI() 67 if (len >= 2 && path.charAt(1) == ':') { in filepath2URI() 76 for (; i < len; i++) { in filepath2URI() 93 if (i < len) { in filepath2URI() 103 len = bytes.length; in filepath2URI() 106 for (i = 0; i < len; i++) { in filepath2URI()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/ |
D | DSAKeyPairGeneratorImpl.java | 61 int len = 512; in initialize() local 62 while (len <= 1024) { in initialize() 63 if (len == modlen) { in initialize() 67 len = len + 8; in initialize() 68 if (len == 1032) { in initialize()
|
/libcore/luni/src/main/java/java/io/ |
D | ByteArrayOutputStream.java | 196 public synchronized void write(byte[] buffer, int offset, int len) { in write() argument 197 Arrays.checkOffsetAndCount(buffer.length, offset, len); in write() 198 if (len == 0) { in write() 201 expand(len); in write() 202 System.arraycopy(buffer, offset, buf, this.count, len); in write() 203 this.count += len; in write()
|
D | CharArrayWriter.java | 166 public void write(char[] buffer, int offset, int len) { in write() argument 167 Arrays.checkOffsetAndCount(buffer.length, offset, len); in write() 169 expand(len); in write() 170 System.arraycopy(buffer, offset, this.buf, this.count, len); in write() 171 this.count += len; in write()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharset_SingleByteAbstractTest.java | 132 int len = expected.length; in assertEqualChars2() local 133 if (actual.length < len) len = actual.length; in assertEqualChars2() 134 for (int i = 0; i < len; i++) { in assertEqualChars2() 180 int len = expected.length; in assertEqualBytes2() local 181 if (actual.length < len) len = actual.length; in assertEqualBytes2() 182 for (int i = 0; i < len; i++) { in assertEqualBytes2()
|
/libcore/luni/src/main/java/java/security/ |
D | MessageDigestSpi.java | 64 protected abstract void engineUpdate(byte[] input, int offset, int len); in engineUpdate() argument 120 protected int engineDigest(byte[] buf, int offset, int len) throws DigestException { in engineDigest() argument 121 if (len < engineGetDigestLength()) { in engineDigest() 129 if (offset + len > buf.length) { in engineDigest() 134 if (len < tmp.length) { in engineDigest()
|
D | DigestOutputStream.java | 104 public void write(byte[] b, int off, int len) throws IOException { in write() argument 107 digest.update(b, off, len); in write() 110 out.write(b, off, len); in write()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1Type.java | 149 int len = 1; //FIXME tag length = 1. what about long form? in getEncodedLength() local 153 len++; in getEncodedLength() 156 len++; in getEncodedLength() 157 for (int cur = out.length >> 8; cur > 0; len++) { in getEncodedLength() 161 len += out.length; in getEncodedLength() 163 return len; in getEncodedLength()
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
D | SecretKeySpec.java | 93 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { in SecretKeySpec() argument 100 if (len < 0 || offset < 0) { in SecretKeySpec() 103 if (key.length - offset < len) { in SecretKeySpec() 110 this.key = new byte[len]; in SecretKeySpec() 111 System.arraycopy(key, offset, this.key, 0, len); in SecretKeySpec()
|
/libcore/luni/src/main/java/java/util/zip/ |
D | InflaterInputStream.java | 52 protected int len; field in InflaterInputStream 167 } else if (len == -1) { in read() 174 if (len == -1) { in read() 192 len = is.fill(inf, nativeEndBufSize); in fill() 194 if ((len = in.read(buf)) > 0) { in fill() 195 inf.setInput(buf, 0, len); in fill()
|
/libcore/luni/src/main/java/javax/crypto/ |
D | CipherInputStream.java | 151 public int read(byte[] buf, int off, int len) throws IOException { in read() argument 159 if (available < len) { in read() 160 len = available; in read() 163 System.arraycopy(outputBuffer, outputIndex, buf, off, len); in read() 165 outputIndex += len; in read() 166 return len; in read()
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | ChunkHandler.java | 92 public static String getString(ByteBuffer buf, int len) { in getString() argument 93 char[] data = new char[len]; in getString() 94 for (int i = 0; i < len; i++) in getString() 103 int len = str.length(); in putString() local 104 for (int i = 0; i < len; i++) in putString()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 337 int len = elements.length; in equals() local 339 boolean[] matched = new boolean[len]; in equals() 342 if (++k > len) in equals() 345 for (int i = 0; i < len; ++i) { in equals() 353 return k == len; in equals()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidGZIPStreamTest.java | 99 int len, totalLen = 0; in scanGZIP() local 101 while ((len = in.read(buf)) > 0) { in scanGZIP() 102 contents.write(buf, 0, len); in scanGZIP() 103 totalLen += len; in scanGZIP()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MySignature1.java | 80 protected void engineUpdate(byte[] b, int off, int len) in engineUpdate() argument 83 if (off < 0 || off > b.length || off > len) { in engineUpdate() 86 if (len < 0 || len > b.length) { in engineUpdate()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
D | MyMacSpi.java | 61 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 62 if (offset >= 0 && len >= 0) { in engineUpdate() 63 length = len; in engineUpdate()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MacSpiTest.java | 72 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 73 super.engineUpdate(input, offset, len); in engineUpdate() 106 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 107 super.engineUpdate(input, offset, len); in engineUpdate() 145 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument 146 super.engineUpdate(input, offset, len); in engineUpdate() 245 protected void engineUpdate(byte[] input, int offset, int len) { in engineUpdate() argument
|
/libcore/luni/src/main/java/libcore/io/ |
D | Base64.java | 39 public static byte[] decode(byte[] in, int len) { in decode() argument 41 int length = len / 4 * 3; in decode() 53 for (;;len--) { in decode() 54 chr = in[len-1]; in decode() 74 for (int i=0; i<len; i++) { in decode()
|