/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/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,
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
Asn1OpaqueObject.java | 22 * Opaque holder of encoded ASN.1 stuff. 27 public Asn1OpaqueObject(ByteBuffer encoded) { 28 mEncoded = encoded.slice(); 31 public Asn1OpaqueObject(byte[] encoded) { 32 mEncoded = ByteBuffer.wrap(encoded);
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 37 byte [] encoded = null; field in class:PrivateKeyStub 45 * @param encoded 47 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 50 this.encoded = encoded; 70 * Returns encoded form 74 return encoded;
|
PublicKeyStub.java | 40 byte [] encoded = null; field in class:PublicKeyStub 45 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 48 this.encoded = encoded; 67 * returns encoded 71 return encoded;
|
/libcore/luni/src/main/java/libcore/util/ |
HexEncoding.java | 64 public static byte[] decode(String encoded) throws IllegalArgumentException { 65 return decode(encoded.toCharArray()); 75 public static byte[] decode(String encoded, boolean allowSingleChar) throws IllegalArgumentException { 76 return decode(encoded.toCharArray(), allowSingleChar); 85 public static byte[] decode(char[] encoded) throws IllegalArgumentException { 86 return decode(encoded, false); 96 public static byte[] decode(char[] encoded, boolean allowSingleChar) throws IllegalArgumentException { 97 int resultLengthBytes = (encoded.length + 1) / 2; 103 if ((encoded.length % 2) != 0) { 105 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,
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SNIServerName.java | 52 // the encoded value of the server name 53 private final byte[] encoded; field in class:SNIServerName 60 * encoded value. 62 * Note that the {@code encoded} byte array is cloned to protect against 67 * @param encoded 68 * the encoded value of the server name 72 * @throws NullPointerException if {@code encoded} is null 74 protected SNIServerName(int type, byte[] encoded) { 84 if (encoded == null) { 86 "Server name encoded value cannot be null") [all...] |
/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/syslinux/gpxe/src/include/gpxe/ |
base64.h | 15 * Calculate length of base64-encoded string 18 * @ret encoded_len Encoded string length (excluding NUL) 24 extern void base64_encode ( const char *raw, char *encoded );
|
/external/tensorflow/tensorflow/python/keras/_impl/keras/preprocessing/ |
text_test.py | 31 encoded = keras.preprocessing.text.one_hot(text, 5) 32 self.assertEqual(len(encoded), 6) 33 self.assertLessEqual(np.max(encoded), 4) 34 self.assertGreaterEqual(np.min(encoded), 0) 38 encoded = keras.preprocessing.text.one_hot(text, 5) 39 self.assertEqual(len(encoded), 6) 40 self.assertLessEqual(np.max(encoded), 4) 41 self.assertGreaterEqual(np.min(encoded), 0) 66 encoded = keras.preprocessing.text.hashing_trick(text, 5) 67 self.assertEqual(len(encoded), 6 [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/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/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...] |
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
KeyFactoryTestRSA.java | 45 byte[] encoded = privateKey.getEncoded(); 46 byte[] longBuffer = new byte[encoded.length + 147]; 47 System.arraycopy(encoded, 0, longBuffer, 0, encoded.length); 53 byte[] encoded = publicKey.getEncoded(); 54 byte[] longBuffer = new byte[encoded.length + 147]; 55 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)));
|