/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
SHA512Digest.java | 42 * @param encodedState the encoded state from the originating digest. 114 byte[] encoded = new byte[getEncodedStateSize()]; 115 super.populateState(encoded); 116 return encoded;
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
X509CertificatePair.java | 80 private byte[] encoded; field in class:X509CertificatePair 118 private X509CertificatePair(byte[] encoded) throws CertificateException { 120 parse(new DerValue(encoded)); 121 this.encoded = encoded; 140 (byte[] encoded) throws CertificateException { 141 Object key = new Cache.EqualByteArray(encoded); 146 pair = new X509CertificatePair(encoded); 147 key = new Cache.EqualByteArray(pair.encoded); 187 * Return the DER encoded form of the certificate pair [all...] |
/frameworks/base/core/java/android/content/pm/ |
VerifierDeviceIdentity.java | 30 * implementation, the identity is represented as a 64-bit integer encoded to a 39 * Encoded size of a long (64-bit) into Base32. This format will end up 113 final char encoded[] = new char[LONG_SIZE + (LONG_SIZE / GROUP_SIZE)]; local 115 int index = encoded.length; 124 encoded[--index] = SEPARATOR; 133 encoded[--index] = alphabet[group]; 136 return String.valueOf(encoded); 149 * This essentially does the reverse of the ENCODED alphabet above
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
rent_a_codec_unittest.cc | 118 uint8_t encoded[kPacketSizeSamples]; local 126 arraysize(encoded), encoded)) 133 arraysize(encoded), encoded)) 138 info = rac.GetEncoderStack()->Encode(0, audio, arraysize(encoded), encoded); 150 info = rac.GetEncoderStack()->Encode(1, audio, arraysize(encoded), encoded); 156 info = rac.GetEncoderStack()->Encode(2, audio, arraysize(encoded), encoded) [all...] |
/external/pdfium/fxbarcode/datamatrix/ |
BC_EdifactEncoder.cpp | 75 WideString encoded = EncodeToEdifactCodewords(buffer, 0); local 76 if (encoded.IsEmpty()) 92 context->getCodewordCount() + encoded.GetLength(), e); 102 context->writeCodewords(encoded); 139 WideString encoded = EncodeToEdifactCodewords(buffer, 0); local 140 if (encoded.IsEmpty()) { 144 context.writeCodewords(encoded);
|
/external/webrtc/webrtc/base/ |
urlencode.cc | 137 InternalUrlDecodeString(const std::string & encoded, 139 size_t needed_length = encoded.length() + 1; 141 InternalUrlDecode(encoded.c_str(), buf, encode_space_as_plus); 146 UrlDecodeString(const std::string & encoded) { 147 return InternalUrlDecodeString(encoded, true); 151 UrlDecodeStringWithoutEncodingSpaceAsPlus(const std::string & encoded) { 152 return InternalUrlDecodeString(encoded, false);
|
/libcore/luni/src/test/java/libcore/java/net/ |
UrlEncodingTest.java | 255 * Asserts that {@code original} encodes to {@code encoded} using both URI 258 private void assertEncoded(String encoded, String original) throws Exception { 259 assertEquals(encoded, URLEncoder.encode(original, "UTF-8")); 260 assertEquals(encoded, URLEncoder.encode(original)); 261 assertEquals(encoded, new URI("http", "foo", "/", original).getRawFragment()); 264 private void assertRoundTrip(String original, String encoded) throws Exception { 265 assertEquals(encoded, URLEncoder.encode(original, "UTF-8")); 266 assertEquals(original, URLDecoder.decode(encoded, "UTF-8"));
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyFactoryTest.java | 193 assertTrue(Arrays.equals(key.encoded, publicKey.getEncoded())); 435 return new TestPrivateKey(((TestPrivateKeySpec)keySpec).encoded); 445 return new TestPublicKey(((TestPublicKeySpec)keySpec).encoded); 508 private final byte[] encoded; field in class:KeyFactoryTest.TestPrivateKeySpec 511 this.encoded = key.getEncoded(); 517 private final byte[] encoded; field in class:KeyFactoryTest.TestPublicKeySpec 520 this.encoded = key.getEncoded(); 526 private final byte[] encoded; field in class:KeyFactoryTest.TestPrivateKey 529 encoded = new byte[] {3, 4, 5}; 532 public TestPrivateKey(byte[] encoded) { 551 private final byte[] encoded; field in class:KeyFactoryTest.TestPublicKey [all...] |
/prebuilts/go/darwin-x86/src/encoding/ascii85/ |
ascii85_test.go | 16 decoded, encoded string 73 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, strip85(string(buf)), strip85(p.encoded)) 83 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, strip85(bb.String()), strip85(p.encoded)) 103 testEqual(t, "Encoding/%d of %q = %q, want %q", bs, bigtest.decoded, strip85(bb.String()), strip85(bigtest.encoded)) 109 dbuf := make([]byte, 4*len(p.encoded)) 110 ndst, nsrc, err := Decode(dbuf, []byte(p.encoded), true) 111 testEqual(t, "Decode(%q) = error %v, want %v", p.encoded, err, error(nil)) 112 testEqual(t, "Decode(%q) = nsrc %v, want %v", p.encoded, nsrc, len(p.encoded)) 113 testEqual(t, "Decode(%q) = ndst %v, want %v", p.encoded, ndst, len(p.decoded) [all...] |
/prebuilts/go/linux-x86/src/encoding/ascii85/ |
ascii85_test.go | 16 decoded, encoded string 73 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, strip85(string(buf)), strip85(p.encoded)) 83 testEqual(t, "Encode(%q) = %q, want %q", p.decoded, strip85(bb.String()), strip85(p.encoded)) 103 testEqual(t, "Encoding/%d of %q = %q, want %q", bs, bigtest.decoded, strip85(bb.String()), strip85(bigtest.encoded)) 109 dbuf := make([]byte, 4*len(p.encoded)) 110 ndst, nsrc, err := Decode(dbuf, []byte(p.encoded), true) 111 testEqual(t, "Decode(%q) = error %v, want %v", p.encoded, err, error(nil)) 112 testEqual(t, "Decode(%q) = nsrc %v, want %v", p.encoded, nsrc, len(p.encoded)) 113 testEqual(t, "Decode(%q) = ndst %v, want %v", p.encoded, ndst, len(p.decoded) [all...] |
/external/perfetto/src/protozero/ |
proto_utils_unittest.cc | 32 const char* encoded; member in struct:protozero::proto_utils::__anon32009::VarIntExpectation 114 ASSERT_EQ(0, memcmp(buf, exp.encoded, exp.encoded_size)); 120 ASSERT_EQ(0, memcmp(buf, exp.encoded, exp.encoded_size)); 150 reinterpret_cast<const uint8_t*>(exp.encoded), 151 reinterpret_cast<const uint8_t*>(exp.encoded + exp.encoded_size), 153 ASSERT_EQ(reinterpret_cast<const void*>(exp.encoded + exp.encoded_size), 171 const char* encoded; member in struct:protozero::proto_utils::__anon32009::FieldExpectation 203 reinterpret_cast<const uint8_t*>(exp.encoded), 204 reinterpret_cast<const uint8_t*>(exp.encoded + exp.encoded_size), 206 ASSERT_EQ(reinterpret_cast<const void*>(exp.encoded + exp.encoded_size) [all...] |
/external/tensorflow/tensorflow/core/distributed_runtime/ |
tensor_coding_test.cc | 86 string encoded; local 87 proto.AppendToString(&encoded); 89 StringSource source(&encoded, 1024); 171 string encoded; local 172 proto.AppendToString(&encoded); 173 return encoded; 178 string encoded = MakeFloatTensorTestCase(arg); local 184 StringSource source(&encoded, -1); 196 string encoded = MakeFloatTensorTestCase(arg); local 200 r.ParseFromString(encoded); [all...] |
/external/v8/src/ |
source-position-table.cc | 30 // Each byte is encoded as MoreBit | ValueBits. 56 auto encoded = static_cast<typename std::make_unsigned<T>::type>(value); local 59 more = encoded > ValueBits::kMax; 61 MoreBit::encode(more) | ValueBits::encode(encoded & ValueBits::kMask); 63 encoded >>= ValueBits::kSize; 156 for (SourcePositionTableIterator encoded(*table); !encoded.done(); 157 encoded.Advance(), raw++) { 159 DCHECK_EQ(encoded.code_offset(), raw->code_offset); 160 DCHECK_EQ(encoded.source_position().raw(), raw->source_position) [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
isac.c | 185 * - bandwidthIndex : an index which has to be encoded in 189 * or low and it is encoded in upper-band 491 * - encoded : the encoded data vector 502 uint8_t* encoded) { 620 memcpy(encoded, instLB->ISACencLB_obj.bitstr_obj.stream, streamLenLB); 623 encoded[streamLenLB] = (uint8_t)(streamLenUB + 1 + LEN_CHECK_SUM_WORD8); 624 memcpy(&encoded[streamLenLB + 1], 627 streamLen += encoded[streamLenLB]; 629 encoded[streamLenLB] = 0 [all...] |
/external/adhd/cras/src/common/ |
cras_sbc_codec.c | 58 ssize_t written, encoded; local 66 encoded = sbc_encode(&data->sbc, 72 if (encoded == -ENOSPC) 74 else if (encoded < 0) 75 return encoded; 77 processed += encoded;
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
SSLUtilsTest.java | 86 byte[] encoded = getExpectedEncodedBytes(protocols); 87 String[] strings = SSLUtils.decodeProtocols(encoded); 138 byte[] encoded = new byte[encodedLength]; 141 encoded[encodedIndex++] = (byte) protocol.length; 142 System.arraycopy(protocol, 0, encoded, encodedIndex, protocol.length); 145 return encoded;
|
/prebuilts/go/darwin-x86/src/runtime/pprof/internal/profile/ |
proto_test.go | 13 encoded []byte 33 if got, want := marshal(source), tc.encoded; !reflect.DeepEqual(got, want) { 38 if err := unmarshal(tc.encoded, dest); err != nil {
|
/prebuilts/go/linux-x86/src/runtime/pprof/internal/profile/ |
proto_test.go | 13 encoded []byte 33 if got, want := marshal(source), tc.encoded; !reflect.DeepEqual(got, want) { 38 if err := unmarshal(tc.encoded, dest); err != nil {
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/ |
ByteBufferBerDataValueReader.java | 22 * {@link BerDataValueReader} which reads from a {@link ByteBuffer} containing BER-encoded data 70 // Create the encoded data value ByteBuffer 75 ByteBuffer encoded = mBuf.slice(); local 79 // Create the encoded contents ByteBuffer 80 encoded.position(contentsOffsetInTag); 81 encoded.limit(contentsOffsetInTag + contentsLength); 82 ByteBuffer encodedContents = encoded.slice(); 83 encoded.clear(); 86 encoded, 189 // can contain data values which are themselves indefinite length encoded. As a result, w [all...] |
/external/boringssl/src/crypto/base64/ |
base64.c | 152 size_t encoded = EVP_EncodeBlock(out, ctx->data, sizeof(ctx->data)); local 155 out += encoded; 159 total = encoded + 1; 163 size_t encoded = EVP_EncodeBlock(out, in, sizeof(ctx->data)); local 167 out += encoded; 171 if (total + encoded + 1 < total) { 176 total += encoded + 1; 199 size_t encoded = EVP_EncodeBlock(out, ctx->data, ctx->data_used); local 200 out[encoded++] = '\n'; 201 out[encoded] = '\0' [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/ |
audio_encoder_cng.h | 62 uint8_t* encoded) override; 74 uint8_t* encoded); 77 uint8_t* encoded);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/ |
opus_interface.h | 64 * - encoded : Output compressed data buffer 73 uint8_t* encoded); 226 * - encoded : Encoded data 227 * - encoded_bytes : Bytes in encoded vector 238 int WebRtcOpus_Decode(OpusDecInst* inst, const uint8_t* encoded, 267 * - encoded : Encoded data 268 * - encoded_bytes : Bytes in encoded vector 277 int WebRtcOpus_DecodeFec(OpusDecInst* inst, const uint8_t* encoded, [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/ |
mock_external_decoder_pcm16b.h | 33 int DecodeInternal(const uint8_t* encoded, 38 size_t ret = WebRtcPcm16b_Decode(encoded, encoded_len, decoded); 71 int(const uint8_t* encoded,
|
/external/llvm/test/MC/PowerPC/ |
ppc64-localentry-error1.s | 10 # CHECK: LLVM ERROR: .localentry expression cannot be encoded.
|
/external/skia/bench/ |
BitmapRegionDecoderBench.h | 26 // Calls encoded->ref() 27 BitmapRegionDecoderBench(const char* basename, SkData* encoded, SkColorType colorType,
|