Searched refs:encoded (Results 1 - 25 of 301) sorted by relevance

1234567891011>>

/external/c-ares/
H A Dares_expand_name.c38 static int name_length(const unsigned char *encoded, const unsigned char *abuf,
41 /* Expand an RFC1035-encoded domain name given by encoded. The
44 * set to the length of the encoded name (not the length of the
46 * move forward to get past the encoded name).
48 * In the simple case, an encoded name is a series of labels, each
65 int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, argument
76 nlen.sig = name_length(encoded, abuf, alen);
93 if ((*encoded & INDIR_MASK) == INDIR_MASK)
102 p = encoded;
143 name_length(const unsigned char *encoded, const unsigned char *abuf, int alen) argument
192 ares__expand_name_for_response(const unsigned char *encoded, const unsigned char *abuf, int alen, char **s, long *enclen) argument
[all...]
H A Dares_expand_string.c36 /* Simply decodes a length-encoded character string. The first byte of the
41 int ares_expand_string(const unsigned char *encoded, argument
53 if (encoded == abuf+alen)
56 elen.uns = *encoded;
57 if (encoded+elen.sig+1 > abuf+alen)
60 encoded++;
66 strncpy((char *)q, (char *)encoded, elen.uns);
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
H A DDerGeneralizedTimeEDTest.java55 byte[] encoded =
56 new DerOutputStream(gTime, myDate).encoded;
57 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
62 encoded =
63 new DerOutputStream(gTime, myDate).encoded;
64 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
69 encoded =
70 new DerOutputStream(gTime, myDate).encoded;
[all...]
H A DAnyTest.java42 private static byte[] encoded = new byte[] { 0x01, 0x03, 0x11, 0x13, 0x15 }; field in class:AnyTest
45 DerInputStream in = new DerInputStream(encoded);
46 assertTrue(Arrays.equals(encoded, (byte[]) ASN1Any.getInstance()
52 encoded);
53 assertTrue("False", Arrays.equals(encoded, out.encoded));
H A DDerUTCTimeEDTest.java58 byte[] encoded =
59 new DerOutputStream(uTime, myDate).encoded;
60 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
68 encoded =
69 new DerOutputStream(uTime, myDate).encoded;
70 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
103 byte[] encoded =
104 new DerOutputStream(uTime, myDate).encoded;
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DLazyEncodedSequence.java7 * 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);
14 LazyEncodedSequence( byte[] encoded) argument
[all...]
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
H A Dcrc.h29 * - encoded : payload bit stream
40 const int16_t* encoded,
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DPrivateKeyStub.java36 byte[] encoded = null; field in class:PrivateKeyStub
44 * @param encoded
46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { argument
49 this.encoded = encoded;
71 * Returns encoded form
76 return encoded;
H A DPublicKeyStub.java38 byte[] encoded = null; field in class:PublicKeyStub
43 public PublicKeyStub(String algorithm, String format, byte[] encoded) { argument
46 this.encoded = encoded;
66 * returns encoded
71 return encoded;
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/
H A Dpcm16b.c17 uint8_t* encoded) {
21 encoded[2 * i] = s >> 8;
22 encoded[2 * i + 1] = s;
27 size_t WebRtcPcm16b_Decode(const uint8_t* encoded, argument
32 speech[i] = encoded[2 * i] << 8 | encoded[2 * i + 1];
15 WebRtcPcm16b_Encode(const int16_t* speech, size_t len, uint8_t* encoded) argument
H A Dpcm16b.h35 * - encoded : Encoded data vector (big endian 16 bit)
43 uint8_t* encoded);
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,
H A Daudio_decoder_pcm16b.cc29 int AudioDecoderPcm16B::DecodeInternal(const uint8_t* encoded, argument
37 size_t ret = WebRtcPcm16b_Decode(encoded, encoded_len, decoded);
42 int AudioDecoderPcm16B::PacketDuration(const uint8_t* encoded, argument
44 // Two encoded byte per sample per channel.
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
H A Daudio_decoder_opus.cc28 int AudioDecoderOpus::DecodeInternal(const uint8_t* encoded, argument
36 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type);
43 int AudioDecoderOpus::DecodeRedundantInternal(const uint8_t* encoded, argument
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, argument
70 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len);
73 int AudioDecoderOpus::PacketDurationRedundant(const uint8_t* encoded, argument
75 if (!PacketHasFec(encoded, encoded_le
83 PacketHasFec(const uint8_t* encoded, size_t encoded_len) const argument
[all...]
H A Daudio_decoder_opus.h25 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/dbus/dbus/
H A Ddbus-uuidgen.c51 DBusString encoded; local
53 if (!_dbus_string_init (&encoded))
59 if (!_dbus_uuid_encode (uuid, &encoded) ||
60 !_dbus_string_steal_data (&encoded, uuid_p))
63 _dbus_string_free (&encoded);
66 _dbus_string_free (&encoded);
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/
H A Daudio_decoder_pcm.cc23 int AudioDecoderPcmU::DecodeInternal(const uint8_t* encoded, argument
30 size_t ret = WebRtcG711_DecodeU(encoded, encoded_len, decoded, &temp_type);
35 int AudioDecoderPcmU::PacketDuration(const uint8_t* encoded, argument
37 // One encoded byte per sample per channel.
47 int AudioDecoderPcmA::DecodeInternal(const uint8_t* encoded, argument
54 size_t ret = WebRtcG711_DecodeA(encoded, encoded_len, decoded, &temp_type);
59 int AudioDecoderPcmA::PacketDuration(const uint8_t* encoded, argument
61 // One encoded byte per sample per channel.
H A Dg711_interface.h35 * - 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,
96 * - encoded
[all...]
H A Dg711_interface.c17 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, argument
39 decoded[n] = alaw_to_linear(encoded[n]);
44 size_t WebRtcG711_DecodeU(const uint8_t* encoded, argument
50 decoded[n] = ulaw_to_linear(encoded[n]);
15 WebRtcG711_EncodeA(const int16_t* speechIn, size_t len, uint8_t* encoded) argument
24 WebRtcG711_EncodeU(const int16_t* speechIn, size_t len, uint8_t* encoded) argument
/external/conscrypt/src/main/java/org/conscrypt/
H A DX509PublicKey.java31 private final byte[] encoded; field in class:X509PublicKey
33 public X509PublicKey(String algorithm, byte[] encoded) { argument
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/
H A Daudio_decoder.cc20 int AudioDecoder::Decode(const uint8_t* encoded, size_t encoded_len, argument
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, argument
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, argument
50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded,
70 int AudioDecoder::PacketDuration(const uint8_t* encoded, argument
75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, argument
80 PacketHasFec(const uint8_t* encoded, size_t encoded_len) const argument
[all...]
H A Daudio_decoder.h37 // 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/boringssl/src/crypto/base64/
H A Dbase64_test.cc25 const char *encoded; member in struct:TestVector
47 if (len != strlen(t->encoded) ||
48 memcmp(out, t->encoded, len) != 0) {
50 t->decoded, (int)len, (const char*)out, t->encoded);
66 (const uint8_t*)t->encoded, strlen(t->encoded))) {
67 fprintf(stderr, "decode(\"%s\") failed\n", t->encoded);
73 t->encoded, (int)len, (const char*)out, t->decoded);
78 int ret = EVP_DecodeBlock(out, (const uint8_t*)t->encoded,
79 strlen(t->encoded));
[all...]
/external/v8/test/mjsunit/regress/
H A Dregress-244.js51 var encoded = kLegalPairs[i][1];
52 assertEquals(decodeURI(encoded), decoded);
53 assertEquals(encodeURI(decoded), encoded);
/external/libchrome/base/
H A Dbase64_unittest.cc15 std::string encoded; local
19 Base64Encode(kText, &encoded);
20 EXPECT_EQ(kBase64Text, encoded);
22 ok = Base64Decode(encoded, &decoded);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DCredentials.java31 String encoded = ByteString.of(bytes).base64();
32 return "Basic " + encoded;

Completed in 553 milliseconds

1234567891011>>