/libcore/benchmarks/src/benchmarks/ |
D | SystemArrayCopyBenchmark.java | 33 System.arraycopy(src, 0, dst, 0, len); in timeSystemCharArrayCopy() 42 System.arraycopy(src, 0, dst, 0, len); in timeSystemByteArrayCopy() 51 System.arraycopy(src, 0, dst, 0, len); in timeSystemShortArrayCopy() 60 System.arraycopy(src, 0, dst, 0, len); in timeSystemIntArrayCopy() 69 System.arraycopy(src, 0, dst, 0, len); in timeSystemLongArrayCopy() 78 System.arraycopy(src, 0, dst, 0, len); in timeSystemFloatArrayCopy() 87 System.arraycopy(src, 0, dst, 0, len); in timeSystemDoubleArrayCopy() 96 System.arraycopy(src, 0, dst, 0, len); in timeSystemBooleanArrayCopy()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldSystemTest.java | 39 System.arraycopy(new Object(), 0, b, 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 47 System.arraycopy(a, 0, new Object(), 0, 0); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 55 System.arraycopy(new char[] {'a'}, 0, new String[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 63 System.arraycopy(new String[] {"a"}, 0, new char[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 71 System.arraycopy(new char[] {'a'}, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 79 System.arraycopy(new Character[] {'a'}, 0, new Integer[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 87 System.arraycopy(null, 0, new int[1], 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 95 System.arraycopy(new int[]{'1'}, 0, null, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 102 System.arraycopy(a, a.length + 1, b, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() 109 System.arraycopy(a, -1, b, 0, 1); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII() [all …]
|
D | SystemTest.java | 71 System.arraycopy(new char[5], 0, "Hello", 0, 3); in testArrayCopyTargetNotArray() 80 System.arraycopy("Hello", 0, new char[5], 0, 3); in testArrayCopySourceNotArray() 89 System.arraycopy(new char[5], 0, new Object[5], 0, 3); in testArrayCopyArrayTypeMismatch() 98 System.arraycopy(new Object[] { null, 5, "hello" }, 0, in testArrayCopyElementTypeMismatch() 108 System.arraycopy(null, 0, new char[5], 0, 3); in testArrayCopyNull() 114 System.arraycopy(new char[5], 0, null, 0, 3); in testArrayCopyNull() 145 System.arraycopy(source, 0, target, 0, source.length); in testArrayCopyConcurrentModification()
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1PRNG_SecureRandomImpl.java | 221 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/luni/src/test/java/libcore/java/util/zip/ |
D | GZIPInputStreamTest.java | 106 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testMultipleMembers() 107 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, length, length); in testMultipleMembers() 117 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testTrailingNonGzipData() 132 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testTrailingHeaderAndPartialMember() 133 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, length, 10); in testTrailingHeaderAndPartialMember() 142 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testTrailingHeaderAndPartialMember() 143 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, length, length - 4); in testTrailingHeaderAndPartialMember()
|
/libcore/dex/src/main/java/com/android/dex/ |
D | ClassData.java | 51 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/android/system/ |
D | UnixSocketAddress.java | 52 System.arraycopy(sun_path, 0, this.sun_path, 0, sun_path.length); in UnixSocketAddress() 63 System.arraycopy(nameBytes, 0, path, 1, nameBytes.length); in createAbstract() 74 System.arraycopy(pathNameBytes, 0, path, 0, pathNameBytes.length); in createFileSystem() 91 System.arraycopy(sun_path, 0, sunPathCopy, 0, sun_path.length); in getSunPath()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ComparableTimSort.java | 278 default: System.arraycopy(a, left, a, left + 1, n); in binarySort() 654 System.arraycopy(a, base1, tmp, cursor1, len1); 659 System.arraycopy(tmp, cursor1, a, dest, len1); 663 System.arraycopy(a, cursor2, a, dest, len2); 704 System.arraycopy(tmp, cursor1, a, dest, count1); 717 System.arraycopy(a, cursor2, a, dest, count2); 737 System.arraycopy(a, cursor2, a, dest, len2); 745 System.arraycopy(tmp, cursor1, a, dest, len1); 768 System.arraycopy(a, base2, tmp, tmpBase, len2); 777 System.arraycopy(tmp, tmpBase, a, dest - (len2 - 1), len2); [all …]
|
D | TimSort.java | 312 default: System.arraycopy(a, left, a, left + 1, n); in binarySort() 686 System.arraycopy(a, base1, tmp, cursor1, len1); 691 System.arraycopy(tmp, cursor1, a, dest, len1); 695 System.arraycopy(a, cursor2, a, dest, len2); 737 System.arraycopy(tmp, cursor1, a, dest, count1); 750 System.arraycopy(a, cursor2, a, dest, count2); 770 System.arraycopy(a, cursor2, a, dest, len2); 778 System.arraycopy(tmp, cursor1, a, dest, len1); 800 System.arraycopy(a, base2, tmp, tmpBase, len2); 809 System.arraycopy(tmp, tmpBase, a, dest - (len2 - 1), len2); [all …]
|
D | ArrayDeque.java | 159 System.arraycopy(elements, p, a, 0, r); in doubleCapacity() 160 System.arraycopy(elements, 0, a, r, p); in doubleCapacity() 535 System.arraycopy(elements, h, elements, h + 1, front); in delete() 537 System.arraycopy(elements, 0, elements, 1, i); in delete() 539 System.arraycopy(elements, h, elements, h + 1, mask - h); in delete() 546 System.arraycopy(elements, i + 1, elements, i, back); in delete() 549 System.arraycopy(elements, i + 1, elements, i, mask - i); in delete() 551 System.arraycopy(elements, 1, elements, 0, t); in delete() 771 System.arraycopy(elements, 0, a, elements.length - head, tail); in toArray() 823 System.arraycopy(elements, head, a, 0, firstLeg); in toArray() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 356 System.arraycopy(value, srcBegin, dst, dstBegin, srcEnd - srcBegin); in getChars() 490 System.arraycopy(other.value, start, value, count, len); in append() 520 System.arraycopy(str, 0, value, count, len); in append() 551 System.arraycopy(str, offset, value, count, len); in append() 729 System.arraycopy(value, start+len, value, start, count-end); in delete() 793 System.arraycopy(value, index+1, value, index, count-index-1); in deleteCharAt() 832 System.arraycopy(value, end, value, start + len, count - end); in replace() 939 System.arraycopy(value, index, value, index + len, count - index); in insert() 940 System.arraycopy(str, offset, value, index, len); in insert() 1008 System.arraycopy(value, offset, value, offset + len, count - offset); in insert() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/ |
D | PrivateKeyImpl.java | 52 System.arraycopy(encoding, 0, toReturn, 0, encoding.length); in getEncoded() 63 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length); in setEncoding()
|
D | PublicKeyImpl.java | 57 System.arraycopy(encoding, 0, result, 0, encoding.length); in getEncoded() 69 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length); in setEncoding()
|
/libcore/ojluni/src/main/java/sun/security/ec/ |
D | ECParameters.java | 96 System.arraycopy(data, 1, xb, 0, n); in decodePoint() 97 System.arraycopy(data, n + 1, yb, 0, n); in decodePoint() 113 System.arraycopy(xb, 0, b, n - xb.length + 1, xb.length); in encodePoint() 114 System.arraycopy(yb, 0, b, b.length - yb.length, yb.length); in encodePoint() 129 System.arraycopy(b, i, t, 0, t.length); in trimZeroes()
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Attributes2Impl.java | 249 System.arraycopy (declared, 0, newFlags, 0, declared.length); in addAttribute() 253 System.arraycopy (specified, 0, newFlags, 0, specified.length); in addAttribute() 269 System.arraycopy (declared, index + 1, declared, index, in removeAttribute() 271 System.arraycopy (specified, index + 1, specified, index, in removeAttribute()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | HeapLongBuffer.java | 122 System.arraycopy(hb, ix(position()), dst, offset, length); in get() 158 System.arraycopy(src, offset, hb, ix(position()), length); in put() 174 System.arraycopy(sb.hb, sb.ix(sb.position()), in put() 194 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact()
|
D | HeapShortBuffer.java | 121 System.arraycopy(hb, ix(position()), dst, offset, length); in get() 157 System.arraycopy(src, offset, hb, ix(position()), length); in put() 173 System.arraycopy(sb.hb, sb.ix(sb.position()), in put() 193 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact()
|
D | HeapDoubleBuffer.java | 121 System.arraycopy(hb, ix(position()), dst, offset, length); in get() 157 System.arraycopy(src, offset, hb, ix(position()), length); in put() 173 System.arraycopy(sb.hb, sb.ix(sb.position()), in put() 193 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact()
|
D | HeapFloatBuffer.java | 120 System.arraycopy(hb, ix(position()), dst, offset, length); in get() 156 System.arraycopy(src, offset, hb, ix(position()), length); in put() 172 System.arraycopy(sb.hb, sb.ix(sb.position()), in put() 192 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact()
|
D | HeapIntBuffer.java | 121 System.arraycopy(hb, ix(position()), dst, offset, length); in get() 157 System.arraycopy(src, offset, hb, ix(position()), length); in put() 173 System.arraycopy(sb.hb, sb.ix(sb.position()), in put() 193 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact()
|
D | HeapCharBuffer.java | 126 System.arraycopy(hb, ix(position()), dst, offset, length); in get() 162 System.arraycopy(src, offset, hb, ix(position()), length); in put() 178 System.arraycopy(sb.hb, sb.ix(sb.position()), in put() 198 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
D | BasicAuthentication.java | 76 System.arraycopy(nameBytes, 0, concat, 0, nameBytes.length); in BasicAuthentication() 77 System.arraycopy(passwdBytes, 0, concat, nameBytes.length, in BasicAuthentication() 116 System.arraycopy(nameBytes, 0, concat, 0, nameBytes.length); in BasicAuthentication() 117 System.arraycopy(passwdBytes, 0, concat, nameBytes.length, in BasicAuthentication()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ASimpleWriter.java | 63 System.arraycopy(src, offset, buf, pos, count); in write() 73 System.arraycopy(buf, 0, toReturn, 0, pos); in toByteArray()
|
/libcore/luni/src/test/java/android/system/ |
D | UnixSocketAddressTest.java | 33 System.arraycopy(abstractNameBytes, 0, expected, 0, abstractNameBytes.length); in testFilesystemSunPath() 48 System.arraycopy(abstractNameBytes, 0, expected, 1, abstractNameBytes.length); in testAbstractSunPath()
|
/libcore/ojluni/src/main/java/sun/net/www/http/ |
D | ChunkedInputStream.java | 191 System.arraycopy(rawData, rawPos, tmp, 0, used); in ensureRawAvailable() 196 System.arraycopy(rawData, rawPos, rawData, 0, used); in ensureRawAvailable() 364 System.arraycopy(chunkData, chunkPos, tmp, 0, cnt); in processRaw() 367 System.arraycopy(chunkData, chunkPos, chunkData, 0, cnt); in processRaw() 377 System.arraycopy(rawData, rawPos, chunkData, chunkCount, copyLen); in processRaw() 702 System.arraycopy(chunkData, chunkPos, b, off, cnt); in read()
|