HomeSort by relevance Sort by last modified time
    Searched refs:encoded (Results 1 - 25 of 576) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/c-ares/
ares_expand_name.c 38 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,
76 nlen.sig = name_length(encoded, abuf, alen);
93 if ((*encoded & INDIR_MASK) == INDIR_MASK)
102 p = encoded;
    [all...]
ares_expand_string.c 36 /* Simply decodes a length-encoded character string. The first byte of the
41 int ares_expand_string(const unsigned char *encoded,
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/
DerGeneralizedTimeEDTest.java 55 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...]
AnyTest.java 42 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));
DerUTCTimeEDTest.java 58 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/
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/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
crc.h 29 * - encoded : payload bit stream
40 const int16_t* encoded,
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
PrivateKeyStub.java 36 byte[] encoded = null; field in class:PrivateKeyStub
44 * @param encoded
46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) {
49 this.encoded = encoded;
71 * Returns encoded form
76 return encoded;
PublicKeyStub.java 38 byte[] encoded = null; field in class:PublicKeyStub
43 public PublicKeyStub(String algorithm, String format, byte[] encoded) {
46 this.encoded = encoded;
66 * returns encoded
71 return 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;
  /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/dbus/dbus/
dbus-uuidgen.c 51 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/
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/src/main/java/org/conscrypt/
X509PublicKey.java 31 private final byte[] encoded; field in class:X509PublicKey
33 public 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...]
  /libcore/luni/src/main/java/libcore/util/
HexEncoding.java 58 public static byte[] decode(char[] encoded, boolean allowSingleChar) throws IllegalArgumentException {
59 int resultLengthBytes = (encoded.length + 1) / 2;
65 if ((encoded.length % 2) != 0) {
67 result[resultOffset++] = (byte) toDigit(encoded, i);
71 if ((encoded.length % 2) != 0) {
72 throw new IllegalArgumentException("Invalid input length: " + encoded.length);
76 for (int len = encoded.length; i < len; i += 2) {
77 result[resultOffset++] = (byte) ((toDigit(encoded, i) << 4) | toDigit(encoded, i + 1));
  /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...]
  /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/boringssl/src/crypto/base64/
base64_test.cc 25 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...]

Completed in 1455 milliseconds

1 2 3 4 5 6 7 8 91011>>