/external/pdfium/fxbarcode/oned/ |
BC_OnedEAN13Writer_unittest.cpp | 14 uint8_t* encoded; local 19 encoded = writer.Encode("", BCFORMAT_EAN_13, width, height); 20 EXPECT_EQ(nullptr, encoded); 21 FX_Free(encoded); 23 encoded = writer.Encode("123", BCFORMAT_EAN_13, width, height); 24 EXPECT_EQ(nullptr, encoded); 25 FX_Free(encoded); 27 encoded = writer.Encode("123456789012", BCFORMAT_EAN_13, width, height); 28 EXPECT_EQ(nullptr, encoded); 29 FX_Free(encoded); [all...] |
BC_OnedEAN8Writer_unittest.cpp | 14 uint8_t* encoded; local 19 encoded = writer.Encode("", BCFORMAT_EAN_8, width, height); 20 EXPECT_EQ(nullptr, encoded); 21 FX_Free(encoded); 23 encoded = writer.Encode("123", BCFORMAT_EAN_8, width, height); 24 EXPECT_EQ(nullptr, encoded); 25 FX_Free(encoded); 27 encoded = writer.Encode("1234567", BCFORMAT_EAN_8, width, height); 28 EXPECT_EQ(nullptr, encoded); 29 FX_Free(encoded); [all...] |
BC_OnedUPCAWriter_unittest.cpp | 21 uint8_t* encoded = writer.Encode("", BCFORMAT_UPC_A, width, height); local 22 EXPECT_EQ(nullptr, encoded); 23 FX_Free(encoded); 25 encoded = writer.Encode("123", BCFORMAT_UPC_A, width, height); 26 EXPECT_EQ(nullptr, encoded); 27 FX_Free(encoded); 29 encoded = writer.Encode("12345678901", BCFORMAT_UPC_A, width, height); 30 EXPECT_EQ(nullptr, encoded); 31 FX_Free(encoded); 33 encoded = writer.Encode("1234567890123", BCFORMAT_UPC_A, width, height) [all...] |
BC_OnedCode39Writer_unittest.cpp | 39 uint8_t* encoded; local 42 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); 52 FX_Free(encoded); 56 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); 66 FX_Free(encoded); 73 uint8_t* encoded; local 76 encoded = writer.Encode("", BCFORMAT_CODE_39, width, height); 83 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; 85 FX_Free(encoded); 87 encoded = writer.Encode("123", BCFORMAT_CODE_39, width, height) 143 uint8_t* encoded; local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
LazyEncodedSequence.java | 7 * Note: this class is for processing DER/DL encoded sequences only. 12 private byte[] encoded; field in class:LazyEncodedSequence 15 byte[] encoded) 18 this.encoded = encoded; 23 Enumeration en = new LazyConstructionEnumeration(encoded); 30 encoded = null; 35 if (encoded != null) 45 if (encoded == null) 50 return new LazyConstructionEnumeration(encoded); [all...] |
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
LazyEncodedSequence.java | 8 * Note: this class is for processing DER/DL encoded sequences only. 13 private byte[] encoded; field in class:LazyEncodedSequence 16 byte[] encoded) 19 this.encoded = encoded; 24 Enumeration en = new LazyConstructionEnumeration(encoded); 31 encoded = null; 36 if (encoded != null) 46 if (encoded == null) 51 return new LazyConstructionEnumeration(encoded); [all...] |
/external/tensorflow/tensorflow/core/lib/strings/ |
base64_test.cc | 24 string encoded; local 25 TF_EXPECT_OK(Base64Encode(original, &encoded)); 26 EXPECT_EQ("YSBzaW1wbGUgdGVzdCBtZXNzYWdlIQ", encoded); 29 TF_EXPECT_OK(Base64Decode(encoded, &decoded));
|
base64.h | 27 Status Base64Encode(StringPiece data, bool with_padding, string* encoded); 28 Status Base64Encode(StringPiece data, string* encoded); // with_padding=false.
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
crc.h | 29 * - encoded : payload bit stream 40 const int16_t* encoded,
|
/cts/tests/tests/provider/src/libcore/util/ |
HexEncoding.java | 65 public static byte[] decode(String encoded) throws IllegalArgumentException { 66 return decode(encoded.toCharArray()); 76 public static byte[] decode(String encoded, boolean allowSingleChar) throws IllegalArgumentException { 77 return decode(encoded.toCharArray(), allowSingleChar); 86 public static byte[] decode(char[] encoded) throws IllegalArgumentException { 87 return decode(encoded, false); 97 public static byte[] decode(char[] encoded, boolean allowSingleChar) throws IllegalArgumentException { 98 int resultLengthBytes = (encoded.length + 1) / 2; 104 if ((encoded.length % 2) != 0) { 106 result[resultOffset++] = (byte) toDigit(encoded, i) [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/ |
pcm16b.c | 17 uint8_t* encoded) { 21 encoded[2 * i] = s >> 8; 22 encoded[2 * i + 1] = s; 27 size_t WebRtcPcm16b_Decode(const uint8_t* encoded, 32 speech[i] = encoded[2 * i] << 8 | encoded[2 * i + 1];
|
pcm16b.h | 28 * "Encode" a sample vector to 16 bit linear (Encoded standard is big endian) 35 * - encoded : Encoded data vector (big endian 16 bit) 43 uint8_t* encoded); 48 * "Decode" a vector to 16 bit linear (Encoded standard is big endian) 51 * - encoded : Encoded data vector (big endian 16 bit) 52 * - len : Number of bytes in encoded 60 size_t WebRtcPcm16b_Decode(const uint8_t* encoded,
|
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/ |
audio_decoder_opus.cc | 28 int AudioDecoderOpus::DecodeInternal(const uint8_t* encoded, 36 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); 43 int AudioDecoderOpus::DecodeRedundantInternal(const uint8_t* encoded, 48 if (!PacketHasFec(encoded, encoded_len)) { 50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, 56 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded, 68 int AudioDecoderOpus::PacketDuration(const uint8_t* encoded, 70 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len); 73 int AudioDecoderOpus::PacketDurationRedundant(const uint8_t* encoded, 75 if (!PacketHasFec(encoded, encoded_len)) [all...] |
audio_decoder_opus.h | 25 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override; 26 int PacketDurationRedundant(const uint8_t* encoded, 28 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override; 32 int DecodeInternal(const uint8_t* encoded, 37 int DecodeRedundantInternal(const uint8_t* encoded,
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
X509PublicKey.java | 31 private final byte[] encoded; field in class:X509PublicKey 33 X509PublicKey(String algorithm, byte[] encoded) { 35 this.encoded = encoded; 50 return encoded; 55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) 64 result = prime * result + Arrays.hashCode(encoded); 82 if (!Arrays.equals(encoded, other.encoded)) [all...] |
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
X509PublicKey.java | 32 private final byte[] encoded; field in class:X509PublicKey 35 X509PublicKey(String algorithm, byte[] encoded) { 37 this.encoded = encoded; 52 return encoded; 57 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) 66 result = prime * result + Arrays.hashCode(encoded); 84 if (!Arrays.equals(encoded, other.encoded)) [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/ |
g711_interface.h | 35 * - encoded : The encoded data vector 43 uint8_t* encoded); 56 * - encoded : The encoded data vector 64 uint8_t* encoded); 72 * - encoded : Encoded data 73 * - len : Bytes in encoded vector 85 size_t WebRtcG711_DecodeA(const uint8_t* encoded, [all...] |
g711_interface.c | 17 uint8_t* encoded) { 20 encoded[n] = linear_to_alaw(speechIn[n]); 26 uint8_t* encoded) { 29 encoded[n] = linear_to_ulaw(speechIn[n]); 33 size_t WebRtcG711_DecodeA(const uint8_t* encoded, 39 decoded[n] = alaw_to_linear(encoded[n]); 44 size_t WebRtcG711_DecodeU(const uint8_t* encoded, 50 decoded[n] = ulaw_to_linear(encoded[n]);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ |
audio_decoder.cc | 20 int AudioDecoder::Decode(const uint8_t* encoded, size_t encoded_len, 24 int duration = PacketDuration(encoded, encoded_len); 29 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, 33 int AudioDecoder::DecodeRedundant(const uint8_t* encoded, size_t encoded_len, 37 int duration = PacketDurationRedundant(encoded, encoded_len); 42 return DecodeRedundantInternal(encoded, encoded_len, sample_rate_hz, decoded, 46 int AudioDecoder::DecodeRedundantInternal(const uint8_t* encoded, 50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, 70 int AudioDecoder::PacketDuration(const uint8_t* encoded, 75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, [all...] |
audio_decoder.h | 37 // Decodes |encode_len| bytes from |encoded| and writes the result in 44 int Decode(const uint8_t* encoded, 53 int DecodeRedundant(const uint8_t* encoded, 81 // Returns the duration in samples-per-channel of the payload in |encoded| 84 virtual int PacketDuration(const uint8_t* encoded, size_t encoded_len) const; 87 // |encoded| which is |encoded_len| bytes long. Returns kNotImplemented if no 89 virtual int PacketDurationRedundant(const uint8_t* encoded, 93 // comprised of the samples in |encoded| which is |encoded_len| bytes long. 95 virtual bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const; 106 virtual int DecodeInternal(const uint8_t* encoded, [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
KeyFactoryTestRSA.java | 47 byte[] encoded = privateKey.getEncoded(); 48 byte[] longBuffer = new byte[encoded.length + 147]; 49 System.arraycopy(encoded, 0, longBuffer, 0, encoded.length); 56 byte[] encoded = publicKey.getEncoded(); 57 byte[] longBuffer = new byte[encoded.length + 147]; 58 System.arraycopy(encoded, 0, longBuffer, 0, encoded.length);
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
KeyFactoryTestRSA.java | 51 byte[] encoded = privateKey.getEncoded(); 52 byte[] longBuffer = new byte[encoded.length + 147]; 53 System.arraycopy(encoded, 0, longBuffer, 0, encoded.length); 60 byte[] encoded = publicKey.getEncoded(); 61 byte[] longBuffer = new byte[encoded.length + 147]; 62 System.arraycopy(encoded, 0, longBuffer, 0, encoded.length);
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
HexEncoding.java | 63 public static byte[] decode(String encoded) { 65 int resultLengthBytes = (encoded.length() + 1) / 2; 69 if ((encoded.length() % 2) != 0) { 71 result[resultOffset++] = (byte) getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)); 74 for (int len = encoded.length(); encodedCharOffset < len; encodedCharOffset += 2) { 76 ((getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)) << 4) 77 | getHexadecimalDigitValue(encoded.charAt(encodedCharOffset + 1)));
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
LowerCaseBase16EncodingTest.java | 70 private static void testEncoding(String decoded, String encoded) { 71 testEncodes(decoded, encoded); 72 testDecodes(encoded, decoded); 75 private static void testEncodes(String decoded, String encoded) { 77 .isEqualTo(encoded); 80 private static void testDecodes(String encoded, String decoded) { 81 assertThat(LowerCaseBase16Encoding.decodeToBytes(encoded)).isEqualTo(decoded.getBytes(CHARSET));
|
/external/brotli/java/org/brotli/wrapper/enc/ |
EmptyInputTest.java | 24 byte[] encoded = Encoder.compress(data); 25 assertEquals(1, encoded.length); 26 byte[] decoded = Decoder.decompress(encoded);
|