Home
last modified time | relevance | path

Searched refs:arraycopy (Results 1 – 25 of 146) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/lang/
DOldSystemTest.java37 System.arraycopy(new Object(), 0, b, 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
45 System.arraycopy(a, 0, new Object(), 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
53 System.arraycopy(new char[] {'a'}, 0, new String[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
61 System.arraycopy(new String[] {"a"}, 0, new char[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
69 System.arraycopy(new char[] {'a'}, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
77 System.arraycopy(new Character[] {'a'}, 0, new Integer[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
85 System.arraycopy(null, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
93 System.arraycopy(new int[]{'1'}, 0, null, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
100 System.arraycopy(a, a.length + 1, b, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
107 System.arraycopy(a, -1, b, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
[all …]
DSystemTest.java69 System.arraycopy(new char[5], 0, "Hello", 0, 3); in testArrayCopyTargetNotArray()
78 System.arraycopy("Hello", 0, new char[5], 0, 3); in testArrayCopySourceNotArray()
87 System.arraycopy(new char[5], 0, new Object[5], 0, 3); in testArrayCopyArrayTypeMismatch()
96 System.arraycopy(new Object[] { null, 5, "hello" }, 0, in testArrayCopyElementTypeMismatch()
106 System.arraycopy(null, 0, new char[5], 0, 3); in testArrayCopyNull()
112 System.arraycopy(new char[5], 0, null, 0, 3); in testArrayCopyNull()
143 System.arraycopy(source, 0, target, 0, source.length); in testArrayCopyConcurrentModification()
/libcore/benchmarks/src/benchmarks/
DSystemArrayCopyBenchmark.java34 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy()
43 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy()
52 System.arraycopy(src, 0, dst, 0, len); in timeSystemShortArrayCopy()
61 System.arraycopy(src, 0, dst, 0, len); in timeSystemIntArrayCopy()
70 System.arraycopy(src, 0, dst, 0, len); in timeSystemLongArrayCopy()
79 System.arraycopy(src, 0, dst, 0, len); in timeSystemFloatArrayCopy()
88 System.arraycopy(src, 0, dst, 0, len); in timeSystemDoubleArrayCopy()
97 System.arraycopy(src, 0, dst, 0, len); in timeSystemBooleanArrayCopy()
/libcore/luni/src/main/java/javax/crypto/spec/
DPBEKeySpec.java48 System.arraycopy(password, 0, this.password, 0, password.length); in PBEKeySpec()
92 System.arraycopy(password, 0, this.password, 0, password.length); in PBEKeySpec()
95 System.arraycopy(salt, 0, this.salt, 0, salt.length); in PBEKeySpec()
130 System.arraycopy(password, 0, this.password, 0, password.length); in PBEKeySpec()
133 System.arraycopy(salt, 0, this.salt, 0, salt.length); in PBEKeySpec()
158 System.arraycopy(password, 0, result, 0, password.length); in getPassword()
173 System.arraycopy(salt, 0, result, 0, salt.length); in getSalt()
DIvParameterSpec.java48 System.arraycopy(iv, 0, this.iv, 0, iv.length); in IvParameterSpec()
69 System.arraycopy(iv, offset, this.iv, 0, byteCount); in IvParameterSpec()
79 System.arraycopy(iv, 0, res, 0, iv.length); in getIV()
DDESedeKeySpec.java54 System.arraycopy(key, 0, this.key, 0, DES_EDE_KEY_LEN); in DESedeKeySpec()
80 System.arraycopy(key, offset, this.key, 0, DES_EDE_KEY_LEN); in DESedeKeySpec()
90 System.arraycopy(this.key, 0, result, 0, DES_EDE_KEY_LEN); in getKey()
DRC2ParameterSpec.java67 System.arraycopy(iv, 0, this.iv, 0, 8); in RC2ParameterSpec()
97 System.arraycopy(iv, offset, this.iv, 0, 8); in RC2ParameterSpec()
119 System.arraycopy(iv, 0, result, 0, iv.length); in getIV()
DPBEParameterSpec.java51 System.arraycopy(salt, 0, this.salt, 0, salt.length); in PBEParameterSpec()
62 System.arraycopy(salt, 0, result, 0, salt.length); in getSalt()
DSecretKeySpec.java70 System.arraycopy(key, 0, this.key, 0, key.length); in SecretKeySpec()
111 System.arraycopy(key, offset, this.key, 0, len); in SecretKeySpec()
139 System.arraycopy(key, 0, result, 0, key.length); in getEncoded()
DPSource.java93 System.arraycopy(p, 0, this.p, 0, p.length); in PSpecified()
103 System.arraycopy(p, 0, result, 0, p.length); in getValue()
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DBerOutputStream.java70 System.arraycopy(content, 0, encoded, offset, length); in encodeANY()
78 System.arraycopy(bStr.bytes, 0, encoded, offset + 1, length - 1); in encodeBitString()
100 System.arraycopy(content, 0, encoded, offset, length); in encodeGeneralizedTime()
105 System.arraycopy(content, 0, encoded, offset, length); in encodeUTCTime()
110 System.arraycopy(content, 0, encoded, offset, length); in encodeInteger()
115 System.arraycopy(content, 0, encoded, offset, length); in encodeOctetString()
176 System.arraycopy(content, 0, encoded, offset, length); in encodeString()
/libcore/luni/src/main/java/java/util/
DArrayList.java100 System.arraycopy(a, 0, newArray, 0, a.length); in ArrayList()
121 System.arraycopy(a, 0, newArray, 0, s); in add()
151 System.arraycopy(a, index, a, index + 1, s - index); in add()
155 System.arraycopy(a, 0, newArray, 0, index); in add()
156 System.arraycopy(a, index, newArray, index + 1, s - index); in add()
199 System.arraycopy(a, 0, newArray, 0, s); in addAll()
202 System.arraycopy(newPart, 0, a, s, newPartSize); in addAll()
236 System.arraycopy(a, index, a, index + newPartSize, s - index); in addAll()
240 System.arraycopy(a, 0, newArray, 0, index); in addAll()
241 System.arraycopy(a, index, newArray, index + newPartSize, s-index); in addAll()
[all …]
DArrayDeque.java126 System.arraycopy(elements, p, a, 0, r); in doubleCapacity()
127 System.arraycopy(elements, 0, a, r, p); in doubleCapacity()
142 System.arraycopy(elements, head, a, 0, size()); in copyElements()
145 System.arraycopy(elements, head, a, 0, headPortionLen); in copyElements()
146 System.arraycopy(elements, 0, a, headPortionLen, tail); in copyElements()
520 System.arraycopy(elements, h, elements, h + 1, front); in delete()
522 System.arraycopy(elements, 0, elements, 1, i); in delete()
524 System.arraycopy(elements, h, elements, h + 1, mask - h); in delete()
531 System.arraycopy(elements, i + 1, elements, i, back); in delete()
534 System.arraycopy(elements, i + 1, elements, i, mask - i); in delete()
[all …]
DComparableTimSort.java248 default: System.arraycopy(a, left, a, left + 1, n); in binarySort()
620 System.arraycopy(a, base1, tmp, 0, len1);
629 System.arraycopy(tmp, cursor1, a, dest, len1);
633 System.arraycopy(a, cursor2, a, dest, len2);
674 System.arraycopy(tmp, cursor1, a, dest, count1);
687 System.arraycopy(a, cursor2, a, dest, count2);
707 System.arraycopy(a, cursor2, a, dest, len2);
715 System.arraycopy(tmp, cursor1, a, dest, len1);
737 System.arraycopy(a, base2, tmp, 0, len2);
746 System.arraycopy(tmp, 0, a, dest - (len2 - 1), len2);
[all …]
DTimSort.java281 default: System.arraycopy(a, left, a, left + 1, n); in binarySort()
652 System.arraycopy(a, base1, tmp, 0, len1);
661 System.arraycopy(tmp, cursor1, a, dest, len1);
665 System.arraycopy(a, cursor2, a, dest, len2);
707 System.arraycopy(tmp, cursor1, a, dest, count1);
720 System.arraycopy(a, cursor2, a, dest, count2);
740 System.arraycopy(a, cursor2, a, dest, len2);
748 System.arraycopy(tmp, cursor1, a, dest, len1);
769 System.arraycopy(a, base2, tmp, 0, len2);
778 System.arraycopy(tmp, 0, a, dest - (len2 - 1), len2);
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DGZIPInputStreamTest.java73 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testMultipleMembers()
74 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, length, length); in testMultipleMembers()
84 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testTrailingNonGzipData()
99 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testTrailingHeaderAndPartialMember()
100 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, length, 10); in testTrailingHeaderAndPartialMember()
111 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testTrailingHeaderAndPartialMember()
112 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, length, 18); in testTrailingHeaderAndPartialMember()
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
DSHA1PRNG_SecureRandomImpl.java221 System.arraycopy(copies, HASHCOPY_OFFSET, this.seed, HASH_OFFSET, in engineSetSeed()
310 System.arraycopy(seed, HASH_OFFSET, copies, HASHCOPY_OFFSET, in engineNextBytes()
357 System.arraycopy(nextBytes, nextBIndex, bytes, nextByteToReturn, n); in engineNextBytes()
389 System.arraycopy(seed, 0, copies, FRAME_OFFSET, FRAME_LENGTH); in engineNextBytes()
390 System.arraycopy(copies, EXTRAFRAME_OFFSET, seed, 0, in engineNextBytes()
394 System.arraycopy(copies, FRAME_OFFSET, seed, 0, FRAME_LENGTH); in engineNextBytes()
413 System.arraycopy(nextBytes, 0, bytes, nextByteToReturn, j); in engineNextBytes()
448 System.arraycopy(seed, 0, intData, 0, nRemaining);
449 System.arraycopy(seed, HASH_OFFSET, intData, nRemaining,
473 System.arraycopy(seed, 0, intData, offset, FRAME_LENGTH);
[all …]
/libcore/dex/src/main/java/com/android/dex/
DClassData.java51 System.arraycopy(staticFields, 0, result, 0, staticFields.length); in allFields()
52 System.arraycopy(instanceFields, 0, result, staticFields.length, instanceFields.length); in allFields()
58 System.arraycopy(directMethods, 0, result, 0, directMethods.length); in allMethods()
59 System.arraycopy(virtualMethods, 0, result, directMethods.length, virtualMethods.length); in allMethods()
/libcore/luni/src/main/java/java/lang/
DAbstractStringBuilder.java96 System.arraycopy(value, 0, newData, 0, count); in enlargeBuffer()
117 System.arraycopy(chars, 0, value, count, chars.length); in append0()
127 System.arraycopy(chars, offset, value, count, length); in append0()
173 System.arraycopy(other.value, start, value, count, length); in append0()
237 System.arraycopy(value, end, value, start, length); in delete0()
240 System.arraycopy(value, 0, newData, 0, start); in delete0()
241 System.arraycopy(value, end, newData, start, length); in delete0()
299 System.arraycopy(value, start, dst, dstStart, end - start); in getChars()
308 System.arraycopy(chars, 0, value, index, chars.length); in insert0()
319 System.arraycopy(chars, start, value, index, length); in insert0()
[all …]
/libcore/luni/src/main/java/java/security/spec/
DEncodedKeySpec.java38 System.arraycopy(encodedKey, 0, in EncodedKeySpec()
51 System.arraycopy(encodedKey, 0, ret, 0, ret.length); in getEncoded()
/libcore/luni/src/main/java/java/security/cert/
DPolicyQualifierInfo.java56 System.arraycopy(encoded, 0, this.encoded, 0, this.encoded.length); in PolicyQualifierInfo()
72 System.arraycopy(encoded, 0, ret, 0, encoded.length); in getEncoded()
97 System.arraycopy(policyQualifier, 0, ret, 0, policyQualifier.length); in getPolicyQualifier()
/libcore/luni/src/main/java/java/io/
DByteArrayOutputStream.java92 System.arraycopy(buf, 0, newbuf, 0, count); in expand()
123 System.arraycopy(buf, 0, newArray, 0, count); in toByteArray()
202 System.arraycopy(buffer, offset, buf, this.count, len); in write()
/libcore/luni/src/main/java/org/apache/harmony/security/
DPublicKeyImpl.java57 System.arraycopy(encoding, 0, result, 0, encoding.length); in getEncoded()
69 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length); in setEncoding()
DPrivateKeyImpl.java52 System.arraycopy(encoding, 0, toReturn, 0, encoding.length); in getEncoded()
63 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length); in setEncoding()
/libcore/luni/src/main/java/java/security/
DSignedObject.java47 System.arraycopy(content, 0, tmp, 0, content.length); in readObject()
50 System.arraycopy(signature, 0, tmp, 0, signature.length); in readObject()
120 System.arraycopy(signature, 0, sig, 0, signature.length); in getSignature()

123456