/external/libchrome/base/ |
H A D | base64_unittest.cc | 15 std::string encoded; local 19 Base64Encode(kText, &encoded); 20 EXPECT_EQ(kBase64Text, encoded); 22 ok = Base64Decode(encoded, &decoded);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/ |
H A D | 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, 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 D | audio_decoder_pcm16b.cc | 29 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.
|
H A D | audio_encoder_pcm16b.cc | 21 uint8_t* encoded) { 22 return WebRtcPcm16b_Encode(audio, input_len, encoded); 19 EncodeCall(const int16_t* audio, size_t input_len, uint8_t* encoded) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | LazyConstructionEnumeration.java | 12 public LazyConstructionEnumeration(byte[] encoded) argument 14 aIn = new ASN1InputStream(encoded, true);
|
H A D | 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); 14 LazyEncodedSequence( byte[] encoded) argument [all...] |
/external/c-ares/ |
H A D | 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, 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);
|
H A D | 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, 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...] |
/external/dbus/dbus/ |
H A D | 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/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
H A D | 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));
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
H A D | PrivateKeyStub.java | 36 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 D | PublicKeyStub.java | 38 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/boringssl/src/crypto/base64/ |
H A D | 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...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/openssl/ |
H A D | CertificateTrustBlock.java | 41 CertificateTrustBlock(byte[] encoded) argument 43 ASN1Sequence seq = ASN1Sequence.getInstance(encoded);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
H A D | X509PublicKey.java | 31 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/guava/guava/src/com/google/thirdparty/publicsuffix/ |
H A D | TrieParser.java | 38 static ImmutableMap<String, PublicSuffixType> parseTrie(CharSequence encoded) { argument 40 int encodedLen = encoded.length(); 45 encoded.subSequence(idx, encodedLen), 56 * @param encoded The serialized trie. 58 * @return The number of characters consumed from {@code encoded}. 62 CharSequence encoded, 65 int encodedLen = encoded.length(); 71 c = encoded.charAt(idx); 77 stack.add(0, reverse(encoded.subSequence(0, idx))); 94 idx += doParseTrieToBuilder(stack, encoded 60 doParseTrieToBuilder( List<CharSequence> stack, CharSequence encoded, ImmutableMap.Builder<String, PublicSuffixType> builder) argument [all...] |
/external/libbrillo/brillo/ |
H A D | data_encoding_unittest.cc | 17 std::string encoded = UrlEncode(test.c_str()); local 18 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html+%22", encoded); 19 EXPECT_EQ(test, UrlDecode(encoded.c_str())); 22 encoded = UrlEncode(test.c_str(), false); 23 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html%20%22", encoded); 24 EXPECT_EQ(test, UrlDecode(encoded.c_str())); 28 std::string encoded = local 30 EXPECT_EQ("q=test&path=%2Fusr%2Fbin&%23=%25", encoded); 32 auto params = WebParamsDecode(encoded);
|
/external/libweave/src/ |
H A D | data_encoding_unittest.cc | 17 std::string encoded = UrlEncode(test.c_str()); local 18 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html+%22", encoded); 19 EXPECT_EQ(test, UrlDecode(encoded.c_str())); 22 encoded = UrlEncode(test.c_str(), false); 23 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html%20%22", encoded); 24 EXPECT_EQ(test, UrlDecode(encoded.c_str())); 28 std::string encoded = local 30 EXPECT_EQ("q=test&path=%2Fusr%2Fbin&%23=%25", encoded); 32 auto params = WebParamsDecode(encoded);
|
/external/sfntly/cpp/src/test/ |
H A D | test_utils_test.cc | 41 int32_t encoded = TestUtils::EncodeOneChar(conv, (int16_t)from[i]); local 42 for (; encoded; encoded <<= 8) { 43 byte_t b = (encoded & 0xff000000) >> 24;
|
/external/skia/bench/ |
H A D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) argument 16 : fData(SkRef(encoded))
|
/external/snakeyaml/src/test/java/biz/source_code/base64Coder/ |
H A D | Base64CoderTest.java | 39 assertEquals("Length of Base64 encoded input string is not a multiple of 4.", 56 private void checkInvalid(String encoded) { argument 58 Base64Coder.decode(encoded.toCharArray()); 61 assertEquals("Illegal character in Base64 encoded data.", e.getMessage()); 65 private void check(String text, String encoded) throws UnsupportedEncodingException { argument 68 assertEquals(encoded, t1); 69 byte[] s2 = Base64Coder.decode(encoded.toCharArray());
|
/external/webrtc/webrtc/libjingle/xmpp/ |
H A D | saslmechanism.cc | 44 SaslMechanism::Base64Decode(const std::string & encoded) { argument 45 return Base64::Decode(encoded, Base64::DO_LAX);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/ |
H A D | audio_decoder_pcm.cc | 23 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 D | 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, 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/jetty/src/java/org/eclipse/jetty/util/ |
H A D | B64Code.java | 31 * linebreaks or other white space in the encoded output. 63 * @return String containing the encoded form of the input. 84 * @return String containing the encoded form of the input. 104 * @return char array containing the encoded form of the input. 165 * @return char array containing the encoded form of the input. 235 * @param encoded String to decode. 243 static public String decode(String encoded,String charEncoding) argument 246 byte[] decoded=decode(encoded); 297 throw new IllegalArgumentException("Not B64 encoded"); 313 throw new IllegalArgumentException("Not B64 encoded"); 349 decode(String encoded) argument 369 decode(String encoded, ByteArrayOutputStream bout) argument [all...] |