Home
last modified time | relevance | path

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

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DArraysTest.java3033 byte[] result = Arrays.copyOfRange(byteArray, 0,arraySize*2); in test_copyOfRange_$BII()
3041 result = Arrays.copyOfRange(byteArray,0, arraySize/2); in test_copyOfRange_$BII()
3046 result = Arrays.copyOfRange(byteArray,0, 0); in test_copyOfRange_$BII()
3049 Arrays.copyOfRange((byte[])null, 0,arraySize); in test_copyOfRange_$BII()
3055 Arrays.copyOfRange((byte[])null, -1,arraySize); in test_copyOfRange_$BII()
3061 Arrays.copyOfRange((byte[])null, 0,-1); in test_copyOfRange_$BII()
3067 Arrays.copyOfRange(byteArray, -1,arraySize); in test_copyOfRange_$BII()
3073 Arrays.copyOfRange(byteArray, 0, -1); in test_copyOfRange_$BII()
3078 assertEquals(byteArray.length + 1, Arrays.copyOfRange(byteArray, 0, in test_copyOfRange_$BII()
3086 short[] result = Arrays.copyOfRange(shortArray, 0,arraySize*2); in test_copyOfRange_$SII()
[all …]
/external/guava/guava/src/com/google/common/net/
DInetAddresses.java616 return getInet4Address(copyOfRange(ip.getAddress(), 12, 16)); in getCompatIPv4Address()
652 return getInet4Address(copyOfRange(ip.getAddress(), 2, 6)); in get6to4IPv4Address()
759 Inet4Address server = getInet4Address(copyOfRange(bytes, 4, 8)); in getTeredoInfo()
766 byte[] clientBytes = copyOfRange(bytes, 12, 16); in getTeredoInfo()
826 return getInet4Address(copyOfRange(ip.getAddress(), 12, 16)); in getIsatapIPv4Address()
1114 private static byte[] copyOfRange(byte[] original, int from, int to) { in copyOfRange() method in InetAddresses
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DArrays.java545 public static byte[] copyOfRange(byte[] data, int from, int to) in copyOfRange() method in Arrays
563 public static int[] copyOfRange(int[] data, int from, int to) in copyOfRange() method in Arrays
581 public static long[] copyOfRange(long[] data, int from, int to) in copyOfRange() method in Arrays
599 public static BigInteger[] copyOfRange(BigInteger[] data, int from, int to) in copyOfRange() method in Arrays
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractNonStreamingHashFunctionTest.java89 return HashCodes.fromBytes(Arrays.copyOfRange(input, off, off + len)); in hashBytes()
DAbstractStreamingHasherTest.java226 return hashBytes(Arrays.copyOfRange(input, off, off + len));
/external/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java694 byte[] expected = Arrays.copyOfRange("r\u00C9sum\u00C9".getBytes(Charsets.UTF_16), 2, 14);
706 assertEquals(expected, Arrays.copyOfRange(actual, 2, actual.length));
859 copyOfRange(buf, off, off + len),
871 private static byte[] copyOfRange(byte[] in, int from, int to) {
/external/okhttp/src/main/java/com/squareup/okhttp/internal/
DDiskLruCache.java285 entry.setLengths(Arrays.copyOfRange(parts, 2, parts.length)); in readJournalLine()
/external/guava/guava/src/com/google/common/primitives/
Dgenerate.sh181 * java.util.Arrays.copyOfRange(array, i, i + target.length)} contains exactly
/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
DHttpResponseCacheTest.java1676 response.setBody(Arrays.copyOfRange(response.getBody(), 0, numBytesToKeep)); in truncateViolently()