Home
last modified time | relevance | path

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

12

/external/guava/guava/src/com/google/common/net/
DInetAddresses.java573 return getInet4Address(Arrays.copyOfRange(ip.getAddress(), 12, 16)); in getCompatIPv4Address()
606 return getInet4Address(Arrays.copyOfRange(ip.getAddress(), 2, 6)); in get6to4IPv4Address()
698 Inet4Address server = getInet4Address(Arrays.copyOfRange(bytes, 4, 8)); in getTeredoInfo()
705 byte[] clientBytes = Arrays.copyOfRange(bytes, 12, 16); in getTeredoInfo()
762 return getInet4Address(Arrays.copyOfRange(ip.getAddress(), 12, 16)); in getIsatapIPv4Address()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DDhiesTest.java161 String block1 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, i, i + 16)); in testNotEcb()
162 String block2 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, i + 16, i + 32)); in testNotEcb()
DEciesTest.java251 String block1 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, 241, 257)); in testNotEcb()
252 String block2 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, 257, 273)); in testNotEcb()
DEcdsaTest.java578 return new BigInteger(Arrays.copyOfRange(signature, startR + 2, startR + 2 + lengthR)); in extractR()
586 return new BigInteger(Arrays.copyOfRange(signature, startS + 2, startS + 2 + lengthS)); in extractS()
DDsaTest.java741 return new BigInteger(Arrays.copyOfRange(signature, 4, 4 + lengthR)); in extractR()
748 return new BigInteger(Arrays.copyOfRange(signature, startS + 2, startS + 2 + lengthS)); in extractS()
/external/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java351 byte[] expected = Arrays.copyOfRange("r\u00C9sum\u00C9".getBytes(Charsets.UTF_16), 2, 14); in testNewDataOutput_writeChars()
363 assertEquals(expected, Arrays.copyOfRange(actual, 2, actual.length)); in testNewDataOutput_writeUTF()
465 copyOfRange(buf, off, off + len), in testByteProcessorStopEarly()
594 private static byte[] copyOfRange(byte[] in, int from, int to) { in copyOfRange() method in ByteStreamsTest
DSourceSinkFactories.java166 return Arrays.copyOfRange(baseExpected, off, Math.min(baseExpected.length, off + len));
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DRawDexFile.java62 … return Arrays.copyOfRange(getBuf(), getBaseOffset() + start, getBaseOffset() + start + length); in readByteRange()
/external/vogar/src/vogar/target/
DTargetMonitorRunListener.java116 t.setStackTrace(Arrays.copyOfRange(stackTraceElements, first, last)); in prepareForDisplay()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DArrays.java821 public static byte[] copyOfRange(byte[] data, int from, int to) in copyOfRange() method in Arrays
839 public static int[] copyOfRange(int[] data, int from, int to) in copyOfRange() method in Arrays
857 public static long[] copyOfRange(long[] data, int from, int to) in copyOfRange() method in Arrays
875 public static BigInteger[] copyOfRange(BigInteger[] data, int from, int to) in copyOfRange() method in Arrays
/external/glide/third_party/disklrucache/
DCHANGELOG.md47 `Arrays.copyOfRange`. *(Thanks Edward Dale)*
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DPKCS5S2ParametersGenerator.java123 byte[] dKey = Arrays.copyOfRange(generateDerivedKey(keySize), 0, keySize); in generateDerivedParameters()
/external/r8/src/main/java/com/android/tools/r8/graph/
DDexType.java357 Arrays.copyOfRange(descriptor.content, leadingSquareBrackets, descriptor.content.length)); in toBaseType()
378 Arrays.copyOfRange(descriptor.content, 1, descriptor.content.length)); in toArrayElementType()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DOpenSSLServerSocketImplTest.java121 byte[] response = Arrays.copyOfRange(responseBuffer, 0, numBytes); in pingPong()
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractNonStreamingHashFunctionTest.java139 return HashCode.fromBytes(Arrays.copyOfRange(input, off, off + len)); in hashBytes()
DHashingInputStreamTest.java80 EasyMock.expect(hasher.putBytes(aryEq(Arrays.copyOfRange(testBytes, 0, 3)), eq(0), eq(3))) in testRead_putByteArrayAtPos()
DAbstractStreamingHasherTest.java258 return hashBytes(Arrays.copyOfRange(input, off, off + len));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
DECNamedCurveSpec.java45 int[] ks = Arrays.reverse(Arrays.copyOfRange(exponents, 1, exponents.length - 1)); in convertField()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java530 Arrays.copyOfRange(buffer, bufferPos, bufferPos + size); in readByteArray()
550 : ByteBuffer.wrap(Arrays.copyOfRange( in readByteBuffer()
1144 return Arrays.copyOfRange(buffer, pos, pos + size); in readRawBytes()
/external/r8/src/main/java/com/android/tools/r8/utils/
DStringUtils.java189 char characters[] = Arrays.copyOfRange(prefix, 0, prefix.length + size); in numberToIdentifier()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLCipher.java320 return Arrays.copyOfRange(output, 0, bytesWritten); in engineUpdate()
362 return Arrays.copyOfRange(output, 0, bytesWritten); in engineDoFinal()
1171 aad = Arrays.copyOfRange(input, inputOffset, inputOffset + inputLen); in engineUpdateAAD()
/external/guava/guava/src/com/google/common/reflect/
DInvokable.java266 return Arrays.copyOfRange(types, 1, types.length); in getGenericParameterTypes()
/external/libmojo/base/android/java/src/org/chromium/base/
DCommandLine.java266 return charsRead < buffer.length ? Arrays.copyOfRange(buffer, 0, charsRead) : buffer; in readUtf8FileFully()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java250 int[] ks = Arrays.reverse(Arrays.copyOfRange(exponents, 1, exponents.length - 1)); in convertField()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DDexDataWriterTest.java113 expectData(Arrays.copyOfRange(arr, 10, 310)); in testWriteByteArrayWithLengthAndOffset()

12