/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | ChainedDataSourceTest.java | 42 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()
|
D | VerityTreeBuilderTest.java | 71 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/ |
D | LittleEndianUtilsTest.java | 29 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/ |
D | BerDataValueTest.java | 37 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()
|
D | ByteBufferBerDataValueReaderTest.java | 30 return new ByteBufferBerDataValueReader(ByteBuffer.wrap(input)); in createReader()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1DerEncoderTest.java | 53 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()
|
D | Asn1BerParserTest.java | 47 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/ |
D | ExtraFieldTest.java | 134 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/ |
D | DataSourceFromByteBufferTest.java | 34 ByteBuffer buf = ByteBuffer.wrap("abcdefgh".getBytes(StandardCharsets.UTF_8)); in testChangesToBufferPosAndLimitNotVisible() 48 return CloseableWithDataSource.of(DataSources.asDataSource(ByteBuffer.wrap(contents))); in createDataSource()
|
D | DataSinkFromOutputStreamTest.java | 40 return ByteBuffer.wrap(((ByteArrayOutputStream) dataSink.getOutputStream()).toByteArray()); in getContents()
|
D | DataSinkFromRAFTest.java | 59 return ByteBuffer.wrap(contents); in getContents()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | ByteTracker.java | 51 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/ |
D | V4Signature.java | 50 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/ |
D | EncodeUtils.java | 86 .decode(ByteBuffer.wrap(data)) in decode() 94 return charset.decode(ByteBuffer.wrap(data)).toString(); in decode()
|
D | ExtraField.java | 147 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/ |
D | X509CertificateUtils.java | 130 ByteBuffer.wrap(encodedForm)); in generateCertificate() 190 ByteBuffer encodedCertsBuffer = ByteBuffer.wrap(encodedCerts); in generateCertificates() 280 return ByteBuffer.wrap(derEncoding); in getNextDEREncodedCertificateBlock()
|
D | ByteArrayDataSink.java | 120 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/ |
D | ImportData.kt | 25 fun wrap(line: FtraceLine): ImportData { in wrap() method in trebuchet.importers.ftrace.ImportData
|
/tools/apksig/src/test/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsTest.java | 64 DataSources.asDataSource(ByteBuffer.wrap(part2)), in setUp() 65 DataSources.asDataSource(ByteBuffer.wrap(part3)), in setUp()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ByteArrayUtil.java | 49 return ByteBuffer.wrap(data).order(java.nio.ByteOrder.LITTLE_ENDIAN); in getByteBuffer()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/ |
D | InputStreamBerDataValueReader.java | 90 ByteBuffer.wrap(encoded, contentsOffsetInDataValue, contentsLength); in readDataValue() 92 ByteBuffer.wrap(encoded), in readDataValue()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 332 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/ |
D | KeyWrapper.java | 58 final byte[] wrappedTargetKey = kwp.wrap(privateKeyBytes); in wrapKeyForImport()
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/ |
D | __init__.py | 56 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/ |
D | PasswordRetriever.java | 280 .encode(CharBuffer.wrap(pwd)); in encodePassword() 291 .decode(ByteBuffer.wrap(pwdBytes)); in decodePassword()
|