Home
last modified time | relevance | path

Searched refs:encoded (Results 1 – 25 of 727) sorted by relevance

12345678910>>...30

/external/c-ares/
Dares_expand_name.c38 static int name_length(const unsigned char *encoded, const unsigned char *abuf,
65 int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, in ares_expand_name() argument
76 nlen.sig = name_length(encoded, abuf, alen); in ares_expand_name()
93 if ((*encoded & INDIR_MASK) == INDIR_MASK) in ares_expand_name()
102 p = encoded; in ares_expand_name()
109 *enclen = p + 2 - encoded; in ares_expand_name()
129 *enclen = p + 1 - encoded; in ares_expand_name()
143 static int name_length(const unsigned char *encoded, const unsigned char *abuf, in name_length() argument
149 if (encoded == abuf + alen) in name_length()
152 while (*encoded) in name_length()
[all …]
Dares_expand_string.c41 int ares_expand_string(const unsigned char *encoded, in ares_expand_string() argument
53 if (encoded == abuf+alen) in ares_expand_string()
56 elen.uns = *encoded; in ares_expand_string()
57 if (encoded+elen.sig+1 > abuf+alen) in ares_expand_string()
60 encoded++; in ares_expand_string()
66 strncpy((char *)q, (char *)encoded, elen.uns); in ares_expand_string()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DLazyEncodedSequence.java12 private byte[] encoded; field in LazyEncodedSequence
15 byte[] encoded) in LazyEncodedSequence() argument
18 this.encoded = encoded; in LazyEncodedSequence()
23 Enumeration en = new LazyConstructionEnumeration(encoded); in parse()
30 encoded = null; in parse()
35 if (encoded != null) in getObjectAt()
45 if (encoded == null) in getObjects()
50 return new LazyConstructionEnumeration(encoded); in getObjects()
55 if (encoded != null) in size()
65 if (encoded != null) in toDERObject()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Daudio_decoder_opus.cc28 int AudioDecoderOpus::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
36 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
43 int AudioDecoderOpus::DecodeRedundantInternal(const uint8_t* encoded, in DecodeRedundantInternal() argument
48 if (!PacketHasFec(encoded, encoded_len)) { in DecodeRedundantInternal()
50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal()
56 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded, in DecodeRedundantInternal()
68 int AudioDecoderOpus::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
70 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len); in PacketDuration()
73 int AudioDecoderOpus::PacketDurationRedundant(const uint8_t* encoded, in PacketDurationRedundant() argument
75 if (!PacketHasFec(encoded, encoded_len)) { in PacketDurationRedundant()
[all …]
/external/boringssl/src/crypto/base64/
Dbase64_test.cc45 const char *encoded; member
138 std::string encoded(RemoveNewlines(t.encoded)); in TEST_P() local
139 EXPECT_EQ(Bytes(encoded), Bytes(out, len)); in TEST_P()
150 const std::string encoded(RemoveNewlines(t.encoded)); in TEST_P() local
151 std::vector<uint8_t> out_vec(encoded.size()); in TEST_P()
156 (const uint8_t *)encoded.data(), encoded.size()); in TEST_P()
172 std::string encoded(RemoveNewlines(t.encoded)); in TEST_P() local
174 std::vector<uint8_t> out_vec(encoded.size()); in TEST_P()
179 EVP_DecodeBlock(out, (const uint8_t *)encoded.data(), encoded.size()); in TEST_P()
217 EXPECT_EQ(Bytes(t.encoded), Bytes(out, total)); in TEST_P()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/
Daudio_decoder.cc20 int AudioDecoder::Decode(const uint8_t* encoded, size_t encoded_len, in Decode() argument
24 int duration = PacketDuration(encoded, encoded_len); in Decode()
29 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in Decode()
33 int AudioDecoder::DecodeRedundant(const uint8_t* encoded, size_t encoded_len, in DecodeRedundant() argument
37 int duration = PacketDurationRedundant(encoded, encoded_len); in DecodeRedundant()
42 return DecodeRedundantInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundant()
46 int AudioDecoder::DecodeRedundantInternal(const uint8_t* encoded, in DecodeRedundantInternal() argument
50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal()
70 int AudioDecoder::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, in PacketDurationRedundant() argument
[all …]
Daudio_decoder.h44 int Decode(const uint8_t* encoded,
53 int DecodeRedundant(const uint8_t* encoded,
84 virtual int PacketDuration(const uint8_t* encoded, size_t encoded_len) const;
89 virtual int PacketDurationRedundant(const uint8_t* encoded,
95 virtual bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const;
106 virtual int DecodeInternal(const uint8_t* encoded,
112 virtual int DecodeRedundantInternal(const uint8_t* encoded,
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECKeyFactory.java96 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
97 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
100 ECPublicKey ecKey = (ECPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
111 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
112 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
116 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
122 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
126 } else if (encoded == null) { in engineGetKeySpec()
129 @SuppressWarnings("unchecked") T result = (T) new PKCS8EncodedKeySpec(encoded); in engineGetKeySpec()
132 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
[all …]
DX509PublicKey.java31 private final byte[] encoded; field in X509PublicKey
33 X509PublicKey(String algorithm, byte[] encoded) { in X509PublicKey() argument
35 this.encoded = encoded; in X509PublicKey()
50 return encoded; in getEncoded()
55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) in toString()
64 result = prime * result + Arrays.hashCode(encoded); in hashCode()
82 if (!Arrays.equals(encoded, other.encoded)) in equals()
DOpenSSLRSAKeyFactory.java99 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
100 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
104 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
131 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
132 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
136 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
149 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
150 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
154 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
160 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DBaseEncodingTest.java310 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithCasing() argument
311 testEncodingWithSeparators(encoding, decoded, encoded); in testEncodingWithCasing()
312 testEncodingWithSeparators(encoding.upperCase(), decoded, Ascii.toUpperCase(encoded)); in testEncodingWithCasing()
313 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing()
317 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument
318 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators()
324 Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded))); in testEncodingWithSeparators()
329 private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) { in testEncoding() argument
330 testEncodes(encoding, decoded, encoded); in testEncoding()
331 testDecodes(encoding, encoded, decoded); in testEncoding()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseCipherSpi.java114 byte[] encoded = key.getEncoded(); in engineWrap()
115 if (encoded == null) in engineWrap()
124 return engineDoFinal(encoded, 0, encoded.length); in engineWrap()
128 return wrapEngine.wrap(encoded, 0, encoded.length); in engineWrap()
143 byte[] encoded; in engineUnwrap()
148 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); in engineUnwrap()
152 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length); in engineUnwrap()
176 return new SecretKeySpec(encoded, wrappedKeyAlgorithm); in engineUnwrap()
186 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); in engineUnwrap()
212 return kf.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/
Dg711_interface.c17 uint8_t* encoded) { in WebRtcG711_EncodeA() argument
20 encoded[n] = linear_to_alaw(speechIn[n]); in WebRtcG711_EncodeA()
26 uint8_t* encoded) { in WebRtcG711_EncodeU() argument
29 encoded[n] = linear_to_ulaw(speechIn[n]); in WebRtcG711_EncodeU()
33 size_t WebRtcG711_DecodeA(const uint8_t* encoded, in WebRtcG711_DecodeA() argument
39 decoded[n] = alaw_to_linear(encoded[n]); in WebRtcG711_DecodeA()
44 size_t WebRtcG711_DecodeU(const uint8_t* encoded, in WebRtcG711_DecodeU() argument
50 decoded[n] = ulaw_to_linear(encoded[n]); in WebRtcG711_DecodeU()
Daudio_decoder_pcm.cc23 int AudioDecoderPcmU::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
30 size_t ret = WebRtcG711_DecodeU(encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
35 int AudioDecoderPcmU::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
47 int AudioDecoderPcmA::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
54 size_t ret = WebRtcG711_DecodeA(encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
59 int AudioDecoderPcmA::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
/external/guava/guava/src/com/google/thirdparty/publicsuffix/
DTrieParser.java38 static ImmutableMap<String, PublicSuffixType> parseTrie(CharSequence encoded) { in parseTrie() argument
40 int encodedLen = encoded.length(); in parseTrie()
45 encoded.subSequence(idx, encodedLen), in parseTrie()
62 CharSequence encoded, in doParseTrieToBuilder() argument
65 int encodedLen = encoded.length(); in doParseTrieToBuilder()
71 c = encoded.charAt(idx); in doParseTrieToBuilder()
77 stack.add(0, reverse(encoded.subSequence(0, idx))); in doParseTrieToBuilder()
94 idx += doParseTrieToBuilder(stack, encoded.subSequence(idx, encodedLen), builder); in doParseTrieToBuilder()
95 if (encoded.charAt(idx) == '?' || encoded.charAt(idx) == ',') { in doParseTrieToBuilder()
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Daudio_decoder_g722.cc33 int AudioDecoderG722::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
41 WebRtcG722_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
50 int AudioDecoderG722::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
72 int AudioDecoderG722Stereo::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
81 SplitStereoPacket(encoded, encoded_len, encoded_deinterleaved); in DecodeInternal()
114 void AudioDecoderG722Stereo::SplitStereoPacket(const uint8_t* encoded, in SplitStereoPacket() argument
121 uint8_t right_byte = ((encoded[i] & 0x0F) << 4) + (encoded[i + 1] & 0x0F); in SplitStereoPacket()
122 encoded_deinterleaved[i] = (encoded[i] & 0xF0) + (encoded[i + 1] >> 4); in SplitStereoPacket()
/external/xmlrpcpp/src/
DXmlRpcUtil.cpp190 XmlRpcUtil::xmlDecode(const std::string& encoded) in xmlDecode() argument
192 std::string::size_type iAmp = encoded.find(AMP); in xmlDecode()
194 return encoded; in xmlDecode()
196 std::string decoded(encoded, 0, iAmp); in xmlDecode()
197 std::string::size_type iSize = encoded.size(); in xmlDecode()
200 const char* ens = encoded.c_str(); in xmlDecode()
202 if (encoded[iAmp] == AMP && iAmp+1 < iSize) { in xmlDecode()
213 decoded += encoded[iAmp++]; in xmlDecode()
216 decoded += encoded[iAmp++]; in xmlDecode()
233 std::string encoded(raw, 0, iRep); in xmlEncode() local
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/
Dpcm16b.c17 uint8_t* encoded) { in WebRtcPcm16b_Encode() argument
21 encoded[2 * i] = s >> 8; in WebRtcPcm16b_Encode()
22 encoded[2 * i + 1] = s; in WebRtcPcm16b_Encode()
27 size_t WebRtcPcm16b_Decode(const uint8_t* encoded, in WebRtcPcm16b_Decode() argument
32 speech[i] = encoded[2 * i] << 8 | encoded[2 * i + 1]; in WebRtcPcm16b_Decode()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/include/
Disacfix.h133 uint8_t* encoded);
165 int16_t *encoded);
199 const uint8_t* encoded,
224 const uint8_t* encoded,
250 const uint8_t* encoded,
279 const uint16_t *encoded,
353 int16_t WebRtcIsacfix_ReadFrameLen(const uint8_t* encoded,
554 uint8_t* encoded);
605 int16_t WebRtcIsacfix_ReadBwIndex(const uint8_t* encoded,
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Disac.c502 uint8_t* encoded) { in WebRtcIsac_Encode() argument
620 memcpy(encoded, instLB->ISACencLB_obj.bitstr_obj.stream, streamLenLB); in WebRtcIsac_Encode()
623 encoded[streamLenLB] = (uint8_t)(streamLenUB + 1 + LEN_CHECK_SUM_WORD8); in WebRtcIsac_Encode()
624 memcpy(&encoded[streamLenLB + 1], in WebRtcIsac_Encode()
627 streamLen += encoded[streamLenLB]; in WebRtcIsac_Encode()
629 encoded[streamLenLB] = 0; in WebRtcIsac_Encode()
635 memcpy(encoded, instLB->ISACencLB_obj.bitstr_obj.stream, streamLenLB); in WebRtcIsac_Encode()
673 ptrGarbage = &encoded[streamLenLB]; in WebRtcIsac_Encode()
676 ptrGarbage = &encoded[streamLenLB + 1 + streamLenUB]; in WebRtcIsac_Encode()
677 limit = streamLen + (255 - encoded[streamLenLB]); in WebRtcIsac_Encode()
[all …]
/external/robolectric/v1/src/main/java/android/net/
DUri__FromAndroid.java1688 StringBuilder encoded = null; in encode() local
1713 encoded.append(s, current, oldLength); in encode()
1714 return encoded.toString(); in encode()
1718 if (encoded == null) { in encode()
1719 encoded = new StringBuilder(); in encode()
1724 encoded.append(s, current, nextToEncode); in encode()
1746 encoded.append('%'); in encode()
1747 encoded.append(HEX_DIGITS[(bytes[i] & 0xf0) >> 4]); in encode()
1748 encoded.append(HEX_DIGITS[bytes[i] & 0xf]); in encode()
1758 return encoded == null ? s : encoded.toString(); in encode()
[all …]
/external/libbrillo/brillo/
Ddata_encoding_unittest.cc17 std::string encoded = UrlEncode(test.c_str()); in TEST() local
18 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html+%22", encoded); in TEST()
19 EXPECT_EQ(test, UrlDecode(encoded.c_str())); in TEST()
22 encoded = UrlEncode(test.c_str(), false); in TEST()
23 EXPECT_EQ("%22http%3A%2F%2Fsample%2Fpath%2F0014.html%20%22", encoded); in TEST()
24 EXPECT_EQ(test, UrlDecode(encoded.c_str())); in TEST()
28 std::string encoded = in TEST() local
30 EXPECT_EQ("q=test&path=%2Fusr%2Fbin&%23=%25", encoded); in TEST()
32 auto params = WebParamsDecode(encoded); in TEST()
/external/guava/guava-gwt/test-super/com/google/common/io/super/com/google/common/io/
DBaseEncodingTest.java244 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithCasing() argument
245 testEncodingWithSeparators(encoding, decoded, encoded); in testEncodingWithCasing()
246 testEncodingWithSeparators(encoding.upperCase(), decoded, Ascii.toUpperCase(encoded)); in testEncodingWithCasing()
247 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing()
251 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument
252 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators()
258 Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded))); in testEncodingWithSeparators()
263 private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) { in testEncoding() argument
264 testEncodes(encoding, decoded, encoded); in testEncoding()
265 testDecodes(encoding, encoded, decoded); in testEncoding()
[all …]
/external/r8/src/main/java/com/android/tools/r8/dex/
DDebugBytecodeWriter.java59 byte[] encoded = LebUtils.encodeSleb128(item); in putSleb128()
60 maybeGrow(encoded.length); in putSleb128()
61 buffer.put(encoded, 0, encoded.length); in putSleb128()
65 byte[] encoded = LebUtils.encodeUleb128(item); in putUleb128()
66 maybeGrow(encoded.length); in putUleb128()
67 buffer.put(encoded, 0, encoded.length); in putUleb128()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseWrapCipher.java300 byte[] encoded = key.getEncoded(); in engineWrap()
301 if (encoded == null) in engineWrap()
310 return engineDoFinal(encoded, 0, encoded.length); in engineWrap()
314 return wrapEngine.wrap(encoded, 0, encoded.length); in engineWrap()
329 byte[] encoded; in engineUnwrap()
334 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); in engineUnwrap()
338 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length); in engineUnwrap()
356 return new SecretKeySpec(encoded, wrappedKeyAlgorithm); in engineUnwrap()
366 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); in engineUnwrap()
392 return kf.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
[all …]

12345678910>>...30