Home
last modified time | relevance | path

Searched refs:wrap (Results 1 – 25 of 53) sorted by relevance

123

/tools/apksig/src/test/java/com/android/apksig/internal/util/
DChainedDataSourceTest.java42 DataSources.asDataSource(ByteBuffer.wrap("12".getBytes(US_ASCII))), in setUp()
43 DataSources.asDataSource(ByteBuffer.wrap("34567".getBytes(US_ASCII))), in setUp()
44 DataSources.asDataSource(ByteBuffer.wrap("".getBytes(US_ASCII))), in setUp()
45 DataSources.asDataSource(ByteBuffer.wrap("890".getBytes(US_ASCII))), in setUp()
46 DataSources.asDataSource(ByteBuffer.wrap("".getBytes(US_ASCII)))); in setUp()
57 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in feedAllPossibleRanges()
74 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in getByteBufferFromAllPossibleRanges()
96 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in copyTo()
110 ByteBuffer.wrap("1234567890".substring(begin, end).getBytes(US_ASCII)), in slice()
DVerityTreeBuilderTest.java71 DataSources.asDataSource(ByteBuffer.wrap(input)))); in generateRootHash()
79 return DataSources.asDataSource(ByteBuffer.wrap(data.getBytes(UTF_8))); in makeStringDataSource()
94 DataSources.asDataSource(ByteBuffer.wrap(sampleEoCDFromDisk))); in generateVerityTreeRootHashFromPlaceholderDataSource()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/
DLittleEndianUtilsTest.java29 assertEquals(0x0102, LittleEndianUtils.readUnsigned2Le(ByteBuffer.wrap( in read2Le()
31 assertEquals(0xfedc, LittleEndianUtils.readUnsigned2Le(ByteBuffer.wrap( in read2Le()
63 ByteBuffer in = ByteBuffer.wrap(out.array()); in readWrite2Le()
71 assertEquals(0x01020304, LittleEndianUtils.readUnsigned4Le(ByteBuffer.wrap( in read4Le()
73 assertEquals(0xfedcba98L, LittleEndianUtils.readUnsigned4Le(ByteBuffer.wrap( in read4Le()
106 ByteBuffer in = ByteBuffer.wrap(out.array()); in readWrite4Le()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueTest.java37 ByteBuffer.wrap(HexEncoding.decode("aa")),
38 ByteBuffer.wrap(HexEncoding.decode("bb")),
45 ByteBuffer.wrap(HexEncoding.decode("cc")),
46 ByteBuffer.wrap(HexEncoding.decode("dd")),
114 ByteBuffer.wrap(HexEncoding.decode("300203040500")), in testContentsReader()
DByteBufferBerDataValueReaderTest.java30 return new ByteBufferBerDataValueReader(ByteBuffer.wrap(input)); in createReader()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1DerEncoderTest.java53 ByteBuffer.wrap(new byte[] {1, 2, 3})))); in testOctetString()
58 ByteBuffer.wrap(new byte[] {(byte) 0xff})))); in testOctetString()
63 new SequenceWithByteBufferOctetString(ByteBuffer.wrap(new byte[0])))); in testOctetString()
72 ByteBuffer.wrap(new byte[] {1, 2, 3})))); in testBitString()
77 ByteBuffer.wrap(new byte[] {(byte) 0xff})))); in testBitString()
82 new SequenceWithByteBufferBitString(ByteBuffer.wrap(new byte[0])))); in testBitString()
DAsn1BerParserTest.java47 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("300012345678")); in testEmptySequence()
247 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("0280020401000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
256 input = ByteBuffer.wrap(HexEncoding.decode("0280028001000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
270 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("308002020000000002010c")); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues()
286 ByteBuffer.wrap(HexEncoding.decode("308002800300000280030000020103000002010c")); in testConstructedIndefiniteLengthEncodingWithNestedIndefiniteLengthDataValues()
299 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("3080308002040000000002010c")); in testConstructedIndefiniteLengthEncodingWithGarbage()
307 ? null : ByteBuffer.wrap(HexEncoding.decode(hexEncodedInput)); in parse()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DExtraFieldTest.java134 segments.get(0).write(ByteBuffer.wrap(segData)); in readSingleExtraField()
182 segments.get(0).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields()
187 segments.get(1).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields()
192 segments.get(2).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields()
234 s.write(ByteBuffer.wrap(sData)); in addExtraFieldToExistingEntry()
330 s.write(ByteBuffer.wrap(sData)); in updateExtraFieldOfExistingEntry()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceFromByteBufferTest.java34 ByteBuffer buf = ByteBuffer.wrap("abcdefgh".getBytes(StandardCharsets.UTF_8)); in testChangesToBufferPosAndLimitNotVisible()
48 return CloseableWithDataSource.of(DataSources.asDataSource(ByteBuffer.wrap(contents))); in createDataSource()
DDataSinkFromOutputStreamTest.java40 return ByteBuffer.wrap(((ByteArrayOutputStream) dataSink.getOutputStream()).toByteArray()); in getContents()
DDataSinkFromRAFTest.java59 return ByteBuffer.wrap(contents); in getContents()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DByteTracker.java51 return new CloseableDelegateByteSource(ByteSource.wrap(data), data.length) { in fromStream()
71 return new CloseableDelegateByteSource(ByteSource.wrap(data), data.length) {
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4Signature.java50 ByteBuffer buffer = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
89 return fromByteBuffer(ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN)); in fromByteArray()
157 ByteBuffer buffer = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
262 return ByteBuffer.wrap(buffer).order(ByteOrder.LITTLE_ENDIAN).getInt(); in readIntLE()
266 …final byte[] buffer = ByteBuffer.wrap(new byte[4]).order(ByteOrder.LITTLE_ENDIAN).putInt(v).array(… in writeIntLE()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DEncodeUtils.java86 .decode(ByteBuffer.wrap(data)) in decode()
94 return charset.decode(ByteBuffer.wrap(data)).toString(); in decode()
DExtraField.java147 ByteBuffer buffer = ByteBuffer.wrap(rawData); in parseSegments()
379 ByteBuffer dataBuffer = ByteBuffer.wrap(data); in AlignmentSegment()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DX509CertificateUtils.java130 ByteBuffer.wrap(encodedForm)); in generateCertificate()
190 ByteBuffer encodedCertsBuffer = ByteBuffer.wrap(encodedCerts); in generateCertificates()
280 return ByteBuffer.wrap(derEncoding); in getNextDEREncodedCertificateBlock()
DByteArrayDataSink.java120 return ByteBuffer.wrap(mArray, (int) offset, size).slice(); in getByteBuffer()
198 return ByteBuffer.wrap(mArray, (int) (mSliceOffset + offset), size).slice(); in getByteBuffer()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DImportData.kt25 fun wrap(line: FtraceLine): ImportData { in wrap() method in trebuchet.importers.ftrace.ImportData
/tools/apksig/src/test/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsTest.java64 DataSources.asDataSource(ByteBuffer.wrap(part2)), in setUp()
65 DataSources.asDataSource(ByteBuffer.wrap(part3)), in setUp()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DByteArrayUtil.java49 return ByteBuffer.wrap(data).order(java.nio.ByteOrder.LITTLE_ENDIAN); in getByteBuffer()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DInputStreamBerDataValueReader.java90 ByteBuffer.wrap(encoded, contentsOffsetInDataValue, contentsLength); in readDataValue()
92 ByteBuffer.wrap(encoded), in readDataValue()
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java332 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultLineage()
355 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultV3Lineage()
378 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultNoLineageApk()
398 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultNoV31Apk()
411 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultFromV3BlockFromV31SignedApk()
429 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultContainsLineageErrors()
445 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultDigests()
465 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetV3ResultDigests()
485 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetV2ResultDigests()
505 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultIncorrectDigests()
[all …]
/tools/apksig/src/test/java/com/android/apksig/kms/
DKeyWrapper.java58 final byte[] wrappedTargetKey = kwp.wrap(privateKeyBytes); in wrapKeyForImport()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/
D__init__.py56 def wrap(*args, **kwargs): function
63 return wrap
79 def wrap(*args, **kwargs): function
90 return wrap
/tools/apksig/src/apksigner/java/com/android/apksigner/
DPasswordRetriever.java280 .encode(CharBuffer.wrap(pwd)); in encodePassword()
291 .decode(ByteBuffer.wrap(pwdBytes)); in decodePassword()

123