/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | AndroidBinXmlParser.java | 672 private static String getLengthPrefixedUtf16EncodedString(ByteBuffer encoded) in getLengthPrefixedUtf16EncodedString() argument 677 int lengthChars = getUnsignedInt16(encoded); in getLengthPrefixedUtf16EncodedString() 679 lengthChars = ((lengthChars & 0x7fff) << 16) | getUnsignedInt16(encoded); in getLengthPrefixedUtf16EncodedString() 688 if (encoded.hasArray()) { in getLengthPrefixedUtf16EncodedString() 689 arr = encoded.array(); in getLengthPrefixedUtf16EncodedString() 690 arrOffset = encoded.arrayOffset() + encoded.position(); in getLengthPrefixedUtf16EncodedString() 691 encoded.position(encoded.position() + lengthBytes); in getLengthPrefixedUtf16EncodedString() 695 encoded.get(arr); in getLengthPrefixedUtf16EncodedString() 710 private static String getLengthPrefixedUtf8EncodedString(ByteBuffer encoded) in getLengthPrefixedUtf8EncodedString() argument 717 int lengthBytes = getUnsignedInt8(encoded); in getLengthPrefixedUtf8EncodedString() [all …]
|
D | ApkSigningBlockUtils.java | 749 ByteBuffer encoded = ByteBuffer.allocate(backBufferSize); in computeApkVerityDigest() local 750 encoded.order(ByteOrder.LITTLE_ENDIAN); in computeApkVerityDigest() 756 encoded.put(rootHash); in computeApkVerityDigest() 757 encoded.putLong(beforeCentralDir.size() + centralDir.size() + eocd.size()); in computeApkVerityDigest() 759 outputContentDigests.put(ContentDigestAlgorithm.VERITY_CHUNKED_SHA256, encoded.array()); in computeApkVerityDigest()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParser.java | 60 public static <T> T parse(ByteBuffer encoded, Class<T> containerClass) in parse() argument 64 containerDataValue = new ByteBufferBerDataValueReader(encoded).readDataValue(); in parse() 96 public static <T> List<T> parseImplicitSetOf(ByteBuffer encoded, Class<T> elementClass) in parseImplicitSetOf() argument 100 containerDataValue = new ByteBufferBerDataValueReader(encoded).readDataValue(); in parseImplicitSetOf() 480 private static long decodeBase128UnsignedLong(ByteBuffer encoded) throws Asn1DecodingException { in decodeBase128UnsignedLong() argument 481 if (!encoded.hasRemaining()) { in decodeBase128UnsignedLong() 485 while (encoded.hasRemaining()) { in decodeBase128UnsignedLong() 489 int b = encoded.get() & 0xff; in decodeBase128UnsignedLong() 501 private static BigInteger integerToBigInteger(ByteBuffer encoded) { in integerToBigInteger() argument 502 if (!encoded.hasRemaining()) { in integerToBigInteger() [all …]
|
D | Asn1OpaqueObject.java | 27 public Asn1OpaqueObject(ByteBuffer encoded) { in Asn1OpaqueObject() argument 28 mEncoded = encoded.slice(); in Asn1OpaqueObject() 31 public Asn1OpaqueObject(byte[] encoded) { in Asn1OpaqueObject() argument 32 mEncoded = ByteBuffer.wrap(encoded); in Asn1OpaqueObject()
|
D | Asn1DerEncoder.java | 414 byte[] encoded = JavaToDerConverter.toDer(fieldValue, mDataType, mElementDataType); in toDer() 417 return encoded; in toDer() 419 return createTag(mDerTagClass, true, mDerTagNumber, encoded); in toDer() 421 int originalTagNumber = BerEncoding.getTagNumber(encoded[0]); in toDer() 429 encoded[0] = BerEncoding.setTagNumber(encoded[0], mDerTagNumber); in toDer() 430 encoded[0] = BerEncoding.setTagClass(encoded[0], mDerTagClass); in toDer() 431 return encoded; in toDer()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | HexEncoding.java | 61 public static byte[] decode(String encoded) { in decode() argument 63 int resultLengthBytes = (encoded.length() + 1) / 2; in decode() 67 if ((encoded.length() % 2) != 0) { in decode() 70 (byte) getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)); in decode() 73 for (int len = encoded.length(); encodedCharOffset < len; encodedCharOffset += 2) { in decode() 75 ((getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)) << 4) in decode() 76 | getHexadecimalDigitValue(encoded.charAt(encodedCharOffset + 1))); in decode()
|
D | Resources.java | 102 byte[] encoded = toByteArray(cls, resourceName); in toPrivateKey() 121 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in toPrivateKey()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/ |
D | BerDataValueTest.java | 79 ByteBuffer encoded = TEST_VALUE1.getEncoded(); in testGetEncodedReturnsSlice() local 80 assertByteBufferEquals(HexEncoding.decode("aa"), encoded); in testGetEncodedReturnsSlice() 81 encoded.position(encoded.limit()); in testGetEncodedReturnsSlice() 95 ByteBuffer encoded = TEST_VALUE1.getEncodedContents(); in testGetEncodedContentsReturnsSlice() local 96 assertByteBufferEquals(HexEncoding.decode("bb"), encoded); in testGetEncodedContentsReturnsSlice() 97 encoded.position(encoded.limit()); in testGetEncodedContentsReturnsSlice()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | EncodeUtilsTest.java | 43 byte[] encoded = EncodeUtils.encode(text, flags); in asciiEncodeAndDecode() 44 assertArrayEquals(new byte[] { 0x66, 0x6f, 0x6f }, encoded); in asciiEncodeAndDecode() 45 assertEquals(text, EncodeUtils.decode(encoded, flags)); in asciiEncodeAndDecode() 53 byte[] encoded = EncodeUtils.encode(kazakhCapital, flags); in utf8EncodeAndDecode() 56 (byte) 0xd0, (byte) 0xb0 }, encoded); in utf8EncodeAndDecode() 57 assertEquals(kazakhCapital, EncodeUtils.decode(encoded, flags)); in utf8EncodeAndDecode()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/ |
D | InputStreamBerDataValueReader.java | 88 byte[] encoded = in.getReadBytes(); in readDataValue() 90 ByteBuffer.wrap(encoded, contentsOffsetInDataValue, contentsLength); in readDataValue() 92 ByteBuffer.wrap(encoded), in readDataValue() 224 ByteBuffer encoded = dataValue.getEncoded(); in skipConstructedIndefiniteLengthContents() local 225 if ((encoded.remaining() == 2) && (encoded.get(0) == 0) && (encoded.get(1) == 0)) { in skipConstructedIndefiniteLengthContents()
|
D | ByteBufferBerDataValueReader.java | 75 ByteBuffer encoded = mBuf.slice(); in readDataValue() local 80 encoded.position(contentsOffsetInTag); in readDataValue() 81 encoded.limit(contentsOffsetInTag + contentsLength); in readDataValue() 82 ByteBuffer encodedContents = encoded.slice(); in readDataValue() 83 encoded.clear(); in readDataValue() 86 encoded, in readDataValue()
|
D | BerDataValue.java | 32 ByteBuffer encoded, in BerDataValue() argument 37 mEncoded = encoded; in BerDataValue()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | FakeTest.java | 126 String decodeRle(String encoded) throws IllegalArgumentException { in decodeRle() argument 130 while (i < encoded.length()) { in decodeRle() 131 Matcher m = RLE_SEGMENT.matcher(encoded.substring(i)); in decodeRle() 150 encoded.substring(i, i+1), encoded)); in decodeRle() 160 String decode(String encoded) throws IllegalArgumentException { in decode() argument 161 String work = encoded.toUpperCase(); in decode()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | PasswordRetriever.java | 281 byte[] encoded = new byte[pwdBytes.remaining()]; in encodePassword() 282 pwdBytes.get(encoded); in encodePassword() 283 return encoded; in encodePassword()
|
D | help_lineage.txt | 106 form encoded using the JVM default charset, and, on Java 8 107 and older, the form encoded using the console's charset.
|
D | help_rotate.txt | 109 form encoded using the JVM default charset, and, on Java 8 110 and older, the form encoded using the console's charset.
|
D | help_sign.txt | 157 form encoded using the JVM default charset, and, on Java 8 158 and older, the form encoded using the console's charset.
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatLfnDirectory.java | 286 FatDirectoryEntry[] encoded = currentEntry.compactForm(); in updateLFN() local 287 dest.addAll(Arrays.asList(encoded)); in updateLFN()
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/ |
D | plugin.proto | 54 // An encoded CodeGeneratorRequest is written to the plugin's stdin. 78 // The plugin writes an encoded CodeGeneratorResponse to stdout.
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/google/protobuf/ |
D | descriptor.proto | 116 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if 120 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if 438 // writing the tag and type for each element, the entire array is encoded as 446 // inner message's contents will not be parsed but instead stored in encoded
|
/tools/apkzlib/src/test/resources/testData/packaging/text-files/ |
D | rfc2460.txt | 97 Changes in the way IP header options are encoded allows for 289 In IPv6, optional internet-layer information is encoded in separate 459 number of type-length-value (TLV) encoded "options", of the following 480 The Option Type identifiers are internally encoded such that their 609 TLV-encoded options, as described in section 1268 or more TLV-encoded options, as described in 1286 encoded either as a separate header or as an option in the 1300 o If any other action is desired, the information must be encoded
|
/tools/repohooks/tools/ |
D | spelling.txt | 451 enocded||encoded
|