Home
last modified time | relevance | path

Searched refs:copyOfRange (Results 1 – 17 of 17) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java3648 byte[] result = Arrays.copyOfRange(byteArray, 0, arraySize * 2); in test_copyOfRange_$BII()
3656 result = Arrays.copyOfRange(byteArray, 0, arraySize / 2); in test_copyOfRange_$BII()
3661 result = Arrays.copyOfRange(byteArray, 0, 0); in test_copyOfRange_$BII()
3664 Arrays.copyOfRange((byte[]) null, 0, arraySize); in test_copyOfRange_$BII()
3670 Arrays.copyOfRange((byte[]) null, -1, arraySize); in test_copyOfRange_$BII()
3676 Arrays.copyOfRange((byte[]) null, 0, -1); in test_copyOfRange_$BII()
3682 Arrays.copyOfRange(byteArray, -1, arraySize); in test_copyOfRange_$BII()
3688 Arrays.copyOfRange(byteArray, 0, -1); in test_copyOfRange_$BII()
3693 assertEquals(byteArray.length + 1, Arrays.copyOfRange(byteArray, 0, in test_copyOfRange_$BII()
3701 short[] result = Arrays.copyOfRange(shortArray, 0, arraySize * 2); in test_copyOfRange_$SII()
[all …]
/libcore/luni/src/main/java/java/util/
DArrays.java2436 return copyOfRange(original, 0, newLength); in copyOf()
2455 return copyOfRange(original, 0, newLength); in copyOf()
2474 return copyOfRange(original, 0, newLength); in copyOf()
2493 return copyOfRange(original, 0, newLength); in copyOf()
2512 return copyOfRange(original, 0, newLength); in copyOf()
2531 return copyOfRange(original, 0, newLength); in copyOf()
2550 return copyOfRange(original, 0, newLength); in copyOf()
2569 return copyOfRange(original, 0, newLength); in copyOf()
2591 return copyOfRange(original, 0, newLength); in copyOf()
2613 return copyOfRange(original, 0, newLength, newType); in copyOf()
[all …]
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DPortableThreadSampler.java39 stackFrames = Arrays.copyOfRange(stackFrames, 0, depth); in getStackTrace()
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DASN1Enumerated.java78 return Arrays.copyOfRange(in.buffer, in.contentOffset, in.contentOffset + in.length); in getDecodedObject()
DASN1OctetString.java76 return Arrays.copyOfRange(in.buffer, in.contentOffset, in.contentOffset + in.length); in getDecodedObject()
/libcore/luni/src/main/java/javax/crypto/spec/
DGCMParameterSpec.java81 this.iv = Arrays.copyOfRange(iv, offset, offset + byteCount); in GCMParameterSpec()
/libcore/benchmarks/src/benchmarks/
DArrayCopyBenchmark.java54 char[] dst = Arrays.copyOfRange(src, 0, 8192); in time_Arrays_copyOfRange()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DGCMParameterSpecTest.java94 assertEquals(Arrays.toString(Arrays.copyOfRange(TEST_IV, 2, 6)), in testGetIV_Subarray_Success()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/x509/
DSubjectPublicKeyInfoTest.java95 Arrays.toString(Arrays.copyOfRange(encoded, encoded.length in test_getPublicKey_NameKnownButOnlyOIDFactoryRegistered()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetEncoderTest.java128 System.err.println(Arrays.toString(Arrays.copyOfRange(bb.array(), 0, bb.position()))); in testCharsetEncoderSplitSurrogates()
/libcore/luni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java317 newElements = Arrays.copyOfRange( in addAllAbsent()
397 newElements = Arrays.copyOfRange(newElements, 0, newSize); // trim to size in removeOrRetain()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java359 return Arrays.copyOfRange(all, 0, actualSize); in groups()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DGeneralName.java645 return Arrays.copyOfRange(result, 0, number); in oidStrToInts()
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertificateFactoryTest.java223 baos.write(Arrays.copyOfRange(VALID_CERTIFICATE_PEM_DATA, offset, end)); in test_generateCertificate_AnyLineLength_Success()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java2131 expected = Arrays.copyOfRange(expected, nonZeroOffset, expected.length); in assertEncryptedEqualsNoPadding()
2636 Arrays.toString(Arrays.copyOfRange(actualPlaintext, 0, p.plaintext.length))); in checkCipher()
2648 … Arrays.toString(Arrays.copyOfRange(actualPlaintext, 1, p.plaintext.length + 1))); in checkCipher()
/libcore/libart/src/main/java/java/lang/
DString.java423 : Arrays.copyOfRange(toCopy.value, toCopy.offset, toCopy.offset + toCopy.length()); in String()
/libcore/jsr166-tests/src/test/java/jsr166/
DRecursiveActionTest.java1217 long[] buf = Arrays.copyOfRange(array, lo, mid); in merge()